0 Prolog
↳1 CutEliminatorProof (⇐)
↳2 Prolog
↳3 PrologToPiTRSProof (⇐)
↳4 PiTRS
↳5 DependencyPairsProof (⇔)
↳6 PiDP
↳7 DependencyGraphProof (⇔)
↳8 PiDP
↳9 UsableRulesProof (⇔)
↳10 PiDP
↳11 PiDPToQDPProof (⇐)
↳12 QDP
↳13 Instantiation (⇔)
↳14 QDP
↳15 Narrowing (⇐)
↳16 QDP
↳17 Narrowing (⇐)
↳18 QDP
↳19 Narrowing (⇐)
↳20 QDP
↳21 Narrowing (⇐)
↳22 QDP
↳23 UsableRulesProof (⇔)
↳24 QDP
↳25 QReductionProof (⇔)
↳26 QDP
↳27 Instantiation (⇔)
↳28 QDP
↳29 Instantiation (⇔)
↳30 QDP
↳31 Instantiation (⇔)
↳32 QDP
↳33 Instantiation (⇔)
↳34 QDP
↳35 Instantiation (⇔)
↳36 QDP
↳37 Instantiation (⇔)
↳38 QDP
↳39 Instantiation (⇔)
↳40 QDP
↳41 Instantiation (⇔)
↳42 QDP
↳43 Instantiation (⇔)
↳44 QDP
↳45 Instantiation (⇔)
↳46 QDP
↳47 Instantiation (⇔)
↳48 QDP
↳49 Instantiation (⇔)
↳50 QDP
↳51 Instantiation (⇔)
↳52 QDP
↳53 Instantiation (⇔)
↳54 QDP
↳55 ForwardInstantiation (⇔)
↳56 QDP
↳57 ForwardInstantiation (⇔)
↳58 QDP
↳59 ForwardInstantiation (⇔)
↳60 QDP
↳61 ForwardInstantiation (⇔)
↳62 QDP
↳63 ForwardInstantiation (⇔)
↳64 QDP
↳65 ForwardInstantiation (⇔)
↳66 QDP
↳67 NonTerminationProof (⇔)
↳68 FALSE
↳69 PrologToPiTRSProof (⇐)
↳70 PiTRS
↳71 DependencyPairsProof (⇔)
↳72 PiDP
↳73 DependencyGraphProof (⇔)
↳74 PiDP
↳75 UsableRulesProof (⇔)
↳76 PiDP
↳77 PiDPToQDPProof (⇐)
↳78 QDP
↳79 Instantiation (⇔)
↳80 QDP
↳81 Narrowing (⇐)
↳82 QDP
↳83 Narrowing (⇐)
↳84 QDP
↳85 Narrowing (⇐)
↳86 QDP
↳87 Narrowing (⇐)
↳88 QDP
↳89 UsableRulesProof (⇔)
↳90 QDP
↳91 QReductionProof (⇔)
↳92 QDP
↳93 Instantiation (⇔)
↳94 QDP
↳95 Instantiation (⇔)
↳96 QDP
↳97 Instantiation (⇔)
↳98 QDP
↳99 ForwardInstantiation (⇔)
↳100 QDP
↳101 ForwardInstantiation (⇔)
↳102 QDP
↳103 ForwardInstantiation (⇔)
↳104 QDP
↳105 ForwardInstantiation (⇔)
↳106 QDP
↳107 ForwardInstantiation (⇔)
↳108 QDP
↳109 ForwardInstantiation (⇔)
↳110 QDP
↳111 NonTerminationProof (⇔)
↳112 FALSE
average_in_gga(0, 0, Z) → U1_gga(Z, eq_in_ag(Z, 0))
eq_in_ag(X, X) → eq_out_ag(X, X)
U1_gga(Z, eq_out_ag(Z, 0)) → average_out_gga(0, 0, Z)
average_in_gga(0, s(0), Z) → U2_gga(Z, eq_in_ag(Z, 0))
U2_gga(Z, eq_out_ag(Z, 0)) → average_out_gga(0, s(0), Z)
average_in_gga(0, s(s(0)), Z) → U3_gga(Z, eq_in_ag(Z, s(0)))
U3_gga(Z, eq_out_ag(Z, s(0))) → average_out_gga(0, s(s(0)), Z)
average_in_gga(X, Y, Z) → U4_gga(X, Y, Z, p_in_ga(X, P))
p_in_ga(0, 0) → p_out_ga(0, 0)
p_in_ga(s(X), X) → p_out_ga(s(X), X)
U4_gga(X, Y, Z, p_out_ga(X, P)) → U5_gga(X, Y, Z, average_in_gga(P, s(Y), Z))
average_in_gga(X, Y, Z) → U6_gga(X, Y, Z, p_in_ga(Y, P1))
U6_gga(X, Y, Z, p_out_ga(Y, P1)) → U7_gga(X, Y, Z, P1, p_in_ga(P1, P2))
U7_gga(X, Y, Z, P1, p_out_ga(P1, P2)) → U8_gga(X, Y, Z, P1, P2, p_in_ga(P2, P3))
U8_gga(X, Y, Z, P1, P2, p_out_ga(P2, P3)) → U9_gga(X, Y, Z, average_in_gga(s(X), P3, U))
U9_gga(X, Y, Z, average_out_gga(s(X), P3, U)) → U10_gga(X, Y, Z, p_in_ag(Z, U))
p_in_ag(0, 0) → p_out_ag(0, 0)
p_in_ag(s(X), X) → p_out_ag(s(X), X)
U10_gga(X, Y, Z, p_out_ag(Z, U)) → average_out_gga(X, Y, Z)
U5_gga(X, Y, Z, average_out_gga(P, s(Y), Z)) → average_out_gga(X, Y, Z)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
average_in_gga(0, 0, Z) → U1_gga(Z, eq_in_ag(Z, 0))
eq_in_ag(X, X) → eq_out_ag(X, X)
U1_gga(Z, eq_out_ag(Z, 0)) → average_out_gga(0, 0, Z)
average_in_gga(0, s(0), Z) → U2_gga(Z, eq_in_ag(Z, 0))
U2_gga(Z, eq_out_ag(Z, 0)) → average_out_gga(0, s(0), Z)
average_in_gga(0, s(s(0)), Z) → U3_gga(Z, eq_in_ag(Z, s(0)))
U3_gga(Z, eq_out_ag(Z, s(0))) → average_out_gga(0, s(s(0)), Z)
average_in_gga(X, Y, Z) → U4_gga(X, Y, Z, p_in_ga(X, P))
p_in_ga(0, 0) → p_out_ga(0, 0)
p_in_ga(s(X), X) → p_out_ga(s(X), X)
U4_gga(X, Y, Z, p_out_ga(X, P)) → U5_gga(X, Y, Z, average_in_gga(P, s(Y), Z))
average_in_gga(X, Y, Z) → U6_gga(X, Y, Z, p_in_ga(Y, P1))
U6_gga(X, Y, Z, p_out_ga(Y, P1)) → U7_gga(X, Y, Z, P1, p_in_ga(P1, P2))
U7_gga(X, Y, Z, P1, p_out_ga(P1, P2)) → U8_gga(X, Y, Z, P1, P2, p_in_ga(P2, P3))
U8_gga(X, Y, Z, P1, P2, p_out_ga(P2, P3)) → U9_gga(X, Y, Z, average_in_gga(s(X), P3, U))
U9_gga(X, Y, Z, average_out_gga(s(X), P3, U)) → U10_gga(X, Y, Z, p_in_ag(Z, U))
p_in_ag(0, 0) → p_out_ag(0, 0)
p_in_ag(s(X), X) → p_out_ag(s(X), X)
U10_gga(X, Y, Z, p_out_ag(Z, U)) → average_out_gga(X, Y, Z)
U5_gga(X, Y, Z, average_out_gga(P, s(Y), Z)) → average_out_gga(X, Y, Z)
AVERAGE_IN_GGA(0, 0, Z) → U1_GGA(Z, eq_in_ag(Z, 0))
AVERAGE_IN_GGA(0, 0, Z) → EQ_IN_AG(Z, 0)
AVERAGE_IN_GGA(0, s(0), Z) → U2_GGA(Z, eq_in_ag(Z, 0))
AVERAGE_IN_GGA(0, s(0), Z) → EQ_IN_AG(Z, 0)
AVERAGE_IN_GGA(0, s(s(0)), Z) → U3_GGA(Z, eq_in_ag(Z, s(0)))
AVERAGE_IN_GGA(0, s(s(0)), Z) → EQ_IN_AG(Z, s(0))
AVERAGE_IN_GGA(X, Y, Z) → U4_GGA(X, Y, Z, p_in_ga(X, P))
AVERAGE_IN_GGA(X, Y, Z) → P_IN_GA(X, P)
U4_GGA(X, Y, Z, p_out_ga(X, P)) → U5_GGA(X, Y, Z, average_in_gga(P, s(Y), Z))
U4_GGA(X, Y, Z, p_out_ga(X, P)) → AVERAGE_IN_GGA(P, s(Y), Z)
AVERAGE_IN_GGA(X, Y, Z) → U6_GGA(X, Y, Z, p_in_ga(Y, P1))
AVERAGE_IN_GGA(X, Y, Z) → P_IN_GA(Y, P1)
U6_GGA(X, Y, Z, p_out_ga(Y, P1)) → U7_GGA(X, Y, Z, P1, p_in_ga(P1, P2))
U6_GGA(X, Y, Z, p_out_ga(Y, P1)) → P_IN_GA(P1, P2)
U7_GGA(X, Y, Z, P1, p_out_ga(P1, P2)) → U8_GGA(X, Y, Z, P1, P2, p_in_ga(P2, P3))
U7_GGA(X, Y, Z, P1, p_out_ga(P1, P2)) → P_IN_GA(P2, P3)
U8_GGA(X, Y, Z, P1, P2, p_out_ga(P2, P3)) → U9_GGA(X, Y, Z, average_in_gga(s(X), P3, U))
U8_GGA(X, Y, Z, P1, P2, p_out_ga(P2, P3)) → AVERAGE_IN_GGA(s(X), P3, U)
U9_GGA(X, Y, Z, average_out_gga(s(X), P3, U)) → U10_GGA(X, Y, Z, p_in_ag(Z, U))
U9_GGA(X, Y, Z, average_out_gga(s(X), P3, U)) → P_IN_AG(Z, U)
average_in_gga(0, 0, Z) → U1_gga(Z, eq_in_ag(Z, 0))
eq_in_ag(X, X) → eq_out_ag(X, X)
U1_gga(Z, eq_out_ag(Z, 0)) → average_out_gga(0, 0, Z)
average_in_gga(0, s(0), Z) → U2_gga(Z, eq_in_ag(Z, 0))
U2_gga(Z, eq_out_ag(Z, 0)) → average_out_gga(0, s(0), Z)
average_in_gga(0, s(s(0)), Z) → U3_gga(Z, eq_in_ag(Z, s(0)))
U3_gga(Z, eq_out_ag(Z, s(0))) → average_out_gga(0, s(s(0)), Z)
average_in_gga(X, Y, Z) → U4_gga(X, Y, Z, p_in_ga(X, P))
p_in_ga(0, 0) → p_out_ga(0, 0)
p_in_ga(s(X), X) → p_out_ga(s(X), X)
U4_gga(X, Y, Z, p_out_ga(X, P)) → U5_gga(X, Y, Z, average_in_gga(P, s(Y), Z))
average_in_gga(X, Y, Z) → U6_gga(X, Y, Z, p_in_ga(Y, P1))
U6_gga(X, Y, Z, p_out_ga(Y, P1)) → U7_gga(X, Y, Z, P1, p_in_ga(P1, P2))
U7_gga(X, Y, Z, P1, p_out_ga(P1, P2)) → U8_gga(X, Y, Z, P1, P2, p_in_ga(P2, P3))
U8_gga(X, Y, Z, P1, P2, p_out_ga(P2, P3)) → U9_gga(X, Y, Z, average_in_gga(s(X), P3, U))
U9_gga(X, Y, Z, average_out_gga(s(X), P3, U)) → U10_gga(X, Y, Z, p_in_ag(Z, U))
p_in_ag(0, 0) → p_out_ag(0, 0)
p_in_ag(s(X), X) → p_out_ag(s(X), X)
U10_gga(X, Y, Z, p_out_ag(Z, U)) → average_out_gga(X, Y, Z)
U5_gga(X, Y, Z, average_out_gga(P, s(Y), Z)) → average_out_gga(X, Y, Z)
AVERAGE_IN_GGA(0, 0, Z) → U1_GGA(Z, eq_in_ag(Z, 0))
AVERAGE_IN_GGA(0, 0, Z) → EQ_IN_AG(Z, 0)
AVERAGE_IN_GGA(0, s(0), Z) → U2_GGA(Z, eq_in_ag(Z, 0))
AVERAGE_IN_GGA(0, s(0), Z) → EQ_IN_AG(Z, 0)
AVERAGE_IN_GGA(0, s(s(0)), Z) → U3_GGA(Z, eq_in_ag(Z, s(0)))
AVERAGE_IN_GGA(0, s(s(0)), Z) → EQ_IN_AG(Z, s(0))
AVERAGE_IN_GGA(X, Y, Z) → U4_GGA(X, Y, Z, p_in_ga(X, P))
AVERAGE_IN_GGA(X, Y, Z) → P_IN_GA(X, P)
U4_GGA(X, Y, Z, p_out_ga(X, P)) → U5_GGA(X, Y, Z, average_in_gga(P, s(Y), Z))
U4_GGA(X, Y, Z, p_out_ga(X, P)) → AVERAGE_IN_GGA(P, s(Y), Z)
AVERAGE_IN_GGA(X, Y, Z) → U6_GGA(X, Y, Z, p_in_ga(Y, P1))
AVERAGE_IN_GGA(X, Y, Z) → P_IN_GA(Y, P1)
U6_GGA(X, Y, Z, p_out_ga(Y, P1)) → U7_GGA(X, Y, Z, P1, p_in_ga(P1, P2))
U6_GGA(X, Y, Z, p_out_ga(Y, P1)) → P_IN_GA(P1, P2)
U7_GGA(X, Y, Z, P1, p_out_ga(P1, P2)) → U8_GGA(X, Y, Z, P1, P2, p_in_ga(P2, P3))
U7_GGA(X, Y, Z, P1, p_out_ga(P1, P2)) → P_IN_GA(P2, P3)
U8_GGA(X, Y, Z, P1, P2, p_out_ga(P2, P3)) → U9_GGA(X, Y, Z, average_in_gga(s(X), P3, U))
U8_GGA(X, Y, Z, P1, P2, p_out_ga(P2, P3)) → AVERAGE_IN_GGA(s(X), P3, U)
U9_GGA(X, Y, Z, average_out_gga(s(X), P3, U)) → U10_GGA(X, Y, Z, p_in_ag(Z, U))
U9_GGA(X, Y, Z, average_out_gga(s(X), P3, U)) → P_IN_AG(Z, U)
average_in_gga(0, 0, Z) → U1_gga(Z, eq_in_ag(Z, 0))
eq_in_ag(X, X) → eq_out_ag(X, X)
U1_gga(Z, eq_out_ag(Z, 0)) → average_out_gga(0, 0, Z)
average_in_gga(0, s(0), Z) → U2_gga(Z, eq_in_ag(Z, 0))
U2_gga(Z, eq_out_ag(Z, 0)) → average_out_gga(0, s(0), Z)
average_in_gga(0, s(s(0)), Z) → U3_gga(Z, eq_in_ag(Z, s(0)))
U3_gga(Z, eq_out_ag(Z, s(0))) → average_out_gga(0, s(s(0)), Z)
average_in_gga(X, Y, Z) → U4_gga(X, Y, Z, p_in_ga(X, P))
p_in_ga(0, 0) → p_out_ga(0, 0)
p_in_ga(s(X), X) → p_out_ga(s(X), X)
U4_gga(X, Y, Z, p_out_ga(X, P)) → U5_gga(X, Y, Z, average_in_gga(P, s(Y), Z))
average_in_gga(X, Y, Z) → U6_gga(X, Y, Z, p_in_ga(Y, P1))
U6_gga(X, Y, Z, p_out_ga(Y, P1)) → U7_gga(X, Y, Z, P1, p_in_ga(P1, P2))
U7_gga(X, Y, Z, P1, p_out_ga(P1, P2)) → U8_gga(X, Y, Z, P1, P2, p_in_ga(P2, P3))
U8_gga(X, Y, Z, P1, P2, p_out_ga(P2, P3)) → U9_gga(X, Y, Z, average_in_gga(s(X), P3, U))
U9_gga(X, Y, Z, average_out_gga(s(X), P3, U)) → U10_gga(X, Y, Z, p_in_ag(Z, U))
p_in_ag(0, 0) → p_out_ag(0, 0)
p_in_ag(s(X), X) → p_out_ag(s(X), X)
U10_gga(X, Y, Z, p_out_ag(Z, U)) → average_out_gga(X, Y, Z)
U5_gga(X, Y, Z, average_out_gga(P, s(Y), Z)) → average_out_gga(X, Y, Z)
AVERAGE_IN_GGA(X, Y, Z) → U4_GGA(X, Y, Z, p_in_ga(X, P))
U4_GGA(X, Y, Z, p_out_ga(X, P)) → AVERAGE_IN_GGA(P, s(Y), Z)
AVERAGE_IN_GGA(X, Y, Z) → U6_GGA(X, Y, Z, p_in_ga(Y, P1))
U6_GGA(X, Y, Z, p_out_ga(Y, P1)) → U7_GGA(X, Y, Z, P1, p_in_ga(P1, P2))
U7_GGA(X, Y, Z, P1, p_out_ga(P1, P2)) → U8_GGA(X, Y, Z, P1, P2, p_in_ga(P2, P3))
U8_GGA(X, Y, Z, P1, P2, p_out_ga(P2, P3)) → AVERAGE_IN_GGA(s(X), P3, U)
average_in_gga(0, 0, Z) → U1_gga(Z, eq_in_ag(Z, 0))
eq_in_ag(X, X) → eq_out_ag(X, X)
U1_gga(Z, eq_out_ag(Z, 0)) → average_out_gga(0, 0, Z)
average_in_gga(0, s(0), Z) → U2_gga(Z, eq_in_ag(Z, 0))
U2_gga(Z, eq_out_ag(Z, 0)) → average_out_gga(0, s(0), Z)
average_in_gga(0, s(s(0)), Z) → U3_gga(Z, eq_in_ag(Z, s(0)))
U3_gga(Z, eq_out_ag(Z, s(0))) → average_out_gga(0, s(s(0)), Z)
average_in_gga(X, Y, Z) → U4_gga(X, Y, Z, p_in_ga(X, P))
p_in_ga(0, 0) → p_out_ga(0, 0)
p_in_ga(s(X), X) → p_out_ga(s(X), X)
U4_gga(X, Y, Z, p_out_ga(X, P)) → U5_gga(X, Y, Z, average_in_gga(P, s(Y), Z))
average_in_gga(X, Y, Z) → U6_gga(X, Y, Z, p_in_ga(Y, P1))
U6_gga(X, Y, Z, p_out_ga(Y, P1)) → U7_gga(X, Y, Z, P1, p_in_ga(P1, P2))
U7_gga(X, Y, Z, P1, p_out_ga(P1, P2)) → U8_gga(X, Y, Z, P1, P2, p_in_ga(P2, P3))
U8_gga(X, Y, Z, P1, P2, p_out_ga(P2, P3)) → U9_gga(X, Y, Z, average_in_gga(s(X), P3, U))
U9_gga(X, Y, Z, average_out_gga(s(X), P3, U)) → U10_gga(X, Y, Z, p_in_ag(Z, U))
p_in_ag(0, 0) → p_out_ag(0, 0)
p_in_ag(s(X), X) → p_out_ag(s(X), X)
U10_gga(X, Y, Z, p_out_ag(Z, U)) → average_out_gga(X, Y, Z)
U5_gga(X, Y, Z, average_out_gga(P, s(Y), Z)) → average_out_gga(X, Y, Z)
AVERAGE_IN_GGA(X, Y, Z) → U4_GGA(X, Y, Z, p_in_ga(X, P))
U4_GGA(X, Y, Z, p_out_ga(X, P)) → AVERAGE_IN_GGA(P, s(Y), Z)
AVERAGE_IN_GGA(X, Y, Z) → U6_GGA(X, Y, Z, p_in_ga(Y, P1))
U6_GGA(X, Y, Z, p_out_ga(Y, P1)) → U7_GGA(X, Y, Z, P1, p_in_ga(P1, P2))
U7_GGA(X, Y, Z, P1, p_out_ga(P1, P2)) → U8_GGA(X, Y, Z, P1, P2, p_in_ga(P2, P3))
U8_GGA(X, Y, Z, P1, P2, p_out_ga(P2, P3)) → AVERAGE_IN_GGA(s(X), P3, U)
p_in_ga(0, 0) → p_out_ga(0, 0)
p_in_ga(s(X), X) → p_out_ga(s(X), X)
AVERAGE_IN_GGA(X, Y) → U4_GGA(X, Y, p_in_ga(X))
U4_GGA(X, Y, p_out_ga(X, P)) → AVERAGE_IN_GGA(P, s(Y))
AVERAGE_IN_GGA(X, Y) → U6_GGA(X, Y, p_in_ga(Y))
U6_GGA(X, Y, p_out_ga(Y, P1)) → U7_GGA(X, Y, p_in_ga(P1))
U7_GGA(X, Y, p_out_ga(P1, P2)) → U8_GGA(X, Y, p_in_ga(P2))
U8_GGA(X, Y, p_out_ga(P2, P3)) → AVERAGE_IN_GGA(s(X), P3)
p_in_ga(0) → p_out_ga(0, 0)
p_in_ga(s(X)) → p_out_ga(s(X), X)
p_in_ga(x0)
AVERAGE_IN_GGA(z2, s(z1)) → U4_GGA(z2, s(z1), p_in_ga(z2))
AVERAGE_IN_GGA(s(z0), z3) → U4_GGA(s(z0), z3, p_in_ga(s(z0)))
U4_GGA(X, Y, p_out_ga(X, P)) → AVERAGE_IN_GGA(P, s(Y))
AVERAGE_IN_GGA(X, Y) → U6_GGA(X, Y, p_in_ga(Y))
U6_GGA(X, Y, p_out_ga(Y, P1)) → U7_GGA(X, Y, p_in_ga(P1))
U7_GGA(X, Y, p_out_ga(P1, P2)) → U8_GGA(X, Y, p_in_ga(P2))
U8_GGA(X, Y, p_out_ga(P2, P3)) → AVERAGE_IN_GGA(s(X), P3)
AVERAGE_IN_GGA(z2, s(z1)) → U4_GGA(z2, s(z1), p_in_ga(z2))
AVERAGE_IN_GGA(s(z0), z3) → U4_GGA(s(z0), z3, p_in_ga(s(z0)))
p_in_ga(0) → p_out_ga(0, 0)
p_in_ga(s(X)) → p_out_ga(s(X), X)
p_in_ga(x0)
AVERAGE_IN_GGA(0, y1) → U4_GGA(0, y1, p_out_ga(0, 0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(s(x0), y1, p_out_ga(s(x0), x0))
U4_GGA(X, Y, p_out_ga(X, P)) → AVERAGE_IN_GGA(P, s(Y))
AVERAGE_IN_GGA(X, Y) → U6_GGA(X, Y, p_in_ga(Y))
U6_GGA(X, Y, p_out_ga(Y, P1)) → U7_GGA(X, Y, p_in_ga(P1))
U7_GGA(X, Y, p_out_ga(P1, P2)) → U8_GGA(X, Y, p_in_ga(P2))
U8_GGA(X, Y, p_out_ga(P2, P3)) → AVERAGE_IN_GGA(s(X), P3)
AVERAGE_IN_GGA(0, y1) → U4_GGA(0, y1, p_out_ga(0, 0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(s(x0), y1, p_out_ga(s(x0), x0))
p_in_ga(0) → p_out_ga(0, 0)
p_in_ga(s(X)) → p_out_ga(s(X), X)
p_in_ga(x0)
AVERAGE_IN_GGA(y0, 0) → U6_GGA(y0, 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, s(x0), p_out_ga(s(x0), x0))
U4_GGA(X, Y, p_out_ga(X, P)) → AVERAGE_IN_GGA(P, s(Y))
U6_GGA(X, Y, p_out_ga(Y, P1)) → U7_GGA(X, Y, p_in_ga(P1))
U7_GGA(X, Y, p_out_ga(P1, P2)) → U8_GGA(X, Y, p_in_ga(P2))
U8_GGA(X, Y, p_out_ga(P2, P3)) → AVERAGE_IN_GGA(s(X), P3)
AVERAGE_IN_GGA(0, y1) → U4_GGA(0, y1, p_out_ga(0, 0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(s(x0), y1, p_out_ga(s(x0), x0))
AVERAGE_IN_GGA(y0, 0) → U6_GGA(y0, 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, s(x0), p_out_ga(s(x0), x0))
p_in_ga(0) → p_out_ga(0, 0)
p_in_ga(s(X)) → p_out_ga(s(X), X)
p_in_ga(x0)
U6_GGA(y0, y1, p_out_ga(y1, 0)) → U7_GGA(y0, y1, p_out_ga(0, 0))
U6_GGA(y0, y1, p_out_ga(y1, s(x0))) → U7_GGA(y0, y1, p_out_ga(s(x0), x0))
U4_GGA(X, Y, p_out_ga(X, P)) → AVERAGE_IN_GGA(P, s(Y))
U7_GGA(X, Y, p_out_ga(P1, P2)) → U8_GGA(X, Y, p_in_ga(P2))
U8_GGA(X, Y, p_out_ga(P2, P3)) → AVERAGE_IN_GGA(s(X), P3)
AVERAGE_IN_GGA(0, y1) → U4_GGA(0, y1, p_out_ga(0, 0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(s(x0), y1, p_out_ga(s(x0), x0))
AVERAGE_IN_GGA(y0, 0) → U6_GGA(y0, 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, s(x0), p_out_ga(s(x0), x0))
U6_GGA(y0, y1, p_out_ga(y1, 0)) → U7_GGA(y0, y1, p_out_ga(0, 0))
U6_GGA(y0, y1, p_out_ga(y1, s(x0))) → U7_GGA(y0, y1, p_out_ga(s(x0), x0))
p_in_ga(0) → p_out_ga(0, 0)
p_in_ga(s(X)) → p_out_ga(s(X), X)
p_in_ga(x0)
U7_GGA(y0, y1, p_out_ga(y2, 0)) → U8_GGA(y0, y1, p_out_ga(0, 0))
U7_GGA(y0, y1, p_out_ga(y2, s(x0))) → U8_GGA(y0, y1, p_out_ga(s(x0), x0))
U4_GGA(X, Y, p_out_ga(X, P)) → AVERAGE_IN_GGA(P, s(Y))
U8_GGA(X, Y, p_out_ga(P2, P3)) → AVERAGE_IN_GGA(s(X), P3)
AVERAGE_IN_GGA(0, y1) → U4_GGA(0, y1, p_out_ga(0, 0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(s(x0), y1, p_out_ga(s(x0), x0))
AVERAGE_IN_GGA(y0, 0) → U6_GGA(y0, 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, s(x0), p_out_ga(s(x0), x0))
U6_GGA(y0, y1, p_out_ga(y1, 0)) → U7_GGA(y0, y1, p_out_ga(0, 0))
U6_GGA(y0, y1, p_out_ga(y1, s(x0))) → U7_GGA(y0, y1, p_out_ga(s(x0), x0))
U7_GGA(y0, y1, p_out_ga(y2, 0)) → U8_GGA(y0, y1, p_out_ga(0, 0))
U7_GGA(y0, y1, p_out_ga(y2, s(x0))) → U8_GGA(y0, y1, p_out_ga(s(x0), x0))
p_in_ga(0) → p_out_ga(0, 0)
p_in_ga(s(X)) → p_out_ga(s(X), X)
p_in_ga(x0)
U4_GGA(X, Y, p_out_ga(X, P)) → AVERAGE_IN_GGA(P, s(Y))
U8_GGA(X, Y, p_out_ga(P2, P3)) → AVERAGE_IN_GGA(s(X), P3)
AVERAGE_IN_GGA(0, y1) → U4_GGA(0, y1, p_out_ga(0, 0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(s(x0), y1, p_out_ga(s(x0), x0))
AVERAGE_IN_GGA(y0, 0) → U6_GGA(y0, 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, s(x0), p_out_ga(s(x0), x0))
U6_GGA(y0, y1, p_out_ga(y1, 0)) → U7_GGA(y0, y1, p_out_ga(0, 0))
U6_GGA(y0, y1, p_out_ga(y1, s(x0))) → U7_GGA(y0, y1, p_out_ga(s(x0), x0))
U7_GGA(y0, y1, p_out_ga(y2, 0)) → U8_GGA(y0, y1, p_out_ga(0, 0))
U7_GGA(y0, y1, p_out_ga(y2, s(x0))) → U8_GGA(y0, y1, p_out_ga(s(x0), x0))
p_in_ga(x0)
p_in_ga(x0)
U4_GGA(X, Y, p_out_ga(X, P)) → AVERAGE_IN_GGA(P, s(Y))
U8_GGA(X, Y, p_out_ga(P2, P3)) → AVERAGE_IN_GGA(s(X), P3)
AVERAGE_IN_GGA(0, y1) → U4_GGA(0, y1, p_out_ga(0, 0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(s(x0), y1, p_out_ga(s(x0), x0))
AVERAGE_IN_GGA(y0, 0) → U6_GGA(y0, 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, s(x0), p_out_ga(s(x0), x0))
U6_GGA(y0, y1, p_out_ga(y1, 0)) → U7_GGA(y0, y1, p_out_ga(0, 0))
U6_GGA(y0, y1, p_out_ga(y1, s(x0))) → U7_GGA(y0, y1, p_out_ga(s(x0), x0))
U7_GGA(y0, y1, p_out_ga(y2, 0)) → U8_GGA(y0, y1, p_out_ga(0, 0))
U7_GGA(y0, y1, p_out_ga(y2, s(x0))) → U8_GGA(y0, y1, p_out_ga(s(x0), x0))
U4_GGA(0, z0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(0, s(z0))
U4_GGA(s(z0), z1, p_out_ga(s(z0), z0)) → AVERAGE_IN_GGA(z0, s(z1))
U8_GGA(X, Y, p_out_ga(P2, P3)) → AVERAGE_IN_GGA(s(X), P3)
AVERAGE_IN_GGA(0, y1) → U4_GGA(0, y1, p_out_ga(0, 0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(s(x0), y1, p_out_ga(s(x0), x0))
AVERAGE_IN_GGA(y0, 0) → U6_GGA(y0, 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, s(x0), p_out_ga(s(x0), x0))
U6_GGA(y0, y1, p_out_ga(y1, 0)) → U7_GGA(y0, y1, p_out_ga(0, 0))
U6_GGA(y0, y1, p_out_ga(y1, s(x0))) → U7_GGA(y0, y1, p_out_ga(s(x0), x0))
U7_GGA(y0, y1, p_out_ga(y2, 0)) → U8_GGA(y0, y1, p_out_ga(0, 0))
U7_GGA(y0, y1, p_out_ga(y2, s(x0))) → U8_GGA(y0, y1, p_out_ga(s(x0), x0))
U4_GGA(0, z0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(0, s(z0))
U4_GGA(s(z0), z1, p_out_ga(s(z0), z0)) → AVERAGE_IN_GGA(z0, s(z1))
U8_GGA(z0, z1, p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, z1, p_out_ga(s(z3), z3)) → AVERAGE_IN_GGA(s(z0), z3)
AVERAGE_IN_GGA(0, y1) → U4_GGA(0, y1, p_out_ga(0, 0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(s(x0), y1, p_out_ga(s(x0), x0))
AVERAGE_IN_GGA(y0, 0) → U6_GGA(y0, 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, s(x0), p_out_ga(s(x0), x0))
U6_GGA(y0, y1, p_out_ga(y1, 0)) → U7_GGA(y0, y1, p_out_ga(0, 0))
U6_GGA(y0, y1, p_out_ga(y1, s(x0))) → U7_GGA(y0, y1, p_out_ga(s(x0), x0))
U7_GGA(y0, y1, p_out_ga(y2, 0)) → U8_GGA(y0, y1, p_out_ga(0, 0))
U7_GGA(y0, y1, p_out_ga(y2, s(x0))) → U8_GGA(y0, y1, p_out_ga(s(x0), x0))
U4_GGA(0, z0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(0, s(z0))
U4_GGA(s(z0), z1, p_out_ga(s(z0), z0)) → AVERAGE_IN_GGA(z0, s(z1))
U8_GGA(z0, z1, p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, z1, p_out_ga(s(z3), z3)) → AVERAGE_IN_GGA(s(z0), z3)
U6_GGA(z0, 0, p_out_ga(0, 0)) → U7_GGA(z0, 0, p_out_ga(0, 0))
U6_GGA(z0, s(0), p_out_ga(s(0), 0)) → U7_GGA(z0, s(0), p_out_ga(0, 0))
AVERAGE_IN_GGA(0, y1) → U4_GGA(0, y1, p_out_ga(0, 0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(s(x0), y1, p_out_ga(s(x0), x0))
AVERAGE_IN_GGA(y0, 0) → U6_GGA(y0, 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, s(x0), p_out_ga(s(x0), x0))
U6_GGA(y0, y1, p_out_ga(y1, s(x0))) → U7_GGA(y0, y1, p_out_ga(s(x0), x0))
U7_GGA(y0, y1, p_out_ga(y2, 0)) → U8_GGA(y0, y1, p_out_ga(0, 0))
U7_GGA(y0, y1, p_out_ga(y2, s(x0))) → U8_GGA(y0, y1, p_out_ga(s(x0), x0))
U4_GGA(0, z0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(0, s(z0))
U4_GGA(s(z0), z1, p_out_ga(s(z0), z0)) → AVERAGE_IN_GGA(z0, s(z1))
U8_GGA(z0, z1, p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, z1, p_out_ga(s(z3), z3)) → AVERAGE_IN_GGA(s(z0), z3)
U6_GGA(z0, 0, p_out_ga(0, 0)) → U7_GGA(z0, 0, p_out_ga(0, 0))
U6_GGA(z0, s(0), p_out_ga(s(0), 0)) → U7_GGA(z0, s(0), p_out_ga(0, 0))
U6_GGA(z0, s(s(x2)), p_out_ga(s(s(x2)), s(x2))) → U7_GGA(z0, s(s(x2)), p_out_ga(s(x2), x2))
AVERAGE_IN_GGA(0, y1) → U4_GGA(0, y1, p_out_ga(0, 0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(s(x0), y1, p_out_ga(s(x0), x0))
AVERAGE_IN_GGA(y0, 0) → U6_GGA(y0, 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, s(x0), p_out_ga(s(x0), x0))
U7_GGA(y0, y1, p_out_ga(y2, 0)) → U8_GGA(y0, y1, p_out_ga(0, 0))
U7_GGA(y0, y1, p_out_ga(y2, s(x0))) → U8_GGA(y0, y1, p_out_ga(s(x0), x0))
U4_GGA(0, z0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(0, s(z0))
U4_GGA(s(z0), z1, p_out_ga(s(z0), z0)) → AVERAGE_IN_GGA(z0, s(z1))
U8_GGA(z0, z1, p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, z1, p_out_ga(s(z3), z3)) → AVERAGE_IN_GGA(s(z0), z3)
U6_GGA(z0, 0, p_out_ga(0, 0)) → U7_GGA(z0, 0, p_out_ga(0, 0))
U6_GGA(z0, s(0), p_out_ga(s(0), 0)) → U7_GGA(z0, s(0), p_out_ga(0, 0))
U6_GGA(z0, s(s(x2)), p_out_ga(s(s(x2)), s(x2))) → U7_GGA(z0, s(s(x2)), p_out_ga(s(x2), x2))
U7_GGA(z0, 0, p_out_ga(0, 0)) → U8_GGA(z0, 0, p_out_ga(0, 0))
U7_GGA(z0, s(0), p_out_ga(0, 0)) → U8_GGA(z0, s(0), p_out_ga(0, 0))
U7_GGA(z0, s(s(0)), p_out_ga(s(0), 0)) → U8_GGA(z0, s(s(0)), p_out_ga(0, 0))
AVERAGE_IN_GGA(0, y1) → U4_GGA(0, y1, p_out_ga(0, 0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(s(x0), y1, p_out_ga(s(x0), x0))
AVERAGE_IN_GGA(y0, 0) → U6_GGA(y0, 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, s(x0), p_out_ga(s(x0), x0))
U7_GGA(y0, y1, p_out_ga(y2, s(x0))) → U8_GGA(y0, y1, p_out_ga(s(x0), x0))
U4_GGA(0, z0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(0, s(z0))
U4_GGA(s(z0), z1, p_out_ga(s(z0), z0)) → AVERAGE_IN_GGA(z0, s(z1))
U8_GGA(z0, z1, p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, z1, p_out_ga(s(z3), z3)) → AVERAGE_IN_GGA(s(z0), z3)
U6_GGA(z0, 0, p_out_ga(0, 0)) → U7_GGA(z0, 0, p_out_ga(0, 0))
U6_GGA(z0, s(0), p_out_ga(s(0), 0)) → U7_GGA(z0, s(0), p_out_ga(0, 0))
U6_GGA(z0, s(s(x2)), p_out_ga(s(s(x2)), s(x2))) → U7_GGA(z0, s(s(x2)), p_out_ga(s(x2), x2))
U7_GGA(z0, 0, p_out_ga(0, 0)) → U8_GGA(z0, 0, p_out_ga(0, 0))
U7_GGA(z0, s(0), p_out_ga(0, 0)) → U8_GGA(z0, s(0), p_out_ga(0, 0))
U7_GGA(z0, s(s(0)), p_out_ga(s(0), 0)) → U8_GGA(z0, s(s(0)), p_out_ga(0, 0))
U7_GGA(z0, s(s(s(x3))), p_out_ga(s(s(x3)), s(x3))) → U8_GGA(z0, s(s(s(x3))), p_out_ga(s(x3), x3))
AVERAGE_IN_GGA(0, y1) → U4_GGA(0, y1, p_out_ga(0, 0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(s(x0), y1, p_out_ga(s(x0), x0))
AVERAGE_IN_GGA(y0, 0) → U6_GGA(y0, 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, s(x0), p_out_ga(s(x0), x0))
U4_GGA(0, z0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(0, s(z0))
U4_GGA(s(z0), z1, p_out_ga(s(z0), z0)) → AVERAGE_IN_GGA(z0, s(z1))
U8_GGA(z0, z1, p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, z1, p_out_ga(s(z3), z3)) → AVERAGE_IN_GGA(s(z0), z3)
U6_GGA(z0, 0, p_out_ga(0, 0)) → U7_GGA(z0, 0, p_out_ga(0, 0))
U6_GGA(z0, s(0), p_out_ga(s(0), 0)) → U7_GGA(z0, s(0), p_out_ga(0, 0))
U6_GGA(z0, s(s(x2)), p_out_ga(s(s(x2)), s(x2))) → U7_GGA(z0, s(s(x2)), p_out_ga(s(x2), x2))
U7_GGA(z0, 0, p_out_ga(0, 0)) → U8_GGA(z0, 0, p_out_ga(0, 0))
U7_GGA(z0, s(0), p_out_ga(0, 0)) → U8_GGA(z0, s(0), p_out_ga(0, 0))
U7_GGA(z0, s(s(0)), p_out_ga(s(0), 0)) → U8_GGA(z0, s(s(0)), p_out_ga(0, 0))
U7_GGA(z0, s(s(s(x3))), p_out_ga(s(s(x3)), s(x3))) → U8_GGA(z0, s(s(s(x3))), p_out_ga(s(x3), x3))
U8_GGA(z0, 0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(0)), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
AVERAGE_IN_GGA(0, y1) → U4_GGA(0, y1, p_out_ga(0, 0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(s(x0), y1, p_out_ga(s(x0), x0))
AVERAGE_IN_GGA(y0, 0) → U6_GGA(y0, 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, s(x0), p_out_ga(s(x0), x0))
U4_GGA(0, z0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(0, s(z0))
U4_GGA(s(z0), z1, p_out_ga(s(z0), z0)) → AVERAGE_IN_GGA(z0, s(z1))
U8_GGA(z0, z1, p_out_ga(s(z3), z3)) → AVERAGE_IN_GGA(s(z0), z3)
U6_GGA(z0, 0, p_out_ga(0, 0)) → U7_GGA(z0, 0, p_out_ga(0, 0))
U6_GGA(z0, s(0), p_out_ga(s(0), 0)) → U7_GGA(z0, s(0), p_out_ga(0, 0))
U6_GGA(z0, s(s(x2)), p_out_ga(s(s(x2)), s(x2))) → U7_GGA(z0, s(s(x2)), p_out_ga(s(x2), x2))
U7_GGA(z0, 0, p_out_ga(0, 0)) → U8_GGA(z0, 0, p_out_ga(0, 0))
U7_GGA(z0, s(0), p_out_ga(0, 0)) → U8_GGA(z0, s(0), p_out_ga(0, 0))
U7_GGA(z0, s(s(0)), p_out_ga(s(0), 0)) → U8_GGA(z0, s(s(0)), p_out_ga(0, 0))
U7_GGA(z0, s(s(s(x3))), p_out_ga(s(s(x3)), s(x3))) → U8_GGA(z0, s(s(s(x3))), p_out_ga(s(x3), x3))
U8_GGA(z0, 0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(0)), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(s(z1))), p_out_ga(s(z1), z1)) → AVERAGE_IN_GGA(s(z0), z1)
AVERAGE_IN_GGA(0, y1) → U4_GGA(0, y1, p_out_ga(0, 0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(s(x0), y1, p_out_ga(s(x0), x0))
AVERAGE_IN_GGA(y0, 0) → U6_GGA(y0, 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, s(x0), p_out_ga(s(x0), x0))
U4_GGA(0, z0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(0, s(z0))
U4_GGA(s(z0), z1, p_out_ga(s(z0), z0)) → AVERAGE_IN_GGA(z0, s(z1))
U6_GGA(z0, 0, p_out_ga(0, 0)) → U7_GGA(z0, 0, p_out_ga(0, 0))
U6_GGA(z0, s(0), p_out_ga(s(0), 0)) → U7_GGA(z0, s(0), p_out_ga(0, 0))
U6_GGA(z0, s(s(x2)), p_out_ga(s(s(x2)), s(x2))) → U7_GGA(z0, s(s(x2)), p_out_ga(s(x2), x2))
U7_GGA(z0, 0, p_out_ga(0, 0)) → U8_GGA(z0, 0, p_out_ga(0, 0))
U7_GGA(z0, s(0), p_out_ga(0, 0)) → U8_GGA(z0, s(0), p_out_ga(0, 0))
U7_GGA(z0, s(s(0)), p_out_ga(s(0), 0)) → U8_GGA(z0, s(s(0)), p_out_ga(0, 0))
U7_GGA(z0, s(s(s(x3))), p_out_ga(s(s(x3)), s(x3))) → U8_GGA(z0, s(s(s(x3))), p_out_ga(s(x3), x3))
U8_GGA(z0, 0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(0)), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(s(z1))), p_out_ga(s(z1), z1)) → AVERAGE_IN_GGA(s(z0), z1)
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(0, s(z0), p_out_ga(0, 0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(s(x0), y1, p_out_ga(s(x0), x0))
AVERAGE_IN_GGA(y0, 0) → U6_GGA(y0, 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, s(x0), p_out_ga(s(x0), x0))
U4_GGA(0, z0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(0, s(z0))
U4_GGA(s(z0), z1, p_out_ga(s(z0), z0)) → AVERAGE_IN_GGA(z0, s(z1))
U6_GGA(z0, 0, p_out_ga(0, 0)) → U7_GGA(z0, 0, p_out_ga(0, 0))
U6_GGA(z0, s(0), p_out_ga(s(0), 0)) → U7_GGA(z0, s(0), p_out_ga(0, 0))
U6_GGA(z0, s(s(x2)), p_out_ga(s(s(x2)), s(x2))) → U7_GGA(z0, s(s(x2)), p_out_ga(s(x2), x2))
U7_GGA(z0, 0, p_out_ga(0, 0)) → U8_GGA(z0, 0, p_out_ga(0, 0))
U7_GGA(z0, s(0), p_out_ga(0, 0)) → U8_GGA(z0, s(0), p_out_ga(0, 0))
U7_GGA(z0, s(s(0)), p_out_ga(s(0), 0)) → U8_GGA(z0, s(s(0)), p_out_ga(0, 0))
U7_GGA(z0, s(s(s(x3))), p_out_ga(s(s(x3)), s(x3))) → U8_GGA(z0, s(s(s(x3))), p_out_ga(s(x3), x3))
U8_GGA(z0, 0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(0)), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(s(z1))), p_out_ga(s(z1), z1)) → AVERAGE_IN_GGA(s(z0), z1)
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(0, s(z0), p_out_ga(0, 0))
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(0, s(z0), p_out_ga(0, 0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(s(x0), y1, p_out_ga(s(x0), x0))
AVERAGE_IN_GGA(y0, 0) → U6_GGA(y0, 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, s(x0), p_out_ga(s(x0), x0))
U4_GGA(0, z0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(0, s(z0))
U4_GGA(s(z0), z1, p_out_ga(s(z0), z0)) → AVERAGE_IN_GGA(z0, s(z1))
U6_GGA(z0, 0, p_out_ga(0, 0)) → U7_GGA(z0, 0, p_out_ga(0, 0))
U6_GGA(z0, s(0), p_out_ga(s(0), 0)) → U7_GGA(z0, s(0), p_out_ga(0, 0))
U6_GGA(z0, s(s(x2)), p_out_ga(s(s(x2)), s(x2))) → U7_GGA(z0, s(s(x2)), p_out_ga(s(x2), x2))
U7_GGA(z0, 0, p_out_ga(0, 0)) → U8_GGA(z0, 0, p_out_ga(0, 0))
U7_GGA(z0, s(0), p_out_ga(0, 0)) → U8_GGA(z0, s(0), p_out_ga(0, 0))
U7_GGA(z0, s(s(0)), p_out_ga(s(0), 0)) → U8_GGA(z0, s(s(0)), p_out_ga(0, 0))
U7_GGA(z0, s(s(s(x3))), p_out_ga(s(s(x3)), s(x3))) → U8_GGA(z0, s(s(s(x3))), p_out_ga(s(x3), x3))
U8_GGA(z0, 0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(0)), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(s(z1))), p_out_ga(s(z1), z1)) → AVERAGE_IN_GGA(s(z0), z1)
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(0, s(z0), p_out_ga(0, 0))
AVERAGE_IN_GGA(s(z0), 0) → U6_GGA(s(z0), 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(s(x0), y1, p_out_ga(s(x0), x0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, s(x0), p_out_ga(s(x0), x0))
U4_GGA(0, z0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(0, s(z0))
U4_GGA(s(z0), z1, p_out_ga(s(z0), z0)) → AVERAGE_IN_GGA(z0, s(z1))
U6_GGA(z0, 0, p_out_ga(0, 0)) → U7_GGA(z0, 0, p_out_ga(0, 0))
U6_GGA(z0, s(0), p_out_ga(s(0), 0)) → U7_GGA(z0, s(0), p_out_ga(0, 0))
U6_GGA(z0, s(s(x2)), p_out_ga(s(s(x2)), s(x2))) → U7_GGA(z0, s(s(x2)), p_out_ga(s(x2), x2))
U7_GGA(z0, 0, p_out_ga(0, 0)) → U8_GGA(z0, 0, p_out_ga(0, 0))
U7_GGA(z0, s(0), p_out_ga(0, 0)) → U8_GGA(z0, s(0), p_out_ga(0, 0))
U7_GGA(z0, s(s(0)), p_out_ga(s(0), 0)) → U8_GGA(z0, s(s(0)), p_out_ga(0, 0))
U7_GGA(z0, s(s(s(x3))), p_out_ga(s(s(x3)), s(x3))) → U8_GGA(z0, s(s(s(x3))), p_out_ga(s(x3), x3))
U8_GGA(z0, 0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(0)), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(s(z1))), p_out_ga(s(z1), z1)) → AVERAGE_IN_GGA(s(z0), z1)
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(0, s(z0), p_out_ga(0, 0))
AVERAGE_IN_GGA(s(z0), 0) → U6_GGA(s(z0), 0, p_out_ga(0, 0))
U4_GGA(0, s(z0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(0, s(s(z0)))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(s(x0), y1, p_out_ga(s(x0), x0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, s(x0), p_out_ga(s(x0), x0))
U4_GGA(s(z0), z1, p_out_ga(s(z0), z0)) → AVERAGE_IN_GGA(z0, s(z1))
U6_GGA(z0, 0, p_out_ga(0, 0)) → U7_GGA(z0, 0, p_out_ga(0, 0))
U6_GGA(z0, s(0), p_out_ga(s(0), 0)) → U7_GGA(z0, s(0), p_out_ga(0, 0))
U6_GGA(z0, s(s(x2)), p_out_ga(s(s(x2)), s(x2))) → U7_GGA(z0, s(s(x2)), p_out_ga(s(x2), x2))
U7_GGA(z0, 0, p_out_ga(0, 0)) → U8_GGA(z0, 0, p_out_ga(0, 0))
U7_GGA(z0, s(0), p_out_ga(0, 0)) → U8_GGA(z0, s(0), p_out_ga(0, 0))
U7_GGA(z0, s(s(0)), p_out_ga(s(0), 0)) → U8_GGA(z0, s(s(0)), p_out_ga(0, 0))
U7_GGA(z0, s(s(s(x3))), p_out_ga(s(s(x3)), s(x3))) → U8_GGA(z0, s(s(s(x3))), p_out_ga(s(x3), x3))
U8_GGA(z0, 0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(0)), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(s(z1))), p_out_ga(s(z1), z1)) → AVERAGE_IN_GGA(s(z0), z1)
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(0, s(z0), p_out_ga(0, 0))
AVERAGE_IN_GGA(s(z0), 0) → U6_GGA(s(z0), 0, p_out_ga(0, 0))
U4_GGA(0, s(z0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(0, s(s(z0)))
U6_GGA(s(z0), 0, p_out_ga(0, 0)) → U7_GGA(s(z0), 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(s(x0), y1, p_out_ga(s(x0), x0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, s(x0), p_out_ga(s(x0), x0))
U4_GGA(s(z0), z1, p_out_ga(s(z0), z0)) → AVERAGE_IN_GGA(z0, s(z1))
U6_GGA(z0, s(0), p_out_ga(s(0), 0)) → U7_GGA(z0, s(0), p_out_ga(0, 0))
U6_GGA(z0, s(s(x2)), p_out_ga(s(s(x2)), s(x2))) → U7_GGA(z0, s(s(x2)), p_out_ga(s(x2), x2))
U7_GGA(z0, 0, p_out_ga(0, 0)) → U8_GGA(z0, 0, p_out_ga(0, 0))
U7_GGA(z0, s(0), p_out_ga(0, 0)) → U8_GGA(z0, s(0), p_out_ga(0, 0))
U7_GGA(z0, s(s(0)), p_out_ga(s(0), 0)) → U8_GGA(z0, s(s(0)), p_out_ga(0, 0))
U7_GGA(z0, s(s(s(x3))), p_out_ga(s(s(x3)), s(x3))) → U8_GGA(z0, s(s(s(x3))), p_out_ga(s(x3), x3))
U8_GGA(z0, 0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(0)), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(s(z1))), p_out_ga(s(z1), z1)) → AVERAGE_IN_GGA(s(z0), z1)
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(0, s(z0), p_out_ga(0, 0))
AVERAGE_IN_GGA(s(z0), 0) → U6_GGA(s(z0), 0, p_out_ga(0, 0))
U4_GGA(0, s(z0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(0, s(s(z0)))
U6_GGA(s(z0), 0, p_out_ga(0, 0)) → U7_GGA(s(z0), 0, p_out_ga(0, 0))
U7_GGA(s(z0), 0, p_out_ga(0, 0)) → U8_GGA(s(z0), 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(s(x0), y1, p_out_ga(s(x0), x0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, s(x0), p_out_ga(s(x0), x0))
U4_GGA(s(z0), z1, p_out_ga(s(z0), z0)) → AVERAGE_IN_GGA(z0, s(z1))
U6_GGA(z0, s(0), p_out_ga(s(0), 0)) → U7_GGA(z0, s(0), p_out_ga(0, 0))
U6_GGA(z0, s(s(x2)), p_out_ga(s(s(x2)), s(x2))) → U7_GGA(z0, s(s(x2)), p_out_ga(s(x2), x2))
U7_GGA(z0, s(0), p_out_ga(0, 0)) → U8_GGA(z0, s(0), p_out_ga(0, 0))
U7_GGA(z0, s(s(0)), p_out_ga(s(0), 0)) → U8_GGA(z0, s(s(0)), p_out_ga(0, 0))
U7_GGA(z0, s(s(s(x3))), p_out_ga(s(s(x3)), s(x3))) → U8_GGA(z0, s(s(s(x3))), p_out_ga(s(x3), x3))
U8_GGA(z0, 0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(0)), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(s(z1))), p_out_ga(s(z1), z1)) → AVERAGE_IN_GGA(s(z0), z1)
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(0, s(z0), p_out_ga(0, 0))
AVERAGE_IN_GGA(s(z0), 0) → U6_GGA(s(z0), 0, p_out_ga(0, 0))
U4_GGA(0, s(z0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(0, s(s(z0)))
U6_GGA(s(z0), 0, p_out_ga(0, 0)) → U7_GGA(s(z0), 0, p_out_ga(0, 0))
U7_GGA(s(z0), 0, p_out_ga(0, 0)) → U8_GGA(s(z0), 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(x0, s(0)) → U6_GGA(x0, s(0), p_out_ga(s(0), 0))
AVERAGE_IN_GGA(x0, s(s(y_1))) → U6_GGA(x0, s(s(y_1)), p_out_ga(s(s(y_1)), s(y_1)))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(s(x0), y1, p_out_ga(s(x0), x0))
U4_GGA(s(z0), z1, p_out_ga(s(z0), z0)) → AVERAGE_IN_GGA(z0, s(z1))
U6_GGA(z0, s(0), p_out_ga(s(0), 0)) → U7_GGA(z0, s(0), p_out_ga(0, 0))
U6_GGA(z0, s(s(x2)), p_out_ga(s(s(x2)), s(x2))) → U7_GGA(z0, s(s(x2)), p_out_ga(s(x2), x2))
U7_GGA(z0, s(0), p_out_ga(0, 0)) → U8_GGA(z0, s(0), p_out_ga(0, 0))
U7_GGA(z0, s(s(0)), p_out_ga(s(0), 0)) → U8_GGA(z0, s(s(0)), p_out_ga(0, 0))
U7_GGA(z0, s(s(s(x3))), p_out_ga(s(s(x3)), s(x3))) → U8_GGA(z0, s(s(s(x3))), p_out_ga(s(x3), x3))
U8_GGA(z0, 0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(0)), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(s(z1))), p_out_ga(s(z1), z1)) → AVERAGE_IN_GGA(s(z0), z1)
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(0, s(z0), p_out_ga(0, 0))
AVERAGE_IN_GGA(s(z0), 0) → U6_GGA(s(z0), 0, p_out_ga(0, 0))
U4_GGA(0, s(z0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(0, s(s(z0)))
U6_GGA(s(z0), 0, p_out_ga(0, 0)) → U7_GGA(s(z0), 0, p_out_ga(0, 0))
U7_GGA(s(z0), 0, p_out_ga(0, 0)) → U8_GGA(s(z0), 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(x0, s(0)) → U6_GGA(x0, s(0), p_out_ga(s(0), 0))
AVERAGE_IN_GGA(x0, s(s(y_1))) → U6_GGA(x0, s(s(y_1)), p_out_ga(s(s(y_1)), s(y_1)))
U4_GGA(s(s(y_0)), x1, p_out_ga(s(s(y_0)), s(y_0))) → AVERAGE_IN_GGA(s(y_0), s(x1))
U4_GGA(s(0), x1, p_out_ga(s(0), 0)) → AVERAGE_IN_GGA(0, s(x1))
U4_GGA(s(x0), 0, p_out_ga(s(x0), x0)) → AVERAGE_IN_GGA(x0, s(0))
U4_GGA(s(x0), s(y_1), p_out_ga(s(x0), x0)) → AVERAGE_IN_GGA(x0, s(s(y_1)))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(s(x0), y1, p_out_ga(s(x0), x0))
U6_GGA(z0, s(0), p_out_ga(s(0), 0)) → U7_GGA(z0, s(0), p_out_ga(0, 0))
U6_GGA(z0, s(s(x2)), p_out_ga(s(s(x2)), s(x2))) → U7_GGA(z0, s(s(x2)), p_out_ga(s(x2), x2))
U7_GGA(z0, s(0), p_out_ga(0, 0)) → U8_GGA(z0, s(0), p_out_ga(0, 0))
U7_GGA(z0, s(s(0)), p_out_ga(s(0), 0)) → U8_GGA(z0, s(s(0)), p_out_ga(0, 0))
U7_GGA(z0, s(s(s(x3))), p_out_ga(s(s(x3)), s(x3))) → U8_GGA(z0, s(s(s(x3))), p_out_ga(s(x3), x3))
U8_GGA(z0, 0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(0)), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(s(z1))), p_out_ga(s(z1), z1)) → AVERAGE_IN_GGA(s(z0), z1)
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(0, s(z0), p_out_ga(0, 0))
AVERAGE_IN_GGA(s(z0), 0) → U6_GGA(s(z0), 0, p_out_ga(0, 0))
U4_GGA(0, s(z0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(0, s(s(z0)))
U6_GGA(s(z0), 0, p_out_ga(0, 0)) → U7_GGA(s(z0), 0, p_out_ga(0, 0))
U7_GGA(s(z0), 0, p_out_ga(0, 0)) → U8_GGA(s(z0), 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(x0, s(0)) → U6_GGA(x0, s(0), p_out_ga(s(0), 0))
AVERAGE_IN_GGA(x0, s(s(y_1))) → U6_GGA(x0, s(s(y_1)), p_out_ga(s(s(y_1)), s(y_1)))
U4_GGA(s(s(y_0)), x1, p_out_ga(s(s(y_0)), s(y_0))) → AVERAGE_IN_GGA(s(y_0), s(x1))
U4_GGA(s(0), x1, p_out_ga(s(0), 0)) → AVERAGE_IN_GGA(0, s(x1))
U4_GGA(s(x0), 0, p_out_ga(s(x0), x0)) → AVERAGE_IN_GGA(x0, s(0))
U4_GGA(s(x0), s(y_1), p_out_ga(s(x0), x0)) → AVERAGE_IN_GGA(x0, s(s(y_1)))
AVERAGE_IN_GGA(s(s(y_0)), x1) → U4_GGA(s(s(y_0)), x1, p_out_ga(s(s(y_0)), s(y_0)))
AVERAGE_IN_GGA(s(0), x1) → U4_GGA(s(0), x1, p_out_ga(s(0), 0))
AVERAGE_IN_GGA(s(x0), 0) → U4_GGA(s(x0), 0, p_out_ga(s(x0), x0))
AVERAGE_IN_GGA(s(x0), s(y_1)) → U4_GGA(s(x0), s(y_1), p_out_ga(s(x0), x0))
U6_GGA(z0, s(0), p_out_ga(s(0), 0)) → U7_GGA(z0, s(0), p_out_ga(0, 0))
U6_GGA(z0, s(s(x2)), p_out_ga(s(s(x2)), s(x2))) → U7_GGA(z0, s(s(x2)), p_out_ga(s(x2), x2))
U7_GGA(z0, s(0), p_out_ga(0, 0)) → U8_GGA(z0, s(0), p_out_ga(0, 0))
U7_GGA(z0, s(s(0)), p_out_ga(s(0), 0)) → U8_GGA(z0, s(s(0)), p_out_ga(0, 0))
U7_GGA(z0, s(s(s(x3))), p_out_ga(s(s(x3)), s(x3))) → U8_GGA(z0, s(s(s(x3))), p_out_ga(s(x3), x3))
U8_GGA(z0, 0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(0)), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(s(z1))), p_out_ga(s(z1), z1)) → AVERAGE_IN_GGA(s(z0), z1)
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(0, s(z0), p_out_ga(0, 0))
AVERAGE_IN_GGA(s(z0), 0) → U6_GGA(s(z0), 0, p_out_ga(0, 0))
U4_GGA(0, s(z0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(0, s(s(z0)))
U6_GGA(s(z0), 0, p_out_ga(0, 0)) → U7_GGA(s(z0), 0, p_out_ga(0, 0))
U7_GGA(s(z0), 0, p_out_ga(0, 0)) → U8_GGA(s(z0), 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(x0, s(0)) → U6_GGA(x0, s(0), p_out_ga(s(0), 0))
AVERAGE_IN_GGA(x0, s(s(y_1))) → U6_GGA(x0, s(s(y_1)), p_out_ga(s(s(y_1)), s(y_1)))
U4_GGA(s(s(y_0)), x1, p_out_ga(s(s(y_0)), s(y_0))) → AVERAGE_IN_GGA(s(y_0), s(x1))
U4_GGA(s(0), x1, p_out_ga(s(0), 0)) → AVERAGE_IN_GGA(0, s(x1))
U4_GGA(s(x0), 0, p_out_ga(s(x0), x0)) → AVERAGE_IN_GGA(x0, s(0))
U4_GGA(s(x0), s(y_1), p_out_ga(s(x0), x0)) → AVERAGE_IN_GGA(x0, s(s(y_1)))
AVERAGE_IN_GGA(s(s(y_0)), x1) → U4_GGA(s(s(y_0)), x1, p_out_ga(s(s(y_0)), s(y_0)))
AVERAGE_IN_GGA(s(0), x1) → U4_GGA(s(0), x1, p_out_ga(s(0), 0))
AVERAGE_IN_GGA(s(x0), 0) → U4_GGA(s(x0), 0, p_out_ga(s(x0), x0))
AVERAGE_IN_GGA(s(x0), s(y_1)) → U4_GGA(s(x0), s(y_1), p_out_ga(s(x0), x0))
U6_GGA(x0, s(s(0)), p_out_ga(s(s(0)), s(0))) → U7_GGA(x0, s(s(0)), p_out_ga(s(0), 0))
U6_GGA(x0, s(s(s(y_1))), p_out_ga(s(s(s(y_1))), s(s(y_1)))) → U7_GGA(x0, s(s(s(y_1))), p_out_ga(s(s(y_1)), s(y_1)))
U6_GGA(z0, s(0), p_out_ga(s(0), 0)) → U7_GGA(z0, s(0), p_out_ga(0, 0))
U7_GGA(z0, s(0), p_out_ga(0, 0)) → U8_GGA(z0, s(0), p_out_ga(0, 0))
U7_GGA(z0, s(s(0)), p_out_ga(s(0), 0)) → U8_GGA(z0, s(s(0)), p_out_ga(0, 0))
U7_GGA(z0, s(s(s(x3))), p_out_ga(s(s(x3)), s(x3))) → U8_GGA(z0, s(s(s(x3))), p_out_ga(s(x3), x3))
U8_GGA(z0, 0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(0)), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(s(z1))), p_out_ga(s(z1), z1)) → AVERAGE_IN_GGA(s(z0), z1)
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(0, s(z0), p_out_ga(0, 0))
AVERAGE_IN_GGA(s(z0), 0) → U6_GGA(s(z0), 0, p_out_ga(0, 0))
U4_GGA(0, s(z0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(0, s(s(z0)))
U6_GGA(s(z0), 0, p_out_ga(0, 0)) → U7_GGA(s(z0), 0, p_out_ga(0, 0))
U7_GGA(s(z0), 0, p_out_ga(0, 0)) → U8_GGA(s(z0), 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(x0, s(0)) → U6_GGA(x0, s(0), p_out_ga(s(0), 0))
AVERAGE_IN_GGA(x0, s(s(y_1))) → U6_GGA(x0, s(s(y_1)), p_out_ga(s(s(y_1)), s(y_1)))
U4_GGA(s(s(y_0)), x1, p_out_ga(s(s(y_0)), s(y_0))) → AVERAGE_IN_GGA(s(y_0), s(x1))
U4_GGA(s(0), x1, p_out_ga(s(0), 0)) → AVERAGE_IN_GGA(0, s(x1))
U4_GGA(s(x0), 0, p_out_ga(s(x0), x0)) → AVERAGE_IN_GGA(x0, s(0))
U4_GGA(s(x0), s(y_1), p_out_ga(s(x0), x0)) → AVERAGE_IN_GGA(x0, s(s(y_1)))
AVERAGE_IN_GGA(s(s(y_0)), x1) → U4_GGA(s(s(y_0)), x1, p_out_ga(s(s(y_0)), s(y_0)))
AVERAGE_IN_GGA(s(0), x1) → U4_GGA(s(0), x1, p_out_ga(s(0), 0))
AVERAGE_IN_GGA(s(x0), 0) → U4_GGA(s(x0), 0, p_out_ga(s(x0), x0))
AVERAGE_IN_GGA(s(x0), s(y_1)) → U4_GGA(s(x0), s(y_1), p_out_ga(s(x0), x0))
U6_GGA(x0, s(s(0)), p_out_ga(s(s(0)), s(0))) → U7_GGA(x0, s(s(0)), p_out_ga(s(0), 0))
U6_GGA(x0, s(s(s(y_1))), p_out_ga(s(s(s(y_1))), s(s(y_1)))) → U7_GGA(x0, s(s(s(y_1))), p_out_ga(s(s(y_1)), s(y_1)))
U8_GGA(x0, s(s(s(0))), p_out_ga(s(0), 0)) → AVERAGE_IN_GGA(s(x0), 0)
U8_GGA(x0, s(s(s(s(0)))), p_out_ga(s(s(0)), s(0))) → AVERAGE_IN_GGA(s(x0), s(0))
U8_GGA(x0, s(s(s(s(s(y_1))))), p_out_ga(s(s(s(y_1))), s(s(y_1)))) → AVERAGE_IN_GGA(s(x0), s(s(y_1)))
U8_GGA(s(y_0), s(s(s(x1))), p_out_ga(s(x1), x1)) → AVERAGE_IN_GGA(s(s(y_0)), x1)
U8_GGA(0, s(s(s(x1))), p_out_ga(s(x1), x1)) → AVERAGE_IN_GGA(s(0), x1)
U8_GGA(x0, s(s(s(s(y_1)))), p_out_ga(s(s(y_1)), s(y_1))) → AVERAGE_IN_GGA(s(x0), s(y_1))
U6_GGA(z0, s(0), p_out_ga(s(0), 0)) → U7_GGA(z0, s(0), p_out_ga(0, 0))
U7_GGA(z0, s(0), p_out_ga(0, 0)) → U8_GGA(z0, s(0), p_out_ga(0, 0))
U7_GGA(z0, s(s(0)), p_out_ga(s(0), 0)) → U8_GGA(z0, s(s(0)), p_out_ga(0, 0))
U7_GGA(z0, s(s(s(x3))), p_out_ga(s(s(x3)), s(x3))) → U8_GGA(z0, s(s(s(x3))), p_out_ga(s(x3), x3))
U8_GGA(z0, 0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(0)), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(0, s(z0), p_out_ga(0, 0))
AVERAGE_IN_GGA(s(z0), 0) → U6_GGA(s(z0), 0, p_out_ga(0, 0))
U4_GGA(0, s(z0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(0, s(s(z0)))
U6_GGA(s(z0), 0, p_out_ga(0, 0)) → U7_GGA(s(z0), 0, p_out_ga(0, 0))
U7_GGA(s(z0), 0, p_out_ga(0, 0)) → U8_GGA(s(z0), 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(x0, s(0)) → U6_GGA(x0, s(0), p_out_ga(s(0), 0))
AVERAGE_IN_GGA(x0, s(s(y_1))) → U6_GGA(x0, s(s(y_1)), p_out_ga(s(s(y_1)), s(y_1)))
U4_GGA(s(s(y_0)), x1, p_out_ga(s(s(y_0)), s(y_0))) → AVERAGE_IN_GGA(s(y_0), s(x1))
U4_GGA(s(0), x1, p_out_ga(s(0), 0)) → AVERAGE_IN_GGA(0, s(x1))
U4_GGA(s(x0), 0, p_out_ga(s(x0), x0)) → AVERAGE_IN_GGA(x0, s(0))
U4_GGA(s(x0), s(y_1), p_out_ga(s(x0), x0)) → AVERAGE_IN_GGA(x0, s(s(y_1)))
AVERAGE_IN_GGA(s(s(y_0)), x1) → U4_GGA(s(s(y_0)), x1, p_out_ga(s(s(y_0)), s(y_0)))
AVERAGE_IN_GGA(s(0), x1) → U4_GGA(s(0), x1, p_out_ga(s(0), 0))
AVERAGE_IN_GGA(s(x0), 0) → U4_GGA(s(x0), 0, p_out_ga(s(x0), x0))
AVERAGE_IN_GGA(s(x0), s(y_1)) → U4_GGA(s(x0), s(y_1), p_out_ga(s(x0), x0))
U6_GGA(x0, s(s(0)), p_out_ga(s(s(0)), s(0))) → U7_GGA(x0, s(s(0)), p_out_ga(s(0), 0))
U6_GGA(x0, s(s(s(y_1))), p_out_ga(s(s(s(y_1))), s(s(y_1)))) → U7_GGA(x0, s(s(s(y_1))), p_out_ga(s(s(y_1)), s(y_1)))
U8_GGA(x0, s(s(s(0))), p_out_ga(s(0), 0)) → AVERAGE_IN_GGA(s(x0), 0)
U8_GGA(x0, s(s(s(s(0)))), p_out_ga(s(s(0)), s(0))) → AVERAGE_IN_GGA(s(x0), s(0))
U8_GGA(x0, s(s(s(s(s(y_1))))), p_out_ga(s(s(s(y_1))), s(s(y_1)))) → AVERAGE_IN_GGA(s(x0), s(s(y_1)))
U8_GGA(s(y_0), s(s(s(x1))), p_out_ga(s(x1), x1)) → AVERAGE_IN_GGA(s(s(y_0)), x1)
U8_GGA(0, s(s(s(x1))), p_out_ga(s(x1), x1)) → AVERAGE_IN_GGA(s(0), x1)
U8_GGA(x0, s(s(s(s(y_1)))), p_out_ga(s(s(y_1)), s(y_1))) → AVERAGE_IN_GGA(s(x0), s(y_1))
U7_GGA(x0, s(s(s(0))), p_out_ga(s(s(0)), s(0))) → U8_GGA(x0, s(s(s(0))), p_out_ga(s(0), 0))
U7_GGA(x0, s(s(s(s(0)))), p_out_ga(s(s(s(0))), s(s(0)))) → U8_GGA(x0, s(s(s(s(0)))), p_out_ga(s(s(0)), s(0)))
U7_GGA(x0, s(s(s(s(s(y_1))))), p_out_ga(s(s(s(s(y_1)))), s(s(s(y_1))))) → U8_GGA(x0, s(s(s(s(s(y_1))))), p_out_ga(s(s(s(y_1))), s(s(y_1))))
U7_GGA(s(y_0), s(s(s(x1))), p_out_ga(s(s(x1)), s(x1))) → U8_GGA(s(y_0), s(s(s(x1))), p_out_ga(s(x1), x1))
U7_GGA(0, s(s(s(x1))), p_out_ga(s(s(x1)), s(x1))) → U8_GGA(0, s(s(s(x1))), p_out_ga(s(x1), x1))
U7_GGA(x0, s(s(s(s(y_1)))), p_out_ga(s(s(s(y_1))), s(s(y_1)))) → U8_GGA(x0, s(s(s(s(y_1)))), p_out_ga(s(s(y_1)), s(y_1)))
U6_GGA(z0, s(0), p_out_ga(s(0), 0)) → U7_GGA(z0, s(0), p_out_ga(0, 0))
U7_GGA(z0, s(0), p_out_ga(0, 0)) → U8_GGA(z0, s(0), p_out_ga(0, 0))
U7_GGA(z0, s(s(0)), p_out_ga(s(0), 0)) → U8_GGA(z0, s(s(0)), p_out_ga(0, 0))
U8_GGA(z0, 0, p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
U8_GGA(z0, s(s(0)), p_out_ga(0, 0)) → AVERAGE_IN_GGA(s(z0), 0)
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(0, s(z0), p_out_ga(0, 0))
AVERAGE_IN_GGA(s(z0), 0) → U6_GGA(s(z0), 0, p_out_ga(0, 0))
U4_GGA(0, s(z0), p_out_ga(0, 0)) → AVERAGE_IN_GGA(0, s(s(z0)))
U6_GGA(s(z0), 0, p_out_ga(0, 0)) → U7_GGA(s(z0), 0, p_out_ga(0, 0))
U7_GGA(s(z0), 0, p_out_ga(0, 0)) → U8_GGA(s(z0), 0, p_out_ga(0, 0))
AVERAGE_IN_GGA(x0, s(0)) → U6_GGA(x0, s(0), p_out_ga(s(0), 0))
AVERAGE_IN_GGA(x0, s(s(y_1))) → U6_GGA(x0, s(s(y_1)), p_out_ga(s(s(y_1)), s(y_1)))
U4_GGA(s(s(y_0)), x1, p_out_ga(s(s(y_0)), s(y_0))) → AVERAGE_IN_GGA(s(y_0), s(x1))
U4_GGA(s(0), x1, p_out_ga(s(0), 0)) → AVERAGE_IN_GGA(0, s(x1))
U4_GGA(s(x0), 0, p_out_ga(s(x0), x0)) → AVERAGE_IN_GGA(x0, s(0))
U4_GGA(s(x0), s(y_1), p_out_ga(s(x0), x0)) → AVERAGE_IN_GGA(x0, s(s(y_1)))
AVERAGE_IN_GGA(s(s(y_0)), x1) → U4_GGA(s(s(y_0)), x1, p_out_ga(s(s(y_0)), s(y_0)))
AVERAGE_IN_GGA(s(0), x1) → U4_GGA(s(0), x1, p_out_ga(s(0), 0))
AVERAGE_IN_GGA(s(x0), 0) → U4_GGA(s(x0), 0, p_out_ga(s(x0), x0))
AVERAGE_IN_GGA(s(x0), s(y_1)) → U4_GGA(s(x0), s(y_1), p_out_ga(s(x0), x0))
U6_GGA(x0, s(s(0)), p_out_ga(s(s(0)), s(0))) → U7_GGA(x0, s(s(0)), p_out_ga(s(0), 0))
U6_GGA(x0, s(s(s(y_1))), p_out_ga(s(s(s(y_1))), s(s(y_1)))) → U7_GGA(x0, s(s(s(y_1))), p_out_ga(s(s(y_1)), s(y_1)))
U8_GGA(x0, s(s(s(0))), p_out_ga(s(0), 0)) → AVERAGE_IN_GGA(s(x0), 0)
U8_GGA(x0, s(s(s(s(0)))), p_out_ga(s(s(0)), s(0))) → AVERAGE_IN_GGA(s(x0), s(0))
U8_GGA(x0, s(s(s(s(s(y_1))))), p_out_ga(s(s(s(y_1))), s(s(y_1)))) → AVERAGE_IN_GGA(s(x0), s(s(y_1)))
U8_GGA(s(y_0), s(s(s(x1))), p_out_ga(s(x1), x1)) → AVERAGE_IN_GGA(s(s(y_0)), x1)
U8_GGA(0, s(s(s(x1))), p_out_ga(s(x1), x1)) → AVERAGE_IN_GGA(s(0), x1)
U8_GGA(x0, s(s(s(s(y_1)))), p_out_ga(s(s(y_1)), s(y_1))) → AVERAGE_IN_GGA(s(x0), s(y_1))
U7_GGA(x0, s(s(s(0))), p_out_ga(s(s(0)), s(0))) → U8_GGA(x0, s(s(s(0))), p_out_ga(s(0), 0))
U7_GGA(x0, s(s(s(s(0)))), p_out_ga(s(s(s(0))), s(s(0)))) → U8_GGA(x0, s(s(s(s(0)))), p_out_ga(s(s(0)), s(0)))
U7_GGA(x0, s(s(s(s(s(y_1))))), p_out_ga(s(s(s(s(y_1)))), s(s(s(y_1))))) → U8_GGA(x0, s(s(s(s(s(y_1))))), p_out_ga(s(s(s(y_1))), s(s(y_1))))
U7_GGA(s(y_0), s(s(s(x1))), p_out_ga(s(s(x1)), s(x1))) → U8_GGA(s(y_0), s(s(s(x1))), p_out_ga(s(x1), x1))
U7_GGA(0, s(s(s(x1))), p_out_ga(s(s(x1)), s(x1))) → U8_GGA(0, s(s(s(x1))), p_out_ga(s(x1), x1))
U7_GGA(x0, s(s(s(s(y_1)))), p_out_ga(s(s(s(y_1))), s(s(y_1)))) → U8_GGA(x0, s(s(s(s(y_1)))), p_out_ga(s(s(y_1)), s(y_1)))
average_in_gga(0, 0, Z) → U1_gga(Z, eq_in_ag(Z, 0))
eq_in_ag(X, X) → eq_out_ag(X, X)
U1_gga(Z, eq_out_ag(Z, 0)) → average_out_gga(0, 0, Z)
average_in_gga(0, s(0), Z) → U2_gga(Z, eq_in_ag(Z, 0))
U2_gga(Z, eq_out_ag(Z, 0)) → average_out_gga(0, s(0), Z)
average_in_gga(0, s(s(0)), Z) → U3_gga(Z, eq_in_ag(Z, s(0)))
U3_gga(Z, eq_out_ag(Z, s(0))) → average_out_gga(0, s(s(0)), Z)
average_in_gga(X, Y, Z) → U4_gga(X, Y, Z, p_in_ga(X, P))
p_in_ga(0, 0) → p_out_ga(0, 0)
p_in_ga(s(X), X) → p_out_ga(s(X), X)
U4_gga(X, Y, Z, p_out_ga(X, P)) → U5_gga(X, Y, Z, average_in_gga(P, s(Y), Z))
average_in_gga(X, Y, Z) → U6_gga(X, Y, Z, p_in_ga(Y, P1))
U6_gga(X, Y, Z, p_out_ga(Y, P1)) → U7_gga(X, Y, Z, P1, p_in_ga(P1, P2))
U7_gga(X, Y, Z, P1, p_out_ga(P1, P2)) → U8_gga(X, Y, Z, P1, P2, p_in_ga(P2, P3))
U8_gga(X, Y, Z, P1, P2, p_out_ga(P2, P3)) → U9_gga(X, Y, Z, average_in_gga(s(X), P3, U))
U9_gga(X, Y, Z, average_out_gga(s(X), P3, U)) → U10_gga(X, Y, Z, p_in_ag(Z, U))
p_in_ag(0, 0) → p_out_ag(0, 0)
p_in_ag(s(X), X) → p_out_ag(s(X), X)
U10_gga(X, Y, Z, p_out_ag(Z, U)) → average_out_gga(X, Y, Z)
U5_gga(X, Y, Z, average_out_gga(P, s(Y), Z)) → average_out_gga(X, Y, Z)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
average_in_gga(0, 0, Z) → U1_gga(Z, eq_in_ag(Z, 0))
eq_in_ag(X, X) → eq_out_ag(X, X)
U1_gga(Z, eq_out_ag(Z, 0)) → average_out_gga(0, 0, Z)
average_in_gga(0, s(0), Z) → U2_gga(Z, eq_in_ag(Z, 0))
U2_gga(Z, eq_out_ag(Z, 0)) → average_out_gga(0, s(0), Z)
average_in_gga(0, s(s(0)), Z) → U3_gga(Z, eq_in_ag(Z, s(0)))
U3_gga(Z, eq_out_ag(Z, s(0))) → average_out_gga(0, s(s(0)), Z)
average_in_gga(X, Y, Z) → U4_gga(X, Y, Z, p_in_ga(X, P))
p_in_ga(0, 0) → p_out_ga(0, 0)
p_in_ga(s(X), X) → p_out_ga(s(X), X)
U4_gga(X, Y, Z, p_out_ga(X, P)) → U5_gga(X, Y, Z, average_in_gga(P, s(Y), Z))
average_in_gga(X, Y, Z) → U6_gga(X, Y, Z, p_in_ga(Y, P1))
U6_gga(X, Y, Z, p_out_ga(Y, P1)) → U7_gga(X, Y, Z, P1, p_in_ga(P1, P2))
U7_gga(X, Y, Z, P1, p_out_ga(P1, P2)) → U8_gga(X, Y, Z, P1, P2, p_in_ga(P2, P3))
U8_gga(X, Y, Z, P1, P2, p_out_ga(P2, P3)) → U9_gga(X, Y, Z, average_in_gga(s(X), P3, U))
U9_gga(X, Y, Z, average_out_gga(s(X), P3, U)) → U10_gga(X, Y, Z, p_in_ag(Z, U))
p_in_ag(0, 0) → p_out_ag(0, 0)
p_in_ag(s(X), X) → p_out_ag(s(X), X)
U10_gga(X, Y, Z, p_out_ag(Z, U)) → average_out_gga(X, Y, Z)
U5_gga(X, Y, Z, average_out_gga(P, s(Y), Z)) → average_out_gga(X, Y, Z)
AVERAGE_IN_GGA(0, 0, Z) → U1_GGA(Z, eq_in_ag(Z, 0))
AVERAGE_IN_GGA(0, 0, Z) → EQ_IN_AG(Z, 0)
AVERAGE_IN_GGA(0, s(0), Z) → U2_GGA(Z, eq_in_ag(Z, 0))
AVERAGE_IN_GGA(0, s(0), Z) → EQ_IN_AG(Z, 0)
AVERAGE_IN_GGA(0, s(s(0)), Z) → U3_GGA(Z, eq_in_ag(Z, s(0)))
AVERAGE_IN_GGA(0, s(s(0)), Z) → EQ_IN_AG(Z, s(0))
AVERAGE_IN_GGA(X, Y, Z) → U4_GGA(X, Y, Z, p_in_ga(X, P))
AVERAGE_IN_GGA(X, Y, Z) → P_IN_GA(X, P)
U4_GGA(X, Y, Z, p_out_ga(X, P)) → U5_GGA(X, Y, Z, average_in_gga(P, s(Y), Z))
U4_GGA(X, Y, Z, p_out_ga(X, P)) → AVERAGE_IN_GGA(P, s(Y), Z)
AVERAGE_IN_GGA(X, Y, Z) → U6_GGA(X, Y, Z, p_in_ga(Y, P1))
AVERAGE_IN_GGA(X, Y, Z) → P_IN_GA(Y, P1)
U6_GGA(X, Y, Z, p_out_ga(Y, P1)) → U7_GGA(X, Y, Z, P1, p_in_ga(P1, P2))
U6_GGA(X, Y, Z, p_out_ga(Y, P1)) → P_IN_GA(P1, P2)
U7_GGA(X, Y, Z, P1, p_out_ga(P1, P2)) → U8_GGA(X, Y, Z, P1, P2, p_in_ga(P2, P3))
U7_GGA(X, Y, Z, P1, p_out_ga(P1, P2)) → P_IN_GA(P2, P3)
U8_GGA(X, Y, Z, P1, P2, p_out_ga(P2, P3)) → U9_GGA(X, Y, Z, average_in_gga(s(X), P3, U))
U8_GGA(X, Y, Z, P1, P2, p_out_ga(P2, P3)) → AVERAGE_IN_GGA(s(X), P3, U)
U9_GGA(X, Y, Z, average_out_gga(s(X), P3, U)) → U10_GGA(X, Y, Z, p_in_ag(Z, U))
U9_GGA(X, Y, Z, average_out_gga(s(X), P3, U)) → P_IN_AG(Z, U)
average_in_gga(0, 0, Z) → U1_gga(Z, eq_in_ag(Z, 0))
eq_in_ag(X, X) → eq_out_ag(X, X)
U1_gga(Z, eq_out_ag(Z, 0)) → average_out_gga(0, 0, Z)
average_in_gga(0, s(0), Z) → U2_gga(Z, eq_in_ag(Z, 0))
U2_gga(Z, eq_out_ag(Z, 0)) → average_out_gga(0, s(0), Z)
average_in_gga(0, s(s(0)), Z) → U3_gga(Z, eq_in_ag(Z, s(0)))
U3_gga(Z, eq_out_ag(Z, s(0))) → average_out_gga(0, s(s(0)), Z)
average_in_gga(X, Y, Z) → U4_gga(X, Y, Z, p_in_ga(X, P))
p_in_ga(0, 0) → p_out_ga(0, 0)
p_in_ga(s(X), X) → p_out_ga(s(X), X)
U4_gga(X, Y, Z, p_out_ga(X, P)) → U5_gga(X, Y, Z, average_in_gga(P, s(Y), Z))
average_in_gga(X, Y, Z) → U6_gga(X, Y, Z, p_in_ga(Y, P1))
U6_gga(X, Y, Z, p_out_ga(Y, P1)) → U7_gga(X, Y, Z, P1, p_in_ga(P1, P2))
U7_gga(X, Y, Z, P1, p_out_ga(P1, P2)) → U8_gga(X, Y, Z, P1, P2, p_in_ga(P2, P3))
U8_gga(X, Y, Z, P1, P2, p_out_ga(P2, P3)) → U9_gga(X, Y, Z, average_in_gga(s(X), P3, U))
U9_gga(X, Y, Z, average_out_gga(s(X), P3, U)) → U10_gga(X, Y, Z, p_in_ag(Z, U))
p_in_ag(0, 0) → p_out_ag(0, 0)
p_in_ag(s(X), X) → p_out_ag(s(X), X)
U10_gga(X, Y, Z, p_out_ag(Z, U)) → average_out_gga(X, Y, Z)
U5_gga(X, Y, Z, average_out_gga(P, s(Y), Z)) → average_out_gga(X, Y, Z)
AVERAGE_IN_GGA(0, 0, Z) → U1_GGA(Z, eq_in_ag(Z, 0))
AVERAGE_IN_GGA(0, 0, Z) → EQ_IN_AG(Z, 0)
AVERAGE_IN_GGA(0, s(0), Z) → U2_GGA(Z, eq_in_ag(Z, 0))
AVERAGE_IN_GGA(0, s(0), Z) → EQ_IN_AG(Z, 0)
AVERAGE_IN_GGA(0, s(s(0)), Z) → U3_GGA(Z, eq_in_ag(Z, s(0)))
AVERAGE_IN_GGA(0, s(s(0)), Z) → EQ_IN_AG(Z, s(0))
AVERAGE_IN_GGA(X, Y, Z) → U4_GGA(X, Y, Z, p_in_ga(X, P))
AVERAGE_IN_GGA(X, Y, Z) → P_IN_GA(X, P)
U4_GGA(X, Y, Z, p_out_ga(X, P)) → U5_GGA(X, Y, Z, average_in_gga(P, s(Y), Z))
U4_GGA(X, Y, Z, p_out_ga(X, P)) → AVERAGE_IN_GGA(P, s(Y), Z)
AVERAGE_IN_GGA(X, Y, Z) → U6_GGA(X, Y, Z, p_in_ga(Y, P1))
AVERAGE_IN_GGA(X, Y, Z) → P_IN_GA(Y, P1)
U6_GGA(X, Y, Z, p_out_ga(Y, P1)) → U7_GGA(X, Y, Z, P1, p_in_ga(P1, P2))
U6_GGA(X, Y, Z, p_out_ga(Y, P1)) → P_IN_GA(P1, P2)
U7_GGA(X, Y, Z, P1, p_out_ga(P1, P2)) → U8_GGA(X, Y, Z, P1, P2, p_in_ga(P2, P3))
U7_GGA(X, Y, Z, P1, p_out_ga(P1, P2)) → P_IN_GA(P2, P3)
U8_GGA(X, Y, Z, P1, P2, p_out_ga(P2, P3)) → U9_GGA(X, Y, Z, average_in_gga(s(X), P3, U))
U8_GGA(X, Y, Z, P1, P2, p_out_ga(P2, P3)) → AVERAGE_IN_GGA(s(X), P3, U)
U9_GGA(X, Y, Z, average_out_gga(s(X), P3, U)) → U10_GGA(X, Y, Z, p_in_ag(Z, U))
U9_GGA(X, Y, Z, average_out_gga(s(X), P3, U)) → P_IN_AG(Z, U)
average_in_gga(0, 0, Z) → U1_gga(Z, eq_in_ag(Z, 0))
eq_in_ag(X, X) → eq_out_ag(X, X)
U1_gga(Z, eq_out_ag(Z, 0)) → average_out_gga(0, 0, Z)
average_in_gga(0, s(0), Z) → U2_gga(Z, eq_in_ag(Z, 0))
U2_gga(Z, eq_out_ag(Z, 0)) → average_out_gga(0, s(0), Z)
average_in_gga(0, s(s(0)), Z) → U3_gga(Z, eq_in_ag(Z, s(0)))
U3_gga(Z, eq_out_ag(Z, s(0))) → average_out_gga(0, s(s(0)), Z)
average_in_gga(X, Y, Z) → U4_gga(X, Y, Z, p_in_ga(X, P))
p_in_ga(0, 0) → p_out_ga(0, 0)
p_in_ga(s(X), X) → p_out_ga(s(X), X)
U4_gga(X, Y, Z, p_out_ga(X, P)) → U5_gga(X, Y, Z, average_in_gga(P, s(Y), Z))
average_in_gga(X, Y, Z) → U6_gga(X, Y, Z, p_in_ga(Y, P1))
U6_gga(X, Y, Z, p_out_ga(Y, P1)) → U7_gga(X, Y, Z, P1, p_in_ga(P1, P2))
U7_gga(X, Y, Z, P1, p_out_ga(P1, P2)) → U8_gga(X, Y, Z, P1, P2, p_in_ga(P2, P3))
U8_gga(X, Y, Z, P1, P2, p_out_ga(P2, P3)) → U9_gga(X, Y, Z, average_in_gga(s(X), P3, U))
U9_gga(X, Y, Z, average_out_gga(s(X), P3, U)) → U10_gga(X, Y, Z, p_in_ag(Z, U))
p_in_ag(0, 0) → p_out_ag(0, 0)
p_in_ag(s(X), X) → p_out_ag(s(X), X)
U10_gga(X, Y, Z, p_out_ag(Z, U)) → average_out_gga(X, Y, Z)
U5_gga(X, Y, Z, average_out_gga(P, s(Y), Z)) → average_out_gga(X, Y, Z)
AVERAGE_IN_GGA(X, Y, Z) → U4_GGA(X, Y, Z, p_in_ga(X, P))
U4_GGA(X, Y, Z, p_out_ga(X, P)) → AVERAGE_IN_GGA(P, s(Y), Z)
AVERAGE_IN_GGA(X, Y, Z) → U6_GGA(X, Y, Z, p_in_ga(Y, P1))
U6_GGA(X, Y, Z, p_out_ga(Y, P1)) → U7_GGA(X, Y, Z, P1, p_in_ga(P1, P2))
U7_GGA(X, Y, Z, P1, p_out_ga(P1, P2)) → U8_GGA(X, Y, Z, P1, P2, p_in_ga(P2, P3))
U8_GGA(X, Y, Z, P1, P2, p_out_ga(P2, P3)) → AVERAGE_IN_GGA(s(X), P3, U)
average_in_gga(0, 0, Z) → U1_gga(Z, eq_in_ag(Z, 0))
eq_in_ag(X, X) → eq_out_ag(X, X)
U1_gga(Z, eq_out_ag(Z, 0)) → average_out_gga(0, 0, Z)
average_in_gga(0, s(0), Z) → U2_gga(Z, eq_in_ag(Z, 0))
U2_gga(Z, eq_out_ag(Z, 0)) → average_out_gga(0, s(0), Z)
average_in_gga(0, s(s(0)), Z) → U3_gga(Z, eq_in_ag(Z, s(0)))
U3_gga(Z, eq_out_ag(Z, s(0))) → average_out_gga(0, s(s(0)), Z)
average_in_gga(X, Y, Z) → U4_gga(X, Y, Z, p_in_ga(X, P))
p_in_ga(0, 0) → p_out_ga(0, 0)
p_in_ga(s(X), X) → p_out_ga(s(X), X)
U4_gga(X, Y, Z, p_out_ga(X, P)) → U5_gga(X, Y, Z, average_in_gga(P, s(Y), Z))
average_in_gga(X, Y, Z) → U6_gga(X, Y, Z, p_in_ga(Y, P1))
U6_gga(X, Y, Z, p_out_ga(Y, P1)) → U7_gga(X, Y, Z, P1, p_in_ga(P1, P2))
U7_gga(X, Y, Z, P1, p_out_ga(P1, P2)) → U8_gga(X, Y, Z, P1, P2, p_in_ga(P2, P3))
U8_gga(X, Y, Z, P1, P2, p_out_ga(P2, P3)) → U9_gga(X, Y, Z, average_in_gga(s(X), P3, U))
U9_gga(X, Y, Z, average_out_gga(s(X), P3, U)) → U10_gga(X, Y, Z, p_in_ag(Z, U))
p_in_ag(0, 0) → p_out_ag(0, 0)
p_in_ag(s(X), X) → p_out_ag(s(X), X)
U10_gga(X, Y, Z, p_out_ag(Z, U)) → average_out_gga(X, Y, Z)
U5_gga(X, Y, Z, average_out_gga(P, s(Y), Z)) → average_out_gga(X, Y, Z)
AVERAGE_IN_GGA(X, Y, Z) → U4_GGA(X, Y, Z, p_in_ga(X, P))
U4_GGA(X, Y, Z, p_out_ga(X, P)) → AVERAGE_IN_GGA(P, s(Y), Z)
AVERAGE_IN_GGA(X, Y, Z) → U6_GGA(X, Y, Z, p_in_ga(Y, P1))
U6_GGA(X, Y, Z, p_out_ga(Y, P1)) → U7_GGA(X, Y, Z, P1, p_in_ga(P1, P2))
U7_GGA(X, Y, Z, P1, p_out_ga(P1, P2)) → U8_GGA(X, Y, Z, P1, P2, p_in_ga(P2, P3))
U8_GGA(X, Y, Z, P1, P2, p_out_ga(P2, P3)) → AVERAGE_IN_GGA(s(X), P3, U)
p_in_ga(0, 0) → p_out_ga(0, 0)
p_in_ga(s(X), X) → p_out_ga(s(X), X)
AVERAGE_IN_GGA(X, Y) → U4_GGA(Y, p_in_ga(X))
U4_GGA(Y, p_out_ga(P)) → AVERAGE_IN_GGA(P, s(Y))
AVERAGE_IN_GGA(X, Y) → U6_GGA(X, p_in_ga(Y))
U6_GGA(X, p_out_ga(P1)) → U7_GGA(X, p_in_ga(P1))
U7_GGA(X, p_out_ga(P2)) → U8_GGA(X, p_in_ga(P2))
U8_GGA(X, p_out_ga(P3)) → AVERAGE_IN_GGA(s(X), P3)
p_in_ga(0) → p_out_ga(0)
p_in_ga(s(X)) → p_out_ga(X)
p_in_ga(x0)
AVERAGE_IN_GGA(z1, s(z0)) → U4_GGA(s(z0), p_in_ga(z1))
AVERAGE_IN_GGA(s(z0), z1) → U4_GGA(z1, p_in_ga(s(z0)))
U4_GGA(Y, p_out_ga(P)) → AVERAGE_IN_GGA(P, s(Y))
AVERAGE_IN_GGA(X, Y) → U6_GGA(X, p_in_ga(Y))
U6_GGA(X, p_out_ga(P1)) → U7_GGA(X, p_in_ga(P1))
U7_GGA(X, p_out_ga(P2)) → U8_GGA(X, p_in_ga(P2))
U8_GGA(X, p_out_ga(P3)) → AVERAGE_IN_GGA(s(X), P3)
AVERAGE_IN_GGA(z1, s(z0)) → U4_GGA(s(z0), p_in_ga(z1))
AVERAGE_IN_GGA(s(z0), z1) → U4_GGA(z1, p_in_ga(s(z0)))
p_in_ga(0) → p_out_ga(0)
p_in_ga(s(X)) → p_out_ga(X)
p_in_ga(x0)
AVERAGE_IN_GGA(0, y1) → U4_GGA(y1, p_out_ga(0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(y1, p_out_ga(x0))
U4_GGA(Y, p_out_ga(P)) → AVERAGE_IN_GGA(P, s(Y))
AVERAGE_IN_GGA(X, Y) → U6_GGA(X, p_in_ga(Y))
U6_GGA(X, p_out_ga(P1)) → U7_GGA(X, p_in_ga(P1))
U7_GGA(X, p_out_ga(P2)) → U8_GGA(X, p_in_ga(P2))
U8_GGA(X, p_out_ga(P3)) → AVERAGE_IN_GGA(s(X), P3)
AVERAGE_IN_GGA(0, y1) → U4_GGA(y1, p_out_ga(0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(y1, p_out_ga(x0))
p_in_ga(0) → p_out_ga(0)
p_in_ga(s(X)) → p_out_ga(X)
p_in_ga(x0)
AVERAGE_IN_GGA(y0, 0) → U6_GGA(y0, p_out_ga(0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, p_out_ga(x0))
U4_GGA(Y, p_out_ga(P)) → AVERAGE_IN_GGA(P, s(Y))
U6_GGA(X, p_out_ga(P1)) → U7_GGA(X, p_in_ga(P1))
U7_GGA(X, p_out_ga(P2)) → U8_GGA(X, p_in_ga(P2))
U8_GGA(X, p_out_ga(P3)) → AVERAGE_IN_GGA(s(X), P3)
AVERAGE_IN_GGA(0, y1) → U4_GGA(y1, p_out_ga(0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(y1, p_out_ga(x0))
AVERAGE_IN_GGA(y0, 0) → U6_GGA(y0, p_out_ga(0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, p_out_ga(x0))
p_in_ga(0) → p_out_ga(0)
p_in_ga(s(X)) → p_out_ga(X)
p_in_ga(x0)
U6_GGA(y0, p_out_ga(0)) → U7_GGA(y0, p_out_ga(0))
U6_GGA(y0, p_out_ga(s(x0))) → U7_GGA(y0, p_out_ga(x0))
U4_GGA(Y, p_out_ga(P)) → AVERAGE_IN_GGA(P, s(Y))
U7_GGA(X, p_out_ga(P2)) → U8_GGA(X, p_in_ga(P2))
U8_GGA(X, p_out_ga(P3)) → AVERAGE_IN_GGA(s(X), P3)
AVERAGE_IN_GGA(0, y1) → U4_GGA(y1, p_out_ga(0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(y1, p_out_ga(x0))
AVERAGE_IN_GGA(y0, 0) → U6_GGA(y0, p_out_ga(0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, p_out_ga(x0))
U6_GGA(y0, p_out_ga(0)) → U7_GGA(y0, p_out_ga(0))
U6_GGA(y0, p_out_ga(s(x0))) → U7_GGA(y0, p_out_ga(x0))
p_in_ga(0) → p_out_ga(0)
p_in_ga(s(X)) → p_out_ga(X)
p_in_ga(x0)
U7_GGA(y0, p_out_ga(0)) → U8_GGA(y0, p_out_ga(0))
U7_GGA(y0, p_out_ga(s(x0))) → U8_GGA(y0, p_out_ga(x0))
U4_GGA(Y, p_out_ga(P)) → AVERAGE_IN_GGA(P, s(Y))
U8_GGA(X, p_out_ga(P3)) → AVERAGE_IN_GGA(s(X), P3)
AVERAGE_IN_GGA(0, y1) → U4_GGA(y1, p_out_ga(0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(y1, p_out_ga(x0))
AVERAGE_IN_GGA(y0, 0) → U6_GGA(y0, p_out_ga(0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, p_out_ga(x0))
U6_GGA(y0, p_out_ga(0)) → U7_GGA(y0, p_out_ga(0))
U6_GGA(y0, p_out_ga(s(x0))) → U7_GGA(y0, p_out_ga(x0))
U7_GGA(y0, p_out_ga(0)) → U8_GGA(y0, p_out_ga(0))
U7_GGA(y0, p_out_ga(s(x0))) → U8_GGA(y0, p_out_ga(x0))
p_in_ga(0) → p_out_ga(0)
p_in_ga(s(X)) → p_out_ga(X)
p_in_ga(x0)
U4_GGA(Y, p_out_ga(P)) → AVERAGE_IN_GGA(P, s(Y))
U8_GGA(X, p_out_ga(P3)) → AVERAGE_IN_GGA(s(X), P3)
AVERAGE_IN_GGA(0, y1) → U4_GGA(y1, p_out_ga(0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(y1, p_out_ga(x0))
AVERAGE_IN_GGA(y0, 0) → U6_GGA(y0, p_out_ga(0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, p_out_ga(x0))
U6_GGA(y0, p_out_ga(0)) → U7_GGA(y0, p_out_ga(0))
U6_GGA(y0, p_out_ga(s(x0))) → U7_GGA(y0, p_out_ga(x0))
U7_GGA(y0, p_out_ga(0)) → U8_GGA(y0, p_out_ga(0))
U7_GGA(y0, p_out_ga(s(x0))) → U8_GGA(y0, p_out_ga(x0))
p_in_ga(x0)
p_in_ga(x0)
U4_GGA(Y, p_out_ga(P)) → AVERAGE_IN_GGA(P, s(Y))
U8_GGA(X, p_out_ga(P3)) → AVERAGE_IN_GGA(s(X), P3)
AVERAGE_IN_GGA(0, y1) → U4_GGA(y1, p_out_ga(0))
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(y1, p_out_ga(x0))
AVERAGE_IN_GGA(y0, 0) → U6_GGA(y0, p_out_ga(0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, p_out_ga(x0))
U6_GGA(y0, p_out_ga(0)) → U7_GGA(y0, p_out_ga(0))
U6_GGA(y0, p_out_ga(s(x0))) → U7_GGA(y0, p_out_ga(x0))
U7_GGA(y0, p_out_ga(0)) → U8_GGA(y0, p_out_ga(0))
U7_GGA(y0, p_out_ga(s(x0))) → U8_GGA(y0, p_out_ga(x0))
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(s(z0), p_out_ga(0))
U4_GGA(Y, p_out_ga(P)) → AVERAGE_IN_GGA(P, s(Y))
U8_GGA(X, p_out_ga(P3)) → AVERAGE_IN_GGA(s(X), P3)
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(y1, p_out_ga(x0))
AVERAGE_IN_GGA(y0, 0) → U6_GGA(y0, p_out_ga(0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, p_out_ga(x0))
U6_GGA(y0, p_out_ga(0)) → U7_GGA(y0, p_out_ga(0))
U6_GGA(y0, p_out_ga(s(x0))) → U7_GGA(y0, p_out_ga(x0))
U7_GGA(y0, p_out_ga(0)) → U8_GGA(y0, p_out_ga(0))
U7_GGA(y0, p_out_ga(s(x0))) → U8_GGA(y0, p_out_ga(x0))
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(s(z0), p_out_ga(0))
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(s(z0), p_out_ga(0))
U4_GGA(Y, p_out_ga(P)) → AVERAGE_IN_GGA(P, s(Y))
U8_GGA(X, p_out_ga(P3)) → AVERAGE_IN_GGA(s(X), P3)
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(y1, p_out_ga(x0))
AVERAGE_IN_GGA(y0, 0) → U6_GGA(y0, p_out_ga(0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, p_out_ga(x0))
U6_GGA(y0, p_out_ga(0)) → U7_GGA(y0, p_out_ga(0))
U6_GGA(y0, p_out_ga(s(x0))) → U7_GGA(y0, p_out_ga(x0))
U7_GGA(y0, p_out_ga(0)) → U8_GGA(y0, p_out_ga(0))
U7_GGA(y0, p_out_ga(s(x0))) → U8_GGA(y0, p_out_ga(x0))
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(s(z0), p_out_ga(0))
AVERAGE_IN_GGA(s(z0), 0) → U6_GGA(s(z0), p_out_ga(0))
U4_GGA(Y, p_out_ga(P)) → AVERAGE_IN_GGA(P, s(Y))
U8_GGA(X, p_out_ga(P3)) → AVERAGE_IN_GGA(s(X), P3)
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(y1, p_out_ga(x0))
AVERAGE_IN_GGA(y0, s(x0)) → U6_GGA(y0, p_out_ga(x0))
U6_GGA(y0, p_out_ga(0)) → U7_GGA(y0, p_out_ga(0))
U6_GGA(y0, p_out_ga(s(x0))) → U7_GGA(y0, p_out_ga(x0))
U7_GGA(y0, p_out_ga(0)) → U8_GGA(y0, p_out_ga(0))
U7_GGA(y0, p_out_ga(s(x0))) → U8_GGA(y0, p_out_ga(x0))
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(s(z0), p_out_ga(0))
AVERAGE_IN_GGA(s(z0), 0) → U6_GGA(s(z0), p_out_ga(0))
AVERAGE_IN_GGA(x0, s(0)) → U6_GGA(x0, p_out_ga(0))
AVERAGE_IN_GGA(x0, s(s(y_1))) → U6_GGA(x0, p_out_ga(s(y_1)))
U4_GGA(Y, p_out_ga(P)) → AVERAGE_IN_GGA(P, s(Y))
U8_GGA(X, p_out_ga(P3)) → AVERAGE_IN_GGA(s(X), P3)
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(y1, p_out_ga(x0))
U6_GGA(y0, p_out_ga(0)) → U7_GGA(y0, p_out_ga(0))
U6_GGA(y0, p_out_ga(s(x0))) → U7_GGA(y0, p_out_ga(x0))
U7_GGA(y0, p_out_ga(0)) → U8_GGA(y0, p_out_ga(0))
U7_GGA(y0, p_out_ga(s(x0))) → U8_GGA(y0, p_out_ga(x0))
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(s(z0), p_out_ga(0))
AVERAGE_IN_GGA(s(z0), 0) → U6_GGA(s(z0), p_out_ga(0))
AVERAGE_IN_GGA(x0, s(0)) → U6_GGA(x0, p_out_ga(0))
AVERAGE_IN_GGA(x0, s(s(y_1))) → U6_GGA(x0, p_out_ga(s(y_1)))
U4_GGA(x0, p_out_ga(s(y_0))) → AVERAGE_IN_GGA(s(y_0), s(x0))
U4_GGA(x0, p_out_ga(0)) → AVERAGE_IN_GGA(0, s(x0))
U4_GGA(0, p_out_ga(x1)) → AVERAGE_IN_GGA(x1, s(0))
U4_GGA(s(y_1), p_out_ga(x1)) → AVERAGE_IN_GGA(x1, s(s(y_1)))
U8_GGA(X, p_out_ga(P3)) → AVERAGE_IN_GGA(s(X), P3)
AVERAGE_IN_GGA(s(x0), y1) → U4_GGA(y1, p_out_ga(x0))
U6_GGA(y0, p_out_ga(0)) → U7_GGA(y0, p_out_ga(0))
U6_GGA(y0, p_out_ga(s(x0))) → U7_GGA(y0, p_out_ga(x0))
U7_GGA(y0, p_out_ga(0)) → U8_GGA(y0, p_out_ga(0))
U7_GGA(y0, p_out_ga(s(x0))) → U8_GGA(y0, p_out_ga(x0))
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(s(z0), p_out_ga(0))
AVERAGE_IN_GGA(s(z0), 0) → U6_GGA(s(z0), p_out_ga(0))
AVERAGE_IN_GGA(x0, s(0)) → U6_GGA(x0, p_out_ga(0))
AVERAGE_IN_GGA(x0, s(s(y_1))) → U6_GGA(x0, p_out_ga(s(y_1)))
U4_GGA(x0, p_out_ga(s(y_0))) → AVERAGE_IN_GGA(s(y_0), s(x0))
U4_GGA(x0, p_out_ga(0)) → AVERAGE_IN_GGA(0, s(x0))
U4_GGA(0, p_out_ga(x1)) → AVERAGE_IN_GGA(x1, s(0))
U4_GGA(s(y_1), p_out_ga(x1)) → AVERAGE_IN_GGA(x1, s(s(y_1)))
AVERAGE_IN_GGA(s(s(y_1)), x1) → U4_GGA(x1, p_out_ga(s(y_1)))
AVERAGE_IN_GGA(s(0), x1) → U4_GGA(x1, p_out_ga(0))
AVERAGE_IN_GGA(s(x0), 0) → U4_GGA(0, p_out_ga(x0))
AVERAGE_IN_GGA(s(x0), s(y_0)) → U4_GGA(s(y_0), p_out_ga(x0))
U8_GGA(X, p_out_ga(P3)) → AVERAGE_IN_GGA(s(X), P3)
U6_GGA(y0, p_out_ga(0)) → U7_GGA(y0, p_out_ga(0))
U6_GGA(y0, p_out_ga(s(x0))) → U7_GGA(y0, p_out_ga(x0))
U7_GGA(y0, p_out_ga(0)) → U8_GGA(y0, p_out_ga(0))
U7_GGA(y0, p_out_ga(s(x0))) → U8_GGA(y0, p_out_ga(x0))
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(s(z0), p_out_ga(0))
AVERAGE_IN_GGA(s(z0), 0) → U6_GGA(s(z0), p_out_ga(0))
AVERAGE_IN_GGA(x0, s(0)) → U6_GGA(x0, p_out_ga(0))
AVERAGE_IN_GGA(x0, s(s(y_1))) → U6_GGA(x0, p_out_ga(s(y_1)))
U4_GGA(x0, p_out_ga(s(y_0))) → AVERAGE_IN_GGA(s(y_0), s(x0))
U4_GGA(x0, p_out_ga(0)) → AVERAGE_IN_GGA(0, s(x0))
U4_GGA(0, p_out_ga(x1)) → AVERAGE_IN_GGA(x1, s(0))
U4_GGA(s(y_1), p_out_ga(x1)) → AVERAGE_IN_GGA(x1, s(s(y_1)))
AVERAGE_IN_GGA(s(s(y_1)), x1) → U4_GGA(x1, p_out_ga(s(y_1)))
AVERAGE_IN_GGA(s(0), x1) → U4_GGA(x1, p_out_ga(0))
AVERAGE_IN_GGA(s(x0), 0) → U4_GGA(0, p_out_ga(x0))
AVERAGE_IN_GGA(s(x0), s(y_0)) → U4_GGA(s(y_0), p_out_ga(x0))
U8_GGA(x0, p_out_ga(0)) → AVERAGE_IN_GGA(s(x0), 0)
U8_GGA(x0, p_out_ga(s(0))) → AVERAGE_IN_GGA(s(x0), s(0))
U8_GGA(x0, p_out_ga(s(s(y_1)))) → AVERAGE_IN_GGA(s(x0), s(s(y_1)))
U8_GGA(s(y_0), p_out_ga(x1)) → AVERAGE_IN_GGA(s(s(y_0)), x1)
U8_GGA(0, p_out_ga(x1)) → AVERAGE_IN_GGA(s(0), x1)
U8_GGA(x0, p_out_ga(s(y_1))) → AVERAGE_IN_GGA(s(x0), s(y_1))
U6_GGA(y0, p_out_ga(0)) → U7_GGA(y0, p_out_ga(0))
U6_GGA(y0, p_out_ga(s(x0))) → U7_GGA(y0, p_out_ga(x0))
U7_GGA(y0, p_out_ga(0)) → U8_GGA(y0, p_out_ga(0))
U7_GGA(y0, p_out_ga(s(x0))) → U8_GGA(y0, p_out_ga(x0))
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(s(z0), p_out_ga(0))
AVERAGE_IN_GGA(s(z0), 0) → U6_GGA(s(z0), p_out_ga(0))
AVERAGE_IN_GGA(x0, s(0)) → U6_GGA(x0, p_out_ga(0))
AVERAGE_IN_GGA(x0, s(s(y_1))) → U6_GGA(x0, p_out_ga(s(y_1)))
U4_GGA(x0, p_out_ga(s(y_0))) → AVERAGE_IN_GGA(s(y_0), s(x0))
U4_GGA(x0, p_out_ga(0)) → AVERAGE_IN_GGA(0, s(x0))
U4_GGA(0, p_out_ga(x1)) → AVERAGE_IN_GGA(x1, s(0))
U4_GGA(s(y_1), p_out_ga(x1)) → AVERAGE_IN_GGA(x1, s(s(y_1)))
AVERAGE_IN_GGA(s(s(y_1)), x1) → U4_GGA(x1, p_out_ga(s(y_1)))
AVERAGE_IN_GGA(s(0), x1) → U4_GGA(x1, p_out_ga(0))
AVERAGE_IN_GGA(s(x0), 0) → U4_GGA(0, p_out_ga(x0))
AVERAGE_IN_GGA(s(x0), s(y_0)) → U4_GGA(s(y_0), p_out_ga(x0))
U8_GGA(x0, p_out_ga(0)) → AVERAGE_IN_GGA(s(x0), 0)
U8_GGA(x0, p_out_ga(s(0))) → AVERAGE_IN_GGA(s(x0), s(0))
U8_GGA(x0, p_out_ga(s(s(y_1)))) → AVERAGE_IN_GGA(s(x0), s(s(y_1)))
U8_GGA(s(y_0), p_out_ga(x1)) → AVERAGE_IN_GGA(s(s(y_0)), x1)
U8_GGA(0, p_out_ga(x1)) → AVERAGE_IN_GGA(s(0), x1)
U8_GGA(x0, p_out_ga(s(y_1))) → AVERAGE_IN_GGA(s(x0), s(y_1))
U6_GGA(x0, p_out_ga(s(0))) → U7_GGA(x0, p_out_ga(0))
U6_GGA(x0, p_out_ga(s(s(y_1)))) → U7_GGA(x0, p_out_ga(s(y_1)))
U6_GGA(y0, p_out_ga(0)) → U7_GGA(y0, p_out_ga(0))
U7_GGA(y0, p_out_ga(0)) → U8_GGA(y0, p_out_ga(0))
U7_GGA(y0, p_out_ga(s(x0))) → U8_GGA(y0, p_out_ga(x0))
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(s(z0), p_out_ga(0))
AVERAGE_IN_GGA(s(z0), 0) → U6_GGA(s(z0), p_out_ga(0))
AVERAGE_IN_GGA(x0, s(0)) → U6_GGA(x0, p_out_ga(0))
AVERAGE_IN_GGA(x0, s(s(y_1))) → U6_GGA(x0, p_out_ga(s(y_1)))
U4_GGA(x0, p_out_ga(s(y_0))) → AVERAGE_IN_GGA(s(y_0), s(x0))
U4_GGA(x0, p_out_ga(0)) → AVERAGE_IN_GGA(0, s(x0))
U4_GGA(0, p_out_ga(x1)) → AVERAGE_IN_GGA(x1, s(0))
U4_GGA(s(y_1), p_out_ga(x1)) → AVERAGE_IN_GGA(x1, s(s(y_1)))
AVERAGE_IN_GGA(s(s(y_1)), x1) → U4_GGA(x1, p_out_ga(s(y_1)))
AVERAGE_IN_GGA(s(0), x1) → U4_GGA(x1, p_out_ga(0))
AVERAGE_IN_GGA(s(x0), 0) → U4_GGA(0, p_out_ga(x0))
AVERAGE_IN_GGA(s(x0), s(y_0)) → U4_GGA(s(y_0), p_out_ga(x0))
U8_GGA(x0, p_out_ga(0)) → AVERAGE_IN_GGA(s(x0), 0)
U8_GGA(x0, p_out_ga(s(0))) → AVERAGE_IN_GGA(s(x0), s(0))
U8_GGA(x0, p_out_ga(s(s(y_1)))) → AVERAGE_IN_GGA(s(x0), s(s(y_1)))
U8_GGA(s(y_0), p_out_ga(x1)) → AVERAGE_IN_GGA(s(s(y_0)), x1)
U8_GGA(0, p_out_ga(x1)) → AVERAGE_IN_GGA(s(0), x1)
U8_GGA(x0, p_out_ga(s(y_1))) → AVERAGE_IN_GGA(s(x0), s(y_1))
U6_GGA(x0, p_out_ga(s(0))) → U7_GGA(x0, p_out_ga(0))
U6_GGA(x0, p_out_ga(s(s(y_1)))) → U7_GGA(x0, p_out_ga(s(y_1)))
U7_GGA(x0, p_out_ga(s(0))) → U8_GGA(x0, p_out_ga(0))
U7_GGA(x0, p_out_ga(s(s(0)))) → U8_GGA(x0, p_out_ga(s(0)))
U7_GGA(x0, p_out_ga(s(s(s(y_1))))) → U8_GGA(x0, p_out_ga(s(s(y_1))))
U7_GGA(s(y_0), p_out_ga(s(x1))) → U8_GGA(s(y_0), p_out_ga(x1))
U7_GGA(0, p_out_ga(s(x1))) → U8_GGA(0, p_out_ga(x1))
U7_GGA(x0, p_out_ga(s(s(y_1)))) → U8_GGA(x0, p_out_ga(s(y_1)))
U6_GGA(y0, p_out_ga(0)) → U7_GGA(y0, p_out_ga(0))
U7_GGA(y0, p_out_ga(0)) → U8_GGA(y0, p_out_ga(0))
AVERAGE_IN_GGA(0, s(z0)) → U4_GGA(s(z0), p_out_ga(0))
AVERAGE_IN_GGA(s(z0), 0) → U6_GGA(s(z0), p_out_ga(0))
AVERAGE_IN_GGA(x0, s(0)) → U6_GGA(x0, p_out_ga(0))
AVERAGE_IN_GGA(x0, s(s(y_1))) → U6_GGA(x0, p_out_ga(s(y_1)))
U4_GGA(x0, p_out_ga(s(y_0))) → AVERAGE_IN_GGA(s(y_0), s(x0))
U4_GGA(x0, p_out_ga(0)) → AVERAGE_IN_GGA(0, s(x0))
U4_GGA(0, p_out_ga(x1)) → AVERAGE_IN_GGA(x1, s(0))
U4_GGA(s(y_1), p_out_ga(x1)) → AVERAGE_IN_GGA(x1, s(s(y_1)))
AVERAGE_IN_GGA(s(s(y_1)), x1) → U4_GGA(x1, p_out_ga(s(y_1)))
AVERAGE_IN_GGA(s(0), x1) → U4_GGA(x1, p_out_ga(0))
AVERAGE_IN_GGA(s(x0), 0) → U4_GGA(0, p_out_ga(x0))
AVERAGE_IN_GGA(s(x0), s(y_0)) → U4_GGA(s(y_0), p_out_ga(x0))
U8_GGA(x0, p_out_ga(0)) → AVERAGE_IN_GGA(s(x0), 0)
U8_GGA(x0, p_out_ga(s(0))) → AVERAGE_IN_GGA(s(x0), s(0))
U8_GGA(x0, p_out_ga(s(s(y_1)))) → AVERAGE_IN_GGA(s(x0), s(s(y_1)))
U8_GGA(s(y_0), p_out_ga(x1)) → AVERAGE_IN_GGA(s(s(y_0)), x1)
U8_GGA(0, p_out_ga(x1)) → AVERAGE_IN_GGA(s(0), x1)
U8_GGA(x0, p_out_ga(s(y_1))) → AVERAGE_IN_GGA(s(x0), s(y_1))
U6_GGA(x0, p_out_ga(s(0))) → U7_GGA(x0, p_out_ga(0))
U6_GGA(x0, p_out_ga(s(s(y_1)))) → U7_GGA(x0, p_out_ga(s(y_1)))
U7_GGA(x0, p_out_ga(s(0))) → U8_GGA(x0, p_out_ga(0))
U7_GGA(x0, p_out_ga(s(s(0)))) → U8_GGA(x0, p_out_ga(s(0)))
U7_GGA(x0, p_out_ga(s(s(s(y_1))))) → U8_GGA(x0, p_out_ga(s(s(y_1))))
U7_GGA(s(y_0), p_out_ga(s(x1))) → U8_GGA(s(y_0), p_out_ga(x1))
U7_GGA(0, p_out_ga(s(x1))) → U8_GGA(0, p_out_ga(x1))
U7_GGA(x0, p_out_ga(s(s(y_1)))) → U8_GGA(x0, p_out_ga(s(y_1)))