(0) Obligation:

Clauses:

log2(X, Y) :- log2(X, 0, Y).
log2(0, I, I).
log2(s(0), I, I).
log2(s(s(X)), I, Y) :- ','(half(s(s(X)), X1), log2(X1, s(I), Y)).
half(0, 0).
half(s(0), 0).
half(s(s(X)), s(Y)) :- half(X, Y).

Queries:

log2(a,g).

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph.

(2) Obligation:

Clauses:

half22(0, 0).
half22(s(0), 0).
half22(s(s(T26)), s(X55)) :- half22(T26, X55).
half17(T22, s(X46)) :- half22(T22, X46).
p139(T85, X286, T88, T86) :- half17(T85, X286).
p139(T85, 0, T98, s(T98)) :- half17(T85, 0).
p139(T85, s(0), T103, s(T103)) :- half17(T85, s(0)).
p139(T85, s(s(T110)), T111, T112) :- ','(half17(T85, s(s(T110))), p139(T110, X323, s(T111), T112)).
log21(0, 0).
log21(s(0), 0).
log21(s(s(T14)), T13) :- half17(T14, X28).
log21(s(s(T14)), s(0)) :- half17(T14, 0).
log21(s(s(T14)), s(0)) :- half17(T14, s(0)).
log21(s(s(T14)), T32) :- ','(half17(T14, s(s(T31))), half17(T31, X82)).
log21(s(s(T14)), s(s(0))) :- ','(half17(T14, s(s(T31))), half17(T31, 0)).
log21(s(s(T14)), s(s(0))) :- ','(half17(T14, s(s(T31))), half17(T31, s(0))).
log21(s(s(T14)), T41) :- ','(half17(T14, s(s(T31))), ','(half17(T31, s(s(T40))), half17(T40, X116))).
log21(s(s(T14)), s(s(s(0)))) :- ','(half17(T14, s(s(T31))), ','(half17(T31, s(s(T40))), half17(T40, 0))).
log21(s(s(T14)), s(s(s(0)))) :- ','(half17(T14, s(s(T31))), ','(half17(T31, s(s(T40))), half17(T40, s(0)))).
log21(s(s(T14)), T50) :- ','(half17(T14, s(s(T31))), ','(half17(T31, s(s(T40))), ','(half17(T40, s(s(T49))), half17(T49, X150)))).
log21(s(s(T14)), s(s(s(s(0))))) :- ','(half17(T14, s(s(T31))), ','(half17(T31, s(s(T40))), ','(half17(T40, s(s(T49))), half17(T49, 0)))).
log21(s(s(T14)), s(s(s(s(0))))) :- ','(half17(T14, s(s(T31))), ','(half17(T31, s(s(T40))), ','(half17(T40, s(s(T49))), half17(T49, s(0))))).
log21(s(s(T14)), T59) :- ','(half17(T14, s(s(T31))), ','(half17(T31, s(s(T40))), ','(half17(T40, s(s(T49))), ','(half17(T49, s(s(T58))), half17(T58, X184))))).
log21(s(s(T14)), s(s(s(s(s(0)))))) :- ','(half17(T14, s(s(T31))), ','(half17(T31, s(s(T40))), ','(half17(T40, s(s(T49))), ','(half17(T49, s(s(T58))), half17(T58, 0))))).
log21(s(s(T14)), s(s(s(s(s(0)))))) :- ','(half17(T14, s(s(T31))), ','(half17(T31, s(s(T40))), ','(half17(T40, s(s(T49))), ','(half17(T49, s(s(T58))), half17(T58, s(0)))))).
log21(s(s(T14)), T68) :- ','(half17(T14, s(s(T31))), ','(half17(T31, s(s(T40))), ','(half17(T40, s(s(T49))), ','(half17(T49, s(s(T58))), ','(half17(T58, s(s(T67))), half17(T67, X218)))))).
log21(s(s(T14)), s(s(s(s(s(s(0))))))) :- ','(half17(T14, s(s(T31))), ','(half17(T31, s(s(T40))), ','(half17(T40, s(s(T49))), ','(half17(T49, s(s(T58))), ','(half17(T58, s(s(T67))), half17(T67, 0)))))).
log21(s(s(T14)), s(s(s(s(s(s(0))))))) :- ','(half17(T14, s(s(T31))), ','(half17(T31, s(s(T40))), ','(half17(T40, s(s(T49))), ','(half17(T49, s(s(T58))), ','(half17(T58, s(s(T67))), half17(T67, s(0))))))).
log21(s(s(T14)), T77) :- ','(half17(T14, s(s(T31))), ','(half17(T31, s(s(T40))), ','(half17(T40, s(s(T49))), ','(half17(T49, s(s(T58))), ','(half17(T58, s(s(T67))), ','(half17(T67, s(s(T76))), half17(T76, X252))))))).
log21(s(s(T14)), s(s(s(s(s(s(s(0)))))))) :- ','(half17(T14, s(s(T31))), ','(half17(T31, s(s(T40))), ','(half17(T40, s(s(T49))), ','(half17(T49, s(s(T58))), ','(half17(T58, s(s(T67))), ','(half17(T67, s(s(T76))), half17(T76, 0))))))).
log21(s(s(T14)), s(s(s(s(s(s(s(0)))))))) :- ','(half17(T14, s(s(T31))), ','(half17(T31, s(s(T40))), ','(half17(T40, s(s(T49))), ','(half17(T49, s(s(T58))), ','(half17(T58, s(s(T67))), ','(half17(T67, s(s(T76))), half17(T76, s(0)))))))).
log21(s(s(T14)), T86) :- ','(half17(T14, s(s(T31))), ','(half17(T31, s(s(T40))), ','(half17(T40, s(s(T49))), ','(half17(T49, s(s(T58))), ','(half17(T58, s(s(T67))), ','(half17(T67, s(s(T76))), ','(half17(T76, s(s(T85))), p139(T85, X286, s(s(s(s(s(s(s(0))))))), T86)))))))).

Queries:

log21(a,g).

(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:
log21_in: (f,b)
half17_in: (f,f) (f,b) (b,f) (b,b)
half22_in: (f,f) (f,b) (b,f) (b,b)
p139_in: (b,f,b,b)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

log21_in_ag(0, 0) → log21_out_ag(0, 0)
log21_in_ag(s(0), 0) → log21_out_ag(s(0), 0)
log21_in_ag(s(s(T14)), T13) → U8_ag(T14, T13, half17_in_aa(T14, X28))
half17_in_aa(T22, s(X46)) → U2_aa(T22, X46, half22_in_aa(T22, X46))
half22_in_aa(0, 0) → half22_out_aa(0, 0)
half22_in_aa(s(0), 0) → half22_out_aa(s(0), 0)
half22_in_aa(s(s(T26)), s(X55)) → U1_aa(T26, X55, half22_in_aa(T26, X55))
U1_aa(T26, X55, half22_out_aa(T26, X55)) → half22_out_aa(s(s(T26)), s(X55))
U2_aa(T22, X46, half22_out_aa(T22, X46)) → half17_out_aa(T22, s(X46))
U8_ag(T14, T13, half17_out_aa(T14, X28)) → log21_out_ag(s(s(T14)), T13)
log21_in_ag(s(s(T14)), s(0)) → U9_ag(T14, half17_in_ag(T14, 0))
half17_in_ag(T22, s(X46)) → U2_ag(T22, X46, half22_in_ag(T22, X46))
half22_in_ag(0, 0) → half22_out_ag(0, 0)
half22_in_ag(s(0), 0) → half22_out_ag(s(0), 0)
half22_in_ag(s(s(T26)), s(X55)) → U1_ag(T26, X55, half22_in_ag(T26, X55))
U1_ag(T26, X55, half22_out_ag(T26, X55)) → half22_out_ag(s(s(T26)), s(X55))
U2_ag(T22, X46, half22_out_ag(T22, X46)) → half17_out_ag(T22, s(X46))
U9_ag(T14, half17_out_ag(T14, 0)) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), s(0)) → U10_ag(T14, half17_in_ag(T14, s(0)))
U10_ag(T14, half17_out_ag(T14, s(0))) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), T32) → U11_ag(T14, T32, half17_in_aa(T14, s(s(T31))))
U11_ag(T14, T32, half17_out_aa(T14, s(s(T31)))) → U12_ag(T14, T32, half17_in_ga(T31, X82))
half17_in_ga(T22, s(X46)) → U2_ga(T22, X46, half22_in_ga(T22, X46))
half22_in_ga(0, 0) → half22_out_ga(0, 0)
half22_in_ga(s(0), 0) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26)), s(X55)) → U1_ga(T26, X55, half22_in_ga(T26, X55))
U1_ga(T26, X55, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))
U2_ga(T22, X46, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
U12_ag(T14, T32, half17_out_ga(T31, X82)) → log21_out_ag(s(s(T14)), T32)
log21_in_ag(s(s(T14)), s(s(0))) → U13_ag(T14, half17_in_aa(T14, s(s(T31))))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U14_ag(T14, half17_in_gg(T31, 0))
half17_in_gg(T22, s(X46)) → U2_gg(T22, X46, half22_in_gg(T22, X46))
half22_in_gg(0, 0) → half22_out_gg(0, 0)
half22_in_gg(s(0), 0) → half22_out_gg(s(0), 0)
half22_in_gg(s(s(T26)), s(X55)) → U1_gg(T26, X55, half22_in_gg(T26, X55))
U1_gg(T26, X55, half22_out_gg(T26, X55)) → half22_out_gg(s(s(T26)), s(X55))
U2_gg(T22, X46, half22_out_gg(T22, X46)) → half17_out_gg(T22, s(X46))
U14_ag(T14, half17_out_gg(T31, 0)) → log21_out_ag(s(s(T14)), s(s(0)))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U15_ag(T14, half17_in_gg(T31, s(0)))
U15_ag(T14, half17_out_gg(T31, s(0))) → log21_out_ag(s(s(T14)), s(s(0)))
log21_in_ag(s(s(T14)), T41) → U16_ag(T14, T41, half17_in_aa(T14, s(s(T31))))
U16_ag(T14, T41, half17_out_aa(T14, s(s(T31)))) → U17_ag(T14, T41, half17_in_ga(T31, s(s(T40))))
U17_ag(T14, T41, half17_out_ga(T31, s(s(T40)))) → U18_ag(T14, T41, half17_in_ga(T40, X116))
U18_ag(T14, T41, half17_out_ga(T40, X116)) → log21_out_ag(s(s(T14)), T41)
log21_in_ag(s(s(T14)), s(s(s(0)))) → U19_ag(T14, half17_in_aa(T14, s(s(T31))))
U19_ag(T14, half17_out_aa(T14, s(s(T31)))) → U20_ag(T14, half17_in_ga(T31, s(s(T40))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U21_ag(T14, half17_in_gg(T40, 0))
U21_ag(T14, half17_out_gg(T40, 0)) → log21_out_ag(s(s(T14)), s(s(s(0))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U22_ag(T14, half17_in_gg(T40, s(0)))
U22_ag(T14, half17_out_gg(T40, s(0))) → log21_out_ag(s(s(T14)), s(s(s(0))))
log21_in_ag(s(s(T14)), T50) → U23_ag(T14, T50, half17_in_aa(T14, s(s(T31))))
U23_ag(T14, T50, half17_out_aa(T14, s(s(T31)))) → U24_ag(T14, T50, half17_in_ga(T31, s(s(T40))))
U24_ag(T14, T50, half17_out_ga(T31, s(s(T40)))) → U25_ag(T14, T50, half17_in_ga(T40, s(s(T49))))
U25_ag(T14, T50, half17_out_ga(T40, s(s(T49)))) → U26_ag(T14, T50, half17_in_ga(T49, X150))
U26_ag(T14, T50, half17_out_ga(T49, X150)) → log21_out_ag(s(s(T14)), T50)
log21_in_ag(s(s(T14)), s(s(s(s(0))))) → U27_ag(T14, half17_in_aa(T14, s(s(T31))))
U27_ag(T14, half17_out_aa(T14, s(s(T31)))) → U28_ag(T14, half17_in_ga(T31, s(s(T40))))
U28_ag(T14, half17_out_ga(T31, s(s(T40)))) → U29_ag(T14, half17_in_ga(T40, s(s(T49))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U30_ag(T14, half17_in_gg(T49, 0))
U30_ag(T14, half17_out_gg(T49, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U31_ag(T14, half17_in_gg(T49, s(0)))
U31_ag(T14, half17_out_gg(T49, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
log21_in_ag(s(s(T14)), T59) → U32_ag(T14, T59, half17_in_aa(T14, s(s(T31))))
U32_ag(T14, T59, half17_out_aa(T14, s(s(T31)))) → U33_ag(T14, T59, half17_in_ga(T31, s(s(T40))))
U33_ag(T14, T59, half17_out_ga(T31, s(s(T40)))) → U34_ag(T14, T59, half17_in_ga(T40, s(s(T49))))
U34_ag(T14, T59, half17_out_ga(T40, s(s(T49)))) → U35_ag(T14, T59, half17_in_ga(T49, s(s(T58))))
U35_ag(T14, T59, half17_out_ga(T49, s(s(T58)))) → U36_ag(T14, T59, half17_in_ga(T58, X184))
U36_ag(T14, T59, half17_out_ga(T58, X184)) → log21_out_ag(s(s(T14)), T59)
log21_in_ag(s(s(T14)), s(s(s(s(s(0)))))) → U37_ag(T14, half17_in_aa(T14, s(s(T31))))
U37_ag(T14, half17_out_aa(T14, s(s(T31)))) → U38_ag(T14, half17_in_ga(T31, s(s(T40))))
U38_ag(T14, half17_out_ga(T31, s(s(T40)))) → U39_ag(T14, half17_in_ga(T40, s(s(T49))))
U39_ag(T14, half17_out_ga(T40, s(s(T49)))) → U40_ag(T14, half17_in_ga(T49, s(s(T58))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U41_ag(T14, half17_in_gg(T58, 0))
U41_ag(T14, half17_out_gg(T58, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U42_ag(T14, half17_in_gg(T58, s(0)))
U42_ag(T14, half17_out_gg(T58, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
log21_in_ag(s(s(T14)), T68) → U43_ag(T14, T68, half17_in_aa(T14, s(s(T31))))
U43_ag(T14, T68, half17_out_aa(T14, s(s(T31)))) → U44_ag(T14, T68, half17_in_ga(T31, s(s(T40))))
U44_ag(T14, T68, half17_out_ga(T31, s(s(T40)))) → U45_ag(T14, T68, half17_in_ga(T40, s(s(T49))))
U45_ag(T14, T68, half17_out_ga(T40, s(s(T49)))) → U46_ag(T14, T68, half17_in_ga(T49, s(s(T58))))
U46_ag(T14, T68, half17_out_ga(T49, s(s(T58)))) → U47_ag(T14, T68, half17_in_ga(T58, s(s(T67))))
U47_ag(T14, T68, half17_out_ga(T58, s(s(T67)))) → U48_ag(T14, T68, half17_in_ga(T67, X218))
U48_ag(T14, T68, half17_out_ga(T67, X218)) → log21_out_ag(s(s(T14)), T68)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(0))))))) → U49_ag(T14, half17_in_aa(T14, s(s(T31))))
U49_ag(T14, half17_out_aa(T14, s(s(T31)))) → U50_ag(T14, half17_in_ga(T31, s(s(T40))))
U50_ag(T14, half17_out_ga(T31, s(s(T40)))) → U51_ag(T14, half17_in_ga(T40, s(s(T49))))
U51_ag(T14, half17_out_ga(T40, s(s(T49)))) → U52_ag(T14, half17_in_ga(T49, s(s(T58))))
U52_ag(T14, half17_out_ga(T49, s(s(T58)))) → U53_ag(T14, half17_in_ga(T58, s(s(T67))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U54_ag(T14, half17_in_gg(T67, 0))
U54_ag(T14, half17_out_gg(T67, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U55_ag(T14, half17_in_gg(T67, s(0)))
U55_ag(T14, half17_out_gg(T67, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
log21_in_ag(s(s(T14)), T77) → U56_ag(T14, T77, half17_in_aa(T14, s(s(T31))))
U56_ag(T14, T77, half17_out_aa(T14, s(s(T31)))) → U57_ag(T14, T77, half17_in_ga(T31, s(s(T40))))
U57_ag(T14, T77, half17_out_ga(T31, s(s(T40)))) → U58_ag(T14, T77, half17_in_ga(T40, s(s(T49))))
U58_ag(T14, T77, half17_out_ga(T40, s(s(T49)))) → U59_ag(T14, T77, half17_in_ga(T49, s(s(T58))))
U59_ag(T14, T77, half17_out_ga(T49, s(s(T58)))) → U60_ag(T14, T77, half17_in_ga(T58, s(s(T67))))
U60_ag(T14, T77, half17_out_ga(T58, s(s(T67)))) → U61_ag(T14, T77, half17_in_ga(T67, s(s(T76))))
U61_ag(T14, T77, half17_out_ga(T67, s(s(T76)))) → U62_ag(T14, T77, half17_in_ga(T76, X252))
U62_ag(T14, T77, half17_out_ga(T76, X252)) → log21_out_ag(s(s(T14)), T77)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → U63_ag(T14, half17_in_aa(T14, s(s(T31))))
U63_ag(T14, half17_out_aa(T14, s(s(T31)))) → U64_ag(T14, half17_in_ga(T31, s(s(T40))))
U64_ag(T14, half17_out_ga(T31, s(s(T40)))) → U65_ag(T14, half17_in_ga(T40, s(s(T49))))
U65_ag(T14, half17_out_ga(T40, s(s(T49)))) → U66_ag(T14, half17_in_ga(T49, s(s(T58))))
U66_ag(T14, half17_out_ga(T49, s(s(T58)))) → U67_ag(T14, half17_in_ga(T58, s(s(T67))))
U67_ag(T14, half17_out_ga(T58, s(s(T67)))) → U68_ag(T14, half17_in_ga(T67, s(s(T76))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U69_ag(T14, half17_in_gg(T76, 0))
U69_ag(T14, half17_out_gg(T76, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U70_ag(T14, half17_in_gg(T76, s(0)))
U70_ag(T14, half17_out_gg(T76, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
log21_in_ag(s(s(T14)), T86) → U71_ag(T14, T86, half17_in_aa(T14, s(s(T31))))
U71_ag(T14, T86, half17_out_aa(T14, s(s(T31)))) → U72_ag(T14, T86, half17_in_ga(T31, s(s(T40))))
U72_ag(T14, T86, half17_out_ga(T31, s(s(T40)))) → U73_ag(T14, T86, half17_in_ga(T40, s(s(T49))))
U73_ag(T14, T86, half17_out_ga(T40, s(s(T49)))) → U74_ag(T14, T86, half17_in_ga(T49, s(s(T58))))
U74_ag(T14, T86, half17_out_ga(T49, s(s(T58)))) → U75_ag(T14, T86, half17_in_ga(T58, s(s(T67))))
U75_ag(T14, T86, half17_out_ga(T58, s(s(T67)))) → U76_ag(T14, T86, half17_in_ga(T67, s(s(T76))))
U76_ag(T14, T86, half17_out_ga(T67, s(s(T76)))) → U77_ag(T14, T86, half17_in_ga(T76, s(s(T85))))
U77_ag(T14, T86, half17_out_ga(T76, s(s(T85)))) → U78_ag(T14, T86, p139_in_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86))
p139_in_gagg(T85, X286, T88, T86) → U3_gagg(T85, X286, T88, T86, half17_in_ga(T85, X286))
U3_gagg(T85, X286, T88, T86, half17_out_ga(T85, X286)) → p139_out_gagg(T85, X286, T88, T86)
p139_in_gagg(T85, 0, T98, s(T98)) → U4_gagg(T85, T98, half17_in_gg(T85, 0))
U4_gagg(T85, T98, half17_out_gg(T85, 0)) → p139_out_gagg(T85, 0, T98, s(T98))
p139_in_gagg(T85, s(0), T103, s(T103)) → U5_gagg(T85, T103, half17_in_gg(T85, s(0)))
U5_gagg(T85, T103, half17_out_gg(T85, s(0))) → p139_out_gagg(T85, s(0), T103, s(T103))
p139_in_gagg(T85, s(s(T110)), T111, T112) → U6_gagg(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
U6_gagg(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → U7_gagg(T85, T110, T111, T112, p139_in_gagg(T110, X323, s(T111), T112))
U7_gagg(T85, T110, T111, T112, p139_out_gagg(T110, X323, s(T111), T112)) → p139_out_gagg(T85, s(s(T110)), T111, T112)
U78_ag(T14, T86, p139_out_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86)) → log21_out_ag(s(s(T14)), T86)

The argument filtering Pi contains the following mapping:
log21_in_ag(x1, x2)  =  log21_in_ag(x2)
0  =  0
log21_out_ag(x1, x2)  =  log21_out_ag(x1, x2)
U8_ag(x1, x2, x3)  =  U8_ag(x2, x3)
half17_in_aa(x1, x2)  =  half17_in_aa
U2_aa(x1, x2, x3)  =  U2_aa(x3)
half22_in_aa(x1, x2)  =  half22_in_aa
half22_out_aa(x1, x2)  =  half22_out_aa(x1, x2)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
half17_out_aa(x1, x2)  =  half17_out_aa(x1, x2)
s(x1)  =  s(x1)
U9_ag(x1, x2)  =  U9_ag(x2)
half17_in_ag(x1, x2)  =  half17_in_ag(x2)
U2_ag(x1, x2, x3)  =  U2_ag(x2, x3)
half22_in_ag(x1, x2)  =  half22_in_ag(x2)
half22_out_ag(x1, x2)  =  half22_out_ag(x1, x2)
U1_ag(x1, x2, x3)  =  U1_ag(x2, x3)
half17_out_ag(x1, x2)  =  half17_out_ag(x1, x2)
U10_ag(x1, x2)  =  U10_ag(x2)
U11_ag(x1, x2, x3)  =  U11_ag(x2, x3)
U12_ag(x1, x2, x3)  =  U12_ag(x1, x2, x3)
half17_in_ga(x1, x2)  =  half17_in_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x1, x3)
half22_in_ga(x1, x2)  =  half22_in_ga(x1)
half22_out_ga(x1, x2)  =  half22_out_ga(x1, x2)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
half17_out_ga(x1, x2)  =  half17_out_ga(x1, x2)
U13_ag(x1, x2)  =  U13_ag(x2)
U14_ag(x1, x2)  =  U14_ag(x1, x2)
half17_in_gg(x1, x2)  =  half17_in_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x1, x2, x3)
half22_in_gg(x1, x2)  =  half22_in_gg(x1, x2)
half22_out_gg(x1, x2)  =  half22_out_gg(x1, x2)
U1_gg(x1, x2, x3)  =  U1_gg(x1, x2, x3)
half17_out_gg(x1, x2)  =  half17_out_gg(x1, x2)
U15_ag(x1, x2)  =  U15_ag(x1, x2)
U16_ag(x1, x2, x3)  =  U16_ag(x2, x3)
U17_ag(x1, x2, x3)  =  U17_ag(x1, x2, x3)
U18_ag(x1, x2, x3)  =  U18_ag(x1, x2, x3)
U19_ag(x1, x2)  =  U19_ag(x2)
U20_ag(x1, x2)  =  U20_ag(x1, x2)
U21_ag(x1, x2)  =  U21_ag(x1, x2)
U22_ag(x1, x2)  =  U22_ag(x1, x2)
U23_ag(x1, x2, x3)  =  U23_ag(x2, x3)
U24_ag(x1, x2, x3)  =  U24_ag(x1, x2, x3)
U25_ag(x1, x2, x3)  =  U25_ag(x1, x2, x3)
U26_ag(x1, x2, x3)  =  U26_ag(x1, x2, x3)
U27_ag(x1, x2)  =  U27_ag(x2)
U28_ag(x1, x2)  =  U28_ag(x1, x2)
U29_ag(x1, x2)  =  U29_ag(x1, x2)
U30_ag(x1, x2)  =  U30_ag(x1, x2)
U31_ag(x1, x2)  =  U31_ag(x1, x2)
U32_ag(x1, x2, x3)  =  U32_ag(x2, x3)
U33_ag(x1, x2, x3)  =  U33_ag(x1, x2, x3)
U34_ag(x1, x2, x3)  =  U34_ag(x1, x2, x3)
U35_ag(x1, x2, x3)  =  U35_ag(x1, x2, x3)
U36_ag(x1, x2, x3)  =  U36_ag(x1, x2, x3)
U37_ag(x1, x2)  =  U37_ag(x2)
U38_ag(x1, x2)  =  U38_ag(x1, x2)
U39_ag(x1, x2)  =  U39_ag(x1, x2)
U40_ag(x1, x2)  =  U40_ag(x1, x2)
U41_ag(x1, x2)  =  U41_ag(x1, x2)
U42_ag(x1, x2)  =  U42_ag(x1, x2)
U43_ag(x1, x2, x3)  =  U43_ag(x2, x3)
U44_ag(x1, x2, x3)  =  U44_ag(x1, x2, x3)
U45_ag(x1, x2, x3)  =  U45_ag(x1, x2, x3)
U46_ag(x1, x2, x3)  =  U46_ag(x1, x2, x3)
U47_ag(x1, x2, x3)  =  U47_ag(x1, x2, x3)
U48_ag(x1, x2, x3)  =  U48_ag(x1, x2, x3)
U49_ag(x1, x2)  =  U49_ag(x2)
U50_ag(x1, x2)  =  U50_ag(x1, x2)
U51_ag(x1, x2)  =  U51_ag(x1, x2)
U52_ag(x1, x2)  =  U52_ag(x1, x2)
U53_ag(x1, x2)  =  U53_ag(x1, x2)
U54_ag(x1, x2)  =  U54_ag(x1, x2)
U55_ag(x1, x2)  =  U55_ag(x1, x2)
U56_ag(x1, x2, x3)  =  U56_ag(x2, x3)
U57_ag(x1, x2, x3)  =  U57_ag(x1, x2, x3)
U58_ag(x1, x2, x3)  =  U58_ag(x1, x2, x3)
U59_ag(x1, x2, x3)  =  U59_ag(x1, x2, x3)
U60_ag(x1, x2, x3)  =  U60_ag(x1, x2, x3)
U61_ag(x1, x2, x3)  =  U61_ag(x1, x2, x3)
U62_ag(x1, x2, x3)  =  U62_ag(x1, x2, x3)
U63_ag(x1, x2)  =  U63_ag(x2)
U64_ag(x1, x2)  =  U64_ag(x1, x2)
U65_ag(x1, x2)  =  U65_ag(x1, x2)
U66_ag(x1, x2)  =  U66_ag(x1, x2)
U67_ag(x1, x2)  =  U67_ag(x1, x2)
U68_ag(x1, x2)  =  U68_ag(x1, x2)
U69_ag(x1, x2)  =  U69_ag(x1, x2)
U70_ag(x1, x2)  =  U70_ag(x1, x2)
U71_ag(x1, x2, x3)  =  U71_ag(x2, x3)
U72_ag(x1, x2, x3)  =  U72_ag(x1, x2, x3)
U73_ag(x1, x2, x3)  =  U73_ag(x1, x2, x3)
U74_ag(x1, x2, x3)  =  U74_ag(x1, x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x1, x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x1, x2, x3)
U77_ag(x1, x2, x3)  =  U77_ag(x1, x2, x3)
U78_ag(x1, x2, x3)  =  U78_ag(x1, x2, x3)
p139_in_gagg(x1, x2, x3, x4)  =  p139_in_gagg(x1, x3, x4)
U3_gagg(x1, x2, x3, x4, x5)  =  U3_gagg(x1, x3, x4, x5)
p139_out_gagg(x1, x2, x3, x4)  =  p139_out_gagg(x1, x2, x3, x4)
U4_gagg(x1, x2, x3)  =  U4_gagg(x1, x2, x3)
U5_gagg(x1, x2, x3)  =  U5_gagg(x1, x2, x3)
U6_gagg(x1, x2, x3, x4, x5)  =  U6_gagg(x1, x3, x4, x5)
U7_gagg(x1, x2, x3, x4, x5)  =  U7_gagg(x1, x2, x3, x4, x5)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

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

log21_in_ag(0, 0) → log21_out_ag(0, 0)
log21_in_ag(s(0), 0) → log21_out_ag(s(0), 0)
log21_in_ag(s(s(T14)), T13) → U8_ag(T14, T13, half17_in_aa(T14, X28))
half17_in_aa(T22, s(X46)) → U2_aa(T22, X46, half22_in_aa(T22, X46))
half22_in_aa(0, 0) → half22_out_aa(0, 0)
half22_in_aa(s(0), 0) → half22_out_aa(s(0), 0)
half22_in_aa(s(s(T26)), s(X55)) → U1_aa(T26, X55, half22_in_aa(T26, X55))
U1_aa(T26, X55, half22_out_aa(T26, X55)) → half22_out_aa(s(s(T26)), s(X55))
U2_aa(T22, X46, half22_out_aa(T22, X46)) → half17_out_aa(T22, s(X46))
U8_ag(T14, T13, half17_out_aa(T14, X28)) → log21_out_ag(s(s(T14)), T13)
log21_in_ag(s(s(T14)), s(0)) → U9_ag(T14, half17_in_ag(T14, 0))
half17_in_ag(T22, s(X46)) → U2_ag(T22, X46, half22_in_ag(T22, X46))
half22_in_ag(0, 0) → half22_out_ag(0, 0)
half22_in_ag(s(0), 0) → half22_out_ag(s(0), 0)
half22_in_ag(s(s(T26)), s(X55)) → U1_ag(T26, X55, half22_in_ag(T26, X55))
U1_ag(T26, X55, half22_out_ag(T26, X55)) → half22_out_ag(s(s(T26)), s(X55))
U2_ag(T22, X46, half22_out_ag(T22, X46)) → half17_out_ag(T22, s(X46))
U9_ag(T14, half17_out_ag(T14, 0)) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), s(0)) → U10_ag(T14, half17_in_ag(T14, s(0)))
U10_ag(T14, half17_out_ag(T14, s(0))) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), T32) → U11_ag(T14, T32, half17_in_aa(T14, s(s(T31))))
U11_ag(T14, T32, half17_out_aa(T14, s(s(T31)))) → U12_ag(T14, T32, half17_in_ga(T31, X82))
half17_in_ga(T22, s(X46)) → U2_ga(T22, X46, half22_in_ga(T22, X46))
half22_in_ga(0, 0) → half22_out_ga(0, 0)
half22_in_ga(s(0), 0) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26)), s(X55)) → U1_ga(T26, X55, half22_in_ga(T26, X55))
U1_ga(T26, X55, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))
U2_ga(T22, X46, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
U12_ag(T14, T32, half17_out_ga(T31, X82)) → log21_out_ag(s(s(T14)), T32)
log21_in_ag(s(s(T14)), s(s(0))) → U13_ag(T14, half17_in_aa(T14, s(s(T31))))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U14_ag(T14, half17_in_gg(T31, 0))
half17_in_gg(T22, s(X46)) → U2_gg(T22, X46, half22_in_gg(T22, X46))
half22_in_gg(0, 0) → half22_out_gg(0, 0)
half22_in_gg(s(0), 0) → half22_out_gg(s(0), 0)
half22_in_gg(s(s(T26)), s(X55)) → U1_gg(T26, X55, half22_in_gg(T26, X55))
U1_gg(T26, X55, half22_out_gg(T26, X55)) → half22_out_gg(s(s(T26)), s(X55))
U2_gg(T22, X46, half22_out_gg(T22, X46)) → half17_out_gg(T22, s(X46))
U14_ag(T14, half17_out_gg(T31, 0)) → log21_out_ag(s(s(T14)), s(s(0)))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U15_ag(T14, half17_in_gg(T31, s(0)))
U15_ag(T14, half17_out_gg(T31, s(0))) → log21_out_ag(s(s(T14)), s(s(0)))
log21_in_ag(s(s(T14)), T41) → U16_ag(T14, T41, half17_in_aa(T14, s(s(T31))))
U16_ag(T14, T41, half17_out_aa(T14, s(s(T31)))) → U17_ag(T14, T41, half17_in_ga(T31, s(s(T40))))
U17_ag(T14, T41, half17_out_ga(T31, s(s(T40)))) → U18_ag(T14, T41, half17_in_ga(T40, X116))
U18_ag(T14, T41, half17_out_ga(T40, X116)) → log21_out_ag(s(s(T14)), T41)
log21_in_ag(s(s(T14)), s(s(s(0)))) → U19_ag(T14, half17_in_aa(T14, s(s(T31))))
U19_ag(T14, half17_out_aa(T14, s(s(T31)))) → U20_ag(T14, half17_in_ga(T31, s(s(T40))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U21_ag(T14, half17_in_gg(T40, 0))
U21_ag(T14, half17_out_gg(T40, 0)) → log21_out_ag(s(s(T14)), s(s(s(0))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U22_ag(T14, half17_in_gg(T40, s(0)))
U22_ag(T14, half17_out_gg(T40, s(0))) → log21_out_ag(s(s(T14)), s(s(s(0))))
log21_in_ag(s(s(T14)), T50) → U23_ag(T14, T50, half17_in_aa(T14, s(s(T31))))
U23_ag(T14, T50, half17_out_aa(T14, s(s(T31)))) → U24_ag(T14, T50, half17_in_ga(T31, s(s(T40))))
U24_ag(T14, T50, half17_out_ga(T31, s(s(T40)))) → U25_ag(T14, T50, half17_in_ga(T40, s(s(T49))))
U25_ag(T14, T50, half17_out_ga(T40, s(s(T49)))) → U26_ag(T14, T50, half17_in_ga(T49, X150))
U26_ag(T14, T50, half17_out_ga(T49, X150)) → log21_out_ag(s(s(T14)), T50)
log21_in_ag(s(s(T14)), s(s(s(s(0))))) → U27_ag(T14, half17_in_aa(T14, s(s(T31))))
U27_ag(T14, half17_out_aa(T14, s(s(T31)))) → U28_ag(T14, half17_in_ga(T31, s(s(T40))))
U28_ag(T14, half17_out_ga(T31, s(s(T40)))) → U29_ag(T14, half17_in_ga(T40, s(s(T49))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U30_ag(T14, half17_in_gg(T49, 0))
U30_ag(T14, half17_out_gg(T49, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U31_ag(T14, half17_in_gg(T49, s(0)))
U31_ag(T14, half17_out_gg(T49, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
log21_in_ag(s(s(T14)), T59) → U32_ag(T14, T59, half17_in_aa(T14, s(s(T31))))
U32_ag(T14, T59, half17_out_aa(T14, s(s(T31)))) → U33_ag(T14, T59, half17_in_ga(T31, s(s(T40))))
U33_ag(T14, T59, half17_out_ga(T31, s(s(T40)))) → U34_ag(T14, T59, half17_in_ga(T40, s(s(T49))))
U34_ag(T14, T59, half17_out_ga(T40, s(s(T49)))) → U35_ag(T14, T59, half17_in_ga(T49, s(s(T58))))
U35_ag(T14, T59, half17_out_ga(T49, s(s(T58)))) → U36_ag(T14, T59, half17_in_ga(T58, X184))
U36_ag(T14, T59, half17_out_ga(T58, X184)) → log21_out_ag(s(s(T14)), T59)
log21_in_ag(s(s(T14)), s(s(s(s(s(0)))))) → U37_ag(T14, half17_in_aa(T14, s(s(T31))))
U37_ag(T14, half17_out_aa(T14, s(s(T31)))) → U38_ag(T14, half17_in_ga(T31, s(s(T40))))
U38_ag(T14, half17_out_ga(T31, s(s(T40)))) → U39_ag(T14, half17_in_ga(T40, s(s(T49))))
U39_ag(T14, half17_out_ga(T40, s(s(T49)))) → U40_ag(T14, half17_in_ga(T49, s(s(T58))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U41_ag(T14, half17_in_gg(T58, 0))
U41_ag(T14, half17_out_gg(T58, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U42_ag(T14, half17_in_gg(T58, s(0)))
U42_ag(T14, half17_out_gg(T58, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
log21_in_ag(s(s(T14)), T68) → U43_ag(T14, T68, half17_in_aa(T14, s(s(T31))))
U43_ag(T14, T68, half17_out_aa(T14, s(s(T31)))) → U44_ag(T14, T68, half17_in_ga(T31, s(s(T40))))
U44_ag(T14, T68, half17_out_ga(T31, s(s(T40)))) → U45_ag(T14, T68, half17_in_ga(T40, s(s(T49))))
U45_ag(T14, T68, half17_out_ga(T40, s(s(T49)))) → U46_ag(T14, T68, half17_in_ga(T49, s(s(T58))))
U46_ag(T14, T68, half17_out_ga(T49, s(s(T58)))) → U47_ag(T14, T68, half17_in_ga(T58, s(s(T67))))
U47_ag(T14, T68, half17_out_ga(T58, s(s(T67)))) → U48_ag(T14, T68, half17_in_ga(T67, X218))
U48_ag(T14, T68, half17_out_ga(T67, X218)) → log21_out_ag(s(s(T14)), T68)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(0))))))) → U49_ag(T14, half17_in_aa(T14, s(s(T31))))
U49_ag(T14, half17_out_aa(T14, s(s(T31)))) → U50_ag(T14, half17_in_ga(T31, s(s(T40))))
U50_ag(T14, half17_out_ga(T31, s(s(T40)))) → U51_ag(T14, half17_in_ga(T40, s(s(T49))))
U51_ag(T14, half17_out_ga(T40, s(s(T49)))) → U52_ag(T14, half17_in_ga(T49, s(s(T58))))
U52_ag(T14, half17_out_ga(T49, s(s(T58)))) → U53_ag(T14, half17_in_ga(T58, s(s(T67))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U54_ag(T14, half17_in_gg(T67, 0))
U54_ag(T14, half17_out_gg(T67, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U55_ag(T14, half17_in_gg(T67, s(0)))
U55_ag(T14, half17_out_gg(T67, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
log21_in_ag(s(s(T14)), T77) → U56_ag(T14, T77, half17_in_aa(T14, s(s(T31))))
U56_ag(T14, T77, half17_out_aa(T14, s(s(T31)))) → U57_ag(T14, T77, half17_in_ga(T31, s(s(T40))))
U57_ag(T14, T77, half17_out_ga(T31, s(s(T40)))) → U58_ag(T14, T77, half17_in_ga(T40, s(s(T49))))
U58_ag(T14, T77, half17_out_ga(T40, s(s(T49)))) → U59_ag(T14, T77, half17_in_ga(T49, s(s(T58))))
U59_ag(T14, T77, half17_out_ga(T49, s(s(T58)))) → U60_ag(T14, T77, half17_in_ga(T58, s(s(T67))))
U60_ag(T14, T77, half17_out_ga(T58, s(s(T67)))) → U61_ag(T14, T77, half17_in_ga(T67, s(s(T76))))
U61_ag(T14, T77, half17_out_ga(T67, s(s(T76)))) → U62_ag(T14, T77, half17_in_ga(T76, X252))
U62_ag(T14, T77, half17_out_ga(T76, X252)) → log21_out_ag(s(s(T14)), T77)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → U63_ag(T14, half17_in_aa(T14, s(s(T31))))
U63_ag(T14, half17_out_aa(T14, s(s(T31)))) → U64_ag(T14, half17_in_ga(T31, s(s(T40))))
U64_ag(T14, half17_out_ga(T31, s(s(T40)))) → U65_ag(T14, half17_in_ga(T40, s(s(T49))))
U65_ag(T14, half17_out_ga(T40, s(s(T49)))) → U66_ag(T14, half17_in_ga(T49, s(s(T58))))
U66_ag(T14, half17_out_ga(T49, s(s(T58)))) → U67_ag(T14, half17_in_ga(T58, s(s(T67))))
U67_ag(T14, half17_out_ga(T58, s(s(T67)))) → U68_ag(T14, half17_in_ga(T67, s(s(T76))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U69_ag(T14, half17_in_gg(T76, 0))
U69_ag(T14, half17_out_gg(T76, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U70_ag(T14, half17_in_gg(T76, s(0)))
U70_ag(T14, half17_out_gg(T76, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
log21_in_ag(s(s(T14)), T86) → U71_ag(T14, T86, half17_in_aa(T14, s(s(T31))))
U71_ag(T14, T86, half17_out_aa(T14, s(s(T31)))) → U72_ag(T14, T86, half17_in_ga(T31, s(s(T40))))
U72_ag(T14, T86, half17_out_ga(T31, s(s(T40)))) → U73_ag(T14, T86, half17_in_ga(T40, s(s(T49))))
U73_ag(T14, T86, half17_out_ga(T40, s(s(T49)))) → U74_ag(T14, T86, half17_in_ga(T49, s(s(T58))))
U74_ag(T14, T86, half17_out_ga(T49, s(s(T58)))) → U75_ag(T14, T86, half17_in_ga(T58, s(s(T67))))
U75_ag(T14, T86, half17_out_ga(T58, s(s(T67)))) → U76_ag(T14, T86, half17_in_ga(T67, s(s(T76))))
U76_ag(T14, T86, half17_out_ga(T67, s(s(T76)))) → U77_ag(T14, T86, half17_in_ga(T76, s(s(T85))))
U77_ag(T14, T86, half17_out_ga(T76, s(s(T85)))) → U78_ag(T14, T86, p139_in_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86))
p139_in_gagg(T85, X286, T88, T86) → U3_gagg(T85, X286, T88, T86, half17_in_ga(T85, X286))
U3_gagg(T85, X286, T88, T86, half17_out_ga(T85, X286)) → p139_out_gagg(T85, X286, T88, T86)
p139_in_gagg(T85, 0, T98, s(T98)) → U4_gagg(T85, T98, half17_in_gg(T85, 0))
U4_gagg(T85, T98, half17_out_gg(T85, 0)) → p139_out_gagg(T85, 0, T98, s(T98))
p139_in_gagg(T85, s(0), T103, s(T103)) → U5_gagg(T85, T103, half17_in_gg(T85, s(0)))
U5_gagg(T85, T103, half17_out_gg(T85, s(0))) → p139_out_gagg(T85, s(0), T103, s(T103))
p139_in_gagg(T85, s(s(T110)), T111, T112) → U6_gagg(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
U6_gagg(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → U7_gagg(T85, T110, T111, T112, p139_in_gagg(T110, X323, s(T111), T112))
U7_gagg(T85, T110, T111, T112, p139_out_gagg(T110, X323, s(T111), T112)) → p139_out_gagg(T85, s(s(T110)), T111, T112)
U78_ag(T14, T86, p139_out_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86)) → log21_out_ag(s(s(T14)), T86)

The argument filtering Pi contains the following mapping:
log21_in_ag(x1, x2)  =  log21_in_ag(x2)
0  =  0
log21_out_ag(x1, x2)  =  log21_out_ag(x1, x2)
U8_ag(x1, x2, x3)  =  U8_ag(x2, x3)
half17_in_aa(x1, x2)  =  half17_in_aa
U2_aa(x1, x2, x3)  =  U2_aa(x3)
half22_in_aa(x1, x2)  =  half22_in_aa
half22_out_aa(x1, x2)  =  half22_out_aa(x1, x2)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
half17_out_aa(x1, x2)  =  half17_out_aa(x1, x2)
s(x1)  =  s(x1)
U9_ag(x1, x2)  =  U9_ag(x2)
half17_in_ag(x1, x2)  =  half17_in_ag(x2)
U2_ag(x1, x2, x3)  =  U2_ag(x2, x3)
half22_in_ag(x1, x2)  =  half22_in_ag(x2)
half22_out_ag(x1, x2)  =  half22_out_ag(x1, x2)
U1_ag(x1, x2, x3)  =  U1_ag(x2, x3)
half17_out_ag(x1, x2)  =  half17_out_ag(x1, x2)
U10_ag(x1, x2)  =  U10_ag(x2)
U11_ag(x1, x2, x3)  =  U11_ag(x2, x3)
U12_ag(x1, x2, x3)  =  U12_ag(x1, x2, x3)
half17_in_ga(x1, x2)  =  half17_in_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x1, x3)
half22_in_ga(x1, x2)  =  half22_in_ga(x1)
half22_out_ga(x1, x2)  =  half22_out_ga(x1, x2)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
half17_out_ga(x1, x2)  =  half17_out_ga(x1, x2)
U13_ag(x1, x2)  =  U13_ag(x2)
U14_ag(x1, x2)  =  U14_ag(x1, x2)
half17_in_gg(x1, x2)  =  half17_in_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x1, x2, x3)
half22_in_gg(x1, x2)  =  half22_in_gg(x1, x2)
half22_out_gg(x1, x2)  =  half22_out_gg(x1, x2)
U1_gg(x1, x2, x3)  =  U1_gg(x1, x2, x3)
half17_out_gg(x1, x2)  =  half17_out_gg(x1, x2)
U15_ag(x1, x2)  =  U15_ag(x1, x2)
U16_ag(x1, x2, x3)  =  U16_ag(x2, x3)
U17_ag(x1, x2, x3)  =  U17_ag(x1, x2, x3)
U18_ag(x1, x2, x3)  =  U18_ag(x1, x2, x3)
U19_ag(x1, x2)  =  U19_ag(x2)
U20_ag(x1, x2)  =  U20_ag(x1, x2)
U21_ag(x1, x2)  =  U21_ag(x1, x2)
U22_ag(x1, x2)  =  U22_ag(x1, x2)
U23_ag(x1, x2, x3)  =  U23_ag(x2, x3)
U24_ag(x1, x2, x3)  =  U24_ag(x1, x2, x3)
U25_ag(x1, x2, x3)  =  U25_ag(x1, x2, x3)
U26_ag(x1, x2, x3)  =  U26_ag(x1, x2, x3)
U27_ag(x1, x2)  =  U27_ag(x2)
U28_ag(x1, x2)  =  U28_ag(x1, x2)
U29_ag(x1, x2)  =  U29_ag(x1, x2)
U30_ag(x1, x2)  =  U30_ag(x1, x2)
U31_ag(x1, x2)  =  U31_ag(x1, x2)
U32_ag(x1, x2, x3)  =  U32_ag(x2, x3)
U33_ag(x1, x2, x3)  =  U33_ag(x1, x2, x3)
U34_ag(x1, x2, x3)  =  U34_ag(x1, x2, x3)
U35_ag(x1, x2, x3)  =  U35_ag(x1, x2, x3)
U36_ag(x1, x2, x3)  =  U36_ag(x1, x2, x3)
U37_ag(x1, x2)  =  U37_ag(x2)
U38_ag(x1, x2)  =  U38_ag(x1, x2)
U39_ag(x1, x2)  =  U39_ag(x1, x2)
U40_ag(x1, x2)  =  U40_ag(x1, x2)
U41_ag(x1, x2)  =  U41_ag(x1, x2)
U42_ag(x1, x2)  =  U42_ag(x1, x2)
U43_ag(x1, x2, x3)  =  U43_ag(x2, x3)
U44_ag(x1, x2, x3)  =  U44_ag(x1, x2, x3)
U45_ag(x1, x2, x3)  =  U45_ag(x1, x2, x3)
U46_ag(x1, x2, x3)  =  U46_ag(x1, x2, x3)
U47_ag(x1, x2, x3)  =  U47_ag(x1, x2, x3)
U48_ag(x1, x2, x3)  =  U48_ag(x1, x2, x3)
U49_ag(x1, x2)  =  U49_ag(x2)
U50_ag(x1, x2)  =  U50_ag(x1, x2)
U51_ag(x1, x2)  =  U51_ag(x1, x2)
U52_ag(x1, x2)  =  U52_ag(x1, x2)
U53_ag(x1, x2)  =  U53_ag(x1, x2)
U54_ag(x1, x2)  =  U54_ag(x1, x2)
U55_ag(x1, x2)  =  U55_ag(x1, x2)
U56_ag(x1, x2, x3)  =  U56_ag(x2, x3)
U57_ag(x1, x2, x3)  =  U57_ag(x1, x2, x3)
U58_ag(x1, x2, x3)  =  U58_ag(x1, x2, x3)
U59_ag(x1, x2, x3)  =  U59_ag(x1, x2, x3)
U60_ag(x1, x2, x3)  =  U60_ag(x1, x2, x3)
U61_ag(x1, x2, x3)  =  U61_ag(x1, x2, x3)
U62_ag(x1, x2, x3)  =  U62_ag(x1, x2, x3)
U63_ag(x1, x2)  =  U63_ag(x2)
U64_ag(x1, x2)  =  U64_ag(x1, x2)
U65_ag(x1, x2)  =  U65_ag(x1, x2)
U66_ag(x1, x2)  =  U66_ag(x1, x2)
U67_ag(x1, x2)  =  U67_ag(x1, x2)
U68_ag(x1, x2)  =  U68_ag(x1, x2)
U69_ag(x1, x2)  =  U69_ag(x1, x2)
U70_ag(x1, x2)  =  U70_ag(x1, x2)
U71_ag(x1, x2, x3)  =  U71_ag(x2, x3)
U72_ag(x1, x2, x3)  =  U72_ag(x1, x2, x3)
U73_ag(x1, x2, x3)  =  U73_ag(x1, x2, x3)
U74_ag(x1, x2, x3)  =  U74_ag(x1, x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x1, x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x1, x2, x3)
U77_ag(x1, x2, x3)  =  U77_ag(x1, x2, x3)
U78_ag(x1, x2, x3)  =  U78_ag(x1, x2, x3)
p139_in_gagg(x1, x2, x3, x4)  =  p139_in_gagg(x1, x3, x4)
U3_gagg(x1, x2, x3, x4, x5)  =  U3_gagg(x1, x3, x4, x5)
p139_out_gagg(x1, x2, x3, x4)  =  p139_out_gagg(x1, x2, x3, x4)
U4_gagg(x1, x2, x3)  =  U4_gagg(x1, x2, x3)
U5_gagg(x1, x2, x3)  =  U5_gagg(x1, x2, x3)
U6_gagg(x1, x2, x3, x4, x5)  =  U6_gagg(x1, x3, x4, x5)
U7_gagg(x1, x2, x3, x4, x5)  =  U7_gagg(x1, x2, x3, x4, x5)

(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:

LOG21_IN_AG(s(s(T14)), T13) → U8_AG(T14, T13, half17_in_aa(T14, X28))
LOG21_IN_AG(s(s(T14)), T13) → HALF17_IN_AA(T14, X28)
HALF17_IN_AA(T22, s(X46)) → U2_AA(T22, X46, half22_in_aa(T22, X46))
HALF17_IN_AA(T22, s(X46)) → HALF22_IN_AA(T22, X46)
HALF22_IN_AA(s(s(T26)), s(X55)) → U1_AA(T26, X55, half22_in_aa(T26, X55))
HALF22_IN_AA(s(s(T26)), s(X55)) → HALF22_IN_AA(T26, X55)
LOG21_IN_AG(s(s(T14)), s(0)) → U9_AG(T14, half17_in_ag(T14, 0))
LOG21_IN_AG(s(s(T14)), s(0)) → HALF17_IN_AG(T14, 0)
HALF17_IN_AG(T22, s(X46)) → U2_AG(T22, X46, half22_in_ag(T22, X46))
HALF17_IN_AG(T22, s(X46)) → HALF22_IN_AG(T22, X46)
HALF22_IN_AG(s(s(T26)), s(X55)) → U1_AG(T26, X55, half22_in_ag(T26, X55))
HALF22_IN_AG(s(s(T26)), s(X55)) → HALF22_IN_AG(T26, X55)
LOG21_IN_AG(s(s(T14)), s(0)) → U10_AG(T14, half17_in_ag(T14, s(0)))
LOG21_IN_AG(s(s(T14)), s(0)) → HALF17_IN_AG(T14, s(0))
LOG21_IN_AG(s(s(T14)), T32) → U11_AG(T14, T32, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), T32) → HALF17_IN_AA(T14, s(s(T31)))
U11_AG(T14, T32, half17_out_aa(T14, s(s(T31)))) → U12_AG(T14, T32, half17_in_ga(T31, X82))
U11_AG(T14, T32, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, X82)
HALF17_IN_GA(T22, s(X46)) → U2_GA(T22, X46, half22_in_ga(T22, X46))
HALF17_IN_GA(T22, s(X46)) → HALF22_IN_GA(T22, X46)
HALF22_IN_GA(s(s(T26)), s(X55)) → U1_GA(T26, X55, half22_in_ga(T26, X55))
HALF22_IN_GA(s(s(T26)), s(X55)) → HALF22_IN_GA(T26, X55)
LOG21_IN_AG(s(s(T14)), s(s(0))) → U13_AG(T14, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), s(s(0))) → HALF17_IN_AA(T14, s(s(T31)))
U13_AG(T14, half17_out_aa(T14, s(s(T31)))) → U14_AG(T14, half17_in_gg(T31, 0))
U13_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GG(T31, 0)
HALF17_IN_GG(T22, s(X46)) → U2_GG(T22, X46, half22_in_gg(T22, X46))
HALF17_IN_GG(T22, s(X46)) → HALF22_IN_GG(T22, X46)
HALF22_IN_GG(s(s(T26)), s(X55)) → U1_GG(T26, X55, half22_in_gg(T26, X55))
HALF22_IN_GG(s(s(T26)), s(X55)) → HALF22_IN_GG(T26, X55)
U13_AG(T14, half17_out_aa(T14, s(s(T31)))) → U15_AG(T14, half17_in_gg(T31, s(0)))
U13_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GG(T31, s(0))
LOG21_IN_AG(s(s(T14)), T41) → U16_AG(T14, T41, half17_in_aa(T14, s(s(T31))))
U16_AG(T14, T41, half17_out_aa(T14, s(s(T31)))) → U17_AG(T14, T41, half17_in_ga(T31, s(s(T40))))
U16_AG(T14, T41, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U17_AG(T14, T41, half17_out_ga(T31, s(s(T40)))) → U18_AG(T14, T41, half17_in_ga(T40, X116))
U17_AG(T14, T41, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, X116)
LOG21_IN_AG(s(s(T14)), s(s(s(0)))) → U19_AG(T14, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), s(s(s(0)))) → HALF17_IN_AA(T14, s(s(T31)))
U19_AG(T14, half17_out_aa(T14, s(s(T31)))) → U20_AG(T14, half17_in_ga(T31, s(s(T40))))
U19_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U20_AG(T14, half17_out_ga(T31, s(s(T40)))) → U21_AG(T14, half17_in_gg(T40, 0))
U20_AG(T14, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GG(T40, 0)
U20_AG(T14, half17_out_ga(T31, s(s(T40)))) → U22_AG(T14, half17_in_gg(T40, s(0)))
U20_AG(T14, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GG(T40, s(0))
LOG21_IN_AG(s(s(T14)), T50) → U23_AG(T14, T50, half17_in_aa(T14, s(s(T31))))
U23_AG(T14, T50, half17_out_aa(T14, s(s(T31)))) → U24_AG(T14, T50, half17_in_ga(T31, s(s(T40))))
U23_AG(T14, T50, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U24_AG(T14, T50, half17_out_ga(T31, s(s(T40)))) → U25_AG(T14, T50, half17_in_ga(T40, s(s(T49))))
U24_AG(T14, T50, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U25_AG(T14, T50, half17_out_ga(T40, s(s(T49)))) → U26_AG(T14, T50, half17_in_ga(T49, X150))
U25_AG(T14, T50, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, X150)
LOG21_IN_AG(s(s(T14)), s(s(s(s(0))))) → U27_AG(T14, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), s(s(s(s(0))))) → HALF17_IN_AA(T14, s(s(T31)))
U27_AG(T14, half17_out_aa(T14, s(s(T31)))) → U28_AG(T14, half17_in_ga(T31, s(s(T40))))
U27_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U28_AG(T14, half17_out_ga(T31, s(s(T40)))) → U29_AG(T14, half17_in_ga(T40, s(s(T49))))
U28_AG(T14, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U29_AG(T14, half17_out_ga(T40, s(s(T49)))) → U30_AG(T14, half17_in_gg(T49, 0))
U29_AG(T14, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GG(T49, 0)
U29_AG(T14, half17_out_ga(T40, s(s(T49)))) → U31_AG(T14, half17_in_gg(T49, s(0)))
U29_AG(T14, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GG(T49, s(0))
LOG21_IN_AG(s(s(T14)), T59) → U32_AG(T14, T59, half17_in_aa(T14, s(s(T31))))
U32_AG(T14, T59, half17_out_aa(T14, s(s(T31)))) → U33_AG(T14, T59, half17_in_ga(T31, s(s(T40))))
U32_AG(T14, T59, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U33_AG(T14, T59, half17_out_ga(T31, s(s(T40)))) → U34_AG(T14, T59, half17_in_ga(T40, s(s(T49))))
U33_AG(T14, T59, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U34_AG(T14, T59, half17_out_ga(T40, s(s(T49)))) → U35_AG(T14, T59, half17_in_ga(T49, s(s(T58))))
U34_AG(T14, T59, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U35_AG(T14, T59, half17_out_ga(T49, s(s(T58)))) → U36_AG(T14, T59, half17_in_ga(T58, X184))
U35_AG(T14, T59, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GA(T58, X184)
LOG21_IN_AG(s(s(T14)), s(s(s(s(s(0)))))) → U37_AG(T14, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), s(s(s(s(s(0)))))) → HALF17_IN_AA(T14, s(s(T31)))
U37_AG(T14, half17_out_aa(T14, s(s(T31)))) → U38_AG(T14, half17_in_ga(T31, s(s(T40))))
U37_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U38_AG(T14, half17_out_ga(T31, s(s(T40)))) → U39_AG(T14, half17_in_ga(T40, s(s(T49))))
U38_AG(T14, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U39_AG(T14, half17_out_ga(T40, s(s(T49)))) → U40_AG(T14, half17_in_ga(T49, s(s(T58))))
U39_AG(T14, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U40_AG(T14, half17_out_ga(T49, s(s(T58)))) → U41_AG(T14, half17_in_gg(T58, 0))
U40_AG(T14, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GG(T58, 0)
U40_AG(T14, half17_out_ga(T49, s(s(T58)))) → U42_AG(T14, half17_in_gg(T58, s(0)))
U40_AG(T14, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GG(T58, s(0))
LOG21_IN_AG(s(s(T14)), T68) → U43_AG(T14, T68, half17_in_aa(T14, s(s(T31))))
U43_AG(T14, T68, half17_out_aa(T14, s(s(T31)))) → U44_AG(T14, T68, half17_in_ga(T31, s(s(T40))))
U43_AG(T14, T68, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U44_AG(T14, T68, half17_out_ga(T31, s(s(T40)))) → U45_AG(T14, T68, half17_in_ga(T40, s(s(T49))))
U44_AG(T14, T68, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U45_AG(T14, T68, half17_out_ga(T40, s(s(T49)))) → U46_AG(T14, T68, half17_in_ga(T49, s(s(T58))))
U45_AG(T14, T68, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U46_AG(T14, T68, half17_out_ga(T49, s(s(T58)))) → U47_AG(T14, T68, half17_in_ga(T58, s(s(T67))))
U46_AG(T14, T68, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GA(T58, s(s(T67)))
U47_AG(T14, T68, half17_out_ga(T58, s(s(T67)))) → U48_AG(T14, T68, half17_in_ga(T67, X218))
U47_AG(T14, T68, half17_out_ga(T58, s(s(T67)))) → HALF17_IN_GA(T67, X218)
LOG21_IN_AG(s(s(T14)), s(s(s(s(s(s(0))))))) → U49_AG(T14, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), s(s(s(s(s(s(0))))))) → HALF17_IN_AA(T14, s(s(T31)))
U49_AG(T14, half17_out_aa(T14, s(s(T31)))) → U50_AG(T14, half17_in_ga(T31, s(s(T40))))
U49_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U50_AG(T14, half17_out_ga(T31, s(s(T40)))) → U51_AG(T14, half17_in_ga(T40, s(s(T49))))
U50_AG(T14, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U51_AG(T14, half17_out_ga(T40, s(s(T49)))) → U52_AG(T14, half17_in_ga(T49, s(s(T58))))
U51_AG(T14, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U52_AG(T14, half17_out_ga(T49, s(s(T58)))) → U53_AG(T14, half17_in_ga(T58, s(s(T67))))
U52_AG(T14, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GA(T58, s(s(T67)))
U53_AG(T14, half17_out_ga(T58, s(s(T67)))) → U54_AG(T14, half17_in_gg(T67, 0))
U53_AG(T14, half17_out_ga(T58, s(s(T67)))) → HALF17_IN_GG(T67, 0)
U53_AG(T14, half17_out_ga(T58, s(s(T67)))) → U55_AG(T14, half17_in_gg(T67, s(0)))
U53_AG(T14, half17_out_ga(T58, s(s(T67)))) → HALF17_IN_GG(T67, s(0))
LOG21_IN_AG(s(s(T14)), T77) → U56_AG(T14, T77, half17_in_aa(T14, s(s(T31))))
U56_AG(T14, T77, half17_out_aa(T14, s(s(T31)))) → U57_AG(T14, T77, half17_in_ga(T31, s(s(T40))))
U56_AG(T14, T77, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U57_AG(T14, T77, half17_out_ga(T31, s(s(T40)))) → U58_AG(T14, T77, half17_in_ga(T40, s(s(T49))))
U57_AG(T14, T77, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U58_AG(T14, T77, half17_out_ga(T40, s(s(T49)))) → U59_AG(T14, T77, half17_in_ga(T49, s(s(T58))))
U58_AG(T14, T77, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U59_AG(T14, T77, half17_out_ga(T49, s(s(T58)))) → U60_AG(T14, T77, half17_in_ga(T58, s(s(T67))))
U59_AG(T14, T77, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GA(T58, s(s(T67)))
U60_AG(T14, T77, half17_out_ga(T58, s(s(T67)))) → U61_AG(T14, T77, half17_in_ga(T67, s(s(T76))))
U60_AG(T14, T77, half17_out_ga(T58, s(s(T67)))) → HALF17_IN_GA(T67, s(s(T76)))
U61_AG(T14, T77, half17_out_ga(T67, s(s(T76)))) → U62_AG(T14, T77, half17_in_ga(T76, X252))
U61_AG(T14, T77, half17_out_ga(T67, s(s(T76)))) → HALF17_IN_GA(T76, X252)
LOG21_IN_AG(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → U63_AG(T14, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → HALF17_IN_AA(T14, s(s(T31)))
U63_AG(T14, half17_out_aa(T14, s(s(T31)))) → U64_AG(T14, half17_in_ga(T31, s(s(T40))))
U63_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U64_AG(T14, half17_out_ga(T31, s(s(T40)))) → U65_AG(T14, half17_in_ga(T40, s(s(T49))))
U64_AG(T14, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U65_AG(T14, half17_out_ga(T40, s(s(T49)))) → U66_AG(T14, half17_in_ga(T49, s(s(T58))))
U65_AG(T14, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U66_AG(T14, half17_out_ga(T49, s(s(T58)))) → U67_AG(T14, half17_in_ga(T58, s(s(T67))))
U66_AG(T14, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GA(T58, s(s(T67)))
U67_AG(T14, half17_out_ga(T58, s(s(T67)))) → U68_AG(T14, half17_in_ga(T67, s(s(T76))))
U67_AG(T14, half17_out_ga(T58, s(s(T67)))) → HALF17_IN_GA(T67, s(s(T76)))
U68_AG(T14, half17_out_ga(T67, s(s(T76)))) → U69_AG(T14, half17_in_gg(T76, 0))
U68_AG(T14, half17_out_ga(T67, s(s(T76)))) → HALF17_IN_GG(T76, 0)
U68_AG(T14, half17_out_ga(T67, s(s(T76)))) → U70_AG(T14, half17_in_gg(T76, s(0)))
U68_AG(T14, half17_out_ga(T67, s(s(T76)))) → HALF17_IN_GG(T76, s(0))
LOG21_IN_AG(s(s(T14)), T86) → U71_AG(T14, T86, half17_in_aa(T14, s(s(T31))))
U71_AG(T14, T86, half17_out_aa(T14, s(s(T31)))) → U72_AG(T14, T86, half17_in_ga(T31, s(s(T40))))
U71_AG(T14, T86, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U72_AG(T14, T86, half17_out_ga(T31, s(s(T40)))) → U73_AG(T14, T86, half17_in_ga(T40, s(s(T49))))
U72_AG(T14, T86, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U73_AG(T14, T86, half17_out_ga(T40, s(s(T49)))) → U74_AG(T14, T86, half17_in_ga(T49, s(s(T58))))
U73_AG(T14, T86, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U74_AG(T14, T86, half17_out_ga(T49, s(s(T58)))) → U75_AG(T14, T86, half17_in_ga(T58, s(s(T67))))
U74_AG(T14, T86, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GA(T58, s(s(T67)))
U75_AG(T14, T86, half17_out_ga(T58, s(s(T67)))) → U76_AG(T14, T86, half17_in_ga(T67, s(s(T76))))
U75_AG(T14, T86, half17_out_ga(T58, s(s(T67)))) → HALF17_IN_GA(T67, s(s(T76)))
U76_AG(T14, T86, half17_out_ga(T67, s(s(T76)))) → U77_AG(T14, T86, half17_in_ga(T76, s(s(T85))))
U76_AG(T14, T86, half17_out_ga(T67, s(s(T76)))) → HALF17_IN_GA(T76, s(s(T85)))
U77_AG(T14, T86, half17_out_ga(T76, s(s(T85)))) → U78_AG(T14, T86, p139_in_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86))
U77_AG(T14, T86, half17_out_ga(T76, s(s(T85)))) → P139_IN_GAGG(T85, X286, s(s(s(s(s(s(s(0))))))), T86)
P139_IN_GAGG(T85, X286, T88, T86) → U3_GAGG(T85, X286, T88, T86, half17_in_ga(T85, X286))
P139_IN_GAGG(T85, X286, T88, T86) → HALF17_IN_GA(T85, X286)
P139_IN_GAGG(T85, 0, T98, s(T98)) → U4_GAGG(T85, T98, half17_in_gg(T85, 0))
P139_IN_GAGG(T85, 0, T98, s(T98)) → HALF17_IN_GG(T85, 0)
P139_IN_GAGG(T85, s(0), T103, s(T103)) → U5_GAGG(T85, T103, half17_in_gg(T85, s(0)))
P139_IN_GAGG(T85, s(0), T103, s(T103)) → HALF17_IN_GG(T85, s(0))
P139_IN_GAGG(T85, s(s(T110)), T111, T112) → U6_GAGG(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
P139_IN_GAGG(T85, s(s(T110)), T111, T112) → HALF17_IN_GA(T85, s(s(T110)))
U6_GAGG(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → U7_GAGG(T85, T110, T111, T112, p139_in_gagg(T110, X323, s(T111), T112))
U6_GAGG(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → P139_IN_GAGG(T110, X323, s(T111), T112)

The TRS R consists of the following rules:

log21_in_ag(0, 0) → log21_out_ag(0, 0)
log21_in_ag(s(0), 0) → log21_out_ag(s(0), 0)
log21_in_ag(s(s(T14)), T13) → U8_ag(T14, T13, half17_in_aa(T14, X28))
half17_in_aa(T22, s(X46)) → U2_aa(T22, X46, half22_in_aa(T22, X46))
half22_in_aa(0, 0) → half22_out_aa(0, 0)
half22_in_aa(s(0), 0) → half22_out_aa(s(0), 0)
half22_in_aa(s(s(T26)), s(X55)) → U1_aa(T26, X55, half22_in_aa(T26, X55))
U1_aa(T26, X55, half22_out_aa(T26, X55)) → half22_out_aa(s(s(T26)), s(X55))
U2_aa(T22, X46, half22_out_aa(T22, X46)) → half17_out_aa(T22, s(X46))
U8_ag(T14, T13, half17_out_aa(T14, X28)) → log21_out_ag(s(s(T14)), T13)
log21_in_ag(s(s(T14)), s(0)) → U9_ag(T14, half17_in_ag(T14, 0))
half17_in_ag(T22, s(X46)) → U2_ag(T22, X46, half22_in_ag(T22, X46))
half22_in_ag(0, 0) → half22_out_ag(0, 0)
half22_in_ag(s(0), 0) → half22_out_ag(s(0), 0)
half22_in_ag(s(s(T26)), s(X55)) → U1_ag(T26, X55, half22_in_ag(T26, X55))
U1_ag(T26, X55, half22_out_ag(T26, X55)) → half22_out_ag(s(s(T26)), s(X55))
U2_ag(T22, X46, half22_out_ag(T22, X46)) → half17_out_ag(T22, s(X46))
U9_ag(T14, half17_out_ag(T14, 0)) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), s(0)) → U10_ag(T14, half17_in_ag(T14, s(0)))
U10_ag(T14, half17_out_ag(T14, s(0))) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), T32) → U11_ag(T14, T32, half17_in_aa(T14, s(s(T31))))
U11_ag(T14, T32, half17_out_aa(T14, s(s(T31)))) → U12_ag(T14, T32, half17_in_ga(T31, X82))
half17_in_ga(T22, s(X46)) → U2_ga(T22, X46, half22_in_ga(T22, X46))
half22_in_ga(0, 0) → half22_out_ga(0, 0)
half22_in_ga(s(0), 0) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26)), s(X55)) → U1_ga(T26, X55, half22_in_ga(T26, X55))
U1_ga(T26, X55, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))
U2_ga(T22, X46, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
U12_ag(T14, T32, half17_out_ga(T31, X82)) → log21_out_ag(s(s(T14)), T32)
log21_in_ag(s(s(T14)), s(s(0))) → U13_ag(T14, half17_in_aa(T14, s(s(T31))))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U14_ag(T14, half17_in_gg(T31, 0))
half17_in_gg(T22, s(X46)) → U2_gg(T22, X46, half22_in_gg(T22, X46))
half22_in_gg(0, 0) → half22_out_gg(0, 0)
half22_in_gg(s(0), 0) → half22_out_gg(s(0), 0)
half22_in_gg(s(s(T26)), s(X55)) → U1_gg(T26, X55, half22_in_gg(T26, X55))
U1_gg(T26, X55, half22_out_gg(T26, X55)) → half22_out_gg(s(s(T26)), s(X55))
U2_gg(T22, X46, half22_out_gg(T22, X46)) → half17_out_gg(T22, s(X46))
U14_ag(T14, half17_out_gg(T31, 0)) → log21_out_ag(s(s(T14)), s(s(0)))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U15_ag(T14, half17_in_gg(T31, s(0)))
U15_ag(T14, half17_out_gg(T31, s(0))) → log21_out_ag(s(s(T14)), s(s(0)))
log21_in_ag(s(s(T14)), T41) → U16_ag(T14, T41, half17_in_aa(T14, s(s(T31))))
U16_ag(T14, T41, half17_out_aa(T14, s(s(T31)))) → U17_ag(T14, T41, half17_in_ga(T31, s(s(T40))))
U17_ag(T14, T41, half17_out_ga(T31, s(s(T40)))) → U18_ag(T14, T41, half17_in_ga(T40, X116))
U18_ag(T14, T41, half17_out_ga(T40, X116)) → log21_out_ag(s(s(T14)), T41)
log21_in_ag(s(s(T14)), s(s(s(0)))) → U19_ag(T14, half17_in_aa(T14, s(s(T31))))
U19_ag(T14, half17_out_aa(T14, s(s(T31)))) → U20_ag(T14, half17_in_ga(T31, s(s(T40))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U21_ag(T14, half17_in_gg(T40, 0))
U21_ag(T14, half17_out_gg(T40, 0)) → log21_out_ag(s(s(T14)), s(s(s(0))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U22_ag(T14, half17_in_gg(T40, s(0)))
U22_ag(T14, half17_out_gg(T40, s(0))) → log21_out_ag(s(s(T14)), s(s(s(0))))
log21_in_ag(s(s(T14)), T50) → U23_ag(T14, T50, half17_in_aa(T14, s(s(T31))))
U23_ag(T14, T50, half17_out_aa(T14, s(s(T31)))) → U24_ag(T14, T50, half17_in_ga(T31, s(s(T40))))
U24_ag(T14, T50, half17_out_ga(T31, s(s(T40)))) → U25_ag(T14, T50, half17_in_ga(T40, s(s(T49))))
U25_ag(T14, T50, half17_out_ga(T40, s(s(T49)))) → U26_ag(T14, T50, half17_in_ga(T49, X150))
U26_ag(T14, T50, half17_out_ga(T49, X150)) → log21_out_ag(s(s(T14)), T50)
log21_in_ag(s(s(T14)), s(s(s(s(0))))) → U27_ag(T14, half17_in_aa(T14, s(s(T31))))
U27_ag(T14, half17_out_aa(T14, s(s(T31)))) → U28_ag(T14, half17_in_ga(T31, s(s(T40))))
U28_ag(T14, half17_out_ga(T31, s(s(T40)))) → U29_ag(T14, half17_in_ga(T40, s(s(T49))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U30_ag(T14, half17_in_gg(T49, 0))
U30_ag(T14, half17_out_gg(T49, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U31_ag(T14, half17_in_gg(T49, s(0)))
U31_ag(T14, half17_out_gg(T49, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
log21_in_ag(s(s(T14)), T59) → U32_ag(T14, T59, half17_in_aa(T14, s(s(T31))))
U32_ag(T14, T59, half17_out_aa(T14, s(s(T31)))) → U33_ag(T14, T59, half17_in_ga(T31, s(s(T40))))
U33_ag(T14, T59, half17_out_ga(T31, s(s(T40)))) → U34_ag(T14, T59, half17_in_ga(T40, s(s(T49))))
U34_ag(T14, T59, half17_out_ga(T40, s(s(T49)))) → U35_ag(T14, T59, half17_in_ga(T49, s(s(T58))))
U35_ag(T14, T59, half17_out_ga(T49, s(s(T58)))) → U36_ag(T14, T59, half17_in_ga(T58, X184))
U36_ag(T14, T59, half17_out_ga(T58, X184)) → log21_out_ag(s(s(T14)), T59)
log21_in_ag(s(s(T14)), s(s(s(s(s(0)))))) → U37_ag(T14, half17_in_aa(T14, s(s(T31))))
U37_ag(T14, half17_out_aa(T14, s(s(T31)))) → U38_ag(T14, half17_in_ga(T31, s(s(T40))))
U38_ag(T14, half17_out_ga(T31, s(s(T40)))) → U39_ag(T14, half17_in_ga(T40, s(s(T49))))
U39_ag(T14, half17_out_ga(T40, s(s(T49)))) → U40_ag(T14, half17_in_ga(T49, s(s(T58))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U41_ag(T14, half17_in_gg(T58, 0))
U41_ag(T14, half17_out_gg(T58, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U42_ag(T14, half17_in_gg(T58, s(0)))
U42_ag(T14, half17_out_gg(T58, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
log21_in_ag(s(s(T14)), T68) → U43_ag(T14, T68, half17_in_aa(T14, s(s(T31))))
U43_ag(T14, T68, half17_out_aa(T14, s(s(T31)))) → U44_ag(T14, T68, half17_in_ga(T31, s(s(T40))))
U44_ag(T14, T68, half17_out_ga(T31, s(s(T40)))) → U45_ag(T14, T68, half17_in_ga(T40, s(s(T49))))
U45_ag(T14, T68, half17_out_ga(T40, s(s(T49)))) → U46_ag(T14, T68, half17_in_ga(T49, s(s(T58))))
U46_ag(T14, T68, half17_out_ga(T49, s(s(T58)))) → U47_ag(T14, T68, half17_in_ga(T58, s(s(T67))))
U47_ag(T14, T68, half17_out_ga(T58, s(s(T67)))) → U48_ag(T14, T68, half17_in_ga(T67, X218))
U48_ag(T14, T68, half17_out_ga(T67, X218)) → log21_out_ag(s(s(T14)), T68)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(0))))))) → U49_ag(T14, half17_in_aa(T14, s(s(T31))))
U49_ag(T14, half17_out_aa(T14, s(s(T31)))) → U50_ag(T14, half17_in_ga(T31, s(s(T40))))
U50_ag(T14, half17_out_ga(T31, s(s(T40)))) → U51_ag(T14, half17_in_ga(T40, s(s(T49))))
U51_ag(T14, half17_out_ga(T40, s(s(T49)))) → U52_ag(T14, half17_in_ga(T49, s(s(T58))))
U52_ag(T14, half17_out_ga(T49, s(s(T58)))) → U53_ag(T14, half17_in_ga(T58, s(s(T67))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U54_ag(T14, half17_in_gg(T67, 0))
U54_ag(T14, half17_out_gg(T67, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U55_ag(T14, half17_in_gg(T67, s(0)))
U55_ag(T14, half17_out_gg(T67, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
log21_in_ag(s(s(T14)), T77) → U56_ag(T14, T77, half17_in_aa(T14, s(s(T31))))
U56_ag(T14, T77, half17_out_aa(T14, s(s(T31)))) → U57_ag(T14, T77, half17_in_ga(T31, s(s(T40))))
U57_ag(T14, T77, half17_out_ga(T31, s(s(T40)))) → U58_ag(T14, T77, half17_in_ga(T40, s(s(T49))))
U58_ag(T14, T77, half17_out_ga(T40, s(s(T49)))) → U59_ag(T14, T77, half17_in_ga(T49, s(s(T58))))
U59_ag(T14, T77, half17_out_ga(T49, s(s(T58)))) → U60_ag(T14, T77, half17_in_ga(T58, s(s(T67))))
U60_ag(T14, T77, half17_out_ga(T58, s(s(T67)))) → U61_ag(T14, T77, half17_in_ga(T67, s(s(T76))))
U61_ag(T14, T77, half17_out_ga(T67, s(s(T76)))) → U62_ag(T14, T77, half17_in_ga(T76, X252))
U62_ag(T14, T77, half17_out_ga(T76, X252)) → log21_out_ag(s(s(T14)), T77)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → U63_ag(T14, half17_in_aa(T14, s(s(T31))))
U63_ag(T14, half17_out_aa(T14, s(s(T31)))) → U64_ag(T14, half17_in_ga(T31, s(s(T40))))
U64_ag(T14, half17_out_ga(T31, s(s(T40)))) → U65_ag(T14, half17_in_ga(T40, s(s(T49))))
U65_ag(T14, half17_out_ga(T40, s(s(T49)))) → U66_ag(T14, half17_in_ga(T49, s(s(T58))))
U66_ag(T14, half17_out_ga(T49, s(s(T58)))) → U67_ag(T14, half17_in_ga(T58, s(s(T67))))
U67_ag(T14, half17_out_ga(T58, s(s(T67)))) → U68_ag(T14, half17_in_ga(T67, s(s(T76))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U69_ag(T14, half17_in_gg(T76, 0))
U69_ag(T14, half17_out_gg(T76, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U70_ag(T14, half17_in_gg(T76, s(0)))
U70_ag(T14, half17_out_gg(T76, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
log21_in_ag(s(s(T14)), T86) → U71_ag(T14, T86, half17_in_aa(T14, s(s(T31))))
U71_ag(T14, T86, half17_out_aa(T14, s(s(T31)))) → U72_ag(T14, T86, half17_in_ga(T31, s(s(T40))))
U72_ag(T14, T86, half17_out_ga(T31, s(s(T40)))) → U73_ag(T14, T86, half17_in_ga(T40, s(s(T49))))
U73_ag(T14, T86, half17_out_ga(T40, s(s(T49)))) → U74_ag(T14, T86, half17_in_ga(T49, s(s(T58))))
U74_ag(T14, T86, half17_out_ga(T49, s(s(T58)))) → U75_ag(T14, T86, half17_in_ga(T58, s(s(T67))))
U75_ag(T14, T86, half17_out_ga(T58, s(s(T67)))) → U76_ag(T14, T86, half17_in_ga(T67, s(s(T76))))
U76_ag(T14, T86, half17_out_ga(T67, s(s(T76)))) → U77_ag(T14, T86, half17_in_ga(T76, s(s(T85))))
U77_ag(T14, T86, half17_out_ga(T76, s(s(T85)))) → U78_ag(T14, T86, p139_in_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86))
p139_in_gagg(T85, X286, T88, T86) → U3_gagg(T85, X286, T88, T86, half17_in_ga(T85, X286))
U3_gagg(T85, X286, T88, T86, half17_out_ga(T85, X286)) → p139_out_gagg(T85, X286, T88, T86)
p139_in_gagg(T85, 0, T98, s(T98)) → U4_gagg(T85, T98, half17_in_gg(T85, 0))
U4_gagg(T85, T98, half17_out_gg(T85, 0)) → p139_out_gagg(T85, 0, T98, s(T98))
p139_in_gagg(T85, s(0), T103, s(T103)) → U5_gagg(T85, T103, half17_in_gg(T85, s(0)))
U5_gagg(T85, T103, half17_out_gg(T85, s(0))) → p139_out_gagg(T85, s(0), T103, s(T103))
p139_in_gagg(T85, s(s(T110)), T111, T112) → U6_gagg(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
U6_gagg(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → U7_gagg(T85, T110, T111, T112, p139_in_gagg(T110, X323, s(T111), T112))
U7_gagg(T85, T110, T111, T112, p139_out_gagg(T110, X323, s(T111), T112)) → p139_out_gagg(T85, s(s(T110)), T111, T112)
U78_ag(T14, T86, p139_out_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86)) → log21_out_ag(s(s(T14)), T86)

The argument filtering Pi contains the following mapping:
log21_in_ag(x1, x2)  =  log21_in_ag(x2)
0  =  0
log21_out_ag(x1, x2)  =  log21_out_ag(x1, x2)
U8_ag(x1, x2, x3)  =  U8_ag(x2, x3)
half17_in_aa(x1, x2)  =  half17_in_aa
U2_aa(x1, x2, x3)  =  U2_aa(x3)
half22_in_aa(x1, x2)  =  half22_in_aa
half22_out_aa(x1, x2)  =  half22_out_aa(x1, x2)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
half17_out_aa(x1, x2)  =  half17_out_aa(x1, x2)
s(x1)  =  s(x1)
U9_ag(x1, x2)  =  U9_ag(x2)
half17_in_ag(x1, x2)  =  half17_in_ag(x2)
U2_ag(x1, x2, x3)  =  U2_ag(x2, x3)
half22_in_ag(x1, x2)  =  half22_in_ag(x2)
half22_out_ag(x1, x2)  =  half22_out_ag(x1, x2)
U1_ag(x1, x2, x3)  =  U1_ag(x2, x3)
half17_out_ag(x1, x2)  =  half17_out_ag(x1, x2)
U10_ag(x1, x2)  =  U10_ag(x2)
U11_ag(x1, x2, x3)  =  U11_ag(x2, x3)
U12_ag(x1, x2, x3)  =  U12_ag(x1, x2, x3)
half17_in_ga(x1, x2)  =  half17_in_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x1, x3)
half22_in_ga(x1, x2)  =  half22_in_ga(x1)
half22_out_ga(x1, x2)  =  half22_out_ga(x1, x2)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
half17_out_ga(x1, x2)  =  half17_out_ga(x1, x2)
U13_ag(x1, x2)  =  U13_ag(x2)
U14_ag(x1, x2)  =  U14_ag(x1, x2)
half17_in_gg(x1, x2)  =  half17_in_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x1, x2, x3)
half22_in_gg(x1, x2)  =  half22_in_gg(x1, x2)
half22_out_gg(x1, x2)  =  half22_out_gg(x1, x2)
U1_gg(x1, x2, x3)  =  U1_gg(x1, x2, x3)
half17_out_gg(x1, x2)  =  half17_out_gg(x1, x2)
U15_ag(x1, x2)  =  U15_ag(x1, x2)
U16_ag(x1, x2, x3)  =  U16_ag(x2, x3)
U17_ag(x1, x2, x3)  =  U17_ag(x1, x2, x3)
U18_ag(x1, x2, x3)  =  U18_ag(x1, x2, x3)
U19_ag(x1, x2)  =  U19_ag(x2)
U20_ag(x1, x2)  =  U20_ag(x1, x2)
U21_ag(x1, x2)  =  U21_ag(x1, x2)
U22_ag(x1, x2)  =  U22_ag(x1, x2)
U23_ag(x1, x2, x3)  =  U23_ag(x2, x3)
U24_ag(x1, x2, x3)  =  U24_ag(x1, x2, x3)
U25_ag(x1, x2, x3)  =  U25_ag(x1, x2, x3)
U26_ag(x1, x2, x3)  =  U26_ag(x1, x2, x3)
U27_ag(x1, x2)  =  U27_ag(x2)
U28_ag(x1, x2)  =  U28_ag(x1, x2)
U29_ag(x1, x2)  =  U29_ag(x1, x2)
U30_ag(x1, x2)  =  U30_ag(x1, x2)
U31_ag(x1, x2)  =  U31_ag(x1, x2)
U32_ag(x1, x2, x3)  =  U32_ag(x2, x3)
U33_ag(x1, x2, x3)  =  U33_ag(x1, x2, x3)
U34_ag(x1, x2, x3)  =  U34_ag(x1, x2, x3)
U35_ag(x1, x2, x3)  =  U35_ag(x1, x2, x3)
U36_ag(x1, x2, x3)  =  U36_ag(x1, x2, x3)
U37_ag(x1, x2)  =  U37_ag(x2)
U38_ag(x1, x2)  =  U38_ag(x1, x2)
U39_ag(x1, x2)  =  U39_ag(x1, x2)
U40_ag(x1, x2)  =  U40_ag(x1, x2)
U41_ag(x1, x2)  =  U41_ag(x1, x2)
U42_ag(x1, x2)  =  U42_ag(x1, x2)
U43_ag(x1, x2, x3)  =  U43_ag(x2, x3)
U44_ag(x1, x2, x3)  =  U44_ag(x1, x2, x3)
U45_ag(x1, x2, x3)  =  U45_ag(x1, x2, x3)
U46_ag(x1, x2, x3)  =  U46_ag(x1, x2, x3)
U47_ag(x1, x2, x3)  =  U47_ag(x1, x2, x3)
U48_ag(x1, x2, x3)  =  U48_ag(x1, x2, x3)
U49_ag(x1, x2)  =  U49_ag(x2)
U50_ag(x1, x2)  =  U50_ag(x1, x2)
U51_ag(x1, x2)  =  U51_ag(x1, x2)
U52_ag(x1, x2)  =  U52_ag(x1, x2)
U53_ag(x1, x2)  =  U53_ag(x1, x2)
U54_ag(x1, x2)  =  U54_ag(x1, x2)
U55_ag(x1, x2)  =  U55_ag(x1, x2)
U56_ag(x1, x2, x3)  =  U56_ag(x2, x3)
U57_ag(x1, x2, x3)  =  U57_ag(x1, x2, x3)
U58_ag(x1, x2, x3)  =  U58_ag(x1, x2, x3)
U59_ag(x1, x2, x3)  =  U59_ag(x1, x2, x3)
U60_ag(x1, x2, x3)  =  U60_ag(x1, x2, x3)
U61_ag(x1, x2, x3)  =  U61_ag(x1, x2, x3)
U62_ag(x1, x2, x3)  =  U62_ag(x1, x2, x3)
U63_ag(x1, x2)  =  U63_ag(x2)
U64_ag(x1, x2)  =  U64_ag(x1, x2)
U65_ag(x1, x2)  =  U65_ag(x1, x2)
U66_ag(x1, x2)  =  U66_ag(x1, x2)
U67_ag(x1, x2)  =  U67_ag(x1, x2)
U68_ag(x1, x2)  =  U68_ag(x1, x2)
U69_ag(x1, x2)  =  U69_ag(x1, x2)
U70_ag(x1, x2)  =  U70_ag(x1, x2)
U71_ag(x1, x2, x3)  =  U71_ag(x2, x3)
U72_ag(x1, x2, x3)  =  U72_ag(x1, x2, x3)
U73_ag(x1, x2, x3)  =  U73_ag(x1, x2, x3)
U74_ag(x1, x2, x3)  =  U74_ag(x1, x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x1, x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x1, x2, x3)
U77_ag(x1, x2, x3)  =  U77_ag(x1, x2, x3)
U78_ag(x1, x2, x3)  =  U78_ag(x1, x2, x3)
p139_in_gagg(x1, x2, x3, x4)  =  p139_in_gagg(x1, x3, x4)
U3_gagg(x1, x2, x3, x4, x5)  =  U3_gagg(x1, x3, x4, x5)
p139_out_gagg(x1, x2, x3, x4)  =  p139_out_gagg(x1, x2, x3, x4)
U4_gagg(x1, x2, x3)  =  U4_gagg(x1, x2, x3)
U5_gagg(x1, x2, x3)  =  U5_gagg(x1, x2, x3)
U6_gagg(x1, x2, x3, x4, x5)  =  U6_gagg(x1, x3, x4, x5)
U7_gagg(x1, x2, x3, x4, x5)  =  U7_gagg(x1, x2, x3, x4, x5)
LOG21_IN_AG(x1, x2)  =  LOG21_IN_AG(x2)
U8_AG(x1, x2, x3)  =  U8_AG(x2, x3)
HALF17_IN_AA(x1, x2)  =  HALF17_IN_AA
U2_AA(x1, x2, x3)  =  U2_AA(x3)
HALF22_IN_AA(x1, x2)  =  HALF22_IN_AA
U1_AA(x1, x2, x3)  =  U1_AA(x3)
U9_AG(x1, x2)  =  U9_AG(x2)
HALF17_IN_AG(x1, x2)  =  HALF17_IN_AG(x2)
U2_AG(x1, x2, x3)  =  U2_AG(x2, x3)
HALF22_IN_AG(x1, x2)  =  HALF22_IN_AG(x2)
U1_AG(x1, x2, x3)  =  U1_AG(x2, x3)
U10_AG(x1, x2)  =  U10_AG(x2)
U11_AG(x1, x2, x3)  =  U11_AG(x2, x3)
U12_AG(x1, x2, x3)  =  U12_AG(x1, x2, x3)
HALF17_IN_GA(x1, x2)  =  HALF17_IN_GA(x1)
U2_GA(x1, x2, x3)  =  U2_GA(x1, x3)
HALF22_IN_GA(x1, x2)  =  HALF22_IN_GA(x1)
U1_GA(x1, x2, x3)  =  U1_GA(x1, x3)
U13_AG(x1, x2)  =  U13_AG(x2)
U14_AG(x1, x2)  =  U14_AG(x1, x2)
HALF17_IN_GG(x1, x2)  =  HALF17_IN_GG(x1, x2)
U2_GG(x1, x2, x3)  =  U2_GG(x1, x2, x3)
HALF22_IN_GG(x1, x2)  =  HALF22_IN_GG(x1, x2)
U1_GG(x1, x2, x3)  =  U1_GG(x1, x2, x3)
U15_AG(x1, x2)  =  U15_AG(x1, x2)
U16_AG(x1, x2, x3)  =  U16_AG(x2, x3)
U17_AG(x1, x2, x3)  =  U17_AG(x1, x2, x3)
U18_AG(x1, x2, x3)  =  U18_AG(x1, x2, x3)
U19_AG(x1, x2)  =  U19_AG(x2)
U20_AG(x1, x2)  =  U20_AG(x1, x2)
U21_AG(x1, x2)  =  U21_AG(x1, x2)
U22_AG(x1, x2)  =  U22_AG(x1, x2)
U23_AG(x1, x2, x3)  =  U23_AG(x2, x3)
U24_AG(x1, x2, x3)  =  U24_AG(x1, x2, x3)
U25_AG(x1, x2, x3)  =  U25_AG(x1, x2, x3)
U26_AG(x1, x2, x3)  =  U26_AG(x1, x2, x3)
U27_AG(x1, x2)  =  U27_AG(x2)
U28_AG(x1, x2)  =  U28_AG(x1, x2)
U29_AG(x1, x2)  =  U29_AG(x1, x2)
U30_AG(x1, x2)  =  U30_AG(x1, x2)
U31_AG(x1, x2)  =  U31_AG(x1, x2)
U32_AG(x1, x2, x3)  =  U32_AG(x2, x3)
U33_AG(x1, x2, x3)  =  U33_AG(x1, x2, x3)
U34_AG(x1, x2, x3)  =  U34_AG(x1, x2, x3)
U35_AG(x1, x2, x3)  =  U35_AG(x1, x2, x3)
U36_AG(x1, x2, x3)  =  U36_AG(x1, x2, x3)
U37_AG(x1, x2)  =  U37_AG(x2)
U38_AG(x1, x2)  =  U38_AG(x1, x2)
U39_AG(x1, x2)  =  U39_AG(x1, x2)
U40_AG(x1, x2)  =  U40_AG(x1, x2)
U41_AG(x1, x2)  =  U41_AG(x1, x2)
U42_AG(x1, x2)  =  U42_AG(x1, x2)
U43_AG(x1, x2, x3)  =  U43_AG(x2, x3)
U44_AG(x1, x2, x3)  =  U44_AG(x1, x2, x3)
U45_AG(x1, x2, x3)  =  U45_AG(x1, x2, x3)
U46_AG(x1, x2, x3)  =  U46_AG(x1, x2, x3)
U47_AG(x1, x2, x3)  =  U47_AG(x1, x2, x3)
U48_AG(x1, x2, x3)  =  U48_AG(x1, x2, x3)
U49_AG(x1, x2)  =  U49_AG(x2)
U50_AG(x1, x2)  =  U50_AG(x1, x2)
U51_AG(x1, x2)  =  U51_AG(x1, x2)
U52_AG(x1, x2)  =  U52_AG(x1, x2)
U53_AG(x1, x2)  =  U53_AG(x1, x2)
U54_AG(x1, x2)  =  U54_AG(x1, x2)
U55_AG(x1, x2)  =  U55_AG(x1, x2)
U56_AG(x1, x2, x3)  =  U56_AG(x2, x3)
U57_AG(x1, x2, x3)  =  U57_AG(x1, x2, x3)
U58_AG(x1, x2, x3)  =  U58_AG(x1, x2, x3)
U59_AG(x1, x2, x3)  =  U59_AG(x1, x2, x3)
U60_AG(x1, x2, x3)  =  U60_AG(x1, x2, x3)
U61_AG(x1, x2, x3)  =  U61_AG(x1, x2, x3)
U62_AG(x1, x2, x3)  =  U62_AG(x1, x2, x3)
U63_AG(x1, x2)  =  U63_AG(x2)
U64_AG(x1, x2)  =  U64_AG(x1, x2)
U65_AG(x1, x2)  =  U65_AG(x1, x2)
U66_AG(x1, x2)  =  U66_AG(x1, x2)
U67_AG(x1, x2)  =  U67_AG(x1, x2)
U68_AG(x1, x2)  =  U68_AG(x1, x2)
U69_AG(x1, x2)  =  U69_AG(x1, x2)
U70_AG(x1, x2)  =  U70_AG(x1, x2)
U71_AG(x1, x2, x3)  =  U71_AG(x2, x3)
U72_AG(x1, x2, x3)  =  U72_AG(x1, x2, x3)
U73_AG(x1, x2, x3)  =  U73_AG(x1, x2, x3)
U74_AG(x1, x2, x3)  =  U74_AG(x1, x2, x3)
U75_AG(x1, x2, x3)  =  U75_AG(x1, x2, x3)
U76_AG(x1, x2, x3)  =  U76_AG(x1, x2, x3)
U77_AG(x1, x2, x3)  =  U77_AG(x1, x2, x3)
U78_AG(x1, x2, x3)  =  U78_AG(x1, x2, x3)
P139_IN_GAGG(x1, x2, x3, x4)  =  P139_IN_GAGG(x1, x3, x4)
U3_GAGG(x1, x2, x3, x4, x5)  =  U3_GAGG(x1, x3, x4, x5)
U4_GAGG(x1, x2, x3)  =  U4_GAGG(x1, x2, x3)
U5_GAGG(x1, x2, x3)  =  U5_GAGG(x1, x2, x3)
U6_GAGG(x1, x2, x3, x4, x5)  =  U6_GAGG(x1, x3, x4, x5)
U7_GAGG(x1, x2, x3, x4, x5)  =  U7_GAGG(x1, x2, x3, x4, x5)

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

(6) Obligation:

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

LOG21_IN_AG(s(s(T14)), T13) → U8_AG(T14, T13, half17_in_aa(T14, X28))
LOG21_IN_AG(s(s(T14)), T13) → HALF17_IN_AA(T14, X28)
HALF17_IN_AA(T22, s(X46)) → U2_AA(T22, X46, half22_in_aa(T22, X46))
HALF17_IN_AA(T22, s(X46)) → HALF22_IN_AA(T22, X46)
HALF22_IN_AA(s(s(T26)), s(X55)) → U1_AA(T26, X55, half22_in_aa(T26, X55))
HALF22_IN_AA(s(s(T26)), s(X55)) → HALF22_IN_AA(T26, X55)
LOG21_IN_AG(s(s(T14)), s(0)) → U9_AG(T14, half17_in_ag(T14, 0))
LOG21_IN_AG(s(s(T14)), s(0)) → HALF17_IN_AG(T14, 0)
HALF17_IN_AG(T22, s(X46)) → U2_AG(T22, X46, half22_in_ag(T22, X46))
HALF17_IN_AG(T22, s(X46)) → HALF22_IN_AG(T22, X46)
HALF22_IN_AG(s(s(T26)), s(X55)) → U1_AG(T26, X55, half22_in_ag(T26, X55))
HALF22_IN_AG(s(s(T26)), s(X55)) → HALF22_IN_AG(T26, X55)
LOG21_IN_AG(s(s(T14)), s(0)) → U10_AG(T14, half17_in_ag(T14, s(0)))
LOG21_IN_AG(s(s(T14)), s(0)) → HALF17_IN_AG(T14, s(0))
LOG21_IN_AG(s(s(T14)), T32) → U11_AG(T14, T32, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), T32) → HALF17_IN_AA(T14, s(s(T31)))
U11_AG(T14, T32, half17_out_aa(T14, s(s(T31)))) → U12_AG(T14, T32, half17_in_ga(T31, X82))
U11_AG(T14, T32, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, X82)
HALF17_IN_GA(T22, s(X46)) → U2_GA(T22, X46, half22_in_ga(T22, X46))
HALF17_IN_GA(T22, s(X46)) → HALF22_IN_GA(T22, X46)
HALF22_IN_GA(s(s(T26)), s(X55)) → U1_GA(T26, X55, half22_in_ga(T26, X55))
HALF22_IN_GA(s(s(T26)), s(X55)) → HALF22_IN_GA(T26, X55)
LOG21_IN_AG(s(s(T14)), s(s(0))) → U13_AG(T14, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), s(s(0))) → HALF17_IN_AA(T14, s(s(T31)))
U13_AG(T14, half17_out_aa(T14, s(s(T31)))) → U14_AG(T14, half17_in_gg(T31, 0))
U13_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GG(T31, 0)
HALF17_IN_GG(T22, s(X46)) → U2_GG(T22, X46, half22_in_gg(T22, X46))
HALF17_IN_GG(T22, s(X46)) → HALF22_IN_GG(T22, X46)
HALF22_IN_GG(s(s(T26)), s(X55)) → U1_GG(T26, X55, half22_in_gg(T26, X55))
HALF22_IN_GG(s(s(T26)), s(X55)) → HALF22_IN_GG(T26, X55)
U13_AG(T14, half17_out_aa(T14, s(s(T31)))) → U15_AG(T14, half17_in_gg(T31, s(0)))
U13_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GG(T31, s(0))
LOG21_IN_AG(s(s(T14)), T41) → U16_AG(T14, T41, half17_in_aa(T14, s(s(T31))))
U16_AG(T14, T41, half17_out_aa(T14, s(s(T31)))) → U17_AG(T14, T41, half17_in_ga(T31, s(s(T40))))
U16_AG(T14, T41, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U17_AG(T14, T41, half17_out_ga(T31, s(s(T40)))) → U18_AG(T14, T41, half17_in_ga(T40, X116))
U17_AG(T14, T41, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, X116)
LOG21_IN_AG(s(s(T14)), s(s(s(0)))) → U19_AG(T14, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), s(s(s(0)))) → HALF17_IN_AA(T14, s(s(T31)))
U19_AG(T14, half17_out_aa(T14, s(s(T31)))) → U20_AG(T14, half17_in_ga(T31, s(s(T40))))
U19_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U20_AG(T14, half17_out_ga(T31, s(s(T40)))) → U21_AG(T14, half17_in_gg(T40, 0))
U20_AG(T14, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GG(T40, 0)
U20_AG(T14, half17_out_ga(T31, s(s(T40)))) → U22_AG(T14, half17_in_gg(T40, s(0)))
U20_AG(T14, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GG(T40, s(0))
LOG21_IN_AG(s(s(T14)), T50) → U23_AG(T14, T50, half17_in_aa(T14, s(s(T31))))
U23_AG(T14, T50, half17_out_aa(T14, s(s(T31)))) → U24_AG(T14, T50, half17_in_ga(T31, s(s(T40))))
U23_AG(T14, T50, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U24_AG(T14, T50, half17_out_ga(T31, s(s(T40)))) → U25_AG(T14, T50, half17_in_ga(T40, s(s(T49))))
U24_AG(T14, T50, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U25_AG(T14, T50, half17_out_ga(T40, s(s(T49)))) → U26_AG(T14, T50, half17_in_ga(T49, X150))
U25_AG(T14, T50, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, X150)
LOG21_IN_AG(s(s(T14)), s(s(s(s(0))))) → U27_AG(T14, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), s(s(s(s(0))))) → HALF17_IN_AA(T14, s(s(T31)))
U27_AG(T14, half17_out_aa(T14, s(s(T31)))) → U28_AG(T14, half17_in_ga(T31, s(s(T40))))
U27_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U28_AG(T14, half17_out_ga(T31, s(s(T40)))) → U29_AG(T14, half17_in_ga(T40, s(s(T49))))
U28_AG(T14, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U29_AG(T14, half17_out_ga(T40, s(s(T49)))) → U30_AG(T14, half17_in_gg(T49, 0))
U29_AG(T14, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GG(T49, 0)
U29_AG(T14, half17_out_ga(T40, s(s(T49)))) → U31_AG(T14, half17_in_gg(T49, s(0)))
U29_AG(T14, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GG(T49, s(0))
LOG21_IN_AG(s(s(T14)), T59) → U32_AG(T14, T59, half17_in_aa(T14, s(s(T31))))
U32_AG(T14, T59, half17_out_aa(T14, s(s(T31)))) → U33_AG(T14, T59, half17_in_ga(T31, s(s(T40))))
U32_AG(T14, T59, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U33_AG(T14, T59, half17_out_ga(T31, s(s(T40)))) → U34_AG(T14, T59, half17_in_ga(T40, s(s(T49))))
U33_AG(T14, T59, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U34_AG(T14, T59, half17_out_ga(T40, s(s(T49)))) → U35_AG(T14, T59, half17_in_ga(T49, s(s(T58))))
U34_AG(T14, T59, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U35_AG(T14, T59, half17_out_ga(T49, s(s(T58)))) → U36_AG(T14, T59, half17_in_ga(T58, X184))
U35_AG(T14, T59, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GA(T58, X184)
LOG21_IN_AG(s(s(T14)), s(s(s(s(s(0)))))) → U37_AG(T14, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), s(s(s(s(s(0)))))) → HALF17_IN_AA(T14, s(s(T31)))
U37_AG(T14, half17_out_aa(T14, s(s(T31)))) → U38_AG(T14, half17_in_ga(T31, s(s(T40))))
U37_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U38_AG(T14, half17_out_ga(T31, s(s(T40)))) → U39_AG(T14, half17_in_ga(T40, s(s(T49))))
U38_AG(T14, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U39_AG(T14, half17_out_ga(T40, s(s(T49)))) → U40_AG(T14, half17_in_ga(T49, s(s(T58))))
U39_AG(T14, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U40_AG(T14, half17_out_ga(T49, s(s(T58)))) → U41_AG(T14, half17_in_gg(T58, 0))
U40_AG(T14, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GG(T58, 0)
U40_AG(T14, half17_out_ga(T49, s(s(T58)))) → U42_AG(T14, half17_in_gg(T58, s(0)))
U40_AG(T14, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GG(T58, s(0))
LOG21_IN_AG(s(s(T14)), T68) → U43_AG(T14, T68, half17_in_aa(T14, s(s(T31))))
U43_AG(T14, T68, half17_out_aa(T14, s(s(T31)))) → U44_AG(T14, T68, half17_in_ga(T31, s(s(T40))))
U43_AG(T14, T68, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U44_AG(T14, T68, half17_out_ga(T31, s(s(T40)))) → U45_AG(T14, T68, half17_in_ga(T40, s(s(T49))))
U44_AG(T14, T68, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U45_AG(T14, T68, half17_out_ga(T40, s(s(T49)))) → U46_AG(T14, T68, half17_in_ga(T49, s(s(T58))))
U45_AG(T14, T68, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U46_AG(T14, T68, half17_out_ga(T49, s(s(T58)))) → U47_AG(T14, T68, half17_in_ga(T58, s(s(T67))))
U46_AG(T14, T68, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GA(T58, s(s(T67)))
U47_AG(T14, T68, half17_out_ga(T58, s(s(T67)))) → U48_AG(T14, T68, half17_in_ga(T67, X218))
U47_AG(T14, T68, half17_out_ga(T58, s(s(T67)))) → HALF17_IN_GA(T67, X218)
LOG21_IN_AG(s(s(T14)), s(s(s(s(s(s(0))))))) → U49_AG(T14, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), s(s(s(s(s(s(0))))))) → HALF17_IN_AA(T14, s(s(T31)))
U49_AG(T14, half17_out_aa(T14, s(s(T31)))) → U50_AG(T14, half17_in_ga(T31, s(s(T40))))
U49_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U50_AG(T14, half17_out_ga(T31, s(s(T40)))) → U51_AG(T14, half17_in_ga(T40, s(s(T49))))
U50_AG(T14, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U51_AG(T14, half17_out_ga(T40, s(s(T49)))) → U52_AG(T14, half17_in_ga(T49, s(s(T58))))
U51_AG(T14, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U52_AG(T14, half17_out_ga(T49, s(s(T58)))) → U53_AG(T14, half17_in_ga(T58, s(s(T67))))
U52_AG(T14, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GA(T58, s(s(T67)))
U53_AG(T14, half17_out_ga(T58, s(s(T67)))) → U54_AG(T14, half17_in_gg(T67, 0))
U53_AG(T14, half17_out_ga(T58, s(s(T67)))) → HALF17_IN_GG(T67, 0)
U53_AG(T14, half17_out_ga(T58, s(s(T67)))) → U55_AG(T14, half17_in_gg(T67, s(0)))
U53_AG(T14, half17_out_ga(T58, s(s(T67)))) → HALF17_IN_GG(T67, s(0))
LOG21_IN_AG(s(s(T14)), T77) → U56_AG(T14, T77, half17_in_aa(T14, s(s(T31))))
U56_AG(T14, T77, half17_out_aa(T14, s(s(T31)))) → U57_AG(T14, T77, half17_in_ga(T31, s(s(T40))))
U56_AG(T14, T77, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U57_AG(T14, T77, half17_out_ga(T31, s(s(T40)))) → U58_AG(T14, T77, half17_in_ga(T40, s(s(T49))))
U57_AG(T14, T77, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U58_AG(T14, T77, half17_out_ga(T40, s(s(T49)))) → U59_AG(T14, T77, half17_in_ga(T49, s(s(T58))))
U58_AG(T14, T77, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U59_AG(T14, T77, half17_out_ga(T49, s(s(T58)))) → U60_AG(T14, T77, half17_in_ga(T58, s(s(T67))))
U59_AG(T14, T77, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GA(T58, s(s(T67)))
U60_AG(T14, T77, half17_out_ga(T58, s(s(T67)))) → U61_AG(T14, T77, half17_in_ga(T67, s(s(T76))))
U60_AG(T14, T77, half17_out_ga(T58, s(s(T67)))) → HALF17_IN_GA(T67, s(s(T76)))
U61_AG(T14, T77, half17_out_ga(T67, s(s(T76)))) → U62_AG(T14, T77, half17_in_ga(T76, X252))
U61_AG(T14, T77, half17_out_ga(T67, s(s(T76)))) → HALF17_IN_GA(T76, X252)
LOG21_IN_AG(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → U63_AG(T14, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → HALF17_IN_AA(T14, s(s(T31)))
U63_AG(T14, half17_out_aa(T14, s(s(T31)))) → U64_AG(T14, half17_in_ga(T31, s(s(T40))))
U63_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U64_AG(T14, half17_out_ga(T31, s(s(T40)))) → U65_AG(T14, half17_in_ga(T40, s(s(T49))))
U64_AG(T14, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U65_AG(T14, half17_out_ga(T40, s(s(T49)))) → U66_AG(T14, half17_in_ga(T49, s(s(T58))))
U65_AG(T14, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U66_AG(T14, half17_out_ga(T49, s(s(T58)))) → U67_AG(T14, half17_in_ga(T58, s(s(T67))))
U66_AG(T14, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GA(T58, s(s(T67)))
U67_AG(T14, half17_out_ga(T58, s(s(T67)))) → U68_AG(T14, half17_in_ga(T67, s(s(T76))))
U67_AG(T14, half17_out_ga(T58, s(s(T67)))) → HALF17_IN_GA(T67, s(s(T76)))
U68_AG(T14, half17_out_ga(T67, s(s(T76)))) → U69_AG(T14, half17_in_gg(T76, 0))
U68_AG(T14, half17_out_ga(T67, s(s(T76)))) → HALF17_IN_GG(T76, 0)
U68_AG(T14, half17_out_ga(T67, s(s(T76)))) → U70_AG(T14, half17_in_gg(T76, s(0)))
U68_AG(T14, half17_out_ga(T67, s(s(T76)))) → HALF17_IN_GG(T76, s(0))
LOG21_IN_AG(s(s(T14)), T86) → U71_AG(T14, T86, half17_in_aa(T14, s(s(T31))))
U71_AG(T14, T86, half17_out_aa(T14, s(s(T31)))) → U72_AG(T14, T86, half17_in_ga(T31, s(s(T40))))
U71_AG(T14, T86, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U72_AG(T14, T86, half17_out_ga(T31, s(s(T40)))) → U73_AG(T14, T86, half17_in_ga(T40, s(s(T49))))
U72_AG(T14, T86, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U73_AG(T14, T86, half17_out_ga(T40, s(s(T49)))) → U74_AG(T14, T86, half17_in_ga(T49, s(s(T58))))
U73_AG(T14, T86, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U74_AG(T14, T86, half17_out_ga(T49, s(s(T58)))) → U75_AG(T14, T86, half17_in_ga(T58, s(s(T67))))
U74_AG(T14, T86, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GA(T58, s(s(T67)))
U75_AG(T14, T86, half17_out_ga(T58, s(s(T67)))) → U76_AG(T14, T86, half17_in_ga(T67, s(s(T76))))
U75_AG(T14, T86, half17_out_ga(T58, s(s(T67)))) → HALF17_IN_GA(T67, s(s(T76)))
U76_AG(T14, T86, half17_out_ga(T67, s(s(T76)))) → U77_AG(T14, T86, half17_in_ga(T76, s(s(T85))))
U76_AG(T14, T86, half17_out_ga(T67, s(s(T76)))) → HALF17_IN_GA(T76, s(s(T85)))
U77_AG(T14, T86, half17_out_ga(T76, s(s(T85)))) → U78_AG(T14, T86, p139_in_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86))
U77_AG(T14, T86, half17_out_ga(T76, s(s(T85)))) → P139_IN_GAGG(T85, X286, s(s(s(s(s(s(s(0))))))), T86)
P139_IN_GAGG(T85, X286, T88, T86) → U3_GAGG(T85, X286, T88, T86, half17_in_ga(T85, X286))
P139_IN_GAGG(T85, X286, T88, T86) → HALF17_IN_GA(T85, X286)
P139_IN_GAGG(T85, 0, T98, s(T98)) → U4_GAGG(T85, T98, half17_in_gg(T85, 0))
P139_IN_GAGG(T85, 0, T98, s(T98)) → HALF17_IN_GG(T85, 0)
P139_IN_GAGG(T85, s(0), T103, s(T103)) → U5_GAGG(T85, T103, half17_in_gg(T85, s(0)))
P139_IN_GAGG(T85, s(0), T103, s(T103)) → HALF17_IN_GG(T85, s(0))
P139_IN_GAGG(T85, s(s(T110)), T111, T112) → U6_GAGG(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
P139_IN_GAGG(T85, s(s(T110)), T111, T112) → HALF17_IN_GA(T85, s(s(T110)))
U6_GAGG(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → U7_GAGG(T85, T110, T111, T112, p139_in_gagg(T110, X323, s(T111), T112))
U6_GAGG(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → P139_IN_GAGG(T110, X323, s(T111), T112)

The TRS R consists of the following rules:

log21_in_ag(0, 0) → log21_out_ag(0, 0)
log21_in_ag(s(0), 0) → log21_out_ag(s(0), 0)
log21_in_ag(s(s(T14)), T13) → U8_ag(T14, T13, half17_in_aa(T14, X28))
half17_in_aa(T22, s(X46)) → U2_aa(T22, X46, half22_in_aa(T22, X46))
half22_in_aa(0, 0) → half22_out_aa(0, 0)
half22_in_aa(s(0), 0) → half22_out_aa(s(0), 0)
half22_in_aa(s(s(T26)), s(X55)) → U1_aa(T26, X55, half22_in_aa(T26, X55))
U1_aa(T26, X55, half22_out_aa(T26, X55)) → half22_out_aa(s(s(T26)), s(X55))
U2_aa(T22, X46, half22_out_aa(T22, X46)) → half17_out_aa(T22, s(X46))
U8_ag(T14, T13, half17_out_aa(T14, X28)) → log21_out_ag(s(s(T14)), T13)
log21_in_ag(s(s(T14)), s(0)) → U9_ag(T14, half17_in_ag(T14, 0))
half17_in_ag(T22, s(X46)) → U2_ag(T22, X46, half22_in_ag(T22, X46))
half22_in_ag(0, 0) → half22_out_ag(0, 0)
half22_in_ag(s(0), 0) → half22_out_ag(s(0), 0)
half22_in_ag(s(s(T26)), s(X55)) → U1_ag(T26, X55, half22_in_ag(T26, X55))
U1_ag(T26, X55, half22_out_ag(T26, X55)) → half22_out_ag(s(s(T26)), s(X55))
U2_ag(T22, X46, half22_out_ag(T22, X46)) → half17_out_ag(T22, s(X46))
U9_ag(T14, half17_out_ag(T14, 0)) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), s(0)) → U10_ag(T14, half17_in_ag(T14, s(0)))
U10_ag(T14, half17_out_ag(T14, s(0))) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), T32) → U11_ag(T14, T32, half17_in_aa(T14, s(s(T31))))
U11_ag(T14, T32, half17_out_aa(T14, s(s(T31)))) → U12_ag(T14, T32, half17_in_ga(T31, X82))
half17_in_ga(T22, s(X46)) → U2_ga(T22, X46, half22_in_ga(T22, X46))
half22_in_ga(0, 0) → half22_out_ga(0, 0)
half22_in_ga(s(0), 0) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26)), s(X55)) → U1_ga(T26, X55, half22_in_ga(T26, X55))
U1_ga(T26, X55, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))
U2_ga(T22, X46, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
U12_ag(T14, T32, half17_out_ga(T31, X82)) → log21_out_ag(s(s(T14)), T32)
log21_in_ag(s(s(T14)), s(s(0))) → U13_ag(T14, half17_in_aa(T14, s(s(T31))))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U14_ag(T14, half17_in_gg(T31, 0))
half17_in_gg(T22, s(X46)) → U2_gg(T22, X46, half22_in_gg(T22, X46))
half22_in_gg(0, 0) → half22_out_gg(0, 0)
half22_in_gg(s(0), 0) → half22_out_gg(s(0), 0)
half22_in_gg(s(s(T26)), s(X55)) → U1_gg(T26, X55, half22_in_gg(T26, X55))
U1_gg(T26, X55, half22_out_gg(T26, X55)) → half22_out_gg(s(s(T26)), s(X55))
U2_gg(T22, X46, half22_out_gg(T22, X46)) → half17_out_gg(T22, s(X46))
U14_ag(T14, half17_out_gg(T31, 0)) → log21_out_ag(s(s(T14)), s(s(0)))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U15_ag(T14, half17_in_gg(T31, s(0)))
U15_ag(T14, half17_out_gg(T31, s(0))) → log21_out_ag(s(s(T14)), s(s(0)))
log21_in_ag(s(s(T14)), T41) → U16_ag(T14, T41, half17_in_aa(T14, s(s(T31))))
U16_ag(T14, T41, half17_out_aa(T14, s(s(T31)))) → U17_ag(T14, T41, half17_in_ga(T31, s(s(T40))))
U17_ag(T14, T41, half17_out_ga(T31, s(s(T40)))) → U18_ag(T14, T41, half17_in_ga(T40, X116))
U18_ag(T14, T41, half17_out_ga(T40, X116)) → log21_out_ag(s(s(T14)), T41)
log21_in_ag(s(s(T14)), s(s(s(0)))) → U19_ag(T14, half17_in_aa(T14, s(s(T31))))
U19_ag(T14, half17_out_aa(T14, s(s(T31)))) → U20_ag(T14, half17_in_ga(T31, s(s(T40))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U21_ag(T14, half17_in_gg(T40, 0))
U21_ag(T14, half17_out_gg(T40, 0)) → log21_out_ag(s(s(T14)), s(s(s(0))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U22_ag(T14, half17_in_gg(T40, s(0)))
U22_ag(T14, half17_out_gg(T40, s(0))) → log21_out_ag(s(s(T14)), s(s(s(0))))
log21_in_ag(s(s(T14)), T50) → U23_ag(T14, T50, half17_in_aa(T14, s(s(T31))))
U23_ag(T14, T50, half17_out_aa(T14, s(s(T31)))) → U24_ag(T14, T50, half17_in_ga(T31, s(s(T40))))
U24_ag(T14, T50, half17_out_ga(T31, s(s(T40)))) → U25_ag(T14, T50, half17_in_ga(T40, s(s(T49))))
U25_ag(T14, T50, half17_out_ga(T40, s(s(T49)))) → U26_ag(T14, T50, half17_in_ga(T49, X150))
U26_ag(T14, T50, half17_out_ga(T49, X150)) → log21_out_ag(s(s(T14)), T50)
log21_in_ag(s(s(T14)), s(s(s(s(0))))) → U27_ag(T14, half17_in_aa(T14, s(s(T31))))
U27_ag(T14, half17_out_aa(T14, s(s(T31)))) → U28_ag(T14, half17_in_ga(T31, s(s(T40))))
U28_ag(T14, half17_out_ga(T31, s(s(T40)))) → U29_ag(T14, half17_in_ga(T40, s(s(T49))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U30_ag(T14, half17_in_gg(T49, 0))
U30_ag(T14, half17_out_gg(T49, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U31_ag(T14, half17_in_gg(T49, s(0)))
U31_ag(T14, half17_out_gg(T49, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
log21_in_ag(s(s(T14)), T59) → U32_ag(T14, T59, half17_in_aa(T14, s(s(T31))))
U32_ag(T14, T59, half17_out_aa(T14, s(s(T31)))) → U33_ag(T14, T59, half17_in_ga(T31, s(s(T40))))
U33_ag(T14, T59, half17_out_ga(T31, s(s(T40)))) → U34_ag(T14, T59, half17_in_ga(T40, s(s(T49))))
U34_ag(T14, T59, half17_out_ga(T40, s(s(T49)))) → U35_ag(T14, T59, half17_in_ga(T49, s(s(T58))))
U35_ag(T14, T59, half17_out_ga(T49, s(s(T58)))) → U36_ag(T14, T59, half17_in_ga(T58, X184))
U36_ag(T14, T59, half17_out_ga(T58, X184)) → log21_out_ag(s(s(T14)), T59)
log21_in_ag(s(s(T14)), s(s(s(s(s(0)))))) → U37_ag(T14, half17_in_aa(T14, s(s(T31))))
U37_ag(T14, half17_out_aa(T14, s(s(T31)))) → U38_ag(T14, half17_in_ga(T31, s(s(T40))))
U38_ag(T14, half17_out_ga(T31, s(s(T40)))) → U39_ag(T14, half17_in_ga(T40, s(s(T49))))
U39_ag(T14, half17_out_ga(T40, s(s(T49)))) → U40_ag(T14, half17_in_ga(T49, s(s(T58))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U41_ag(T14, half17_in_gg(T58, 0))
U41_ag(T14, half17_out_gg(T58, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U42_ag(T14, half17_in_gg(T58, s(0)))
U42_ag(T14, half17_out_gg(T58, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
log21_in_ag(s(s(T14)), T68) → U43_ag(T14, T68, half17_in_aa(T14, s(s(T31))))
U43_ag(T14, T68, half17_out_aa(T14, s(s(T31)))) → U44_ag(T14, T68, half17_in_ga(T31, s(s(T40))))
U44_ag(T14, T68, half17_out_ga(T31, s(s(T40)))) → U45_ag(T14, T68, half17_in_ga(T40, s(s(T49))))
U45_ag(T14, T68, half17_out_ga(T40, s(s(T49)))) → U46_ag(T14, T68, half17_in_ga(T49, s(s(T58))))
U46_ag(T14, T68, half17_out_ga(T49, s(s(T58)))) → U47_ag(T14, T68, half17_in_ga(T58, s(s(T67))))
U47_ag(T14, T68, half17_out_ga(T58, s(s(T67)))) → U48_ag(T14, T68, half17_in_ga(T67, X218))
U48_ag(T14, T68, half17_out_ga(T67, X218)) → log21_out_ag(s(s(T14)), T68)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(0))))))) → U49_ag(T14, half17_in_aa(T14, s(s(T31))))
U49_ag(T14, half17_out_aa(T14, s(s(T31)))) → U50_ag(T14, half17_in_ga(T31, s(s(T40))))
U50_ag(T14, half17_out_ga(T31, s(s(T40)))) → U51_ag(T14, half17_in_ga(T40, s(s(T49))))
U51_ag(T14, half17_out_ga(T40, s(s(T49)))) → U52_ag(T14, half17_in_ga(T49, s(s(T58))))
U52_ag(T14, half17_out_ga(T49, s(s(T58)))) → U53_ag(T14, half17_in_ga(T58, s(s(T67))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U54_ag(T14, half17_in_gg(T67, 0))
U54_ag(T14, half17_out_gg(T67, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U55_ag(T14, half17_in_gg(T67, s(0)))
U55_ag(T14, half17_out_gg(T67, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
log21_in_ag(s(s(T14)), T77) → U56_ag(T14, T77, half17_in_aa(T14, s(s(T31))))
U56_ag(T14, T77, half17_out_aa(T14, s(s(T31)))) → U57_ag(T14, T77, half17_in_ga(T31, s(s(T40))))
U57_ag(T14, T77, half17_out_ga(T31, s(s(T40)))) → U58_ag(T14, T77, half17_in_ga(T40, s(s(T49))))
U58_ag(T14, T77, half17_out_ga(T40, s(s(T49)))) → U59_ag(T14, T77, half17_in_ga(T49, s(s(T58))))
U59_ag(T14, T77, half17_out_ga(T49, s(s(T58)))) → U60_ag(T14, T77, half17_in_ga(T58, s(s(T67))))
U60_ag(T14, T77, half17_out_ga(T58, s(s(T67)))) → U61_ag(T14, T77, half17_in_ga(T67, s(s(T76))))
U61_ag(T14, T77, half17_out_ga(T67, s(s(T76)))) → U62_ag(T14, T77, half17_in_ga(T76, X252))
U62_ag(T14, T77, half17_out_ga(T76, X252)) → log21_out_ag(s(s(T14)), T77)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → U63_ag(T14, half17_in_aa(T14, s(s(T31))))
U63_ag(T14, half17_out_aa(T14, s(s(T31)))) → U64_ag(T14, half17_in_ga(T31, s(s(T40))))
U64_ag(T14, half17_out_ga(T31, s(s(T40)))) → U65_ag(T14, half17_in_ga(T40, s(s(T49))))
U65_ag(T14, half17_out_ga(T40, s(s(T49)))) → U66_ag(T14, half17_in_ga(T49, s(s(T58))))
U66_ag(T14, half17_out_ga(T49, s(s(T58)))) → U67_ag(T14, half17_in_ga(T58, s(s(T67))))
U67_ag(T14, half17_out_ga(T58, s(s(T67)))) → U68_ag(T14, half17_in_ga(T67, s(s(T76))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U69_ag(T14, half17_in_gg(T76, 0))
U69_ag(T14, half17_out_gg(T76, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U70_ag(T14, half17_in_gg(T76, s(0)))
U70_ag(T14, half17_out_gg(T76, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
log21_in_ag(s(s(T14)), T86) → U71_ag(T14, T86, half17_in_aa(T14, s(s(T31))))
U71_ag(T14, T86, half17_out_aa(T14, s(s(T31)))) → U72_ag(T14, T86, half17_in_ga(T31, s(s(T40))))
U72_ag(T14, T86, half17_out_ga(T31, s(s(T40)))) → U73_ag(T14, T86, half17_in_ga(T40, s(s(T49))))
U73_ag(T14, T86, half17_out_ga(T40, s(s(T49)))) → U74_ag(T14, T86, half17_in_ga(T49, s(s(T58))))
U74_ag(T14, T86, half17_out_ga(T49, s(s(T58)))) → U75_ag(T14, T86, half17_in_ga(T58, s(s(T67))))
U75_ag(T14, T86, half17_out_ga(T58, s(s(T67)))) → U76_ag(T14, T86, half17_in_ga(T67, s(s(T76))))
U76_ag(T14, T86, half17_out_ga(T67, s(s(T76)))) → U77_ag(T14, T86, half17_in_ga(T76, s(s(T85))))
U77_ag(T14, T86, half17_out_ga(T76, s(s(T85)))) → U78_ag(T14, T86, p139_in_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86))
p139_in_gagg(T85, X286, T88, T86) → U3_gagg(T85, X286, T88, T86, half17_in_ga(T85, X286))
U3_gagg(T85, X286, T88, T86, half17_out_ga(T85, X286)) → p139_out_gagg(T85, X286, T88, T86)
p139_in_gagg(T85, 0, T98, s(T98)) → U4_gagg(T85, T98, half17_in_gg(T85, 0))
U4_gagg(T85, T98, half17_out_gg(T85, 0)) → p139_out_gagg(T85, 0, T98, s(T98))
p139_in_gagg(T85, s(0), T103, s(T103)) → U5_gagg(T85, T103, half17_in_gg(T85, s(0)))
U5_gagg(T85, T103, half17_out_gg(T85, s(0))) → p139_out_gagg(T85, s(0), T103, s(T103))
p139_in_gagg(T85, s(s(T110)), T111, T112) → U6_gagg(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
U6_gagg(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → U7_gagg(T85, T110, T111, T112, p139_in_gagg(T110, X323, s(T111), T112))
U7_gagg(T85, T110, T111, T112, p139_out_gagg(T110, X323, s(T111), T112)) → p139_out_gagg(T85, s(s(T110)), T111, T112)
U78_ag(T14, T86, p139_out_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86)) → log21_out_ag(s(s(T14)), T86)

The argument filtering Pi contains the following mapping:
log21_in_ag(x1, x2)  =  log21_in_ag(x2)
0  =  0
log21_out_ag(x1, x2)  =  log21_out_ag(x1, x2)
U8_ag(x1, x2, x3)  =  U8_ag(x2, x3)
half17_in_aa(x1, x2)  =  half17_in_aa
U2_aa(x1, x2, x3)  =  U2_aa(x3)
half22_in_aa(x1, x2)  =  half22_in_aa
half22_out_aa(x1, x2)  =  half22_out_aa(x1, x2)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
half17_out_aa(x1, x2)  =  half17_out_aa(x1, x2)
s(x1)  =  s(x1)
U9_ag(x1, x2)  =  U9_ag(x2)
half17_in_ag(x1, x2)  =  half17_in_ag(x2)
U2_ag(x1, x2, x3)  =  U2_ag(x2, x3)
half22_in_ag(x1, x2)  =  half22_in_ag(x2)
half22_out_ag(x1, x2)  =  half22_out_ag(x1, x2)
U1_ag(x1, x2, x3)  =  U1_ag(x2, x3)
half17_out_ag(x1, x2)  =  half17_out_ag(x1, x2)
U10_ag(x1, x2)  =  U10_ag(x2)
U11_ag(x1, x2, x3)  =  U11_ag(x2, x3)
U12_ag(x1, x2, x3)  =  U12_ag(x1, x2, x3)
half17_in_ga(x1, x2)  =  half17_in_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x1, x3)
half22_in_ga(x1, x2)  =  half22_in_ga(x1)
half22_out_ga(x1, x2)  =  half22_out_ga(x1, x2)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
half17_out_ga(x1, x2)  =  half17_out_ga(x1, x2)
U13_ag(x1, x2)  =  U13_ag(x2)
U14_ag(x1, x2)  =  U14_ag(x1, x2)
half17_in_gg(x1, x2)  =  half17_in_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x1, x2, x3)
half22_in_gg(x1, x2)  =  half22_in_gg(x1, x2)
half22_out_gg(x1, x2)  =  half22_out_gg(x1, x2)
U1_gg(x1, x2, x3)  =  U1_gg(x1, x2, x3)
half17_out_gg(x1, x2)  =  half17_out_gg(x1, x2)
U15_ag(x1, x2)  =  U15_ag(x1, x2)
U16_ag(x1, x2, x3)  =  U16_ag(x2, x3)
U17_ag(x1, x2, x3)  =  U17_ag(x1, x2, x3)
U18_ag(x1, x2, x3)  =  U18_ag(x1, x2, x3)
U19_ag(x1, x2)  =  U19_ag(x2)
U20_ag(x1, x2)  =  U20_ag(x1, x2)
U21_ag(x1, x2)  =  U21_ag(x1, x2)
U22_ag(x1, x2)  =  U22_ag(x1, x2)
U23_ag(x1, x2, x3)  =  U23_ag(x2, x3)
U24_ag(x1, x2, x3)  =  U24_ag(x1, x2, x3)
U25_ag(x1, x2, x3)  =  U25_ag(x1, x2, x3)
U26_ag(x1, x2, x3)  =  U26_ag(x1, x2, x3)
U27_ag(x1, x2)  =  U27_ag(x2)
U28_ag(x1, x2)  =  U28_ag(x1, x2)
U29_ag(x1, x2)  =  U29_ag(x1, x2)
U30_ag(x1, x2)  =  U30_ag(x1, x2)
U31_ag(x1, x2)  =  U31_ag(x1, x2)
U32_ag(x1, x2, x3)  =  U32_ag(x2, x3)
U33_ag(x1, x2, x3)  =  U33_ag(x1, x2, x3)
U34_ag(x1, x2, x3)  =  U34_ag(x1, x2, x3)
U35_ag(x1, x2, x3)  =  U35_ag(x1, x2, x3)
U36_ag(x1, x2, x3)  =  U36_ag(x1, x2, x3)
U37_ag(x1, x2)  =  U37_ag(x2)
U38_ag(x1, x2)  =  U38_ag(x1, x2)
U39_ag(x1, x2)  =  U39_ag(x1, x2)
U40_ag(x1, x2)  =  U40_ag(x1, x2)
U41_ag(x1, x2)  =  U41_ag(x1, x2)
U42_ag(x1, x2)  =  U42_ag(x1, x2)
U43_ag(x1, x2, x3)  =  U43_ag(x2, x3)
U44_ag(x1, x2, x3)  =  U44_ag(x1, x2, x3)
U45_ag(x1, x2, x3)  =  U45_ag(x1, x2, x3)
U46_ag(x1, x2, x3)  =  U46_ag(x1, x2, x3)
U47_ag(x1, x2, x3)  =  U47_ag(x1, x2, x3)
U48_ag(x1, x2, x3)  =  U48_ag(x1, x2, x3)
U49_ag(x1, x2)  =  U49_ag(x2)
U50_ag(x1, x2)  =  U50_ag(x1, x2)
U51_ag(x1, x2)  =  U51_ag(x1, x2)
U52_ag(x1, x2)  =  U52_ag(x1, x2)
U53_ag(x1, x2)  =  U53_ag(x1, x2)
U54_ag(x1, x2)  =  U54_ag(x1, x2)
U55_ag(x1, x2)  =  U55_ag(x1, x2)
U56_ag(x1, x2, x3)  =  U56_ag(x2, x3)
U57_ag(x1, x2, x3)  =  U57_ag(x1, x2, x3)
U58_ag(x1, x2, x3)  =  U58_ag(x1, x2, x3)
U59_ag(x1, x2, x3)  =  U59_ag(x1, x2, x3)
U60_ag(x1, x2, x3)  =  U60_ag(x1, x2, x3)
U61_ag(x1, x2, x3)  =  U61_ag(x1, x2, x3)
U62_ag(x1, x2, x3)  =  U62_ag(x1, x2, x3)
U63_ag(x1, x2)  =  U63_ag(x2)
U64_ag(x1, x2)  =  U64_ag(x1, x2)
U65_ag(x1, x2)  =  U65_ag(x1, x2)
U66_ag(x1, x2)  =  U66_ag(x1, x2)
U67_ag(x1, x2)  =  U67_ag(x1, x2)
U68_ag(x1, x2)  =  U68_ag(x1, x2)
U69_ag(x1, x2)  =  U69_ag(x1, x2)
U70_ag(x1, x2)  =  U70_ag(x1, x2)
U71_ag(x1, x2, x3)  =  U71_ag(x2, x3)
U72_ag(x1, x2, x3)  =  U72_ag(x1, x2, x3)
U73_ag(x1, x2, x3)  =  U73_ag(x1, x2, x3)
U74_ag(x1, x2, x3)  =  U74_ag(x1, x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x1, x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x1, x2, x3)
U77_ag(x1, x2, x3)  =  U77_ag(x1, x2, x3)
U78_ag(x1, x2, x3)  =  U78_ag(x1, x2, x3)
p139_in_gagg(x1, x2, x3, x4)  =  p139_in_gagg(x1, x3, x4)
U3_gagg(x1, x2, x3, x4, x5)  =  U3_gagg(x1, x3, x4, x5)
p139_out_gagg(x1, x2, x3, x4)  =  p139_out_gagg(x1, x2, x3, x4)
U4_gagg(x1, x2, x3)  =  U4_gagg(x1, x2, x3)
U5_gagg(x1, x2, x3)  =  U5_gagg(x1, x2, x3)
U6_gagg(x1, x2, x3, x4, x5)  =  U6_gagg(x1, x3, x4, x5)
U7_gagg(x1, x2, x3, x4, x5)  =  U7_gagg(x1, x2, x3, x4, x5)
LOG21_IN_AG(x1, x2)  =  LOG21_IN_AG(x2)
U8_AG(x1, x2, x3)  =  U8_AG(x2, x3)
HALF17_IN_AA(x1, x2)  =  HALF17_IN_AA
U2_AA(x1, x2, x3)  =  U2_AA(x3)
HALF22_IN_AA(x1, x2)  =  HALF22_IN_AA
U1_AA(x1, x2, x3)  =  U1_AA(x3)
U9_AG(x1, x2)  =  U9_AG(x2)
HALF17_IN_AG(x1, x2)  =  HALF17_IN_AG(x2)
U2_AG(x1, x2, x3)  =  U2_AG(x2, x3)
HALF22_IN_AG(x1, x2)  =  HALF22_IN_AG(x2)
U1_AG(x1, x2, x3)  =  U1_AG(x2, x3)
U10_AG(x1, x2)  =  U10_AG(x2)
U11_AG(x1, x2, x3)  =  U11_AG(x2, x3)
U12_AG(x1, x2, x3)  =  U12_AG(x1, x2, x3)
HALF17_IN_GA(x1, x2)  =  HALF17_IN_GA(x1)
U2_GA(x1, x2, x3)  =  U2_GA(x1, x3)
HALF22_IN_GA(x1, x2)  =  HALF22_IN_GA(x1)
U1_GA(x1, x2, x3)  =  U1_GA(x1, x3)
U13_AG(x1, x2)  =  U13_AG(x2)
U14_AG(x1, x2)  =  U14_AG(x1, x2)
HALF17_IN_GG(x1, x2)  =  HALF17_IN_GG(x1, x2)
U2_GG(x1, x2, x3)  =  U2_GG(x1, x2, x3)
HALF22_IN_GG(x1, x2)  =  HALF22_IN_GG(x1, x2)
U1_GG(x1, x2, x3)  =  U1_GG(x1, x2, x3)
U15_AG(x1, x2)  =  U15_AG(x1, x2)
U16_AG(x1, x2, x3)  =  U16_AG(x2, x3)
U17_AG(x1, x2, x3)  =  U17_AG(x1, x2, x3)
U18_AG(x1, x2, x3)  =  U18_AG(x1, x2, x3)
U19_AG(x1, x2)  =  U19_AG(x2)
U20_AG(x1, x2)  =  U20_AG(x1, x2)
U21_AG(x1, x2)  =  U21_AG(x1, x2)
U22_AG(x1, x2)  =  U22_AG(x1, x2)
U23_AG(x1, x2, x3)  =  U23_AG(x2, x3)
U24_AG(x1, x2, x3)  =  U24_AG(x1, x2, x3)
U25_AG(x1, x2, x3)  =  U25_AG(x1, x2, x3)
U26_AG(x1, x2, x3)  =  U26_AG(x1, x2, x3)
U27_AG(x1, x2)  =  U27_AG(x2)
U28_AG(x1, x2)  =  U28_AG(x1, x2)
U29_AG(x1, x2)  =  U29_AG(x1, x2)
U30_AG(x1, x2)  =  U30_AG(x1, x2)
U31_AG(x1, x2)  =  U31_AG(x1, x2)
U32_AG(x1, x2, x3)  =  U32_AG(x2, x3)
U33_AG(x1, x2, x3)  =  U33_AG(x1, x2, x3)
U34_AG(x1, x2, x3)  =  U34_AG(x1, x2, x3)
U35_AG(x1, x2, x3)  =  U35_AG(x1, x2, x3)
U36_AG(x1, x2, x3)  =  U36_AG(x1, x2, x3)
U37_AG(x1, x2)  =  U37_AG(x2)
U38_AG(x1, x2)  =  U38_AG(x1, x2)
U39_AG(x1, x2)  =  U39_AG(x1, x2)
U40_AG(x1, x2)  =  U40_AG(x1, x2)
U41_AG(x1, x2)  =  U41_AG(x1, x2)
U42_AG(x1, x2)  =  U42_AG(x1, x2)
U43_AG(x1, x2, x3)  =  U43_AG(x2, x3)
U44_AG(x1, x2, x3)  =  U44_AG(x1, x2, x3)
U45_AG(x1, x2, x3)  =  U45_AG(x1, x2, x3)
U46_AG(x1, x2, x3)  =  U46_AG(x1, x2, x3)
U47_AG(x1, x2, x3)  =  U47_AG(x1, x2, x3)
U48_AG(x1, x2, x3)  =  U48_AG(x1, x2, x3)
U49_AG(x1, x2)  =  U49_AG(x2)
U50_AG(x1, x2)  =  U50_AG(x1, x2)
U51_AG(x1, x2)  =  U51_AG(x1, x2)
U52_AG(x1, x2)  =  U52_AG(x1, x2)
U53_AG(x1, x2)  =  U53_AG(x1, x2)
U54_AG(x1, x2)  =  U54_AG(x1, x2)
U55_AG(x1, x2)  =  U55_AG(x1, x2)
U56_AG(x1, x2, x3)  =  U56_AG(x2, x3)
U57_AG(x1, x2, x3)  =  U57_AG(x1, x2, x3)
U58_AG(x1, x2, x3)  =  U58_AG(x1, x2, x3)
U59_AG(x1, x2, x3)  =  U59_AG(x1, x2, x3)
U60_AG(x1, x2, x3)  =  U60_AG(x1, x2, x3)
U61_AG(x1, x2, x3)  =  U61_AG(x1, x2, x3)
U62_AG(x1, x2, x3)  =  U62_AG(x1, x2, x3)
U63_AG(x1, x2)  =  U63_AG(x2)
U64_AG(x1, x2)  =  U64_AG(x1, x2)
U65_AG(x1, x2)  =  U65_AG(x1, x2)
U66_AG(x1, x2)  =  U66_AG(x1, x2)
U67_AG(x1, x2)  =  U67_AG(x1, x2)
U68_AG(x1, x2)  =  U68_AG(x1, x2)
U69_AG(x1, x2)  =  U69_AG(x1, x2)
U70_AG(x1, x2)  =  U70_AG(x1, x2)
U71_AG(x1, x2, x3)  =  U71_AG(x2, x3)
U72_AG(x1, x2, x3)  =  U72_AG(x1, x2, x3)
U73_AG(x1, x2, x3)  =  U73_AG(x1, x2, x3)
U74_AG(x1, x2, x3)  =  U74_AG(x1, x2, x3)
U75_AG(x1, x2, x3)  =  U75_AG(x1, x2, x3)
U76_AG(x1, x2, x3)  =  U76_AG(x1, x2, x3)
U77_AG(x1, x2, x3)  =  U77_AG(x1, x2, x3)
U78_AG(x1, x2, x3)  =  U78_AG(x1, x2, x3)
P139_IN_GAGG(x1, x2, x3, x4)  =  P139_IN_GAGG(x1, x3, x4)
U3_GAGG(x1, x2, x3, x4, x5)  =  U3_GAGG(x1, x3, x4, x5)
U4_GAGG(x1, x2, x3)  =  U4_GAGG(x1, x2, x3)
U5_GAGG(x1, x2, x3)  =  U5_GAGG(x1, x2, x3)
U6_GAGG(x1, x2, x3, x4, x5)  =  U6_GAGG(x1, x3, x4, x5)
U7_GAGG(x1, x2, x3, x4, x5)  =  U7_GAGG(x1, x2, x3, x4, x5)

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

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 5 SCCs with 156 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

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

HALF22_IN_GG(s(s(T26)), s(X55)) → HALF22_IN_GG(T26, X55)

The TRS R consists of the following rules:

log21_in_ag(0, 0) → log21_out_ag(0, 0)
log21_in_ag(s(0), 0) → log21_out_ag(s(0), 0)
log21_in_ag(s(s(T14)), T13) → U8_ag(T14, T13, half17_in_aa(T14, X28))
half17_in_aa(T22, s(X46)) → U2_aa(T22, X46, half22_in_aa(T22, X46))
half22_in_aa(0, 0) → half22_out_aa(0, 0)
half22_in_aa(s(0), 0) → half22_out_aa(s(0), 0)
half22_in_aa(s(s(T26)), s(X55)) → U1_aa(T26, X55, half22_in_aa(T26, X55))
U1_aa(T26, X55, half22_out_aa(T26, X55)) → half22_out_aa(s(s(T26)), s(X55))
U2_aa(T22, X46, half22_out_aa(T22, X46)) → half17_out_aa(T22, s(X46))
U8_ag(T14, T13, half17_out_aa(T14, X28)) → log21_out_ag(s(s(T14)), T13)
log21_in_ag(s(s(T14)), s(0)) → U9_ag(T14, half17_in_ag(T14, 0))
half17_in_ag(T22, s(X46)) → U2_ag(T22, X46, half22_in_ag(T22, X46))
half22_in_ag(0, 0) → half22_out_ag(0, 0)
half22_in_ag(s(0), 0) → half22_out_ag(s(0), 0)
half22_in_ag(s(s(T26)), s(X55)) → U1_ag(T26, X55, half22_in_ag(T26, X55))
U1_ag(T26, X55, half22_out_ag(T26, X55)) → half22_out_ag(s(s(T26)), s(X55))
U2_ag(T22, X46, half22_out_ag(T22, X46)) → half17_out_ag(T22, s(X46))
U9_ag(T14, half17_out_ag(T14, 0)) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), s(0)) → U10_ag(T14, half17_in_ag(T14, s(0)))
U10_ag(T14, half17_out_ag(T14, s(0))) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), T32) → U11_ag(T14, T32, half17_in_aa(T14, s(s(T31))))
U11_ag(T14, T32, half17_out_aa(T14, s(s(T31)))) → U12_ag(T14, T32, half17_in_ga(T31, X82))
half17_in_ga(T22, s(X46)) → U2_ga(T22, X46, half22_in_ga(T22, X46))
half22_in_ga(0, 0) → half22_out_ga(0, 0)
half22_in_ga(s(0), 0) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26)), s(X55)) → U1_ga(T26, X55, half22_in_ga(T26, X55))
U1_ga(T26, X55, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))
U2_ga(T22, X46, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
U12_ag(T14, T32, half17_out_ga(T31, X82)) → log21_out_ag(s(s(T14)), T32)
log21_in_ag(s(s(T14)), s(s(0))) → U13_ag(T14, half17_in_aa(T14, s(s(T31))))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U14_ag(T14, half17_in_gg(T31, 0))
half17_in_gg(T22, s(X46)) → U2_gg(T22, X46, half22_in_gg(T22, X46))
half22_in_gg(0, 0) → half22_out_gg(0, 0)
half22_in_gg(s(0), 0) → half22_out_gg(s(0), 0)
half22_in_gg(s(s(T26)), s(X55)) → U1_gg(T26, X55, half22_in_gg(T26, X55))
U1_gg(T26, X55, half22_out_gg(T26, X55)) → half22_out_gg(s(s(T26)), s(X55))
U2_gg(T22, X46, half22_out_gg(T22, X46)) → half17_out_gg(T22, s(X46))
U14_ag(T14, half17_out_gg(T31, 0)) → log21_out_ag(s(s(T14)), s(s(0)))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U15_ag(T14, half17_in_gg(T31, s(0)))
U15_ag(T14, half17_out_gg(T31, s(0))) → log21_out_ag(s(s(T14)), s(s(0)))
log21_in_ag(s(s(T14)), T41) → U16_ag(T14, T41, half17_in_aa(T14, s(s(T31))))
U16_ag(T14, T41, half17_out_aa(T14, s(s(T31)))) → U17_ag(T14, T41, half17_in_ga(T31, s(s(T40))))
U17_ag(T14, T41, half17_out_ga(T31, s(s(T40)))) → U18_ag(T14, T41, half17_in_ga(T40, X116))
U18_ag(T14, T41, half17_out_ga(T40, X116)) → log21_out_ag(s(s(T14)), T41)
log21_in_ag(s(s(T14)), s(s(s(0)))) → U19_ag(T14, half17_in_aa(T14, s(s(T31))))
U19_ag(T14, half17_out_aa(T14, s(s(T31)))) → U20_ag(T14, half17_in_ga(T31, s(s(T40))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U21_ag(T14, half17_in_gg(T40, 0))
U21_ag(T14, half17_out_gg(T40, 0)) → log21_out_ag(s(s(T14)), s(s(s(0))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U22_ag(T14, half17_in_gg(T40, s(0)))
U22_ag(T14, half17_out_gg(T40, s(0))) → log21_out_ag(s(s(T14)), s(s(s(0))))
log21_in_ag(s(s(T14)), T50) → U23_ag(T14, T50, half17_in_aa(T14, s(s(T31))))
U23_ag(T14, T50, half17_out_aa(T14, s(s(T31)))) → U24_ag(T14, T50, half17_in_ga(T31, s(s(T40))))
U24_ag(T14, T50, half17_out_ga(T31, s(s(T40)))) → U25_ag(T14, T50, half17_in_ga(T40, s(s(T49))))
U25_ag(T14, T50, half17_out_ga(T40, s(s(T49)))) → U26_ag(T14, T50, half17_in_ga(T49, X150))
U26_ag(T14, T50, half17_out_ga(T49, X150)) → log21_out_ag(s(s(T14)), T50)
log21_in_ag(s(s(T14)), s(s(s(s(0))))) → U27_ag(T14, half17_in_aa(T14, s(s(T31))))
U27_ag(T14, half17_out_aa(T14, s(s(T31)))) → U28_ag(T14, half17_in_ga(T31, s(s(T40))))
U28_ag(T14, half17_out_ga(T31, s(s(T40)))) → U29_ag(T14, half17_in_ga(T40, s(s(T49))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U30_ag(T14, half17_in_gg(T49, 0))
U30_ag(T14, half17_out_gg(T49, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U31_ag(T14, half17_in_gg(T49, s(0)))
U31_ag(T14, half17_out_gg(T49, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
log21_in_ag(s(s(T14)), T59) → U32_ag(T14, T59, half17_in_aa(T14, s(s(T31))))
U32_ag(T14, T59, half17_out_aa(T14, s(s(T31)))) → U33_ag(T14, T59, half17_in_ga(T31, s(s(T40))))
U33_ag(T14, T59, half17_out_ga(T31, s(s(T40)))) → U34_ag(T14, T59, half17_in_ga(T40, s(s(T49))))
U34_ag(T14, T59, half17_out_ga(T40, s(s(T49)))) → U35_ag(T14, T59, half17_in_ga(T49, s(s(T58))))
U35_ag(T14, T59, half17_out_ga(T49, s(s(T58)))) → U36_ag(T14, T59, half17_in_ga(T58, X184))
U36_ag(T14, T59, half17_out_ga(T58, X184)) → log21_out_ag(s(s(T14)), T59)
log21_in_ag(s(s(T14)), s(s(s(s(s(0)))))) → U37_ag(T14, half17_in_aa(T14, s(s(T31))))
U37_ag(T14, half17_out_aa(T14, s(s(T31)))) → U38_ag(T14, half17_in_ga(T31, s(s(T40))))
U38_ag(T14, half17_out_ga(T31, s(s(T40)))) → U39_ag(T14, half17_in_ga(T40, s(s(T49))))
U39_ag(T14, half17_out_ga(T40, s(s(T49)))) → U40_ag(T14, half17_in_ga(T49, s(s(T58))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U41_ag(T14, half17_in_gg(T58, 0))
U41_ag(T14, half17_out_gg(T58, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U42_ag(T14, half17_in_gg(T58, s(0)))
U42_ag(T14, half17_out_gg(T58, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
log21_in_ag(s(s(T14)), T68) → U43_ag(T14, T68, half17_in_aa(T14, s(s(T31))))
U43_ag(T14, T68, half17_out_aa(T14, s(s(T31)))) → U44_ag(T14, T68, half17_in_ga(T31, s(s(T40))))
U44_ag(T14, T68, half17_out_ga(T31, s(s(T40)))) → U45_ag(T14, T68, half17_in_ga(T40, s(s(T49))))
U45_ag(T14, T68, half17_out_ga(T40, s(s(T49)))) → U46_ag(T14, T68, half17_in_ga(T49, s(s(T58))))
U46_ag(T14, T68, half17_out_ga(T49, s(s(T58)))) → U47_ag(T14, T68, half17_in_ga(T58, s(s(T67))))
U47_ag(T14, T68, half17_out_ga(T58, s(s(T67)))) → U48_ag(T14, T68, half17_in_ga(T67, X218))
U48_ag(T14, T68, half17_out_ga(T67, X218)) → log21_out_ag(s(s(T14)), T68)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(0))))))) → U49_ag(T14, half17_in_aa(T14, s(s(T31))))
U49_ag(T14, half17_out_aa(T14, s(s(T31)))) → U50_ag(T14, half17_in_ga(T31, s(s(T40))))
U50_ag(T14, half17_out_ga(T31, s(s(T40)))) → U51_ag(T14, half17_in_ga(T40, s(s(T49))))
U51_ag(T14, half17_out_ga(T40, s(s(T49)))) → U52_ag(T14, half17_in_ga(T49, s(s(T58))))
U52_ag(T14, half17_out_ga(T49, s(s(T58)))) → U53_ag(T14, half17_in_ga(T58, s(s(T67))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U54_ag(T14, half17_in_gg(T67, 0))
U54_ag(T14, half17_out_gg(T67, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U55_ag(T14, half17_in_gg(T67, s(0)))
U55_ag(T14, half17_out_gg(T67, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
log21_in_ag(s(s(T14)), T77) → U56_ag(T14, T77, half17_in_aa(T14, s(s(T31))))
U56_ag(T14, T77, half17_out_aa(T14, s(s(T31)))) → U57_ag(T14, T77, half17_in_ga(T31, s(s(T40))))
U57_ag(T14, T77, half17_out_ga(T31, s(s(T40)))) → U58_ag(T14, T77, half17_in_ga(T40, s(s(T49))))
U58_ag(T14, T77, half17_out_ga(T40, s(s(T49)))) → U59_ag(T14, T77, half17_in_ga(T49, s(s(T58))))
U59_ag(T14, T77, half17_out_ga(T49, s(s(T58)))) → U60_ag(T14, T77, half17_in_ga(T58, s(s(T67))))
U60_ag(T14, T77, half17_out_ga(T58, s(s(T67)))) → U61_ag(T14, T77, half17_in_ga(T67, s(s(T76))))
U61_ag(T14, T77, half17_out_ga(T67, s(s(T76)))) → U62_ag(T14, T77, half17_in_ga(T76, X252))
U62_ag(T14, T77, half17_out_ga(T76, X252)) → log21_out_ag(s(s(T14)), T77)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → U63_ag(T14, half17_in_aa(T14, s(s(T31))))
U63_ag(T14, half17_out_aa(T14, s(s(T31)))) → U64_ag(T14, half17_in_ga(T31, s(s(T40))))
U64_ag(T14, half17_out_ga(T31, s(s(T40)))) → U65_ag(T14, half17_in_ga(T40, s(s(T49))))
U65_ag(T14, half17_out_ga(T40, s(s(T49)))) → U66_ag(T14, half17_in_ga(T49, s(s(T58))))
U66_ag(T14, half17_out_ga(T49, s(s(T58)))) → U67_ag(T14, half17_in_ga(T58, s(s(T67))))
U67_ag(T14, half17_out_ga(T58, s(s(T67)))) → U68_ag(T14, half17_in_ga(T67, s(s(T76))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U69_ag(T14, half17_in_gg(T76, 0))
U69_ag(T14, half17_out_gg(T76, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U70_ag(T14, half17_in_gg(T76, s(0)))
U70_ag(T14, half17_out_gg(T76, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
log21_in_ag(s(s(T14)), T86) → U71_ag(T14, T86, half17_in_aa(T14, s(s(T31))))
U71_ag(T14, T86, half17_out_aa(T14, s(s(T31)))) → U72_ag(T14, T86, half17_in_ga(T31, s(s(T40))))
U72_ag(T14, T86, half17_out_ga(T31, s(s(T40)))) → U73_ag(T14, T86, half17_in_ga(T40, s(s(T49))))
U73_ag(T14, T86, half17_out_ga(T40, s(s(T49)))) → U74_ag(T14, T86, half17_in_ga(T49, s(s(T58))))
U74_ag(T14, T86, half17_out_ga(T49, s(s(T58)))) → U75_ag(T14, T86, half17_in_ga(T58, s(s(T67))))
U75_ag(T14, T86, half17_out_ga(T58, s(s(T67)))) → U76_ag(T14, T86, half17_in_ga(T67, s(s(T76))))
U76_ag(T14, T86, half17_out_ga(T67, s(s(T76)))) → U77_ag(T14, T86, half17_in_ga(T76, s(s(T85))))
U77_ag(T14, T86, half17_out_ga(T76, s(s(T85)))) → U78_ag(T14, T86, p139_in_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86))
p139_in_gagg(T85, X286, T88, T86) → U3_gagg(T85, X286, T88, T86, half17_in_ga(T85, X286))
U3_gagg(T85, X286, T88, T86, half17_out_ga(T85, X286)) → p139_out_gagg(T85, X286, T88, T86)
p139_in_gagg(T85, 0, T98, s(T98)) → U4_gagg(T85, T98, half17_in_gg(T85, 0))
U4_gagg(T85, T98, half17_out_gg(T85, 0)) → p139_out_gagg(T85, 0, T98, s(T98))
p139_in_gagg(T85, s(0), T103, s(T103)) → U5_gagg(T85, T103, half17_in_gg(T85, s(0)))
U5_gagg(T85, T103, half17_out_gg(T85, s(0))) → p139_out_gagg(T85, s(0), T103, s(T103))
p139_in_gagg(T85, s(s(T110)), T111, T112) → U6_gagg(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
U6_gagg(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → U7_gagg(T85, T110, T111, T112, p139_in_gagg(T110, X323, s(T111), T112))
U7_gagg(T85, T110, T111, T112, p139_out_gagg(T110, X323, s(T111), T112)) → p139_out_gagg(T85, s(s(T110)), T111, T112)
U78_ag(T14, T86, p139_out_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86)) → log21_out_ag(s(s(T14)), T86)

The argument filtering Pi contains the following mapping:
log21_in_ag(x1, x2)  =  log21_in_ag(x2)
0  =  0
log21_out_ag(x1, x2)  =  log21_out_ag(x1, x2)
U8_ag(x1, x2, x3)  =  U8_ag(x2, x3)
half17_in_aa(x1, x2)  =  half17_in_aa
U2_aa(x1, x2, x3)  =  U2_aa(x3)
half22_in_aa(x1, x2)  =  half22_in_aa
half22_out_aa(x1, x2)  =  half22_out_aa(x1, x2)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
half17_out_aa(x1, x2)  =  half17_out_aa(x1, x2)
s(x1)  =  s(x1)
U9_ag(x1, x2)  =  U9_ag(x2)
half17_in_ag(x1, x2)  =  half17_in_ag(x2)
U2_ag(x1, x2, x3)  =  U2_ag(x2, x3)
half22_in_ag(x1, x2)  =  half22_in_ag(x2)
half22_out_ag(x1, x2)  =  half22_out_ag(x1, x2)
U1_ag(x1, x2, x3)  =  U1_ag(x2, x3)
half17_out_ag(x1, x2)  =  half17_out_ag(x1, x2)
U10_ag(x1, x2)  =  U10_ag(x2)
U11_ag(x1, x2, x3)  =  U11_ag(x2, x3)
U12_ag(x1, x2, x3)  =  U12_ag(x1, x2, x3)
half17_in_ga(x1, x2)  =  half17_in_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x1, x3)
half22_in_ga(x1, x2)  =  half22_in_ga(x1)
half22_out_ga(x1, x2)  =  half22_out_ga(x1, x2)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
half17_out_ga(x1, x2)  =  half17_out_ga(x1, x2)
U13_ag(x1, x2)  =  U13_ag(x2)
U14_ag(x1, x2)  =  U14_ag(x1, x2)
half17_in_gg(x1, x2)  =  half17_in_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x1, x2, x3)
half22_in_gg(x1, x2)  =  half22_in_gg(x1, x2)
half22_out_gg(x1, x2)  =  half22_out_gg(x1, x2)
U1_gg(x1, x2, x3)  =  U1_gg(x1, x2, x3)
half17_out_gg(x1, x2)  =  half17_out_gg(x1, x2)
U15_ag(x1, x2)  =  U15_ag(x1, x2)
U16_ag(x1, x2, x3)  =  U16_ag(x2, x3)
U17_ag(x1, x2, x3)  =  U17_ag(x1, x2, x3)
U18_ag(x1, x2, x3)  =  U18_ag(x1, x2, x3)
U19_ag(x1, x2)  =  U19_ag(x2)
U20_ag(x1, x2)  =  U20_ag(x1, x2)
U21_ag(x1, x2)  =  U21_ag(x1, x2)
U22_ag(x1, x2)  =  U22_ag(x1, x2)
U23_ag(x1, x2, x3)  =  U23_ag(x2, x3)
U24_ag(x1, x2, x3)  =  U24_ag(x1, x2, x3)
U25_ag(x1, x2, x3)  =  U25_ag(x1, x2, x3)
U26_ag(x1, x2, x3)  =  U26_ag(x1, x2, x3)
U27_ag(x1, x2)  =  U27_ag(x2)
U28_ag(x1, x2)  =  U28_ag(x1, x2)
U29_ag(x1, x2)  =  U29_ag(x1, x2)
U30_ag(x1, x2)  =  U30_ag(x1, x2)
U31_ag(x1, x2)  =  U31_ag(x1, x2)
U32_ag(x1, x2, x3)  =  U32_ag(x2, x3)
U33_ag(x1, x2, x3)  =  U33_ag(x1, x2, x3)
U34_ag(x1, x2, x3)  =  U34_ag(x1, x2, x3)
U35_ag(x1, x2, x3)  =  U35_ag(x1, x2, x3)
U36_ag(x1, x2, x3)  =  U36_ag(x1, x2, x3)
U37_ag(x1, x2)  =  U37_ag(x2)
U38_ag(x1, x2)  =  U38_ag(x1, x2)
U39_ag(x1, x2)  =  U39_ag(x1, x2)
U40_ag(x1, x2)  =  U40_ag(x1, x2)
U41_ag(x1, x2)  =  U41_ag(x1, x2)
U42_ag(x1, x2)  =  U42_ag(x1, x2)
U43_ag(x1, x2, x3)  =  U43_ag(x2, x3)
U44_ag(x1, x2, x3)  =  U44_ag(x1, x2, x3)
U45_ag(x1, x2, x3)  =  U45_ag(x1, x2, x3)
U46_ag(x1, x2, x3)  =  U46_ag(x1, x2, x3)
U47_ag(x1, x2, x3)  =  U47_ag(x1, x2, x3)
U48_ag(x1, x2, x3)  =  U48_ag(x1, x2, x3)
U49_ag(x1, x2)  =  U49_ag(x2)
U50_ag(x1, x2)  =  U50_ag(x1, x2)
U51_ag(x1, x2)  =  U51_ag(x1, x2)
U52_ag(x1, x2)  =  U52_ag(x1, x2)
U53_ag(x1, x2)  =  U53_ag(x1, x2)
U54_ag(x1, x2)  =  U54_ag(x1, x2)
U55_ag(x1, x2)  =  U55_ag(x1, x2)
U56_ag(x1, x2, x3)  =  U56_ag(x2, x3)
U57_ag(x1, x2, x3)  =  U57_ag(x1, x2, x3)
U58_ag(x1, x2, x3)  =  U58_ag(x1, x2, x3)
U59_ag(x1, x2, x3)  =  U59_ag(x1, x2, x3)
U60_ag(x1, x2, x3)  =  U60_ag(x1, x2, x3)
U61_ag(x1, x2, x3)  =  U61_ag(x1, x2, x3)
U62_ag(x1, x2, x3)  =  U62_ag(x1, x2, x3)
U63_ag(x1, x2)  =  U63_ag(x2)
U64_ag(x1, x2)  =  U64_ag(x1, x2)
U65_ag(x1, x2)  =  U65_ag(x1, x2)
U66_ag(x1, x2)  =  U66_ag(x1, x2)
U67_ag(x1, x2)  =  U67_ag(x1, x2)
U68_ag(x1, x2)  =  U68_ag(x1, x2)
U69_ag(x1, x2)  =  U69_ag(x1, x2)
U70_ag(x1, x2)  =  U70_ag(x1, x2)
U71_ag(x1, x2, x3)  =  U71_ag(x2, x3)
U72_ag(x1, x2, x3)  =  U72_ag(x1, x2, x3)
U73_ag(x1, x2, x3)  =  U73_ag(x1, x2, x3)
U74_ag(x1, x2, x3)  =  U74_ag(x1, x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x1, x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x1, x2, x3)
U77_ag(x1, x2, x3)  =  U77_ag(x1, x2, x3)
U78_ag(x1, x2, x3)  =  U78_ag(x1, x2, x3)
p139_in_gagg(x1, x2, x3, x4)  =  p139_in_gagg(x1, x3, x4)
U3_gagg(x1, x2, x3, x4, x5)  =  U3_gagg(x1, x3, x4, x5)
p139_out_gagg(x1, x2, x3, x4)  =  p139_out_gagg(x1, x2, x3, x4)
U4_gagg(x1, x2, x3)  =  U4_gagg(x1, x2, x3)
U5_gagg(x1, x2, x3)  =  U5_gagg(x1, x2, x3)
U6_gagg(x1, x2, x3, x4, x5)  =  U6_gagg(x1, x3, x4, x5)
U7_gagg(x1, x2, x3, x4, x5)  =  U7_gagg(x1, x2, x3, x4, x5)
HALF22_IN_GG(x1, x2)  =  HALF22_IN_GG(x1, x2)

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

(10) UsableRulesProof (EQUIVALENT transformation)

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

(11) Obligation:

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

HALF22_IN_GG(s(s(T26)), s(X55)) → HALF22_IN_GG(T26, X55)

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

(12) PiDPToQDPProof (EQUIVALENT transformation)

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

(13) Obligation:

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

HALF22_IN_GG(s(s(T26)), s(X55)) → HALF22_IN_GG(T26, X55)

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

(14) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • HALF22_IN_GG(s(s(T26)), s(X55)) → HALF22_IN_GG(T26, X55)
    The graph contains the following edges 1 > 1, 2 > 2

(15) YES

(16) Obligation:

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

HALF22_IN_GA(s(s(T26)), s(X55)) → HALF22_IN_GA(T26, X55)

The TRS R consists of the following rules:

log21_in_ag(0, 0) → log21_out_ag(0, 0)
log21_in_ag(s(0), 0) → log21_out_ag(s(0), 0)
log21_in_ag(s(s(T14)), T13) → U8_ag(T14, T13, half17_in_aa(T14, X28))
half17_in_aa(T22, s(X46)) → U2_aa(T22, X46, half22_in_aa(T22, X46))
half22_in_aa(0, 0) → half22_out_aa(0, 0)
half22_in_aa(s(0), 0) → half22_out_aa(s(0), 0)
half22_in_aa(s(s(T26)), s(X55)) → U1_aa(T26, X55, half22_in_aa(T26, X55))
U1_aa(T26, X55, half22_out_aa(T26, X55)) → half22_out_aa(s(s(T26)), s(X55))
U2_aa(T22, X46, half22_out_aa(T22, X46)) → half17_out_aa(T22, s(X46))
U8_ag(T14, T13, half17_out_aa(T14, X28)) → log21_out_ag(s(s(T14)), T13)
log21_in_ag(s(s(T14)), s(0)) → U9_ag(T14, half17_in_ag(T14, 0))
half17_in_ag(T22, s(X46)) → U2_ag(T22, X46, half22_in_ag(T22, X46))
half22_in_ag(0, 0) → half22_out_ag(0, 0)
half22_in_ag(s(0), 0) → half22_out_ag(s(0), 0)
half22_in_ag(s(s(T26)), s(X55)) → U1_ag(T26, X55, half22_in_ag(T26, X55))
U1_ag(T26, X55, half22_out_ag(T26, X55)) → half22_out_ag(s(s(T26)), s(X55))
U2_ag(T22, X46, half22_out_ag(T22, X46)) → half17_out_ag(T22, s(X46))
U9_ag(T14, half17_out_ag(T14, 0)) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), s(0)) → U10_ag(T14, half17_in_ag(T14, s(0)))
U10_ag(T14, half17_out_ag(T14, s(0))) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), T32) → U11_ag(T14, T32, half17_in_aa(T14, s(s(T31))))
U11_ag(T14, T32, half17_out_aa(T14, s(s(T31)))) → U12_ag(T14, T32, half17_in_ga(T31, X82))
half17_in_ga(T22, s(X46)) → U2_ga(T22, X46, half22_in_ga(T22, X46))
half22_in_ga(0, 0) → half22_out_ga(0, 0)
half22_in_ga(s(0), 0) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26)), s(X55)) → U1_ga(T26, X55, half22_in_ga(T26, X55))
U1_ga(T26, X55, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))
U2_ga(T22, X46, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
U12_ag(T14, T32, half17_out_ga(T31, X82)) → log21_out_ag(s(s(T14)), T32)
log21_in_ag(s(s(T14)), s(s(0))) → U13_ag(T14, half17_in_aa(T14, s(s(T31))))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U14_ag(T14, half17_in_gg(T31, 0))
half17_in_gg(T22, s(X46)) → U2_gg(T22, X46, half22_in_gg(T22, X46))
half22_in_gg(0, 0) → half22_out_gg(0, 0)
half22_in_gg(s(0), 0) → half22_out_gg(s(0), 0)
half22_in_gg(s(s(T26)), s(X55)) → U1_gg(T26, X55, half22_in_gg(T26, X55))
U1_gg(T26, X55, half22_out_gg(T26, X55)) → half22_out_gg(s(s(T26)), s(X55))
U2_gg(T22, X46, half22_out_gg(T22, X46)) → half17_out_gg(T22, s(X46))
U14_ag(T14, half17_out_gg(T31, 0)) → log21_out_ag(s(s(T14)), s(s(0)))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U15_ag(T14, half17_in_gg(T31, s(0)))
U15_ag(T14, half17_out_gg(T31, s(0))) → log21_out_ag(s(s(T14)), s(s(0)))
log21_in_ag(s(s(T14)), T41) → U16_ag(T14, T41, half17_in_aa(T14, s(s(T31))))
U16_ag(T14, T41, half17_out_aa(T14, s(s(T31)))) → U17_ag(T14, T41, half17_in_ga(T31, s(s(T40))))
U17_ag(T14, T41, half17_out_ga(T31, s(s(T40)))) → U18_ag(T14, T41, half17_in_ga(T40, X116))
U18_ag(T14, T41, half17_out_ga(T40, X116)) → log21_out_ag(s(s(T14)), T41)
log21_in_ag(s(s(T14)), s(s(s(0)))) → U19_ag(T14, half17_in_aa(T14, s(s(T31))))
U19_ag(T14, half17_out_aa(T14, s(s(T31)))) → U20_ag(T14, half17_in_ga(T31, s(s(T40))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U21_ag(T14, half17_in_gg(T40, 0))
U21_ag(T14, half17_out_gg(T40, 0)) → log21_out_ag(s(s(T14)), s(s(s(0))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U22_ag(T14, half17_in_gg(T40, s(0)))
U22_ag(T14, half17_out_gg(T40, s(0))) → log21_out_ag(s(s(T14)), s(s(s(0))))
log21_in_ag(s(s(T14)), T50) → U23_ag(T14, T50, half17_in_aa(T14, s(s(T31))))
U23_ag(T14, T50, half17_out_aa(T14, s(s(T31)))) → U24_ag(T14, T50, half17_in_ga(T31, s(s(T40))))
U24_ag(T14, T50, half17_out_ga(T31, s(s(T40)))) → U25_ag(T14, T50, half17_in_ga(T40, s(s(T49))))
U25_ag(T14, T50, half17_out_ga(T40, s(s(T49)))) → U26_ag(T14, T50, half17_in_ga(T49, X150))
U26_ag(T14, T50, half17_out_ga(T49, X150)) → log21_out_ag(s(s(T14)), T50)
log21_in_ag(s(s(T14)), s(s(s(s(0))))) → U27_ag(T14, half17_in_aa(T14, s(s(T31))))
U27_ag(T14, half17_out_aa(T14, s(s(T31)))) → U28_ag(T14, half17_in_ga(T31, s(s(T40))))
U28_ag(T14, half17_out_ga(T31, s(s(T40)))) → U29_ag(T14, half17_in_ga(T40, s(s(T49))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U30_ag(T14, half17_in_gg(T49, 0))
U30_ag(T14, half17_out_gg(T49, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U31_ag(T14, half17_in_gg(T49, s(0)))
U31_ag(T14, half17_out_gg(T49, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
log21_in_ag(s(s(T14)), T59) → U32_ag(T14, T59, half17_in_aa(T14, s(s(T31))))
U32_ag(T14, T59, half17_out_aa(T14, s(s(T31)))) → U33_ag(T14, T59, half17_in_ga(T31, s(s(T40))))
U33_ag(T14, T59, half17_out_ga(T31, s(s(T40)))) → U34_ag(T14, T59, half17_in_ga(T40, s(s(T49))))
U34_ag(T14, T59, half17_out_ga(T40, s(s(T49)))) → U35_ag(T14, T59, half17_in_ga(T49, s(s(T58))))
U35_ag(T14, T59, half17_out_ga(T49, s(s(T58)))) → U36_ag(T14, T59, half17_in_ga(T58, X184))
U36_ag(T14, T59, half17_out_ga(T58, X184)) → log21_out_ag(s(s(T14)), T59)
log21_in_ag(s(s(T14)), s(s(s(s(s(0)))))) → U37_ag(T14, half17_in_aa(T14, s(s(T31))))
U37_ag(T14, half17_out_aa(T14, s(s(T31)))) → U38_ag(T14, half17_in_ga(T31, s(s(T40))))
U38_ag(T14, half17_out_ga(T31, s(s(T40)))) → U39_ag(T14, half17_in_ga(T40, s(s(T49))))
U39_ag(T14, half17_out_ga(T40, s(s(T49)))) → U40_ag(T14, half17_in_ga(T49, s(s(T58))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U41_ag(T14, half17_in_gg(T58, 0))
U41_ag(T14, half17_out_gg(T58, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U42_ag(T14, half17_in_gg(T58, s(0)))
U42_ag(T14, half17_out_gg(T58, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
log21_in_ag(s(s(T14)), T68) → U43_ag(T14, T68, half17_in_aa(T14, s(s(T31))))
U43_ag(T14, T68, half17_out_aa(T14, s(s(T31)))) → U44_ag(T14, T68, half17_in_ga(T31, s(s(T40))))
U44_ag(T14, T68, half17_out_ga(T31, s(s(T40)))) → U45_ag(T14, T68, half17_in_ga(T40, s(s(T49))))
U45_ag(T14, T68, half17_out_ga(T40, s(s(T49)))) → U46_ag(T14, T68, half17_in_ga(T49, s(s(T58))))
U46_ag(T14, T68, half17_out_ga(T49, s(s(T58)))) → U47_ag(T14, T68, half17_in_ga(T58, s(s(T67))))
U47_ag(T14, T68, half17_out_ga(T58, s(s(T67)))) → U48_ag(T14, T68, half17_in_ga(T67, X218))
U48_ag(T14, T68, half17_out_ga(T67, X218)) → log21_out_ag(s(s(T14)), T68)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(0))))))) → U49_ag(T14, half17_in_aa(T14, s(s(T31))))
U49_ag(T14, half17_out_aa(T14, s(s(T31)))) → U50_ag(T14, half17_in_ga(T31, s(s(T40))))
U50_ag(T14, half17_out_ga(T31, s(s(T40)))) → U51_ag(T14, half17_in_ga(T40, s(s(T49))))
U51_ag(T14, half17_out_ga(T40, s(s(T49)))) → U52_ag(T14, half17_in_ga(T49, s(s(T58))))
U52_ag(T14, half17_out_ga(T49, s(s(T58)))) → U53_ag(T14, half17_in_ga(T58, s(s(T67))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U54_ag(T14, half17_in_gg(T67, 0))
U54_ag(T14, half17_out_gg(T67, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U55_ag(T14, half17_in_gg(T67, s(0)))
U55_ag(T14, half17_out_gg(T67, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
log21_in_ag(s(s(T14)), T77) → U56_ag(T14, T77, half17_in_aa(T14, s(s(T31))))
U56_ag(T14, T77, half17_out_aa(T14, s(s(T31)))) → U57_ag(T14, T77, half17_in_ga(T31, s(s(T40))))
U57_ag(T14, T77, half17_out_ga(T31, s(s(T40)))) → U58_ag(T14, T77, half17_in_ga(T40, s(s(T49))))
U58_ag(T14, T77, half17_out_ga(T40, s(s(T49)))) → U59_ag(T14, T77, half17_in_ga(T49, s(s(T58))))
U59_ag(T14, T77, half17_out_ga(T49, s(s(T58)))) → U60_ag(T14, T77, half17_in_ga(T58, s(s(T67))))
U60_ag(T14, T77, half17_out_ga(T58, s(s(T67)))) → U61_ag(T14, T77, half17_in_ga(T67, s(s(T76))))
U61_ag(T14, T77, half17_out_ga(T67, s(s(T76)))) → U62_ag(T14, T77, half17_in_ga(T76, X252))
U62_ag(T14, T77, half17_out_ga(T76, X252)) → log21_out_ag(s(s(T14)), T77)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → U63_ag(T14, half17_in_aa(T14, s(s(T31))))
U63_ag(T14, half17_out_aa(T14, s(s(T31)))) → U64_ag(T14, half17_in_ga(T31, s(s(T40))))
U64_ag(T14, half17_out_ga(T31, s(s(T40)))) → U65_ag(T14, half17_in_ga(T40, s(s(T49))))
U65_ag(T14, half17_out_ga(T40, s(s(T49)))) → U66_ag(T14, half17_in_ga(T49, s(s(T58))))
U66_ag(T14, half17_out_ga(T49, s(s(T58)))) → U67_ag(T14, half17_in_ga(T58, s(s(T67))))
U67_ag(T14, half17_out_ga(T58, s(s(T67)))) → U68_ag(T14, half17_in_ga(T67, s(s(T76))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U69_ag(T14, half17_in_gg(T76, 0))
U69_ag(T14, half17_out_gg(T76, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U70_ag(T14, half17_in_gg(T76, s(0)))
U70_ag(T14, half17_out_gg(T76, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
log21_in_ag(s(s(T14)), T86) → U71_ag(T14, T86, half17_in_aa(T14, s(s(T31))))
U71_ag(T14, T86, half17_out_aa(T14, s(s(T31)))) → U72_ag(T14, T86, half17_in_ga(T31, s(s(T40))))
U72_ag(T14, T86, half17_out_ga(T31, s(s(T40)))) → U73_ag(T14, T86, half17_in_ga(T40, s(s(T49))))
U73_ag(T14, T86, half17_out_ga(T40, s(s(T49)))) → U74_ag(T14, T86, half17_in_ga(T49, s(s(T58))))
U74_ag(T14, T86, half17_out_ga(T49, s(s(T58)))) → U75_ag(T14, T86, half17_in_ga(T58, s(s(T67))))
U75_ag(T14, T86, half17_out_ga(T58, s(s(T67)))) → U76_ag(T14, T86, half17_in_ga(T67, s(s(T76))))
U76_ag(T14, T86, half17_out_ga(T67, s(s(T76)))) → U77_ag(T14, T86, half17_in_ga(T76, s(s(T85))))
U77_ag(T14, T86, half17_out_ga(T76, s(s(T85)))) → U78_ag(T14, T86, p139_in_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86))
p139_in_gagg(T85, X286, T88, T86) → U3_gagg(T85, X286, T88, T86, half17_in_ga(T85, X286))
U3_gagg(T85, X286, T88, T86, half17_out_ga(T85, X286)) → p139_out_gagg(T85, X286, T88, T86)
p139_in_gagg(T85, 0, T98, s(T98)) → U4_gagg(T85, T98, half17_in_gg(T85, 0))
U4_gagg(T85, T98, half17_out_gg(T85, 0)) → p139_out_gagg(T85, 0, T98, s(T98))
p139_in_gagg(T85, s(0), T103, s(T103)) → U5_gagg(T85, T103, half17_in_gg(T85, s(0)))
U5_gagg(T85, T103, half17_out_gg(T85, s(0))) → p139_out_gagg(T85, s(0), T103, s(T103))
p139_in_gagg(T85, s(s(T110)), T111, T112) → U6_gagg(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
U6_gagg(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → U7_gagg(T85, T110, T111, T112, p139_in_gagg(T110, X323, s(T111), T112))
U7_gagg(T85, T110, T111, T112, p139_out_gagg(T110, X323, s(T111), T112)) → p139_out_gagg(T85, s(s(T110)), T111, T112)
U78_ag(T14, T86, p139_out_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86)) → log21_out_ag(s(s(T14)), T86)

The argument filtering Pi contains the following mapping:
log21_in_ag(x1, x2)  =  log21_in_ag(x2)
0  =  0
log21_out_ag(x1, x2)  =  log21_out_ag(x1, x2)
U8_ag(x1, x2, x3)  =  U8_ag(x2, x3)
half17_in_aa(x1, x2)  =  half17_in_aa
U2_aa(x1, x2, x3)  =  U2_aa(x3)
half22_in_aa(x1, x2)  =  half22_in_aa
half22_out_aa(x1, x2)  =  half22_out_aa(x1, x2)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
half17_out_aa(x1, x2)  =  half17_out_aa(x1, x2)
s(x1)  =  s(x1)
U9_ag(x1, x2)  =  U9_ag(x2)
half17_in_ag(x1, x2)  =  half17_in_ag(x2)
U2_ag(x1, x2, x3)  =  U2_ag(x2, x3)
half22_in_ag(x1, x2)  =  half22_in_ag(x2)
half22_out_ag(x1, x2)  =  half22_out_ag(x1, x2)
U1_ag(x1, x2, x3)  =  U1_ag(x2, x3)
half17_out_ag(x1, x2)  =  half17_out_ag(x1, x2)
U10_ag(x1, x2)  =  U10_ag(x2)
U11_ag(x1, x2, x3)  =  U11_ag(x2, x3)
U12_ag(x1, x2, x3)  =  U12_ag(x1, x2, x3)
half17_in_ga(x1, x2)  =  half17_in_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x1, x3)
half22_in_ga(x1, x2)  =  half22_in_ga(x1)
half22_out_ga(x1, x2)  =  half22_out_ga(x1, x2)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
half17_out_ga(x1, x2)  =  half17_out_ga(x1, x2)
U13_ag(x1, x2)  =  U13_ag(x2)
U14_ag(x1, x2)  =  U14_ag(x1, x2)
half17_in_gg(x1, x2)  =  half17_in_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x1, x2, x3)
half22_in_gg(x1, x2)  =  half22_in_gg(x1, x2)
half22_out_gg(x1, x2)  =  half22_out_gg(x1, x2)
U1_gg(x1, x2, x3)  =  U1_gg(x1, x2, x3)
half17_out_gg(x1, x2)  =  half17_out_gg(x1, x2)
U15_ag(x1, x2)  =  U15_ag(x1, x2)
U16_ag(x1, x2, x3)  =  U16_ag(x2, x3)
U17_ag(x1, x2, x3)  =  U17_ag(x1, x2, x3)
U18_ag(x1, x2, x3)  =  U18_ag(x1, x2, x3)
U19_ag(x1, x2)  =  U19_ag(x2)
U20_ag(x1, x2)  =  U20_ag(x1, x2)
U21_ag(x1, x2)  =  U21_ag(x1, x2)
U22_ag(x1, x2)  =  U22_ag(x1, x2)
U23_ag(x1, x2, x3)  =  U23_ag(x2, x3)
U24_ag(x1, x2, x3)  =  U24_ag(x1, x2, x3)
U25_ag(x1, x2, x3)  =  U25_ag(x1, x2, x3)
U26_ag(x1, x2, x3)  =  U26_ag(x1, x2, x3)
U27_ag(x1, x2)  =  U27_ag(x2)
U28_ag(x1, x2)  =  U28_ag(x1, x2)
U29_ag(x1, x2)  =  U29_ag(x1, x2)
U30_ag(x1, x2)  =  U30_ag(x1, x2)
U31_ag(x1, x2)  =  U31_ag(x1, x2)
U32_ag(x1, x2, x3)  =  U32_ag(x2, x3)
U33_ag(x1, x2, x3)  =  U33_ag(x1, x2, x3)
U34_ag(x1, x2, x3)  =  U34_ag(x1, x2, x3)
U35_ag(x1, x2, x3)  =  U35_ag(x1, x2, x3)
U36_ag(x1, x2, x3)  =  U36_ag(x1, x2, x3)
U37_ag(x1, x2)  =  U37_ag(x2)
U38_ag(x1, x2)  =  U38_ag(x1, x2)
U39_ag(x1, x2)  =  U39_ag(x1, x2)
U40_ag(x1, x2)  =  U40_ag(x1, x2)
U41_ag(x1, x2)  =  U41_ag(x1, x2)
U42_ag(x1, x2)  =  U42_ag(x1, x2)
U43_ag(x1, x2, x3)  =  U43_ag(x2, x3)
U44_ag(x1, x2, x3)  =  U44_ag(x1, x2, x3)
U45_ag(x1, x2, x3)  =  U45_ag(x1, x2, x3)
U46_ag(x1, x2, x3)  =  U46_ag(x1, x2, x3)
U47_ag(x1, x2, x3)  =  U47_ag(x1, x2, x3)
U48_ag(x1, x2, x3)  =  U48_ag(x1, x2, x3)
U49_ag(x1, x2)  =  U49_ag(x2)
U50_ag(x1, x2)  =  U50_ag(x1, x2)
U51_ag(x1, x2)  =  U51_ag(x1, x2)
U52_ag(x1, x2)  =  U52_ag(x1, x2)
U53_ag(x1, x2)  =  U53_ag(x1, x2)
U54_ag(x1, x2)  =  U54_ag(x1, x2)
U55_ag(x1, x2)  =  U55_ag(x1, x2)
U56_ag(x1, x2, x3)  =  U56_ag(x2, x3)
U57_ag(x1, x2, x3)  =  U57_ag(x1, x2, x3)
U58_ag(x1, x2, x3)  =  U58_ag(x1, x2, x3)
U59_ag(x1, x2, x3)  =  U59_ag(x1, x2, x3)
U60_ag(x1, x2, x3)  =  U60_ag(x1, x2, x3)
U61_ag(x1, x2, x3)  =  U61_ag(x1, x2, x3)
U62_ag(x1, x2, x3)  =  U62_ag(x1, x2, x3)
U63_ag(x1, x2)  =  U63_ag(x2)
U64_ag(x1, x2)  =  U64_ag(x1, x2)
U65_ag(x1, x2)  =  U65_ag(x1, x2)
U66_ag(x1, x2)  =  U66_ag(x1, x2)
U67_ag(x1, x2)  =  U67_ag(x1, x2)
U68_ag(x1, x2)  =  U68_ag(x1, x2)
U69_ag(x1, x2)  =  U69_ag(x1, x2)
U70_ag(x1, x2)  =  U70_ag(x1, x2)
U71_ag(x1, x2, x3)  =  U71_ag(x2, x3)
U72_ag(x1, x2, x3)  =  U72_ag(x1, x2, x3)
U73_ag(x1, x2, x3)  =  U73_ag(x1, x2, x3)
U74_ag(x1, x2, x3)  =  U74_ag(x1, x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x1, x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x1, x2, x3)
U77_ag(x1, x2, x3)  =  U77_ag(x1, x2, x3)
U78_ag(x1, x2, x3)  =  U78_ag(x1, x2, x3)
p139_in_gagg(x1, x2, x3, x4)  =  p139_in_gagg(x1, x3, x4)
U3_gagg(x1, x2, x3, x4, x5)  =  U3_gagg(x1, x3, x4, x5)
p139_out_gagg(x1, x2, x3, x4)  =  p139_out_gagg(x1, x2, x3, x4)
U4_gagg(x1, x2, x3)  =  U4_gagg(x1, x2, x3)
U5_gagg(x1, x2, x3)  =  U5_gagg(x1, x2, x3)
U6_gagg(x1, x2, x3, x4, x5)  =  U6_gagg(x1, x3, x4, x5)
U7_gagg(x1, x2, x3, x4, x5)  =  U7_gagg(x1, x2, x3, x4, x5)
HALF22_IN_GA(x1, x2)  =  HALF22_IN_GA(x1)

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

(17) UsableRulesProof (EQUIVALENT transformation)

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

(18) Obligation:

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

HALF22_IN_GA(s(s(T26)), s(X55)) → HALF22_IN_GA(T26, X55)

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

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

(19) PiDPToQDPProof (SOUND transformation)

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

(20) Obligation:

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

HALF22_IN_GA(s(s(T26))) → HALF22_IN_GA(T26)

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

(21) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • HALF22_IN_GA(s(s(T26))) → HALF22_IN_GA(T26)
    The graph contains the following edges 1 > 1

(22) YES

(23) Obligation:

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

P139_IN_GAGG(T85, s(s(T110)), T111, T112) → U6_GAGG(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
U6_GAGG(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → P139_IN_GAGG(T110, X323, s(T111), T112)

The TRS R consists of the following rules:

log21_in_ag(0, 0) → log21_out_ag(0, 0)
log21_in_ag(s(0), 0) → log21_out_ag(s(0), 0)
log21_in_ag(s(s(T14)), T13) → U8_ag(T14, T13, half17_in_aa(T14, X28))
half17_in_aa(T22, s(X46)) → U2_aa(T22, X46, half22_in_aa(T22, X46))
half22_in_aa(0, 0) → half22_out_aa(0, 0)
half22_in_aa(s(0), 0) → half22_out_aa(s(0), 0)
half22_in_aa(s(s(T26)), s(X55)) → U1_aa(T26, X55, half22_in_aa(T26, X55))
U1_aa(T26, X55, half22_out_aa(T26, X55)) → half22_out_aa(s(s(T26)), s(X55))
U2_aa(T22, X46, half22_out_aa(T22, X46)) → half17_out_aa(T22, s(X46))
U8_ag(T14, T13, half17_out_aa(T14, X28)) → log21_out_ag(s(s(T14)), T13)
log21_in_ag(s(s(T14)), s(0)) → U9_ag(T14, half17_in_ag(T14, 0))
half17_in_ag(T22, s(X46)) → U2_ag(T22, X46, half22_in_ag(T22, X46))
half22_in_ag(0, 0) → half22_out_ag(0, 0)
half22_in_ag(s(0), 0) → half22_out_ag(s(0), 0)
half22_in_ag(s(s(T26)), s(X55)) → U1_ag(T26, X55, half22_in_ag(T26, X55))
U1_ag(T26, X55, half22_out_ag(T26, X55)) → half22_out_ag(s(s(T26)), s(X55))
U2_ag(T22, X46, half22_out_ag(T22, X46)) → half17_out_ag(T22, s(X46))
U9_ag(T14, half17_out_ag(T14, 0)) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), s(0)) → U10_ag(T14, half17_in_ag(T14, s(0)))
U10_ag(T14, half17_out_ag(T14, s(0))) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), T32) → U11_ag(T14, T32, half17_in_aa(T14, s(s(T31))))
U11_ag(T14, T32, half17_out_aa(T14, s(s(T31)))) → U12_ag(T14, T32, half17_in_ga(T31, X82))
half17_in_ga(T22, s(X46)) → U2_ga(T22, X46, half22_in_ga(T22, X46))
half22_in_ga(0, 0) → half22_out_ga(0, 0)
half22_in_ga(s(0), 0) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26)), s(X55)) → U1_ga(T26, X55, half22_in_ga(T26, X55))
U1_ga(T26, X55, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))
U2_ga(T22, X46, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
U12_ag(T14, T32, half17_out_ga(T31, X82)) → log21_out_ag(s(s(T14)), T32)
log21_in_ag(s(s(T14)), s(s(0))) → U13_ag(T14, half17_in_aa(T14, s(s(T31))))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U14_ag(T14, half17_in_gg(T31, 0))
half17_in_gg(T22, s(X46)) → U2_gg(T22, X46, half22_in_gg(T22, X46))
half22_in_gg(0, 0) → half22_out_gg(0, 0)
half22_in_gg(s(0), 0) → half22_out_gg(s(0), 0)
half22_in_gg(s(s(T26)), s(X55)) → U1_gg(T26, X55, half22_in_gg(T26, X55))
U1_gg(T26, X55, half22_out_gg(T26, X55)) → half22_out_gg(s(s(T26)), s(X55))
U2_gg(T22, X46, half22_out_gg(T22, X46)) → half17_out_gg(T22, s(X46))
U14_ag(T14, half17_out_gg(T31, 0)) → log21_out_ag(s(s(T14)), s(s(0)))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U15_ag(T14, half17_in_gg(T31, s(0)))
U15_ag(T14, half17_out_gg(T31, s(0))) → log21_out_ag(s(s(T14)), s(s(0)))
log21_in_ag(s(s(T14)), T41) → U16_ag(T14, T41, half17_in_aa(T14, s(s(T31))))
U16_ag(T14, T41, half17_out_aa(T14, s(s(T31)))) → U17_ag(T14, T41, half17_in_ga(T31, s(s(T40))))
U17_ag(T14, T41, half17_out_ga(T31, s(s(T40)))) → U18_ag(T14, T41, half17_in_ga(T40, X116))
U18_ag(T14, T41, half17_out_ga(T40, X116)) → log21_out_ag(s(s(T14)), T41)
log21_in_ag(s(s(T14)), s(s(s(0)))) → U19_ag(T14, half17_in_aa(T14, s(s(T31))))
U19_ag(T14, half17_out_aa(T14, s(s(T31)))) → U20_ag(T14, half17_in_ga(T31, s(s(T40))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U21_ag(T14, half17_in_gg(T40, 0))
U21_ag(T14, half17_out_gg(T40, 0)) → log21_out_ag(s(s(T14)), s(s(s(0))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U22_ag(T14, half17_in_gg(T40, s(0)))
U22_ag(T14, half17_out_gg(T40, s(0))) → log21_out_ag(s(s(T14)), s(s(s(0))))
log21_in_ag(s(s(T14)), T50) → U23_ag(T14, T50, half17_in_aa(T14, s(s(T31))))
U23_ag(T14, T50, half17_out_aa(T14, s(s(T31)))) → U24_ag(T14, T50, half17_in_ga(T31, s(s(T40))))
U24_ag(T14, T50, half17_out_ga(T31, s(s(T40)))) → U25_ag(T14, T50, half17_in_ga(T40, s(s(T49))))
U25_ag(T14, T50, half17_out_ga(T40, s(s(T49)))) → U26_ag(T14, T50, half17_in_ga(T49, X150))
U26_ag(T14, T50, half17_out_ga(T49, X150)) → log21_out_ag(s(s(T14)), T50)
log21_in_ag(s(s(T14)), s(s(s(s(0))))) → U27_ag(T14, half17_in_aa(T14, s(s(T31))))
U27_ag(T14, half17_out_aa(T14, s(s(T31)))) → U28_ag(T14, half17_in_ga(T31, s(s(T40))))
U28_ag(T14, half17_out_ga(T31, s(s(T40)))) → U29_ag(T14, half17_in_ga(T40, s(s(T49))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U30_ag(T14, half17_in_gg(T49, 0))
U30_ag(T14, half17_out_gg(T49, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U31_ag(T14, half17_in_gg(T49, s(0)))
U31_ag(T14, half17_out_gg(T49, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
log21_in_ag(s(s(T14)), T59) → U32_ag(T14, T59, half17_in_aa(T14, s(s(T31))))
U32_ag(T14, T59, half17_out_aa(T14, s(s(T31)))) → U33_ag(T14, T59, half17_in_ga(T31, s(s(T40))))
U33_ag(T14, T59, half17_out_ga(T31, s(s(T40)))) → U34_ag(T14, T59, half17_in_ga(T40, s(s(T49))))
U34_ag(T14, T59, half17_out_ga(T40, s(s(T49)))) → U35_ag(T14, T59, half17_in_ga(T49, s(s(T58))))
U35_ag(T14, T59, half17_out_ga(T49, s(s(T58)))) → U36_ag(T14, T59, half17_in_ga(T58, X184))
U36_ag(T14, T59, half17_out_ga(T58, X184)) → log21_out_ag(s(s(T14)), T59)
log21_in_ag(s(s(T14)), s(s(s(s(s(0)))))) → U37_ag(T14, half17_in_aa(T14, s(s(T31))))
U37_ag(T14, half17_out_aa(T14, s(s(T31)))) → U38_ag(T14, half17_in_ga(T31, s(s(T40))))
U38_ag(T14, half17_out_ga(T31, s(s(T40)))) → U39_ag(T14, half17_in_ga(T40, s(s(T49))))
U39_ag(T14, half17_out_ga(T40, s(s(T49)))) → U40_ag(T14, half17_in_ga(T49, s(s(T58))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U41_ag(T14, half17_in_gg(T58, 0))
U41_ag(T14, half17_out_gg(T58, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U42_ag(T14, half17_in_gg(T58, s(0)))
U42_ag(T14, half17_out_gg(T58, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
log21_in_ag(s(s(T14)), T68) → U43_ag(T14, T68, half17_in_aa(T14, s(s(T31))))
U43_ag(T14, T68, half17_out_aa(T14, s(s(T31)))) → U44_ag(T14, T68, half17_in_ga(T31, s(s(T40))))
U44_ag(T14, T68, half17_out_ga(T31, s(s(T40)))) → U45_ag(T14, T68, half17_in_ga(T40, s(s(T49))))
U45_ag(T14, T68, half17_out_ga(T40, s(s(T49)))) → U46_ag(T14, T68, half17_in_ga(T49, s(s(T58))))
U46_ag(T14, T68, half17_out_ga(T49, s(s(T58)))) → U47_ag(T14, T68, half17_in_ga(T58, s(s(T67))))
U47_ag(T14, T68, half17_out_ga(T58, s(s(T67)))) → U48_ag(T14, T68, half17_in_ga(T67, X218))
U48_ag(T14, T68, half17_out_ga(T67, X218)) → log21_out_ag(s(s(T14)), T68)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(0))))))) → U49_ag(T14, half17_in_aa(T14, s(s(T31))))
U49_ag(T14, half17_out_aa(T14, s(s(T31)))) → U50_ag(T14, half17_in_ga(T31, s(s(T40))))
U50_ag(T14, half17_out_ga(T31, s(s(T40)))) → U51_ag(T14, half17_in_ga(T40, s(s(T49))))
U51_ag(T14, half17_out_ga(T40, s(s(T49)))) → U52_ag(T14, half17_in_ga(T49, s(s(T58))))
U52_ag(T14, half17_out_ga(T49, s(s(T58)))) → U53_ag(T14, half17_in_ga(T58, s(s(T67))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U54_ag(T14, half17_in_gg(T67, 0))
U54_ag(T14, half17_out_gg(T67, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U55_ag(T14, half17_in_gg(T67, s(0)))
U55_ag(T14, half17_out_gg(T67, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
log21_in_ag(s(s(T14)), T77) → U56_ag(T14, T77, half17_in_aa(T14, s(s(T31))))
U56_ag(T14, T77, half17_out_aa(T14, s(s(T31)))) → U57_ag(T14, T77, half17_in_ga(T31, s(s(T40))))
U57_ag(T14, T77, half17_out_ga(T31, s(s(T40)))) → U58_ag(T14, T77, half17_in_ga(T40, s(s(T49))))
U58_ag(T14, T77, half17_out_ga(T40, s(s(T49)))) → U59_ag(T14, T77, half17_in_ga(T49, s(s(T58))))
U59_ag(T14, T77, half17_out_ga(T49, s(s(T58)))) → U60_ag(T14, T77, half17_in_ga(T58, s(s(T67))))
U60_ag(T14, T77, half17_out_ga(T58, s(s(T67)))) → U61_ag(T14, T77, half17_in_ga(T67, s(s(T76))))
U61_ag(T14, T77, half17_out_ga(T67, s(s(T76)))) → U62_ag(T14, T77, half17_in_ga(T76, X252))
U62_ag(T14, T77, half17_out_ga(T76, X252)) → log21_out_ag(s(s(T14)), T77)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → U63_ag(T14, half17_in_aa(T14, s(s(T31))))
U63_ag(T14, half17_out_aa(T14, s(s(T31)))) → U64_ag(T14, half17_in_ga(T31, s(s(T40))))
U64_ag(T14, half17_out_ga(T31, s(s(T40)))) → U65_ag(T14, half17_in_ga(T40, s(s(T49))))
U65_ag(T14, half17_out_ga(T40, s(s(T49)))) → U66_ag(T14, half17_in_ga(T49, s(s(T58))))
U66_ag(T14, half17_out_ga(T49, s(s(T58)))) → U67_ag(T14, half17_in_ga(T58, s(s(T67))))
U67_ag(T14, half17_out_ga(T58, s(s(T67)))) → U68_ag(T14, half17_in_ga(T67, s(s(T76))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U69_ag(T14, half17_in_gg(T76, 0))
U69_ag(T14, half17_out_gg(T76, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U70_ag(T14, half17_in_gg(T76, s(0)))
U70_ag(T14, half17_out_gg(T76, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
log21_in_ag(s(s(T14)), T86) → U71_ag(T14, T86, half17_in_aa(T14, s(s(T31))))
U71_ag(T14, T86, half17_out_aa(T14, s(s(T31)))) → U72_ag(T14, T86, half17_in_ga(T31, s(s(T40))))
U72_ag(T14, T86, half17_out_ga(T31, s(s(T40)))) → U73_ag(T14, T86, half17_in_ga(T40, s(s(T49))))
U73_ag(T14, T86, half17_out_ga(T40, s(s(T49)))) → U74_ag(T14, T86, half17_in_ga(T49, s(s(T58))))
U74_ag(T14, T86, half17_out_ga(T49, s(s(T58)))) → U75_ag(T14, T86, half17_in_ga(T58, s(s(T67))))
U75_ag(T14, T86, half17_out_ga(T58, s(s(T67)))) → U76_ag(T14, T86, half17_in_ga(T67, s(s(T76))))
U76_ag(T14, T86, half17_out_ga(T67, s(s(T76)))) → U77_ag(T14, T86, half17_in_ga(T76, s(s(T85))))
U77_ag(T14, T86, half17_out_ga(T76, s(s(T85)))) → U78_ag(T14, T86, p139_in_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86))
p139_in_gagg(T85, X286, T88, T86) → U3_gagg(T85, X286, T88, T86, half17_in_ga(T85, X286))
U3_gagg(T85, X286, T88, T86, half17_out_ga(T85, X286)) → p139_out_gagg(T85, X286, T88, T86)
p139_in_gagg(T85, 0, T98, s(T98)) → U4_gagg(T85, T98, half17_in_gg(T85, 0))
U4_gagg(T85, T98, half17_out_gg(T85, 0)) → p139_out_gagg(T85, 0, T98, s(T98))
p139_in_gagg(T85, s(0), T103, s(T103)) → U5_gagg(T85, T103, half17_in_gg(T85, s(0)))
U5_gagg(T85, T103, half17_out_gg(T85, s(0))) → p139_out_gagg(T85, s(0), T103, s(T103))
p139_in_gagg(T85, s(s(T110)), T111, T112) → U6_gagg(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
U6_gagg(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → U7_gagg(T85, T110, T111, T112, p139_in_gagg(T110, X323, s(T111), T112))
U7_gagg(T85, T110, T111, T112, p139_out_gagg(T110, X323, s(T111), T112)) → p139_out_gagg(T85, s(s(T110)), T111, T112)
U78_ag(T14, T86, p139_out_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86)) → log21_out_ag(s(s(T14)), T86)

The argument filtering Pi contains the following mapping:
log21_in_ag(x1, x2)  =  log21_in_ag(x2)
0  =  0
log21_out_ag(x1, x2)  =  log21_out_ag(x1, x2)
U8_ag(x1, x2, x3)  =  U8_ag(x2, x3)
half17_in_aa(x1, x2)  =  half17_in_aa
U2_aa(x1, x2, x3)  =  U2_aa(x3)
half22_in_aa(x1, x2)  =  half22_in_aa
half22_out_aa(x1, x2)  =  half22_out_aa(x1, x2)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
half17_out_aa(x1, x2)  =  half17_out_aa(x1, x2)
s(x1)  =  s(x1)
U9_ag(x1, x2)  =  U9_ag(x2)
half17_in_ag(x1, x2)  =  half17_in_ag(x2)
U2_ag(x1, x2, x3)  =  U2_ag(x2, x3)
half22_in_ag(x1, x2)  =  half22_in_ag(x2)
half22_out_ag(x1, x2)  =  half22_out_ag(x1, x2)
U1_ag(x1, x2, x3)  =  U1_ag(x2, x3)
half17_out_ag(x1, x2)  =  half17_out_ag(x1, x2)
U10_ag(x1, x2)  =  U10_ag(x2)
U11_ag(x1, x2, x3)  =  U11_ag(x2, x3)
U12_ag(x1, x2, x3)  =  U12_ag(x1, x2, x3)
half17_in_ga(x1, x2)  =  half17_in_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x1, x3)
half22_in_ga(x1, x2)  =  half22_in_ga(x1)
half22_out_ga(x1, x2)  =  half22_out_ga(x1, x2)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
half17_out_ga(x1, x2)  =  half17_out_ga(x1, x2)
U13_ag(x1, x2)  =  U13_ag(x2)
U14_ag(x1, x2)  =  U14_ag(x1, x2)
half17_in_gg(x1, x2)  =  half17_in_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x1, x2, x3)
half22_in_gg(x1, x2)  =  half22_in_gg(x1, x2)
half22_out_gg(x1, x2)  =  half22_out_gg(x1, x2)
U1_gg(x1, x2, x3)  =  U1_gg(x1, x2, x3)
half17_out_gg(x1, x2)  =  half17_out_gg(x1, x2)
U15_ag(x1, x2)  =  U15_ag(x1, x2)
U16_ag(x1, x2, x3)  =  U16_ag(x2, x3)
U17_ag(x1, x2, x3)  =  U17_ag(x1, x2, x3)
U18_ag(x1, x2, x3)  =  U18_ag(x1, x2, x3)
U19_ag(x1, x2)  =  U19_ag(x2)
U20_ag(x1, x2)  =  U20_ag(x1, x2)
U21_ag(x1, x2)  =  U21_ag(x1, x2)
U22_ag(x1, x2)  =  U22_ag(x1, x2)
U23_ag(x1, x2, x3)  =  U23_ag(x2, x3)
U24_ag(x1, x2, x3)  =  U24_ag(x1, x2, x3)
U25_ag(x1, x2, x3)  =  U25_ag(x1, x2, x3)
U26_ag(x1, x2, x3)  =  U26_ag(x1, x2, x3)
U27_ag(x1, x2)  =  U27_ag(x2)
U28_ag(x1, x2)  =  U28_ag(x1, x2)
U29_ag(x1, x2)  =  U29_ag(x1, x2)
U30_ag(x1, x2)  =  U30_ag(x1, x2)
U31_ag(x1, x2)  =  U31_ag(x1, x2)
U32_ag(x1, x2, x3)  =  U32_ag(x2, x3)
U33_ag(x1, x2, x3)  =  U33_ag(x1, x2, x3)
U34_ag(x1, x2, x3)  =  U34_ag(x1, x2, x3)
U35_ag(x1, x2, x3)  =  U35_ag(x1, x2, x3)
U36_ag(x1, x2, x3)  =  U36_ag(x1, x2, x3)
U37_ag(x1, x2)  =  U37_ag(x2)
U38_ag(x1, x2)  =  U38_ag(x1, x2)
U39_ag(x1, x2)  =  U39_ag(x1, x2)
U40_ag(x1, x2)  =  U40_ag(x1, x2)
U41_ag(x1, x2)  =  U41_ag(x1, x2)
U42_ag(x1, x2)  =  U42_ag(x1, x2)
U43_ag(x1, x2, x3)  =  U43_ag(x2, x3)
U44_ag(x1, x2, x3)  =  U44_ag(x1, x2, x3)
U45_ag(x1, x2, x3)  =  U45_ag(x1, x2, x3)
U46_ag(x1, x2, x3)  =  U46_ag(x1, x2, x3)
U47_ag(x1, x2, x3)  =  U47_ag(x1, x2, x3)
U48_ag(x1, x2, x3)  =  U48_ag(x1, x2, x3)
U49_ag(x1, x2)  =  U49_ag(x2)
U50_ag(x1, x2)  =  U50_ag(x1, x2)
U51_ag(x1, x2)  =  U51_ag(x1, x2)
U52_ag(x1, x2)  =  U52_ag(x1, x2)
U53_ag(x1, x2)  =  U53_ag(x1, x2)
U54_ag(x1, x2)  =  U54_ag(x1, x2)
U55_ag(x1, x2)  =  U55_ag(x1, x2)
U56_ag(x1, x2, x3)  =  U56_ag(x2, x3)
U57_ag(x1, x2, x3)  =  U57_ag(x1, x2, x3)
U58_ag(x1, x2, x3)  =  U58_ag(x1, x2, x3)
U59_ag(x1, x2, x3)  =  U59_ag(x1, x2, x3)
U60_ag(x1, x2, x3)  =  U60_ag(x1, x2, x3)
U61_ag(x1, x2, x3)  =  U61_ag(x1, x2, x3)
U62_ag(x1, x2, x3)  =  U62_ag(x1, x2, x3)
U63_ag(x1, x2)  =  U63_ag(x2)
U64_ag(x1, x2)  =  U64_ag(x1, x2)
U65_ag(x1, x2)  =  U65_ag(x1, x2)
U66_ag(x1, x2)  =  U66_ag(x1, x2)
U67_ag(x1, x2)  =  U67_ag(x1, x2)
U68_ag(x1, x2)  =  U68_ag(x1, x2)
U69_ag(x1, x2)  =  U69_ag(x1, x2)
U70_ag(x1, x2)  =  U70_ag(x1, x2)
U71_ag(x1, x2, x3)  =  U71_ag(x2, x3)
U72_ag(x1, x2, x3)  =  U72_ag(x1, x2, x3)
U73_ag(x1, x2, x3)  =  U73_ag(x1, x2, x3)
U74_ag(x1, x2, x3)  =  U74_ag(x1, x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x1, x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x1, x2, x3)
U77_ag(x1, x2, x3)  =  U77_ag(x1, x2, x3)
U78_ag(x1, x2, x3)  =  U78_ag(x1, x2, x3)
p139_in_gagg(x1, x2, x3, x4)  =  p139_in_gagg(x1, x3, x4)
U3_gagg(x1, x2, x3, x4, x5)  =  U3_gagg(x1, x3, x4, x5)
p139_out_gagg(x1, x2, x3, x4)  =  p139_out_gagg(x1, x2, x3, x4)
U4_gagg(x1, x2, x3)  =  U4_gagg(x1, x2, x3)
U5_gagg(x1, x2, x3)  =  U5_gagg(x1, x2, x3)
U6_gagg(x1, x2, x3, x4, x5)  =  U6_gagg(x1, x3, x4, x5)
U7_gagg(x1, x2, x3, x4, x5)  =  U7_gagg(x1, x2, x3, x4, x5)
P139_IN_GAGG(x1, x2, x3, x4)  =  P139_IN_GAGG(x1, x3, x4)
U6_GAGG(x1, x2, x3, x4, x5)  =  U6_GAGG(x1, x3, x4, x5)

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

(24) UsableRulesProof (EQUIVALENT transformation)

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

(25) Obligation:

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

P139_IN_GAGG(T85, s(s(T110)), T111, T112) → U6_GAGG(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
U6_GAGG(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → P139_IN_GAGG(T110, X323, s(T111), T112)

The TRS R consists of the following rules:

half17_in_ga(T22, s(X46)) → U2_ga(T22, X46, half22_in_ga(T22, X46))
U2_ga(T22, X46, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
half22_in_ga(0, 0) → half22_out_ga(0, 0)
half22_in_ga(s(0), 0) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26)), s(X55)) → U1_ga(T26, X55, half22_in_ga(T26, X55))
U1_ga(T26, X55, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))

The argument filtering Pi contains the following mapping:
0  =  0
s(x1)  =  s(x1)
half17_in_ga(x1, x2)  =  half17_in_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x1, x3)
half22_in_ga(x1, x2)  =  half22_in_ga(x1)
half22_out_ga(x1, x2)  =  half22_out_ga(x1, x2)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
half17_out_ga(x1, x2)  =  half17_out_ga(x1, x2)
P139_IN_GAGG(x1, x2, x3, x4)  =  P139_IN_GAGG(x1, x3, x4)
U6_GAGG(x1, x2, x3, x4, x5)  =  U6_GAGG(x1, x3, x4, x5)

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

(26) PiDPToQDPProof (SOUND transformation)

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

(27) Obligation:

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

P139_IN_GAGG(T85, T111, T112) → U6_GAGG(T85, T111, T112, half17_in_ga(T85))
U6_GAGG(T85, T111, T112, half17_out_ga(T85, s(s(T110)))) → P139_IN_GAGG(T110, s(T111), T112)

The TRS R consists of the following rules:

half17_in_ga(T22) → U2_ga(T22, half22_in_ga(T22))
U2_ga(T22, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
half22_in_ga(0) → half22_out_ga(0, 0)
half22_in_ga(s(0)) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26))) → U1_ga(T26, half22_in_ga(T26))
U1_ga(T26, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))

The set Q consists of the following terms:

half17_in_ga(x0)
U2_ga(x0, x1)
half22_in_ga(x0)
U1_ga(x0, x1)

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

(28) Rewriting (EQUIVALENT transformation)

By rewriting [LPAR04] the rule P139_IN_GAGG(T85, T111, T112) → U6_GAGG(T85, T111, T112, half17_in_ga(T85)) at position [3] we obtained the following new rules [LPAR04]:

P139_IN_GAGG(T85, T111, T112) → U6_GAGG(T85, T111, T112, U2_ga(T85, half22_in_ga(T85)))

(29) Obligation:

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

U6_GAGG(T85, T111, T112, half17_out_ga(T85, s(s(T110)))) → P139_IN_GAGG(T110, s(T111), T112)
P139_IN_GAGG(T85, T111, T112) → U6_GAGG(T85, T111, T112, U2_ga(T85, half22_in_ga(T85)))

The TRS R consists of the following rules:

half17_in_ga(T22) → U2_ga(T22, half22_in_ga(T22))
U2_ga(T22, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
half22_in_ga(0) → half22_out_ga(0, 0)
half22_in_ga(s(0)) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26))) → U1_ga(T26, half22_in_ga(T26))
U1_ga(T26, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))

The set Q consists of the following terms:

half17_in_ga(x0)
U2_ga(x0, x1)
half22_in_ga(x0)
U1_ga(x0, x1)

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

(30) UsableRulesProof (EQUIVALENT transformation)

As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R.

(31) Obligation:

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

U6_GAGG(T85, T111, T112, half17_out_ga(T85, s(s(T110)))) → P139_IN_GAGG(T110, s(T111), T112)
P139_IN_GAGG(T85, T111, T112) → U6_GAGG(T85, T111, T112, U2_ga(T85, half22_in_ga(T85)))

The TRS R consists of the following rules:

half22_in_ga(0) → half22_out_ga(0, 0)
half22_in_ga(s(0)) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26))) → U1_ga(T26, half22_in_ga(T26))
U2_ga(T22, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
U1_ga(T26, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))

The set Q consists of the following terms:

half17_in_ga(x0)
U2_ga(x0, x1)
half22_in_ga(x0)
U1_ga(x0, x1)

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

(32) QReductionProof (EQUIVALENT transformation)

We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN].

half17_in_ga(x0)

(33) Obligation:

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

U6_GAGG(T85, T111, T112, half17_out_ga(T85, s(s(T110)))) → P139_IN_GAGG(T110, s(T111), T112)
P139_IN_GAGG(T85, T111, T112) → U6_GAGG(T85, T111, T112, U2_ga(T85, half22_in_ga(T85)))

The TRS R consists of the following rules:

half22_in_ga(0) → half22_out_ga(0, 0)
half22_in_ga(s(0)) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26))) → U1_ga(T26, half22_in_ga(T26))
U2_ga(T22, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
U1_ga(T26, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))

The set Q consists of the following terms:

U2_ga(x0, x1)
half22_in_ga(x0)
U1_ga(x0, x1)

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

(34) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U6_GAGG(T85, T111, T112, half17_out_ga(T85, s(s(T110)))) → P139_IN_GAGG(T110, s(T111), T112)
The remaining pairs can at least be oriented weakly.
Used ordering: Polynomial interpretation [POLO]:

POL(0) = 0   
POL(P139_IN_GAGG(x1, x2, x3)) = 1 + x1   
POL(U1_ga(x1, x2)) = 1 + x2   
POL(U2_ga(x1, x2)) = x2   
POL(U6_GAGG(x1, x2, x3, x4)) = x4   
POL(half17_out_ga(x1, x2)) = x2   
POL(half22_in_ga(x1)) = 1 + x1   
POL(half22_out_ga(x1, x2)) = 1 + x2   
POL(s(x1)) = 1 + x1   

The following usable rules [FROCOS05] were oriented:

half22_in_ga(0) → half22_out_ga(0, 0)
half22_in_ga(s(0)) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26))) → U1_ga(T26, half22_in_ga(T26))
U2_ga(T22, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
U1_ga(T26, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))

(35) Obligation:

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

P139_IN_GAGG(T85, T111, T112) → U6_GAGG(T85, T111, T112, U2_ga(T85, half22_in_ga(T85)))

The TRS R consists of the following rules:

half22_in_ga(0) → half22_out_ga(0, 0)
half22_in_ga(s(0)) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26))) → U1_ga(T26, half22_in_ga(T26))
U2_ga(T22, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
U1_ga(T26, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))

The set Q consists of the following terms:

U2_ga(x0, x1)
half22_in_ga(x0)
U1_ga(x0, x1)

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

(36) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 0 SCCs with 1 less node.

(37) TRUE

(38) Obligation:

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

HALF22_IN_AG(s(s(T26)), s(X55)) → HALF22_IN_AG(T26, X55)

The TRS R consists of the following rules:

log21_in_ag(0, 0) → log21_out_ag(0, 0)
log21_in_ag(s(0), 0) → log21_out_ag(s(0), 0)
log21_in_ag(s(s(T14)), T13) → U8_ag(T14, T13, half17_in_aa(T14, X28))
half17_in_aa(T22, s(X46)) → U2_aa(T22, X46, half22_in_aa(T22, X46))
half22_in_aa(0, 0) → half22_out_aa(0, 0)
half22_in_aa(s(0), 0) → half22_out_aa(s(0), 0)
half22_in_aa(s(s(T26)), s(X55)) → U1_aa(T26, X55, half22_in_aa(T26, X55))
U1_aa(T26, X55, half22_out_aa(T26, X55)) → half22_out_aa(s(s(T26)), s(X55))
U2_aa(T22, X46, half22_out_aa(T22, X46)) → half17_out_aa(T22, s(X46))
U8_ag(T14, T13, half17_out_aa(T14, X28)) → log21_out_ag(s(s(T14)), T13)
log21_in_ag(s(s(T14)), s(0)) → U9_ag(T14, half17_in_ag(T14, 0))
half17_in_ag(T22, s(X46)) → U2_ag(T22, X46, half22_in_ag(T22, X46))
half22_in_ag(0, 0) → half22_out_ag(0, 0)
half22_in_ag(s(0), 0) → half22_out_ag(s(0), 0)
half22_in_ag(s(s(T26)), s(X55)) → U1_ag(T26, X55, half22_in_ag(T26, X55))
U1_ag(T26, X55, half22_out_ag(T26, X55)) → half22_out_ag(s(s(T26)), s(X55))
U2_ag(T22, X46, half22_out_ag(T22, X46)) → half17_out_ag(T22, s(X46))
U9_ag(T14, half17_out_ag(T14, 0)) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), s(0)) → U10_ag(T14, half17_in_ag(T14, s(0)))
U10_ag(T14, half17_out_ag(T14, s(0))) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), T32) → U11_ag(T14, T32, half17_in_aa(T14, s(s(T31))))
U11_ag(T14, T32, half17_out_aa(T14, s(s(T31)))) → U12_ag(T14, T32, half17_in_ga(T31, X82))
half17_in_ga(T22, s(X46)) → U2_ga(T22, X46, half22_in_ga(T22, X46))
half22_in_ga(0, 0) → half22_out_ga(0, 0)
half22_in_ga(s(0), 0) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26)), s(X55)) → U1_ga(T26, X55, half22_in_ga(T26, X55))
U1_ga(T26, X55, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))
U2_ga(T22, X46, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
U12_ag(T14, T32, half17_out_ga(T31, X82)) → log21_out_ag(s(s(T14)), T32)
log21_in_ag(s(s(T14)), s(s(0))) → U13_ag(T14, half17_in_aa(T14, s(s(T31))))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U14_ag(T14, half17_in_gg(T31, 0))
half17_in_gg(T22, s(X46)) → U2_gg(T22, X46, half22_in_gg(T22, X46))
half22_in_gg(0, 0) → half22_out_gg(0, 0)
half22_in_gg(s(0), 0) → half22_out_gg(s(0), 0)
half22_in_gg(s(s(T26)), s(X55)) → U1_gg(T26, X55, half22_in_gg(T26, X55))
U1_gg(T26, X55, half22_out_gg(T26, X55)) → half22_out_gg(s(s(T26)), s(X55))
U2_gg(T22, X46, half22_out_gg(T22, X46)) → half17_out_gg(T22, s(X46))
U14_ag(T14, half17_out_gg(T31, 0)) → log21_out_ag(s(s(T14)), s(s(0)))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U15_ag(T14, half17_in_gg(T31, s(0)))
U15_ag(T14, half17_out_gg(T31, s(0))) → log21_out_ag(s(s(T14)), s(s(0)))
log21_in_ag(s(s(T14)), T41) → U16_ag(T14, T41, half17_in_aa(T14, s(s(T31))))
U16_ag(T14, T41, half17_out_aa(T14, s(s(T31)))) → U17_ag(T14, T41, half17_in_ga(T31, s(s(T40))))
U17_ag(T14, T41, half17_out_ga(T31, s(s(T40)))) → U18_ag(T14, T41, half17_in_ga(T40, X116))
U18_ag(T14, T41, half17_out_ga(T40, X116)) → log21_out_ag(s(s(T14)), T41)
log21_in_ag(s(s(T14)), s(s(s(0)))) → U19_ag(T14, half17_in_aa(T14, s(s(T31))))
U19_ag(T14, half17_out_aa(T14, s(s(T31)))) → U20_ag(T14, half17_in_ga(T31, s(s(T40))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U21_ag(T14, half17_in_gg(T40, 0))
U21_ag(T14, half17_out_gg(T40, 0)) → log21_out_ag(s(s(T14)), s(s(s(0))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U22_ag(T14, half17_in_gg(T40, s(0)))
U22_ag(T14, half17_out_gg(T40, s(0))) → log21_out_ag(s(s(T14)), s(s(s(0))))
log21_in_ag(s(s(T14)), T50) → U23_ag(T14, T50, half17_in_aa(T14, s(s(T31))))
U23_ag(T14, T50, half17_out_aa(T14, s(s(T31)))) → U24_ag(T14, T50, half17_in_ga(T31, s(s(T40))))
U24_ag(T14, T50, half17_out_ga(T31, s(s(T40)))) → U25_ag(T14, T50, half17_in_ga(T40, s(s(T49))))
U25_ag(T14, T50, half17_out_ga(T40, s(s(T49)))) → U26_ag(T14, T50, half17_in_ga(T49, X150))
U26_ag(T14, T50, half17_out_ga(T49, X150)) → log21_out_ag(s(s(T14)), T50)
log21_in_ag(s(s(T14)), s(s(s(s(0))))) → U27_ag(T14, half17_in_aa(T14, s(s(T31))))
U27_ag(T14, half17_out_aa(T14, s(s(T31)))) → U28_ag(T14, half17_in_ga(T31, s(s(T40))))
U28_ag(T14, half17_out_ga(T31, s(s(T40)))) → U29_ag(T14, half17_in_ga(T40, s(s(T49))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U30_ag(T14, half17_in_gg(T49, 0))
U30_ag(T14, half17_out_gg(T49, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U31_ag(T14, half17_in_gg(T49, s(0)))
U31_ag(T14, half17_out_gg(T49, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
log21_in_ag(s(s(T14)), T59) → U32_ag(T14, T59, half17_in_aa(T14, s(s(T31))))
U32_ag(T14, T59, half17_out_aa(T14, s(s(T31)))) → U33_ag(T14, T59, half17_in_ga(T31, s(s(T40))))
U33_ag(T14, T59, half17_out_ga(T31, s(s(T40)))) → U34_ag(T14, T59, half17_in_ga(T40, s(s(T49))))
U34_ag(T14, T59, half17_out_ga(T40, s(s(T49)))) → U35_ag(T14, T59, half17_in_ga(T49, s(s(T58))))
U35_ag(T14, T59, half17_out_ga(T49, s(s(T58)))) → U36_ag(T14, T59, half17_in_ga(T58, X184))
U36_ag(T14, T59, half17_out_ga(T58, X184)) → log21_out_ag(s(s(T14)), T59)
log21_in_ag(s(s(T14)), s(s(s(s(s(0)))))) → U37_ag(T14, half17_in_aa(T14, s(s(T31))))
U37_ag(T14, half17_out_aa(T14, s(s(T31)))) → U38_ag(T14, half17_in_ga(T31, s(s(T40))))
U38_ag(T14, half17_out_ga(T31, s(s(T40)))) → U39_ag(T14, half17_in_ga(T40, s(s(T49))))
U39_ag(T14, half17_out_ga(T40, s(s(T49)))) → U40_ag(T14, half17_in_ga(T49, s(s(T58))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U41_ag(T14, half17_in_gg(T58, 0))
U41_ag(T14, half17_out_gg(T58, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U42_ag(T14, half17_in_gg(T58, s(0)))
U42_ag(T14, half17_out_gg(T58, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
log21_in_ag(s(s(T14)), T68) → U43_ag(T14, T68, half17_in_aa(T14, s(s(T31))))
U43_ag(T14, T68, half17_out_aa(T14, s(s(T31)))) → U44_ag(T14, T68, half17_in_ga(T31, s(s(T40))))
U44_ag(T14, T68, half17_out_ga(T31, s(s(T40)))) → U45_ag(T14, T68, half17_in_ga(T40, s(s(T49))))
U45_ag(T14, T68, half17_out_ga(T40, s(s(T49)))) → U46_ag(T14, T68, half17_in_ga(T49, s(s(T58))))
U46_ag(T14, T68, half17_out_ga(T49, s(s(T58)))) → U47_ag(T14, T68, half17_in_ga(T58, s(s(T67))))
U47_ag(T14, T68, half17_out_ga(T58, s(s(T67)))) → U48_ag(T14, T68, half17_in_ga(T67, X218))
U48_ag(T14, T68, half17_out_ga(T67, X218)) → log21_out_ag(s(s(T14)), T68)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(0))))))) → U49_ag(T14, half17_in_aa(T14, s(s(T31))))
U49_ag(T14, half17_out_aa(T14, s(s(T31)))) → U50_ag(T14, half17_in_ga(T31, s(s(T40))))
U50_ag(T14, half17_out_ga(T31, s(s(T40)))) → U51_ag(T14, half17_in_ga(T40, s(s(T49))))
U51_ag(T14, half17_out_ga(T40, s(s(T49)))) → U52_ag(T14, half17_in_ga(T49, s(s(T58))))
U52_ag(T14, half17_out_ga(T49, s(s(T58)))) → U53_ag(T14, half17_in_ga(T58, s(s(T67))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U54_ag(T14, half17_in_gg(T67, 0))
U54_ag(T14, half17_out_gg(T67, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U55_ag(T14, half17_in_gg(T67, s(0)))
U55_ag(T14, half17_out_gg(T67, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
log21_in_ag(s(s(T14)), T77) → U56_ag(T14, T77, half17_in_aa(T14, s(s(T31))))
U56_ag(T14, T77, half17_out_aa(T14, s(s(T31)))) → U57_ag(T14, T77, half17_in_ga(T31, s(s(T40))))
U57_ag(T14, T77, half17_out_ga(T31, s(s(T40)))) → U58_ag(T14, T77, half17_in_ga(T40, s(s(T49))))
U58_ag(T14, T77, half17_out_ga(T40, s(s(T49)))) → U59_ag(T14, T77, half17_in_ga(T49, s(s(T58))))
U59_ag(T14, T77, half17_out_ga(T49, s(s(T58)))) → U60_ag(T14, T77, half17_in_ga(T58, s(s(T67))))
U60_ag(T14, T77, half17_out_ga(T58, s(s(T67)))) → U61_ag(T14, T77, half17_in_ga(T67, s(s(T76))))
U61_ag(T14, T77, half17_out_ga(T67, s(s(T76)))) → U62_ag(T14, T77, half17_in_ga(T76, X252))
U62_ag(T14, T77, half17_out_ga(T76, X252)) → log21_out_ag(s(s(T14)), T77)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → U63_ag(T14, half17_in_aa(T14, s(s(T31))))
U63_ag(T14, half17_out_aa(T14, s(s(T31)))) → U64_ag(T14, half17_in_ga(T31, s(s(T40))))
U64_ag(T14, half17_out_ga(T31, s(s(T40)))) → U65_ag(T14, half17_in_ga(T40, s(s(T49))))
U65_ag(T14, half17_out_ga(T40, s(s(T49)))) → U66_ag(T14, half17_in_ga(T49, s(s(T58))))
U66_ag(T14, half17_out_ga(T49, s(s(T58)))) → U67_ag(T14, half17_in_ga(T58, s(s(T67))))
U67_ag(T14, half17_out_ga(T58, s(s(T67)))) → U68_ag(T14, half17_in_ga(T67, s(s(T76))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U69_ag(T14, half17_in_gg(T76, 0))
U69_ag(T14, half17_out_gg(T76, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U70_ag(T14, half17_in_gg(T76, s(0)))
U70_ag(T14, half17_out_gg(T76, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
log21_in_ag(s(s(T14)), T86) → U71_ag(T14, T86, half17_in_aa(T14, s(s(T31))))
U71_ag(T14, T86, half17_out_aa(T14, s(s(T31)))) → U72_ag(T14, T86, half17_in_ga(T31, s(s(T40))))
U72_ag(T14, T86, half17_out_ga(T31, s(s(T40)))) → U73_ag(T14, T86, half17_in_ga(T40, s(s(T49))))
U73_ag(T14, T86, half17_out_ga(T40, s(s(T49)))) → U74_ag(T14, T86, half17_in_ga(T49, s(s(T58))))
U74_ag(T14, T86, half17_out_ga(T49, s(s(T58)))) → U75_ag(T14, T86, half17_in_ga(T58, s(s(T67))))
U75_ag(T14, T86, half17_out_ga(T58, s(s(T67)))) → U76_ag(T14, T86, half17_in_ga(T67, s(s(T76))))
U76_ag(T14, T86, half17_out_ga(T67, s(s(T76)))) → U77_ag(T14, T86, half17_in_ga(T76, s(s(T85))))
U77_ag(T14, T86, half17_out_ga(T76, s(s(T85)))) → U78_ag(T14, T86, p139_in_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86))
p139_in_gagg(T85, X286, T88, T86) → U3_gagg(T85, X286, T88, T86, half17_in_ga(T85, X286))
U3_gagg(T85, X286, T88, T86, half17_out_ga(T85, X286)) → p139_out_gagg(T85, X286, T88, T86)
p139_in_gagg(T85, 0, T98, s(T98)) → U4_gagg(T85, T98, half17_in_gg(T85, 0))
U4_gagg(T85, T98, half17_out_gg(T85, 0)) → p139_out_gagg(T85, 0, T98, s(T98))
p139_in_gagg(T85, s(0), T103, s(T103)) → U5_gagg(T85, T103, half17_in_gg(T85, s(0)))
U5_gagg(T85, T103, half17_out_gg(T85, s(0))) → p139_out_gagg(T85, s(0), T103, s(T103))
p139_in_gagg(T85, s(s(T110)), T111, T112) → U6_gagg(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
U6_gagg(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → U7_gagg(T85, T110, T111, T112, p139_in_gagg(T110, X323, s(T111), T112))
U7_gagg(T85, T110, T111, T112, p139_out_gagg(T110, X323, s(T111), T112)) → p139_out_gagg(T85, s(s(T110)), T111, T112)
U78_ag(T14, T86, p139_out_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86)) → log21_out_ag(s(s(T14)), T86)

The argument filtering Pi contains the following mapping:
log21_in_ag(x1, x2)  =  log21_in_ag(x2)
0  =  0
log21_out_ag(x1, x2)  =  log21_out_ag(x1, x2)
U8_ag(x1, x2, x3)  =  U8_ag(x2, x3)
half17_in_aa(x1, x2)  =  half17_in_aa
U2_aa(x1, x2, x3)  =  U2_aa(x3)
half22_in_aa(x1, x2)  =  half22_in_aa
half22_out_aa(x1, x2)  =  half22_out_aa(x1, x2)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
half17_out_aa(x1, x2)  =  half17_out_aa(x1, x2)
s(x1)  =  s(x1)
U9_ag(x1, x2)  =  U9_ag(x2)
half17_in_ag(x1, x2)  =  half17_in_ag(x2)
U2_ag(x1, x2, x3)  =  U2_ag(x2, x3)
half22_in_ag(x1, x2)  =  half22_in_ag(x2)
half22_out_ag(x1, x2)  =  half22_out_ag(x1, x2)
U1_ag(x1, x2, x3)  =  U1_ag(x2, x3)
half17_out_ag(x1, x2)  =  half17_out_ag(x1, x2)
U10_ag(x1, x2)  =  U10_ag(x2)
U11_ag(x1, x2, x3)  =  U11_ag(x2, x3)
U12_ag(x1, x2, x3)  =  U12_ag(x1, x2, x3)
half17_in_ga(x1, x2)  =  half17_in_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x1, x3)
half22_in_ga(x1, x2)  =  half22_in_ga(x1)
half22_out_ga(x1, x2)  =  half22_out_ga(x1, x2)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
half17_out_ga(x1, x2)  =  half17_out_ga(x1, x2)
U13_ag(x1, x2)  =  U13_ag(x2)
U14_ag(x1, x2)  =  U14_ag(x1, x2)
half17_in_gg(x1, x2)  =  half17_in_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x1, x2, x3)
half22_in_gg(x1, x2)  =  half22_in_gg(x1, x2)
half22_out_gg(x1, x2)  =  half22_out_gg(x1, x2)
U1_gg(x1, x2, x3)  =  U1_gg(x1, x2, x3)
half17_out_gg(x1, x2)  =  half17_out_gg(x1, x2)
U15_ag(x1, x2)  =  U15_ag(x1, x2)
U16_ag(x1, x2, x3)  =  U16_ag(x2, x3)
U17_ag(x1, x2, x3)  =  U17_ag(x1, x2, x3)
U18_ag(x1, x2, x3)  =  U18_ag(x1, x2, x3)
U19_ag(x1, x2)  =  U19_ag(x2)
U20_ag(x1, x2)  =  U20_ag(x1, x2)
U21_ag(x1, x2)  =  U21_ag(x1, x2)
U22_ag(x1, x2)  =  U22_ag(x1, x2)
U23_ag(x1, x2, x3)  =  U23_ag(x2, x3)
U24_ag(x1, x2, x3)  =  U24_ag(x1, x2, x3)
U25_ag(x1, x2, x3)  =  U25_ag(x1, x2, x3)
U26_ag(x1, x2, x3)  =  U26_ag(x1, x2, x3)
U27_ag(x1, x2)  =  U27_ag(x2)
U28_ag(x1, x2)  =  U28_ag(x1, x2)
U29_ag(x1, x2)  =  U29_ag(x1, x2)
U30_ag(x1, x2)  =  U30_ag(x1, x2)
U31_ag(x1, x2)  =  U31_ag(x1, x2)
U32_ag(x1, x2, x3)  =  U32_ag(x2, x3)
U33_ag(x1, x2, x3)  =  U33_ag(x1, x2, x3)
U34_ag(x1, x2, x3)  =  U34_ag(x1, x2, x3)
U35_ag(x1, x2, x3)  =  U35_ag(x1, x2, x3)
U36_ag(x1, x2, x3)  =  U36_ag(x1, x2, x3)
U37_ag(x1, x2)  =  U37_ag(x2)
U38_ag(x1, x2)  =  U38_ag(x1, x2)
U39_ag(x1, x2)  =  U39_ag(x1, x2)
U40_ag(x1, x2)  =  U40_ag(x1, x2)
U41_ag(x1, x2)  =  U41_ag(x1, x2)
U42_ag(x1, x2)  =  U42_ag(x1, x2)
U43_ag(x1, x2, x3)  =  U43_ag(x2, x3)
U44_ag(x1, x2, x3)  =  U44_ag(x1, x2, x3)
U45_ag(x1, x2, x3)  =  U45_ag(x1, x2, x3)
U46_ag(x1, x2, x3)  =  U46_ag(x1, x2, x3)
U47_ag(x1, x2, x3)  =  U47_ag(x1, x2, x3)
U48_ag(x1, x2, x3)  =  U48_ag(x1, x2, x3)
U49_ag(x1, x2)  =  U49_ag(x2)
U50_ag(x1, x2)  =  U50_ag(x1, x2)
U51_ag(x1, x2)  =  U51_ag(x1, x2)
U52_ag(x1, x2)  =  U52_ag(x1, x2)
U53_ag(x1, x2)  =  U53_ag(x1, x2)
U54_ag(x1, x2)  =  U54_ag(x1, x2)
U55_ag(x1, x2)  =  U55_ag(x1, x2)
U56_ag(x1, x2, x3)  =  U56_ag(x2, x3)
U57_ag(x1, x2, x3)  =  U57_ag(x1, x2, x3)
U58_ag(x1, x2, x3)  =  U58_ag(x1, x2, x3)
U59_ag(x1, x2, x3)  =  U59_ag(x1, x2, x3)
U60_ag(x1, x2, x3)  =  U60_ag(x1, x2, x3)
U61_ag(x1, x2, x3)  =  U61_ag(x1, x2, x3)
U62_ag(x1, x2, x3)  =  U62_ag(x1, x2, x3)
U63_ag(x1, x2)  =  U63_ag(x2)
U64_ag(x1, x2)  =  U64_ag(x1, x2)
U65_ag(x1, x2)  =  U65_ag(x1, x2)
U66_ag(x1, x2)  =  U66_ag(x1, x2)
U67_ag(x1, x2)  =  U67_ag(x1, x2)
U68_ag(x1, x2)  =  U68_ag(x1, x2)
U69_ag(x1, x2)  =  U69_ag(x1, x2)
U70_ag(x1, x2)  =  U70_ag(x1, x2)
U71_ag(x1, x2, x3)  =  U71_ag(x2, x3)
U72_ag(x1, x2, x3)  =  U72_ag(x1, x2, x3)
U73_ag(x1, x2, x3)  =  U73_ag(x1, x2, x3)
U74_ag(x1, x2, x3)  =  U74_ag(x1, x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x1, x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x1, x2, x3)
U77_ag(x1, x2, x3)  =  U77_ag(x1, x2, x3)
U78_ag(x1, x2, x3)  =  U78_ag(x1, x2, x3)
p139_in_gagg(x1, x2, x3, x4)  =  p139_in_gagg(x1, x3, x4)
U3_gagg(x1, x2, x3, x4, x5)  =  U3_gagg(x1, x3, x4, x5)
p139_out_gagg(x1, x2, x3, x4)  =  p139_out_gagg(x1, x2, x3, x4)
U4_gagg(x1, x2, x3)  =  U4_gagg(x1, x2, x3)
U5_gagg(x1, x2, x3)  =  U5_gagg(x1, x2, x3)
U6_gagg(x1, x2, x3, x4, x5)  =  U6_gagg(x1, x3, x4, x5)
U7_gagg(x1, x2, x3, x4, x5)  =  U7_gagg(x1, x2, x3, x4, x5)
HALF22_IN_AG(x1, x2)  =  HALF22_IN_AG(x2)

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

(39) UsableRulesProof (EQUIVALENT transformation)

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

(40) Obligation:

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

HALF22_IN_AG(s(s(T26)), s(X55)) → HALF22_IN_AG(T26, X55)

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

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

(41) PiDPToQDPProof (SOUND transformation)

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

(42) Obligation:

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

HALF22_IN_AG(s(X55)) → HALF22_IN_AG(X55)

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

(43) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • HALF22_IN_AG(s(X55)) → HALF22_IN_AG(X55)
    The graph contains the following edges 1 > 1

(44) YES

(45) Obligation:

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

HALF22_IN_AA(s(s(T26)), s(X55)) → HALF22_IN_AA(T26, X55)

The TRS R consists of the following rules:

log21_in_ag(0, 0) → log21_out_ag(0, 0)
log21_in_ag(s(0), 0) → log21_out_ag(s(0), 0)
log21_in_ag(s(s(T14)), T13) → U8_ag(T14, T13, half17_in_aa(T14, X28))
half17_in_aa(T22, s(X46)) → U2_aa(T22, X46, half22_in_aa(T22, X46))
half22_in_aa(0, 0) → half22_out_aa(0, 0)
half22_in_aa(s(0), 0) → half22_out_aa(s(0), 0)
half22_in_aa(s(s(T26)), s(X55)) → U1_aa(T26, X55, half22_in_aa(T26, X55))
U1_aa(T26, X55, half22_out_aa(T26, X55)) → half22_out_aa(s(s(T26)), s(X55))
U2_aa(T22, X46, half22_out_aa(T22, X46)) → half17_out_aa(T22, s(X46))
U8_ag(T14, T13, half17_out_aa(T14, X28)) → log21_out_ag(s(s(T14)), T13)
log21_in_ag(s(s(T14)), s(0)) → U9_ag(T14, half17_in_ag(T14, 0))
half17_in_ag(T22, s(X46)) → U2_ag(T22, X46, half22_in_ag(T22, X46))
half22_in_ag(0, 0) → half22_out_ag(0, 0)
half22_in_ag(s(0), 0) → half22_out_ag(s(0), 0)
half22_in_ag(s(s(T26)), s(X55)) → U1_ag(T26, X55, half22_in_ag(T26, X55))
U1_ag(T26, X55, half22_out_ag(T26, X55)) → half22_out_ag(s(s(T26)), s(X55))
U2_ag(T22, X46, half22_out_ag(T22, X46)) → half17_out_ag(T22, s(X46))
U9_ag(T14, half17_out_ag(T14, 0)) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), s(0)) → U10_ag(T14, half17_in_ag(T14, s(0)))
U10_ag(T14, half17_out_ag(T14, s(0))) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), T32) → U11_ag(T14, T32, half17_in_aa(T14, s(s(T31))))
U11_ag(T14, T32, half17_out_aa(T14, s(s(T31)))) → U12_ag(T14, T32, half17_in_ga(T31, X82))
half17_in_ga(T22, s(X46)) → U2_ga(T22, X46, half22_in_ga(T22, X46))
half22_in_ga(0, 0) → half22_out_ga(0, 0)
half22_in_ga(s(0), 0) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26)), s(X55)) → U1_ga(T26, X55, half22_in_ga(T26, X55))
U1_ga(T26, X55, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))
U2_ga(T22, X46, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
U12_ag(T14, T32, half17_out_ga(T31, X82)) → log21_out_ag(s(s(T14)), T32)
log21_in_ag(s(s(T14)), s(s(0))) → U13_ag(T14, half17_in_aa(T14, s(s(T31))))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U14_ag(T14, half17_in_gg(T31, 0))
half17_in_gg(T22, s(X46)) → U2_gg(T22, X46, half22_in_gg(T22, X46))
half22_in_gg(0, 0) → half22_out_gg(0, 0)
half22_in_gg(s(0), 0) → half22_out_gg(s(0), 0)
half22_in_gg(s(s(T26)), s(X55)) → U1_gg(T26, X55, half22_in_gg(T26, X55))
U1_gg(T26, X55, half22_out_gg(T26, X55)) → half22_out_gg(s(s(T26)), s(X55))
U2_gg(T22, X46, half22_out_gg(T22, X46)) → half17_out_gg(T22, s(X46))
U14_ag(T14, half17_out_gg(T31, 0)) → log21_out_ag(s(s(T14)), s(s(0)))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U15_ag(T14, half17_in_gg(T31, s(0)))
U15_ag(T14, half17_out_gg(T31, s(0))) → log21_out_ag(s(s(T14)), s(s(0)))
log21_in_ag(s(s(T14)), T41) → U16_ag(T14, T41, half17_in_aa(T14, s(s(T31))))
U16_ag(T14, T41, half17_out_aa(T14, s(s(T31)))) → U17_ag(T14, T41, half17_in_ga(T31, s(s(T40))))
U17_ag(T14, T41, half17_out_ga(T31, s(s(T40)))) → U18_ag(T14, T41, half17_in_ga(T40, X116))
U18_ag(T14, T41, half17_out_ga(T40, X116)) → log21_out_ag(s(s(T14)), T41)
log21_in_ag(s(s(T14)), s(s(s(0)))) → U19_ag(T14, half17_in_aa(T14, s(s(T31))))
U19_ag(T14, half17_out_aa(T14, s(s(T31)))) → U20_ag(T14, half17_in_ga(T31, s(s(T40))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U21_ag(T14, half17_in_gg(T40, 0))
U21_ag(T14, half17_out_gg(T40, 0)) → log21_out_ag(s(s(T14)), s(s(s(0))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U22_ag(T14, half17_in_gg(T40, s(0)))
U22_ag(T14, half17_out_gg(T40, s(0))) → log21_out_ag(s(s(T14)), s(s(s(0))))
log21_in_ag(s(s(T14)), T50) → U23_ag(T14, T50, half17_in_aa(T14, s(s(T31))))
U23_ag(T14, T50, half17_out_aa(T14, s(s(T31)))) → U24_ag(T14, T50, half17_in_ga(T31, s(s(T40))))
U24_ag(T14, T50, half17_out_ga(T31, s(s(T40)))) → U25_ag(T14, T50, half17_in_ga(T40, s(s(T49))))
U25_ag(T14, T50, half17_out_ga(T40, s(s(T49)))) → U26_ag(T14, T50, half17_in_ga(T49, X150))
U26_ag(T14, T50, half17_out_ga(T49, X150)) → log21_out_ag(s(s(T14)), T50)
log21_in_ag(s(s(T14)), s(s(s(s(0))))) → U27_ag(T14, half17_in_aa(T14, s(s(T31))))
U27_ag(T14, half17_out_aa(T14, s(s(T31)))) → U28_ag(T14, half17_in_ga(T31, s(s(T40))))
U28_ag(T14, half17_out_ga(T31, s(s(T40)))) → U29_ag(T14, half17_in_ga(T40, s(s(T49))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U30_ag(T14, half17_in_gg(T49, 0))
U30_ag(T14, half17_out_gg(T49, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U31_ag(T14, half17_in_gg(T49, s(0)))
U31_ag(T14, half17_out_gg(T49, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
log21_in_ag(s(s(T14)), T59) → U32_ag(T14, T59, half17_in_aa(T14, s(s(T31))))
U32_ag(T14, T59, half17_out_aa(T14, s(s(T31)))) → U33_ag(T14, T59, half17_in_ga(T31, s(s(T40))))
U33_ag(T14, T59, half17_out_ga(T31, s(s(T40)))) → U34_ag(T14, T59, half17_in_ga(T40, s(s(T49))))
U34_ag(T14, T59, half17_out_ga(T40, s(s(T49)))) → U35_ag(T14, T59, half17_in_ga(T49, s(s(T58))))
U35_ag(T14, T59, half17_out_ga(T49, s(s(T58)))) → U36_ag(T14, T59, half17_in_ga(T58, X184))
U36_ag(T14, T59, half17_out_ga(T58, X184)) → log21_out_ag(s(s(T14)), T59)
log21_in_ag(s(s(T14)), s(s(s(s(s(0)))))) → U37_ag(T14, half17_in_aa(T14, s(s(T31))))
U37_ag(T14, half17_out_aa(T14, s(s(T31)))) → U38_ag(T14, half17_in_ga(T31, s(s(T40))))
U38_ag(T14, half17_out_ga(T31, s(s(T40)))) → U39_ag(T14, half17_in_ga(T40, s(s(T49))))
U39_ag(T14, half17_out_ga(T40, s(s(T49)))) → U40_ag(T14, half17_in_ga(T49, s(s(T58))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U41_ag(T14, half17_in_gg(T58, 0))
U41_ag(T14, half17_out_gg(T58, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U42_ag(T14, half17_in_gg(T58, s(0)))
U42_ag(T14, half17_out_gg(T58, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
log21_in_ag(s(s(T14)), T68) → U43_ag(T14, T68, half17_in_aa(T14, s(s(T31))))
U43_ag(T14, T68, half17_out_aa(T14, s(s(T31)))) → U44_ag(T14, T68, half17_in_ga(T31, s(s(T40))))
U44_ag(T14, T68, half17_out_ga(T31, s(s(T40)))) → U45_ag(T14, T68, half17_in_ga(T40, s(s(T49))))
U45_ag(T14, T68, half17_out_ga(T40, s(s(T49)))) → U46_ag(T14, T68, half17_in_ga(T49, s(s(T58))))
U46_ag(T14, T68, half17_out_ga(T49, s(s(T58)))) → U47_ag(T14, T68, half17_in_ga(T58, s(s(T67))))
U47_ag(T14, T68, half17_out_ga(T58, s(s(T67)))) → U48_ag(T14, T68, half17_in_ga(T67, X218))
U48_ag(T14, T68, half17_out_ga(T67, X218)) → log21_out_ag(s(s(T14)), T68)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(0))))))) → U49_ag(T14, half17_in_aa(T14, s(s(T31))))
U49_ag(T14, half17_out_aa(T14, s(s(T31)))) → U50_ag(T14, half17_in_ga(T31, s(s(T40))))
U50_ag(T14, half17_out_ga(T31, s(s(T40)))) → U51_ag(T14, half17_in_ga(T40, s(s(T49))))
U51_ag(T14, half17_out_ga(T40, s(s(T49)))) → U52_ag(T14, half17_in_ga(T49, s(s(T58))))
U52_ag(T14, half17_out_ga(T49, s(s(T58)))) → U53_ag(T14, half17_in_ga(T58, s(s(T67))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U54_ag(T14, half17_in_gg(T67, 0))
U54_ag(T14, half17_out_gg(T67, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U55_ag(T14, half17_in_gg(T67, s(0)))
U55_ag(T14, half17_out_gg(T67, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
log21_in_ag(s(s(T14)), T77) → U56_ag(T14, T77, half17_in_aa(T14, s(s(T31))))
U56_ag(T14, T77, half17_out_aa(T14, s(s(T31)))) → U57_ag(T14, T77, half17_in_ga(T31, s(s(T40))))
U57_ag(T14, T77, half17_out_ga(T31, s(s(T40)))) → U58_ag(T14, T77, half17_in_ga(T40, s(s(T49))))
U58_ag(T14, T77, half17_out_ga(T40, s(s(T49)))) → U59_ag(T14, T77, half17_in_ga(T49, s(s(T58))))
U59_ag(T14, T77, half17_out_ga(T49, s(s(T58)))) → U60_ag(T14, T77, half17_in_ga(T58, s(s(T67))))
U60_ag(T14, T77, half17_out_ga(T58, s(s(T67)))) → U61_ag(T14, T77, half17_in_ga(T67, s(s(T76))))
U61_ag(T14, T77, half17_out_ga(T67, s(s(T76)))) → U62_ag(T14, T77, half17_in_ga(T76, X252))
U62_ag(T14, T77, half17_out_ga(T76, X252)) → log21_out_ag(s(s(T14)), T77)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → U63_ag(T14, half17_in_aa(T14, s(s(T31))))
U63_ag(T14, half17_out_aa(T14, s(s(T31)))) → U64_ag(T14, half17_in_ga(T31, s(s(T40))))
U64_ag(T14, half17_out_ga(T31, s(s(T40)))) → U65_ag(T14, half17_in_ga(T40, s(s(T49))))
U65_ag(T14, half17_out_ga(T40, s(s(T49)))) → U66_ag(T14, half17_in_ga(T49, s(s(T58))))
U66_ag(T14, half17_out_ga(T49, s(s(T58)))) → U67_ag(T14, half17_in_ga(T58, s(s(T67))))
U67_ag(T14, half17_out_ga(T58, s(s(T67)))) → U68_ag(T14, half17_in_ga(T67, s(s(T76))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U69_ag(T14, half17_in_gg(T76, 0))
U69_ag(T14, half17_out_gg(T76, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U70_ag(T14, half17_in_gg(T76, s(0)))
U70_ag(T14, half17_out_gg(T76, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
log21_in_ag(s(s(T14)), T86) → U71_ag(T14, T86, half17_in_aa(T14, s(s(T31))))
U71_ag(T14, T86, half17_out_aa(T14, s(s(T31)))) → U72_ag(T14, T86, half17_in_ga(T31, s(s(T40))))
U72_ag(T14, T86, half17_out_ga(T31, s(s(T40)))) → U73_ag(T14, T86, half17_in_ga(T40, s(s(T49))))
U73_ag(T14, T86, half17_out_ga(T40, s(s(T49)))) → U74_ag(T14, T86, half17_in_ga(T49, s(s(T58))))
U74_ag(T14, T86, half17_out_ga(T49, s(s(T58)))) → U75_ag(T14, T86, half17_in_ga(T58, s(s(T67))))
U75_ag(T14, T86, half17_out_ga(T58, s(s(T67)))) → U76_ag(T14, T86, half17_in_ga(T67, s(s(T76))))
U76_ag(T14, T86, half17_out_ga(T67, s(s(T76)))) → U77_ag(T14, T86, half17_in_ga(T76, s(s(T85))))
U77_ag(T14, T86, half17_out_ga(T76, s(s(T85)))) → U78_ag(T14, T86, p139_in_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86))
p139_in_gagg(T85, X286, T88, T86) → U3_gagg(T85, X286, T88, T86, half17_in_ga(T85, X286))
U3_gagg(T85, X286, T88, T86, half17_out_ga(T85, X286)) → p139_out_gagg(T85, X286, T88, T86)
p139_in_gagg(T85, 0, T98, s(T98)) → U4_gagg(T85, T98, half17_in_gg(T85, 0))
U4_gagg(T85, T98, half17_out_gg(T85, 0)) → p139_out_gagg(T85, 0, T98, s(T98))
p139_in_gagg(T85, s(0), T103, s(T103)) → U5_gagg(T85, T103, half17_in_gg(T85, s(0)))
U5_gagg(T85, T103, half17_out_gg(T85, s(0))) → p139_out_gagg(T85, s(0), T103, s(T103))
p139_in_gagg(T85, s(s(T110)), T111, T112) → U6_gagg(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
U6_gagg(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → U7_gagg(T85, T110, T111, T112, p139_in_gagg(T110, X323, s(T111), T112))
U7_gagg(T85, T110, T111, T112, p139_out_gagg(T110, X323, s(T111), T112)) → p139_out_gagg(T85, s(s(T110)), T111, T112)
U78_ag(T14, T86, p139_out_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86)) → log21_out_ag(s(s(T14)), T86)

The argument filtering Pi contains the following mapping:
log21_in_ag(x1, x2)  =  log21_in_ag(x2)
0  =  0
log21_out_ag(x1, x2)  =  log21_out_ag(x1, x2)
U8_ag(x1, x2, x3)  =  U8_ag(x2, x3)
half17_in_aa(x1, x2)  =  half17_in_aa
U2_aa(x1, x2, x3)  =  U2_aa(x3)
half22_in_aa(x1, x2)  =  half22_in_aa
half22_out_aa(x1, x2)  =  half22_out_aa(x1, x2)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
half17_out_aa(x1, x2)  =  half17_out_aa(x1, x2)
s(x1)  =  s(x1)
U9_ag(x1, x2)  =  U9_ag(x2)
half17_in_ag(x1, x2)  =  half17_in_ag(x2)
U2_ag(x1, x2, x3)  =  U2_ag(x2, x3)
half22_in_ag(x1, x2)  =  half22_in_ag(x2)
half22_out_ag(x1, x2)  =  half22_out_ag(x1, x2)
U1_ag(x1, x2, x3)  =  U1_ag(x2, x3)
half17_out_ag(x1, x2)  =  half17_out_ag(x1, x2)
U10_ag(x1, x2)  =  U10_ag(x2)
U11_ag(x1, x2, x3)  =  U11_ag(x2, x3)
U12_ag(x1, x2, x3)  =  U12_ag(x1, x2, x3)
half17_in_ga(x1, x2)  =  half17_in_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x1, x3)
half22_in_ga(x1, x2)  =  half22_in_ga(x1)
half22_out_ga(x1, x2)  =  half22_out_ga(x1, x2)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
half17_out_ga(x1, x2)  =  half17_out_ga(x1, x2)
U13_ag(x1, x2)  =  U13_ag(x2)
U14_ag(x1, x2)  =  U14_ag(x1, x2)
half17_in_gg(x1, x2)  =  half17_in_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x1, x2, x3)
half22_in_gg(x1, x2)  =  half22_in_gg(x1, x2)
half22_out_gg(x1, x2)  =  half22_out_gg(x1, x2)
U1_gg(x1, x2, x3)  =  U1_gg(x1, x2, x3)
half17_out_gg(x1, x2)  =  half17_out_gg(x1, x2)
U15_ag(x1, x2)  =  U15_ag(x1, x2)
U16_ag(x1, x2, x3)  =  U16_ag(x2, x3)
U17_ag(x1, x2, x3)  =  U17_ag(x1, x2, x3)
U18_ag(x1, x2, x3)  =  U18_ag(x1, x2, x3)
U19_ag(x1, x2)  =  U19_ag(x2)
U20_ag(x1, x2)  =  U20_ag(x1, x2)
U21_ag(x1, x2)  =  U21_ag(x1, x2)
U22_ag(x1, x2)  =  U22_ag(x1, x2)
U23_ag(x1, x2, x3)  =  U23_ag(x2, x3)
U24_ag(x1, x2, x3)  =  U24_ag(x1, x2, x3)
U25_ag(x1, x2, x3)  =  U25_ag(x1, x2, x3)
U26_ag(x1, x2, x3)  =  U26_ag(x1, x2, x3)
U27_ag(x1, x2)  =  U27_ag(x2)
U28_ag(x1, x2)  =  U28_ag(x1, x2)
U29_ag(x1, x2)  =  U29_ag(x1, x2)
U30_ag(x1, x2)  =  U30_ag(x1, x2)
U31_ag(x1, x2)  =  U31_ag(x1, x2)
U32_ag(x1, x2, x3)  =  U32_ag(x2, x3)
U33_ag(x1, x2, x3)  =  U33_ag(x1, x2, x3)
U34_ag(x1, x2, x3)  =  U34_ag(x1, x2, x3)
U35_ag(x1, x2, x3)  =  U35_ag(x1, x2, x3)
U36_ag(x1, x2, x3)  =  U36_ag(x1, x2, x3)
U37_ag(x1, x2)  =  U37_ag(x2)
U38_ag(x1, x2)  =  U38_ag(x1, x2)
U39_ag(x1, x2)  =  U39_ag(x1, x2)
U40_ag(x1, x2)  =  U40_ag(x1, x2)
U41_ag(x1, x2)  =  U41_ag(x1, x2)
U42_ag(x1, x2)  =  U42_ag(x1, x2)
U43_ag(x1, x2, x3)  =  U43_ag(x2, x3)
U44_ag(x1, x2, x3)  =  U44_ag(x1, x2, x3)
U45_ag(x1, x2, x3)  =  U45_ag(x1, x2, x3)
U46_ag(x1, x2, x3)  =  U46_ag(x1, x2, x3)
U47_ag(x1, x2, x3)  =  U47_ag(x1, x2, x3)
U48_ag(x1, x2, x3)  =  U48_ag(x1, x2, x3)
U49_ag(x1, x2)  =  U49_ag(x2)
U50_ag(x1, x2)  =  U50_ag(x1, x2)
U51_ag(x1, x2)  =  U51_ag(x1, x2)
U52_ag(x1, x2)  =  U52_ag(x1, x2)
U53_ag(x1, x2)  =  U53_ag(x1, x2)
U54_ag(x1, x2)  =  U54_ag(x1, x2)
U55_ag(x1, x2)  =  U55_ag(x1, x2)
U56_ag(x1, x2, x3)  =  U56_ag(x2, x3)
U57_ag(x1, x2, x3)  =  U57_ag(x1, x2, x3)
U58_ag(x1, x2, x3)  =  U58_ag(x1, x2, x3)
U59_ag(x1, x2, x3)  =  U59_ag(x1, x2, x3)
U60_ag(x1, x2, x3)  =  U60_ag(x1, x2, x3)
U61_ag(x1, x2, x3)  =  U61_ag(x1, x2, x3)
U62_ag(x1, x2, x3)  =  U62_ag(x1, x2, x3)
U63_ag(x1, x2)  =  U63_ag(x2)
U64_ag(x1, x2)  =  U64_ag(x1, x2)
U65_ag(x1, x2)  =  U65_ag(x1, x2)
U66_ag(x1, x2)  =  U66_ag(x1, x2)
U67_ag(x1, x2)  =  U67_ag(x1, x2)
U68_ag(x1, x2)  =  U68_ag(x1, x2)
U69_ag(x1, x2)  =  U69_ag(x1, x2)
U70_ag(x1, x2)  =  U70_ag(x1, x2)
U71_ag(x1, x2, x3)  =  U71_ag(x2, x3)
U72_ag(x1, x2, x3)  =  U72_ag(x1, x2, x3)
U73_ag(x1, x2, x3)  =  U73_ag(x1, x2, x3)
U74_ag(x1, x2, x3)  =  U74_ag(x1, x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x1, x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x1, x2, x3)
U77_ag(x1, x2, x3)  =  U77_ag(x1, x2, x3)
U78_ag(x1, x2, x3)  =  U78_ag(x1, x2, x3)
p139_in_gagg(x1, x2, x3, x4)  =  p139_in_gagg(x1, x3, x4)
U3_gagg(x1, x2, x3, x4, x5)  =  U3_gagg(x1, x3, x4, x5)
p139_out_gagg(x1, x2, x3, x4)  =  p139_out_gagg(x1, x2, x3, x4)
U4_gagg(x1, x2, x3)  =  U4_gagg(x1, x2, x3)
U5_gagg(x1, x2, x3)  =  U5_gagg(x1, x2, x3)
U6_gagg(x1, x2, x3, x4, x5)  =  U6_gagg(x1, x3, x4, x5)
U7_gagg(x1, x2, x3, x4, x5)  =  U7_gagg(x1, x2, x3, x4, x5)
HALF22_IN_AA(x1, x2)  =  HALF22_IN_AA

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

(46) UsableRulesProof (EQUIVALENT transformation)

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

(47) Obligation:

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

HALF22_IN_AA(s(s(T26)), s(X55)) → HALF22_IN_AA(T26, X55)

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

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

(48) PiDPToQDPProof (SOUND transformation)

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

(49) Obligation:

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

HALF22_IN_AAHALF22_IN_AA

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

(50) 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 = HALF22_IN_AA evaluates to t =HALF22_IN_AA

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




Rewriting sequence

The DP semiunifies directly so there is only one rewrite step from HALF22_IN_AA to HALF22_IN_AA.



(51) NO

(52) PrologToPiTRSProof (SOUND transformation)

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

log21_in_ag(0, 0) → log21_out_ag(0, 0)
log21_in_ag(s(0), 0) → log21_out_ag(s(0), 0)
log21_in_ag(s(s(T14)), T13) → U8_ag(T14, T13, half17_in_aa(T14, X28))
half17_in_aa(T22, s(X46)) → U2_aa(T22, X46, half22_in_aa(T22, X46))
half22_in_aa(0, 0) → half22_out_aa(0, 0)
half22_in_aa(s(0), 0) → half22_out_aa(s(0), 0)
half22_in_aa(s(s(T26)), s(X55)) → U1_aa(T26, X55, half22_in_aa(T26, X55))
U1_aa(T26, X55, half22_out_aa(T26, X55)) → half22_out_aa(s(s(T26)), s(X55))
U2_aa(T22, X46, half22_out_aa(T22, X46)) → half17_out_aa(T22, s(X46))
U8_ag(T14, T13, half17_out_aa(T14, X28)) → log21_out_ag(s(s(T14)), T13)
log21_in_ag(s(s(T14)), s(0)) → U9_ag(T14, half17_in_ag(T14, 0))
half17_in_ag(T22, s(X46)) → U2_ag(T22, X46, half22_in_ag(T22, X46))
half22_in_ag(0, 0) → half22_out_ag(0, 0)
half22_in_ag(s(0), 0) → half22_out_ag(s(0), 0)
half22_in_ag(s(s(T26)), s(X55)) → U1_ag(T26, X55, half22_in_ag(T26, X55))
U1_ag(T26, X55, half22_out_ag(T26, X55)) → half22_out_ag(s(s(T26)), s(X55))
U2_ag(T22, X46, half22_out_ag(T22, X46)) → half17_out_ag(T22, s(X46))
U9_ag(T14, half17_out_ag(T14, 0)) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), s(0)) → U10_ag(T14, half17_in_ag(T14, s(0)))
U10_ag(T14, half17_out_ag(T14, s(0))) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), T32) → U11_ag(T14, T32, half17_in_aa(T14, s(s(T31))))
U11_ag(T14, T32, half17_out_aa(T14, s(s(T31)))) → U12_ag(T14, T32, half17_in_ga(T31, X82))
half17_in_ga(T22, s(X46)) → U2_ga(T22, X46, half22_in_ga(T22, X46))
half22_in_ga(0, 0) → half22_out_ga(0, 0)
half22_in_ga(s(0), 0) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26)), s(X55)) → U1_ga(T26, X55, half22_in_ga(T26, X55))
U1_ga(T26, X55, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))
U2_ga(T22, X46, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
U12_ag(T14, T32, half17_out_ga(T31, X82)) → log21_out_ag(s(s(T14)), T32)
log21_in_ag(s(s(T14)), s(s(0))) → U13_ag(T14, half17_in_aa(T14, s(s(T31))))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U14_ag(T14, half17_in_gg(T31, 0))
half17_in_gg(T22, s(X46)) → U2_gg(T22, X46, half22_in_gg(T22, X46))
half22_in_gg(0, 0) → half22_out_gg(0, 0)
half22_in_gg(s(0), 0) → half22_out_gg(s(0), 0)
half22_in_gg(s(s(T26)), s(X55)) → U1_gg(T26, X55, half22_in_gg(T26, X55))
U1_gg(T26, X55, half22_out_gg(T26, X55)) → half22_out_gg(s(s(T26)), s(X55))
U2_gg(T22, X46, half22_out_gg(T22, X46)) → half17_out_gg(T22, s(X46))
U14_ag(T14, half17_out_gg(T31, 0)) → log21_out_ag(s(s(T14)), s(s(0)))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U15_ag(T14, half17_in_gg(T31, s(0)))
U15_ag(T14, half17_out_gg(T31, s(0))) → log21_out_ag(s(s(T14)), s(s(0)))
log21_in_ag(s(s(T14)), T41) → U16_ag(T14, T41, half17_in_aa(T14, s(s(T31))))
U16_ag(T14, T41, half17_out_aa(T14, s(s(T31)))) → U17_ag(T14, T41, half17_in_ga(T31, s(s(T40))))
U17_ag(T14, T41, half17_out_ga(T31, s(s(T40)))) → U18_ag(T14, T41, half17_in_ga(T40, X116))
U18_ag(T14, T41, half17_out_ga(T40, X116)) → log21_out_ag(s(s(T14)), T41)
log21_in_ag(s(s(T14)), s(s(s(0)))) → U19_ag(T14, half17_in_aa(T14, s(s(T31))))
U19_ag(T14, half17_out_aa(T14, s(s(T31)))) → U20_ag(T14, half17_in_ga(T31, s(s(T40))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U21_ag(T14, half17_in_gg(T40, 0))
U21_ag(T14, half17_out_gg(T40, 0)) → log21_out_ag(s(s(T14)), s(s(s(0))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U22_ag(T14, half17_in_gg(T40, s(0)))
U22_ag(T14, half17_out_gg(T40, s(0))) → log21_out_ag(s(s(T14)), s(s(s(0))))
log21_in_ag(s(s(T14)), T50) → U23_ag(T14, T50, half17_in_aa(T14, s(s(T31))))
U23_ag(T14, T50, half17_out_aa(T14, s(s(T31)))) → U24_ag(T14, T50, half17_in_ga(T31, s(s(T40))))
U24_ag(T14, T50, half17_out_ga(T31, s(s(T40)))) → U25_ag(T14, T50, half17_in_ga(T40, s(s(T49))))
U25_ag(T14, T50, half17_out_ga(T40, s(s(T49)))) → U26_ag(T14, T50, half17_in_ga(T49, X150))
U26_ag(T14, T50, half17_out_ga(T49, X150)) → log21_out_ag(s(s(T14)), T50)
log21_in_ag(s(s(T14)), s(s(s(s(0))))) → U27_ag(T14, half17_in_aa(T14, s(s(T31))))
U27_ag(T14, half17_out_aa(T14, s(s(T31)))) → U28_ag(T14, half17_in_ga(T31, s(s(T40))))
U28_ag(T14, half17_out_ga(T31, s(s(T40)))) → U29_ag(T14, half17_in_ga(T40, s(s(T49))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U30_ag(T14, half17_in_gg(T49, 0))
U30_ag(T14, half17_out_gg(T49, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U31_ag(T14, half17_in_gg(T49, s(0)))
U31_ag(T14, half17_out_gg(T49, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
log21_in_ag(s(s(T14)), T59) → U32_ag(T14, T59, half17_in_aa(T14, s(s(T31))))
U32_ag(T14, T59, half17_out_aa(T14, s(s(T31)))) → U33_ag(T14, T59, half17_in_ga(T31, s(s(T40))))
U33_ag(T14, T59, half17_out_ga(T31, s(s(T40)))) → U34_ag(T14, T59, half17_in_ga(T40, s(s(T49))))
U34_ag(T14, T59, half17_out_ga(T40, s(s(T49)))) → U35_ag(T14, T59, half17_in_ga(T49, s(s(T58))))
U35_ag(T14, T59, half17_out_ga(T49, s(s(T58)))) → U36_ag(T14, T59, half17_in_ga(T58, X184))
U36_ag(T14, T59, half17_out_ga(T58, X184)) → log21_out_ag(s(s(T14)), T59)
log21_in_ag(s(s(T14)), s(s(s(s(s(0)))))) → U37_ag(T14, half17_in_aa(T14, s(s(T31))))
U37_ag(T14, half17_out_aa(T14, s(s(T31)))) → U38_ag(T14, half17_in_ga(T31, s(s(T40))))
U38_ag(T14, half17_out_ga(T31, s(s(T40)))) → U39_ag(T14, half17_in_ga(T40, s(s(T49))))
U39_ag(T14, half17_out_ga(T40, s(s(T49)))) → U40_ag(T14, half17_in_ga(T49, s(s(T58))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U41_ag(T14, half17_in_gg(T58, 0))
U41_ag(T14, half17_out_gg(T58, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U42_ag(T14, half17_in_gg(T58, s(0)))
U42_ag(T14, half17_out_gg(T58, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
log21_in_ag(s(s(T14)), T68) → U43_ag(T14, T68, half17_in_aa(T14, s(s(T31))))
U43_ag(T14, T68, half17_out_aa(T14, s(s(T31)))) → U44_ag(T14, T68, half17_in_ga(T31, s(s(T40))))
U44_ag(T14, T68, half17_out_ga(T31, s(s(T40)))) → U45_ag(T14, T68, half17_in_ga(T40, s(s(T49))))
U45_ag(T14, T68, half17_out_ga(T40, s(s(T49)))) → U46_ag(T14, T68, half17_in_ga(T49, s(s(T58))))
U46_ag(T14, T68, half17_out_ga(T49, s(s(T58)))) → U47_ag(T14, T68, half17_in_ga(T58, s(s(T67))))
U47_ag(T14, T68, half17_out_ga(T58, s(s(T67)))) → U48_ag(T14, T68, half17_in_ga(T67, X218))
U48_ag(T14, T68, half17_out_ga(T67, X218)) → log21_out_ag(s(s(T14)), T68)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(0))))))) → U49_ag(T14, half17_in_aa(T14, s(s(T31))))
U49_ag(T14, half17_out_aa(T14, s(s(T31)))) → U50_ag(T14, half17_in_ga(T31, s(s(T40))))
U50_ag(T14, half17_out_ga(T31, s(s(T40)))) → U51_ag(T14, half17_in_ga(T40, s(s(T49))))
U51_ag(T14, half17_out_ga(T40, s(s(T49)))) → U52_ag(T14, half17_in_ga(T49, s(s(T58))))
U52_ag(T14, half17_out_ga(T49, s(s(T58)))) → U53_ag(T14, half17_in_ga(T58, s(s(T67))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U54_ag(T14, half17_in_gg(T67, 0))
U54_ag(T14, half17_out_gg(T67, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U55_ag(T14, half17_in_gg(T67, s(0)))
U55_ag(T14, half17_out_gg(T67, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
log21_in_ag(s(s(T14)), T77) → U56_ag(T14, T77, half17_in_aa(T14, s(s(T31))))
U56_ag(T14, T77, half17_out_aa(T14, s(s(T31)))) → U57_ag(T14, T77, half17_in_ga(T31, s(s(T40))))
U57_ag(T14, T77, half17_out_ga(T31, s(s(T40)))) → U58_ag(T14, T77, half17_in_ga(T40, s(s(T49))))
U58_ag(T14, T77, half17_out_ga(T40, s(s(T49)))) → U59_ag(T14, T77, half17_in_ga(T49, s(s(T58))))
U59_ag(T14, T77, half17_out_ga(T49, s(s(T58)))) → U60_ag(T14, T77, half17_in_ga(T58, s(s(T67))))
U60_ag(T14, T77, half17_out_ga(T58, s(s(T67)))) → U61_ag(T14, T77, half17_in_ga(T67, s(s(T76))))
U61_ag(T14, T77, half17_out_ga(T67, s(s(T76)))) → U62_ag(T14, T77, half17_in_ga(T76, X252))
U62_ag(T14, T77, half17_out_ga(T76, X252)) → log21_out_ag(s(s(T14)), T77)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → U63_ag(T14, half17_in_aa(T14, s(s(T31))))
U63_ag(T14, half17_out_aa(T14, s(s(T31)))) → U64_ag(T14, half17_in_ga(T31, s(s(T40))))
U64_ag(T14, half17_out_ga(T31, s(s(T40)))) → U65_ag(T14, half17_in_ga(T40, s(s(T49))))
U65_ag(T14, half17_out_ga(T40, s(s(T49)))) → U66_ag(T14, half17_in_ga(T49, s(s(T58))))
U66_ag(T14, half17_out_ga(T49, s(s(T58)))) → U67_ag(T14, half17_in_ga(T58, s(s(T67))))
U67_ag(T14, half17_out_ga(T58, s(s(T67)))) → U68_ag(T14, half17_in_ga(T67, s(s(T76))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U69_ag(T14, half17_in_gg(T76, 0))
U69_ag(T14, half17_out_gg(T76, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U70_ag(T14, half17_in_gg(T76, s(0)))
U70_ag(T14, half17_out_gg(T76, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
log21_in_ag(s(s(T14)), T86) → U71_ag(T14, T86, half17_in_aa(T14, s(s(T31))))
U71_ag(T14, T86, half17_out_aa(T14, s(s(T31)))) → U72_ag(T14, T86, half17_in_ga(T31, s(s(T40))))
U72_ag(T14, T86, half17_out_ga(T31, s(s(T40)))) → U73_ag(T14, T86, half17_in_ga(T40, s(s(T49))))
U73_ag(T14, T86, half17_out_ga(T40, s(s(T49)))) → U74_ag(T14, T86, half17_in_ga(T49, s(s(T58))))
U74_ag(T14, T86, half17_out_ga(T49, s(s(T58)))) → U75_ag(T14, T86, half17_in_ga(T58, s(s(T67))))
U75_ag(T14, T86, half17_out_ga(T58, s(s(T67)))) → U76_ag(T14, T86, half17_in_ga(T67, s(s(T76))))
U76_ag(T14, T86, half17_out_ga(T67, s(s(T76)))) → U77_ag(T14, T86, half17_in_ga(T76, s(s(T85))))
U77_ag(T14, T86, half17_out_ga(T76, s(s(T85)))) → U78_ag(T14, T86, p139_in_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86))
p139_in_gagg(T85, X286, T88, T86) → U3_gagg(T85, X286, T88, T86, half17_in_ga(T85, X286))
U3_gagg(T85, X286, T88, T86, half17_out_ga(T85, X286)) → p139_out_gagg(T85, X286, T88, T86)
p139_in_gagg(T85, 0, T98, s(T98)) → U4_gagg(T85, T98, half17_in_gg(T85, 0))
U4_gagg(T85, T98, half17_out_gg(T85, 0)) → p139_out_gagg(T85, 0, T98, s(T98))
p139_in_gagg(T85, s(0), T103, s(T103)) → U5_gagg(T85, T103, half17_in_gg(T85, s(0)))
U5_gagg(T85, T103, half17_out_gg(T85, s(0))) → p139_out_gagg(T85, s(0), T103, s(T103))
p139_in_gagg(T85, s(s(T110)), T111, T112) → U6_gagg(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
U6_gagg(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → U7_gagg(T85, T110, T111, T112, p139_in_gagg(T110, X323, s(T111), T112))
U7_gagg(T85, T110, T111, T112, p139_out_gagg(T110, X323, s(T111), T112)) → p139_out_gagg(T85, s(s(T110)), T111, T112)
U78_ag(T14, T86, p139_out_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86)) → log21_out_ag(s(s(T14)), T86)

The argument filtering Pi contains the following mapping:
log21_in_ag(x1, x2)  =  log21_in_ag(x2)
0  =  0
log21_out_ag(x1, x2)  =  log21_out_ag(x1)
U8_ag(x1, x2, x3)  =  U8_ag(x3)
half17_in_aa(x1, x2)  =  half17_in_aa
U2_aa(x1, x2, x3)  =  U2_aa(x3)
half22_in_aa(x1, x2)  =  half22_in_aa
half22_out_aa(x1, x2)  =  half22_out_aa(x1, x2)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
half17_out_aa(x1, x2)  =  half17_out_aa(x1, x2)
s(x1)  =  s(x1)
U9_ag(x1, x2)  =  U9_ag(x2)
half17_in_ag(x1, x2)  =  half17_in_ag(x2)
U2_ag(x1, x2, x3)  =  U2_ag(x3)
half22_in_ag(x1, x2)  =  half22_in_ag(x2)
half22_out_ag(x1, x2)  =  half22_out_ag(x1)
U1_ag(x1, x2, x3)  =  U1_ag(x3)
half17_out_ag(x1, x2)  =  half17_out_ag(x1)
U10_ag(x1, x2)  =  U10_ag(x2)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
U12_ag(x1, x2, x3)  =  U12_ag(x1, x3)
half17_in_ga(x1, x2)  =  half17_in_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x3)
half22_in_ga(x1, x2)  =  half22_in_ga(x1)
half22_out_ga(x1, x2)  =  half22_out_ga(x2)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
half17_out_ga(x1, x2)  =  half17_out_ga(x2)
U13_ag(x1, x2)  =  U13_ag(x2)
U14_ag(x1, x2)  =  U14_ag(x1, x2)
half17_in_gg(x1, x2)  =  half17_in_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x3)
half22_in_gg(x1, x2)  =  half22_in_gg(x1, x2)
half22_out_gg(x1, x2)  =  half22_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
half17_out_gg(x1, x2)  =  half17_out_gg
U15_ag(x1, x2)  =  U15_ag(x1, x2)
U16_ag(x1, x2, x3)  =  U16_ag(x3)
U17_ag(x1, x2, x3)  =  U17_ag(x1, x3)
U18_ag(x1, x2, x3)  =  U18_ag(x1, x3)
U19_ag(x1, x2)  =  U19_ag(x2)
U20_ag(x1, x2)  =  U20_ag(x1, x2)
U21_ag(x1, x2)  =  U21_ag(x1, x2)
U22_ag(x1, x2)  =  U22_ag(x1, x2)
U23_ag(x1, x2, x3)  =  U23_ag(x3)
U24_ag(x1, x2, x3)  =  U24_ag(x1, x3)
U25_ag(x1, x2, x3)  =  U25_ag(x1, x3)
U26_ag(x1, x2, x3)  =  U26_ag(x1, x3)
U27_ag(x1, x2)  =  U27_ag(x2)
U28_ag(x1, x2)  =  U28_ag(x1, x2)
U29_ag(x1, x2)  =  U29_ag(x1, x2)
U30_ag(x1, x2)  =  U30_ag(x1, x2)
U31_ag(x1, x2)  =  U31_ag(x1, x2)
U32_ag(x1, x2, x3)  =  U32_ag(x3)
U33_ag(x1, x2, x3)  =  U33_ag(x1, x3)
U34_ag(x1, x2, x3)  =  U34_ag(x1, x3)
U35_ag(x1, x2, x3)  =  U35_ag(x1, x3)
U36_ag(x1, x2, x3)  =  U36_ag(x1, x3)
U37_ag(x1, x2)  =  U37_ag(x2)
U38_ag(x1, x2)  =  U38_ag(x1, x2)
U39_ag(x1, x2)  =  U39_ag(x1, x2)
U40_ag(x1, x2)  =  U40_ag(x1, x2)
U41_ag(x1, x2)  =  U41_ag(x1, x2)
U42_ag(x1, x2)  =  U42_ag(x1, x2)
U43_ag(x1, x2, x3)  =  U43_ag(x3)
U44_ag(x1, x2, x3)  =  U44_ag(x1, x3)
U45_ag(x1, x2, x3)  =  U45_ag(x1, x3)
U46_ag(x1, x2, x3)  =  U46_ag(x1, x3)
U47_ag(x1, x2, x3)  =  U47_ag(x1, x3)
U48_ag(x1, x2, x3)  =  U48_ag(x1, x3)
U49_ag(x1, x2)  =  U49_ag(x2)
U50_ag(x1, x2)  =  U50_ag(x1, x2)
U51_ag(x1, x2)  =  U51_ag(x1, x2)
U52_ag(x1, x2)  =  U52_ag(x1, x2)
U53_ag(x1, x2)  =  U53_ag(x1, x2)
U54_ag(x1, x2)  =  U54_ag(x1, x2)
U55_ag(x1, x2)  =  U55_ag(x1, x2)
U56_ag(x1, x2, x3)  =  U56_ag(x3)
U57_ag(x1, x2, x3)  =  U57_ag(x1, x3)
U58_ag(x1, x2, x3)  =  U58_ag(x1, x3)
U59_ag(x1, x2, x3)  =  U59_ag(x1, x3)
U60_ag(x1, x2, x3)  =  U60_ag(x1, x3)
U61_ag(x1, x2, x3)  =  U61_ag(x1, x3)
U62_ag(x1, x2, x3)  =  U62_ag(x1, x3)
U63_ag(x1, x2)  =  U63_ag(x2)
U64_ag(x1, x2)  =  U64_ag(x1, x2)
U65_ag(x1, x2)  =  U65_ag(x1, x2)
U66_ag(x1, x2)  =  U66_ag(x1, x2)
U67_ag(x1, x2)  =  U67_ag(x1, x2)
U68_ag(x1, x2)  =  U68_ag(x1, x2)
U69_ag(x1, x2)  =  U69_ag(x1, x2)
U70_ag(x1, x2)  =  U70_ag(x1, x2)
U71_ag(x1, x2, x3)  =  U71_ag(x2, x3)
U72_ag(x1, x2, x3)  =  U72_ag(x1, x2, x3)
U73_ag(x1, x2, x3)  =  U73_ag(x1, x2, x3)
U74_ag(x1, x2, x3)  =  U74_ag(x1, x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x1, x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x1, x2, x3)
U77_ag(x1, x2, x3)  =  U77_ag(x1, x2, x3)
U78_ag(x1, x2, x3)  =  U78_ag(x1, x3)
p139_in_gagg(x1, x2, x3, x4)  =  p139_in_gagg(x1, x3, x4)
U3_gagg(x1, x2, x3, x4, x5)  =  U3_gagg(x5)
p139_out_gagg(x1, x2, x3, x4)  =  p139_out_gagg(x2)
U4_gagg(x1, x2, x3)  =  U4_gagg(x3)
U5_gagg(x1, x2, x3)  =  U5_gagg(x3)
U6_gagg(x1, x2, x3, x4, x5)  =  U6_gagg(x3, x4, x5)
U7_gagg(x1, x2, x3, x4, x5)  =  U7_gagg(x2, x5)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(53) Obligation:

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

log21_in_ag(0, 0) → log21_out_ag(0, 0)
log21_in_ag(s(0), 0) → log21_out_ag(s(0), 0)
log21_in_ag(s(s(T14)), T13) → U8_ag(T14, T13, half17_in_aa(T14, X28))
half17_in_aa(T22, s(X46)) → U2_aa(T22, X46, half22_in_aa(T22, X46))
half22_in_aa(0, 0) → half22_out_aa(0, 0)
half22_in_aa(s(0), 0) → half22_out_aa(s(0), 0)
half22_in_aa(s(s(T26)), s(X55)) → U1_aa(T26, X55, half22_in_aa(T26, X55))
U1_aa(T26, X55, half22_out_aa(T26, X55)) → half22_out_aa(s(s(T26)), s(X55))
U2_aa(T22, X46, half22_out_aa(T22, X46)) → half17_out_aa(T22, s(X46))
U8_ag(T14, T13, half17_out_aa(T14, X28)) → log21_out_ag(s(s(T14)), T13)
log21_in_ag(s(s(T14)), s(0)) → U9_ag(T14, half17_in_ag(T14, 0))
half17_in_ag(T22, s(X46)) → U2_ag(T22, X46, half22_in_ag(T22, X46))
half22_in_ag(0, 0) → half22_out_ag(0, 0)
half22_in_ag(s(0), 0) → half22_out_ag(s(0), 0)
half22_in_ag(s(s(T26)), s(X55)) → U1_ag(T26, X55, half22_in_ag(T26, X55))
U1_ag(T26, X55, half22_out_ag(T26, X55)) → half22_out_ag(s(s(T26)), s(X55))
U2_ag(T22, X46, half22_out_ag(T22, X46)) → half17_out_ag(T22, s(X46))
U9_ag(T14, half17_out_ag(T14, 0)) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), s(0)) → U10_ag(T14, half17_in_ag(T14, s(0)))
U10_ag(T14, half17_out_ag(T14, s(0))) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), T32) → U11_ag(T14, T32, half17_in_aa(T14, s(s(T31))))
U11_ag(T14, T32, half17_out_aa(T14, s(s(T31)))) → U12_ag(T14, T32, half17_in_ga(T31, X82))
half17_in_ga(T22, s(X46)) → U2_ga(T22, X46, half22_in_ga(T22, X46))
half22_in_ga(0, 0) → half22_out_ga(0, 0)
half22_in_ga(s(0), 0) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26)), s(X55)) → U1_ga(T26, X55, half22_in_ga(T26, X55))
U1_ga(T26, X55, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))
U2_ga(T22, X46, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
U12_ag(T14, T32, half17_out_ga(T31, X82)) → log21_out_ag(s(s(T14)), T32)
log21_in_ag(s(s(T14)), s(s(0))) → U13_ag(T14, half17_in_aa(T14, s(s(T31))))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U14_ag(T14, half17_in_gg(T31, 0))
half17_in_gg(T22, s(X46)) → U2_gg(T22, X46, half22_in_gg(T22, X46))
half22_in_gg(0, 0) → half22_out_gg(0, 0)
half22_in_gg(s(0), 0) → half22_out_gg(s(0), 0)
half22_in_gg(s(s(T26)), s(X55)) → U1_gg(T26, X55, half22_in_gg(T26, X55))
U1_gg(T26, X55, half22_out_gg(T26, X55)) → half22_out_gg(s(s(T26)), s(X55))
U2_gg(T22, X46, half22_out_gg(T22, X46)) → half17_out_gg(T22, s(X46))
U14_ag(T14, half17_out_gg(T31, 0)) → log21_out_ag(s(s(T14)), s(s(0)))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U15_ag(T14, half17_in_gg(T31, s(0)))
U15_ag(T14, half17_out_gg(T31, s(0))) → log21_out_ag(s(s(T14)), s(s(0)))
log21_in_ag(s(s(T14)), T41) → U16_ag(T14, T41, half17_in_aa(T14, s(s(T31))))
U16_ag(T14, T41, half17_out_aa(T14, s(s(T31)))) → U17_ag(T14, T41, half17_in_ga(T31, s(s(T40))))
U17_ag(T14, T41, half17_out_ga(T31, s(s(T40)))) → U18_ag(T14, T41, half17_in_ga(T40, X116))
U18_ag(T14, T41, half17_out_ga(T40, X116)) → log21_out_ag(s(s(T14)), T41)
log21_in_ag(s(s(T14)), s(s(s(0)))) → U19_ag(T14, half17_in_aa(T14, s(s(T31))))
U19_ag(T14, half17_out_aa(T14, s(s(T31)))) → U20_ag(T14, half17_in_ga(T31, s(s(T40))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U21_ag(T14, half17_in_gg(T40, 0))
U21_ag(T14, half17_out_gg(T40, 0)) → log21_out_ag(s(s(T14)), s(s(s(0))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U22_ag(T14, half17_in_gg(T40, s(0)))
U22_ag(T14, half17_out_gg(T40, s(0))) → log21_out_ag(s(s(T14)), s(s(s(0))))
log21_in_ag(s(s(T14)), T50) → U23_ag(T14, T50, half17_in_aa(T14, s(s(T31))))
U23_ag(T14, T50, half17_out_aa(T14, s(s(T31)))) → U24_ag(T14, T50, half17_in_ga(T31, s(s(T40))))
U24_ag(T14, T50, half17_out_ga(T31, s(s(T40)))) → U25_ag(T14, T50, half17_in_ga(T40, s(s(T49))))
U25_ag(T14, T50, half17_out_ga(T40, s(s(T49)))) → U26_ag(T14, T50, half17_in_ga(T49, X150))
U26_ag(T14, T50, half17_out_ga(T49, X150)) → log21_out_ag(s(s(T14)), T50)
log21_in_ag(s(s(T14)), s(s(s(s(0))))) → U27_ag(T14, half17_in_aa(T14, s(s(T31))))
U27_ag(T14, half17_out_aa(T14, s(s(T31)))) → U28_ag(T14, half17_in_ga(T31, s(s(T40))))
U28_ag(T14, half17_out_ga(T31, s(s(T40)))) → U29_ag(T14, half17_in_ga(T40, s(s(T49))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U30_ag(T14, half17_in_gg(T49, 0))
U30_ag(T14, half17_out_gg(T49, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U31_ag(T14, half17_in_gg(T49, s(0)))
U31_ag(T14, half17_out_gg(T49, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
log21_in_ag(s(s(T14)), T59) → U32_ag(T14, T59, half17_in_aa(T14, s(s(T31))))
U32_ag(T14, T59, half17_out_aa(T14, s(s(T31)))) → U33_ag(T14, T59, half17_in_ga(T31, s(s(T40))))
U33_ag(T14, T59, half17_out_ga(T31, s(s(T40)))) → U34_ag(T14, T59, half17_in_ga(T40, s(s(T49))))
U34_ag(T14, T59, half17_out_ga(T40, s(s(T49)))) → U35_ag(T14, T59, half17_in_ga(T49, s(s(T58))))
U35_ag(T14, T59, half17_out_ga(T49, s(s(T58)))) → U36_ag(T14, T59, half17_in_ga(T58, X184))
U36_ag(T14, T59, half17_out_ga(T58, X184)) → log21_out_ag(s(s(T14)), T59)
log21_in_ag(s(s(T14)), s(s(s(s(s(0)))))) → U37_ag(T14, half17_in_aa(T14, s(s(T31))))
U37_ag(T14, half17_out_aa(T14, s(s(T31)))) → U38_ag(T14, half17_in_ga(T31, s(s(T40))))
U38_ag(T14, half17_out_ga(T31, s(s(T40)))) → U39_ag(T14, half17_in_ga(T40, s(s(T49))))
U39_ag(T14, half17_out_ga(T40, s(s(T49)))) → U40_ag(T14, half17_in_ga(T49, s(s(T58))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U41_ag(T14, half17_in_gg(T58, 0))
U41_ag(T14, half17_out_gg(T58, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U42_ag(T14, half17_in_gg(T58, s(0)))
U42_ag(T14, half17_out_gg(T58, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
log21_in_ag(s(s(T14)), T68) → U43_ag(T14, T68, half17_in_aa(T14, s(s(T31))))
U43_ag(T14, T68, half17_out_aa(T14, s(s(T31)))) → U44_ag(T14, T68, half17_in_ga(T31, s(s(T40))))
U44_ag(T14, T68, half17_out_ga(T31, s(s(T40)))) → U45_ag(T14, T68, half17_in_ga(T40, s(s(T49))))
U45_ag(T14, T68, half17_out_ga(T40, s(s(T49)))) → U46_ag(T14, T68, half17_in_ga(T49, s(s(T58))))
U46_ag(T14, T68, half17_out_ga(T49, s(s(T58)))) → U47_ag(T14, T68, half17_in_ga(T58, s(s(T67))))
U47_ag(T14, T68, half17_out_ga(T58, s(s(T67)))) → U48_ag(T14, T68, half17_in_ga(T67, X218))
U48_ag(T14, T68, half17_out_ga(T67, X218)) → log21_out_ag(s(s(T14)), T68)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(0))))))) → U49_ag(T14, half17_in_aa(T14, s(s(T31))))
U49_ag(T14, half17_out_aa(T14, s(s(T31)))) → U50_ag(T14, half17_in_ga(T31, s(s(T40))))
U50_ag(T14, half17_out_ga(T31, s(s(T40)))) → U51_ag(T14, half17_in_ga(T40, s(s(T49))))
U51_ag(T14, half17_out_ga(T40, s(s(T49)))) → U52_ag(T14, half17_in_ga(T49, s(s(T58))))
U52_ag(T14, half17_out_ga(T49, s(s(T58)))) → U53_ag(T14, half17_in_ga(T58, s(s(T67))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U54_ag(T14, half17_in_gg(T67, 0))
U54_ag(T14, half17_out_gg(T67, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U55_ag(T14, half17_in_gg(T67, s(0)))
U55_ag(T14, half17_out_gg(T67, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
log21_in_ag(s(s(T14)), T77) → U56_ag(T14, T77, half17_in_aa(T14, s(s(T31))))
U56_ag(T14, T77, half17_out_aa(T14, s(s(T31)))) → U57_ag(T14, T77, half17_in_ga(T31, s(s(T40))))
U57_ag(T14, T77, half17_out_ga(T31, s(s(T40)))) → U58_ag(T14, T77, half17_in_ga(T40, s(s(T49))))
U58_ag(T14, T77, half17_out_ga(T40, s(s(T49)))) → U59_ag(T14, T77, half17_in_ga(T49, s(s(T58))))
U59_ag(T14, T77, half17_out_ga(T49, s(s(T58)))) → U60_ag(T14, T77, half17_in_ga(T58, s(s(T67))))
U60_ag(T14, T77, half17_out_ga(T58, s(s(T67)))) → U61_ag(T14, T77, half17_in_ga(T67, s(s(T76))))
U61_ag(T14, T77, half17_out_ga(T67, s(s(T76)))) → U62_ag(T14, T77, half17_in_ga(T76, X252))
U62_ag(T14, T77, half17_out_ga(T76, X252)) → log21_out_ag(s(s(T14)), T77)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → U63_ag(T14, half17_in_aa(T14, s(s(T31))))
U63_ag(T14, half17_out_aa(T14, s(s(T31)))) → U64_ag(T14, half17_in_ga(T31, s(s(T40))))
U64_ag(T14, half17_out_ga(T31, s(s(T40)))) → U65_ag(T14, half17_in_ga(T40, s(s(T49))))
U65_ag(T14, half17_out_ga(T40, s(s(T49)))) → U66_ag(T14, half17_in_ga(T49, s(s(T58))))
U66_ag(T14, half17_out_ga(T49, s(s(T58)))) → U67_ag(T14, half17_in_ga(T58, s(s(T67))))
U67_ag(T14, half17_out_ga(T58, s(s(T67)))) → U68_ag(T14, half17_in_ga(T67, s(s(T76))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U69_ag(T14, half17_in_gg(T76, 0))
U69_ag(T14, half17_out_gg(T76, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U70_ag(T14, half17_in_gg(T76, s(0)))
U70_ag(T14, half17_out_gg(T76, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
log21_in_ag(s(s(T14)), T86) → U71_ag(T14, T86, half17_in_aa(T14, s(s(T31))))
U71_ag(T14, T86, half17_out_aa(T14, s(s(T31)))) → U72_ag(T14, T86, half17_in_ga(T31, s(s(T40))))
U72_ag(T14, T86, half17_out_ga(T31, s(s(T40)))) → U73_ag(T14, T86, half17_in_ga(T40, s(s(T49))))
U73_ag(T14, T86, half17_out_ga(T40, s(s(T49)))) → U74_ag(T14, T86, half17_in_ga(T49, s(s(T58))))
U74_ag(T14, T86, half17_out_ga(T49, s(s(T58)))) → U75_ag(T14, T86, half17_in_ga(T58, s(s(T67))))
U75_ag(T14, T86, half17_out_ga(T58, s(s(T67)))) → U76_ag(T14, T86, half17_in_ga(T67, s(s(T76))))
U76_ag(T14, T86, half17_out_ga(T67, s(s(T76)))) → U77_ag(T14, T86, half17_in_ga(T76, s(s(T85))))
U77_ag(T14, T86, half17_out_ga(T76, s(s(T85)))) → U78_ag(T14, T86, p139_in_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86))
p139_in_gagg(T85, X286, T88, T86) → U3_gagg(T85, X286, T88, T86, half17_in_ga(T85, X286))
U3_gagg(T85, X286, T88, T86, half17_out_ga(T85, X286)) → p139_out_gagg(T85, X286, T88, T86)
p139_in_gagg(T85, 0, T98, s(T98)) → U4_gagg(T85, T98, half17_in_gg(T85, 0))
U4_gagg(T85, T98, half17_out_gg(T85, 0)) → p139_out_gagg(T85, 0, T98, s(T98))
p139_in_gagg(T85, s(0), T103, s(T103)) → U5_gagg(T85, T103, half17_in_gg(T85, s(0)))
U5_gagg(T85, T103, half17_out_gg(T85, s(0))) → p139_out_gagg(T85, s(0), T103, s(T103))
p139_in_gagg(T85, s(s(T110)), T111, T112) → U6_gagg(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
U6_gagg(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → U7_gagg(T85, T110, T111, T112, p139_in_gagg(T110, X323, s(T111), T112))
U7_gagg(T85, T110, T111, T112, p139_out_gagg(T110, X323, s(T111), T112)) → p139_out_gagg(T85, s(s(T110)), T111, T112)
U78_ag(T14, T86, p139_out_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86)) → log21_out_ag(s(s(T14)), T86)

The argument filtering Pi contains the following mapping:
log21_in_ag(x1, x2)  =  log21_in_ag(x2)
0  =  0
log21_out_ag(x1, x2)  =  log21_out_ag(x1)
U8_ag(x1, x2, x3)  =  U8_ag(x3)
half17_in_aa(x1, x2)  =  half17_in_aa
U2_aa(x1, x2, x3)  =  U2_aa(x3)
half22_in_aa(x1, x2)  =  half22_in_aa
half22_out_aa(x1, x2)  =  half22_out_aa(x1, x2)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
half17_out_aa(x1, x2)  =  half17_out_aa(x1, x2)
s(x1)  =  s(x1)
U9_ag(x1, x2)  =  U9_ag(x2)
half17_in_ag(x1, x2)  =  half17_in_ag(x2)
U2_ag(x1, x2, x3)  =  U2_ag(x3)
half22_in_ag(x1, x2)  =  half22_in_ag(x2)
half22_out_ag(x1, x2)  =  half22_out_ag(x1)
U1_ag(x1, x2, x3)  =  U1_ag(x3)
half17_out_ag(x1, x2)  =  half17_out_ag(x1)
U10_ag(x1, x2)  =  U10_ag(x2)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
U12_ag(x1, x2, x3)  =  U12_ag(x1, x3)
half17_in_ga(x1, x2)  =  half17_in_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x3)
half22_in_ga(x1, x2)  =  half22_in_ga(x1)
half22_out_ga(x1, x2)  =  half22_out_ga(x2)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
half17_out_ga(x1, x2)  =  half17_out_ga(x2)
U13_ag(x1, x2)  =  U13_ag(x2)
U14_ag(x1, x2)  =  U14_ag(x1, x2)
half17_in_gg(x1, x2)  =  half17_in_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x3)
half22_in_gg(x1, x2)  =  half22_in_gg(x1, x2)
half22_out_gg(x1, x2)  =  half22_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
half17_out_gg(x1, x2)  =  half17_out_gg
U15_ag(x1, x2)  =  U15_ag(x1, x2)
U16_ag(x1, x2, x3)  =  U16_ag(x3)
U17_ag(x1, x2, x3)  =  U17_ag(x1, x3)
U18_ag(x1, x2, x3)  =  U18_ag(x1, x3)
U19_ag(x1, x2)  =  U19_ag(x2)
U20_ag(x1, x2)  =  U20_ag(x1, x2)
U21_ag(x1, x2)  =  U21_ag(x1, x2)
U22_ag(x1, x2)  =  U22_ag(x1, x2)
U23_ag(x1, x2, x3)  =  U23_ag(x3)
U24_ag(x1, x2, x3)  =  U24_ag(x1, x3)
U25_ag(x1, x2, x3)  =  U25_ag(x1, x3)
U26_ag(x1, x2, x3)  =  U26_ag(x1, x3)
U27_ag(x1, x2)  =  U27_ag(x2)
U28_ag(x1, x2)  =  U28_ag(x1, x2)
U29_ag(x1, x2)  =  U29_ag(x1, x2)
U30_ag(x1, x2)  =  U30_ag(x1, x2)
U31_ag(x1, x2)  =  U31_ag(x1, x2)
U32_ag(x1, x2, x3)  =  U32_ag(x3)
U33_ag(x1, x2, x3)  =  U33_ag(x1, x3)
U34_ag(x1, x2, x3)  =  U34_ag(x1, x3)
U35_ag(x1, x2, x3)  =  U35_ag(x1, x3)
U36_ag(x1, x2, x3)  =  U36_ag(x1, x3)
U37_ag(x1, x2)  =  U37_ag(x2)
U38_ag(x1, x2)  =  U38_ag(x1, x2)
U39_ag(x1, x2)  =  U39_ag(x1, x2)
U40_ag(x1, x2)  =  U40_ag(x1, x2)
U41_ag(x1, x2)  =  U41_ag(x1, x2)
U42_ag(x1, x2)  =  U42_ag(x1, x2)
U43_ag(x1, x2, x3)  =  U43_ag(x3)
U44_ag(x1, x2, x3)  =  U44_ag(x1, x3)
U45_ag(x1, x2, x3)  =  U45_ag(x1, x3)
U46_ag(x1, x2, x3)  =  U46_ag(x1, x3)
U47_ag(x1, x2, x3)  =  U47_ag(x1, x3)
U48_ag(x1, x2, x3)  =  U48_ag(x1, x3)
U49_ag(x1, x2)  =  U49_ag(x2)
U50_ag(x1, x2)  =  U50_ag(x1, x2)
U51_ag(x1, x2)  =  U51_ag(x1, x2)
U52_ag(x1, x2)  =  U52_ag(x1, x2)
U53_ag(x1, x2)  =  U53_ag(x1, x2)
U54_ag(x1, x2)  =  U54_ag(x1, x2)
U55_ag(x1, x2)  =  U55_ag(x1, x2)
U56_ag(x1, x2, x3)  =  U56_ag(x3)
U57_ag(x1, x2, x3)  =  U57_ag(x1, x3)
U58_ag(x1, x2, x3)  =  U58_ag(x1, x3)
U59_ag(x1, x2, x3)  =  U59_ag(x1, x3)
U60_ag(x1, x2, x3)  =  U60_ag(x1, x3)
U61_ag(x1, x2, x3)  =  U61_ag(x1, x3)
U62_ag(x1, x2, x3)  =  U62_ag(x1, x3)
U63_ag(x1, x2)  =  U63_ag(x2)
U64_ag(x1, x2)  =  U64_ag(x1, x2)
U65_ag(x1, x2)  =  U65_ag(x1, x2)
U66_ag(x1, x2)  =  U66_ag(x1, x2)
U67_ag(x1, x2)  =  U67_ag(x1, x2)
U68_ag(x1, x2)  =  U68_ag(x1, x2)
U69_ag(x1, x2)  =  U69_ag(x1, x2)
U70_ag(x1, x2)  =  U70_ag(x1, x2)
U71_ag(x1, x2, x3)  =  U71_ag(x2, x3)
U72_ag(x1, x2, x3)  =  U72_ag(x1, x2, x3)
U73_ag(x1, x2, x3)  =  U73_ag(x1, x2, x3)
U74_ag(x1, x2, x3)  =  U74_ag(x1, x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x1, x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x1, x2, x3)
U77_ag(x1, x2, x3)  =  U77_ag(x1, x2, x3)
U78_ag(x1, x2, x3)  =  U78_ag(x1, x3)
p139_in_gagg(x1, x2, x3, x4)  =  p139_in_gagg(x1, x3, x4)
U3_gagg(x1, x2, x3, x4, x5)  =  U3_gagg(x5)
p139_out_gagg(x1, x2, x3, x4)  =  p139_out_gagg(x2)
U4_gagg(x1, x2, x3)  =  U4_gagg(x3)
U5_gagg(x1, x2, x3)  =  U5_gagg(x3)
U6_gagg(x1, x2, x3, x4, x5)  =  U6_gagg(x3, x4, x5)
U7_gagg(x1, x2, x3, x4, x5)  =  U7_gagg(x2, x5)

(54) 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:

LOG21_IN_AG(s(s(T14)), T13) → U8_AG(T14, T13, half17_in_aa(T14, X28))
LOG21_IN_AG(s(s(T14)), T13) → HALF17_IN_AA(T14, X28)
HALF17_IN_AA(T22, s(X46)) → U2_AA(T22, X46, half22_in_aa(T22, X46))
HALF17_IN_AA(T22, s(X46)) → HALF22_IN_AA(T22, X46)
HALF22_IN_AA(s(s(T26)), s(X55)) → U1_AA(T26, X55, half22_in_aa(T26, X55))
HALF22_IN_AA(s(s(T26)), s(X55)) → HALF22_IN_AA(T26, X55)
LOG21_IN_AG(s(s(T14)), s(0)) → U9_AG(T14, half17_in_ag(T14, 0))
LOG21_IN_AG(s(s(T14)), s(0)) → HALF17_IN_AG(T14, 0)
HALF17_IN_AG(T22, s(X46)) → U2_AG(T22, X46, half22_in_ag(T22, X46))
HALF17_IN_AG(T22, s(X46)) → HALF22_IN_AG(T22, X46)
HALF22_IN_AG(s(s(T26)), s(X55)) → U1_AG(T26, X55, half22_in_ag(T26, X55))
HALF22_IN_AG(s(s(T26)), s(X55)) → HALF22_IN_AG(T26, X55)
LOG21_IN_AG(s(s(T14)), s(0)) → U10_AG(T14, half17_in_ag(T14, s(0)))
LOG21_IN_AG(s(s(T14)), s(0)) → HALF17_IN_AG(T14, s(0))
LOG21_IN_AG(s(s(T14)), T32) → U11_AG(T14, T32, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), T32) → HALF17_IN_AA(T14, s(s(T31)))
U11_AG(T14, T32, half17_out_aa(T14, s(s(T31)))) → U12_AG(T14, T32, half17_in_ga(T31, X82))
U11_AG(T14, T32, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, X82)
HALF17_IN_GA(T22, s(X46)) → U2_GA(T22, X46, half22_in_ga(T22, X46))
HALF17_IN_GA(T22, s(X46)) → HALF22_IN_GA(T22, X46)
HALF22_IN_GA(s(s(T26)), s(X55)) → U1_GA(T26, X55, half22_in_ga(T26, X55))
HALF22_IN_GA(s(s(T26)), s(X55)) → HALF22_IN_GA(T26, X55)
LOG21_IN_AG(s(s(T14)), s(s(0))) → U13_AG(T14, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), s(s(0))) → HALF17_IN_AA(T14, s(s(T31)))
U13_AG(T14, half17_out_aa(T14, s(s(T31)))) → U14_AG(T14, half17_in_gg(T31, 0))
U13_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GG(T31, 0)
HALF17_IN_GG(T22, s(X46)) → U2_GG(T22, X46, half22_in_gg(T22, X46))
HALF17_IN_GG(T22, s(X46)) → HALF22_IN_GG(T22, X46)
HALF22_IN_GG(s(s(T26)), s(X55)) → U1_GG(T26, X55, half22_in_gg(T26, X55))
HALF22_IN_GG(s(s(T26)), s(X55)) → HALF22_IN_GG(T26, X55)
U13_AG(T14, half17_out_aa(T14, s(s(T31)))) → U15_AG(T14, half17_in_gg(T31, s(0)))
U13_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GG(T31, s(0))
LOG21_IN_AG(s(s(T14)), T41) → U16_AG(T14, T41, half17_in_aa(T14, s(s(T31))))
U16_AG(T14, T41, half17_out_aa(T14, s(s(T31)))) → U17_AG(T14, T41, half17_in_ga(T31, s(s(T40))))
U16_AG(T14, T41, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U17_AG(T14, T41, half17_out_ga(T31, s(s(T40)))) → U18_AG(T14, T41, half17_in_ga(T40, X116))
U17_AG(T14, T41, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, X116)
LOG21_IN_AG(s(s(T14)), s(s(s(0)))) → U19_AG(T14, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), s(s(s(0)))) → HALF17_IN_AA(T14, s(s(T31)))
U19_AG(T14, half17_out_aa(T14, s(s(T31)))) → U20_AG(T14, half17_in_ga(T31, s(s(T40))))
U19_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U20_AG(T14, half17_out_ga(T31, s(s(T40)))) → U21_AG(T14, half17_in_gg(T40, 0))
U20_AG(T14, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GG(T40, 0)
U20_AG(T14, half17_out_ga(T31, s(s(T40)))) → U22_AG(T14, half17_in_gg(T40, s(0)))
U20_AG(T14, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GG(T40, s(0))
LOG21_IN_AG(s(s(T14)), T50) → U23_AG(T14, T50, half17_in_aa(T14, s(s(T31))))
U23_AG(T14, T50, half17_out_aa(T14, s(s(T31)))) → U24_AG(T14, T50, half17_in_ga(T31, s(s(T40))))
U23_AG(T14, T50, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U24_AG(T14, T50, half17_out_ga(T31, s(s(T40)))) → U25_AG(T14, T50, half17_in_ga(T40, s(s(T49))))
U24_AG(T14, T50, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U25_AG(T14, T50, half17_out_ga(T40, s(s(T49)))) → U26_AG(T14, T50, half17_in_ga(T49, X150))
U25_AG(T14, T50, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, X150)
LOG21_IN_AG(s(s(T14)), s(s(s(s(0))))) → U27_AG(T14, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), s(s(s(s(0))))) → HALF17_IN_AA(T14, s(s(T31)))
U27_AG(T14, half17_out_aa(T14, s(s(T31)))) → U28_AG(T14, half17_in_ga(T31, s(s(T40))))
U27_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U28_AG(T14, half17_out_ga(T31, s(s(T40)))) → U29_AG(T14, half17_in_ga(T40, s(s(T49))))
U28_AG(T14, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U29_AG(T14, half17_out_ga(T40, s(s(T49)))) → U30_AG(T14, half17_in_gg(T49, 0))
U29_AG(T14, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GG(T49, 0)
U29_AG(T14, half17_out_ga(T40, s(s(T49)))) → U31_AG(T14, half17_in_gg(T49, s(0)))
U29_AG(T14, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GG(T49, s(0))
LOG21_IN_AG(s(s(T14)), T59) → U32_AG(T14, T59, half17_in_aa(T14, s(s(T31))))
U32_AG(T14, T59, half17_out_aa(T14, s(s(T31)))) → U33_AG(T14, T59, half17_in_ga(T31, s(s(T40))))
U32_AG(T14, T59, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U33_AG(T14, T59, half17_out_ga(T31, s(s(T40)))) → U34_AG(T14, T59, half17_in_ga(T40, s(s(T49))))
U33_AG(T14, T59, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U34_AG(T14, T59, half17_out_ga(T40, s(s(T49)))) → U35_AG(T14, T59, half17_in_ga(T49, s(s(T58))))
U34_AG(T14, T59, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U35_AG(T14, T59, half17_out_ga(T49, s(s(T58)))) → U36_AG(T14, T59, half17_in_ga(T58, X184))
U35_AG(T14, T59, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GA(T58, X184)
LOG21_IN_AG(s(s(T14)), s(s(s(s(s(0)))))) → U37_AG(T14, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), s(s(s(s(s(0)))))) → HALF17_IN_AA(T14, s(s(T31)))
U37_AG(T14, half17_out_aa(T14, s(s(T31)))) → U38_AG(T14, half17_in_ga(T31, s(s(T40))))
U37_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U38_AG(T14, half17_out_ga(T31, s(s(T40)))) → U39_AG(T14, half17_in_ga(T40, s(s(T49))))
U38_AG(T14, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U39_AG(T14, half17_out_ga(T40, s(s(T49)))) → U40_AG(T14, half17_in_ga(T49, s(s(T58))))
U39_AG(T14, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U40_AG(T14, half17_out_ga(T49, s(s(T58)))) → U41_AG(T14, half17_in_gg(T58, 0))
U40_AG(T14, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GG(T58, 0)
U40_AG(T14, half17_out_ga(T49, s(s(T58)))) → U42_AG(T14, half17_in_gg(T58, s(0)))
U40_AG(T14, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GG(T58, s(0))
LOG21_IN_AG(s(s(T14)), T68) → U43_AG(T14, T68, half17_in_aa(T14, s(s(T31))))
U43_AG(T14, T68, half17_out_aa(T14, s(s(T31)))) → U44_AG(T14, T68, half17_in_ga(T31, s(s(T40))))
U43_AG(T14, T68, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U44_AG(T14, T68, half17_out_ga(T31, s(s(T40)))) → U45_AG(T14, T68, half17_in_ga(T40, s(s(T49))))
U44_AG(T14, T68, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U45_AG(T14, T68, half17_out_ga(T40, s(s(T49)))) → U46_AG(T14, T68, half17_in_ga(T49, s(s(T58))))
U45_AG(T14, T68, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U46_AG(T14, T68, half17_out_ga(T49, s(s(T58)))) → U47_AG(T14, T68, half17_in_ga(T58, s(s(T67))))
U46_AG(T14, T68, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GA(T58, s(s(T67)))
U47_AG(T14, T68, half17_out_ga(T58, s(s(T67)))) → U48_AG(T14, T68, half17_in_ga(T67, X218))
U47_AG(T14, T68, half17_out_ga(T58, s(s(T67)))) → HALF17_IN_GA(T67, X218)
LOG21_IN_AG(s(s(T14)), s(s(s(s(s(s(0))))))) → U49_AG(T14, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), s(s(s(s(s(s(0))))))) → HALF17_IN_AA(T14, s(s(T31)))
U49_AG(T14, half17_out_aa(T14, s(s(T31)))) → U50_AG(T14, half17_in_ga(T31, s(s(T40))))
U49_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U50_AG(T14, half17_out_ga(T31, s(s(T40)))) → U51_AG(T14, half17_in_ga(T40, s(s(T49))))
U50_AG(T14, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U51_AG(T14, half17_out_ga(T40, s(s(T49)))) → U52_AG(T14, half17_in_ga(T49, s(s(T58))))
U51_AG(T14, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U52_AG(T14, half17_out_ga(T49, s(s(T58)))) → U53_AG(T14, half17_in_ga(T58, s(s(T67))))
U52_AG(T14, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GA(T58, s(s(T67)))
U53_AG(T14, half17_out_ga(T58, s(s(T67)))) → U54_AG(T14, half17_in_gg(T67, 0))
U53_AG(T14, half17_out_ga(T58, s(s(T67)))) → HALF17_IN_GG(T67, 0)
U53_AG(T14, half17_out_ga(T58, s(s(T67)))) → U55_AG(T14, half17_in_gg(T67, s(0)))
U53_AG(T14, half17_out_ga(T58, s(s(T67)))) → HALF17_IN_GG(T67, s(0))
LOG21_IN_AG(s(s(T14)), T77) → U56_AG(T14, T77, half17_in_aa(T14, s(s(T31))))
U56_AG(T14, T77, half17_out_aa(T14, s(s(T31)))) → U57_AG(T14, T77, half17_in_ga(T31, s(s(T40))))
U56_AG(T14, T77, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U57_AG(T14, T77, half17_out_ga(T31, s(s(T40)))) → U58_AG(T14, T77, half17_in_ga(T40, s(s(T49))))
U57_AG(T14, T77, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U58_AG(T14, T77, half17_out_ga(T40, s(s(T49)))) → U59_AG(T14, T77, half17_in_ga(T49, s(s(T58))))
U58_AG(T14, T77, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U59_AG(T14, T77, half17_out_ga(T49, s(s(T58)))) → U60_AG(T14, T77, half17_in_ga(T58, s(s(T67))))
U59_AG(T14, T77, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GA(T58, s(s(T67)))
U60_AG(T14, T77, half17_out_ga(T58, s(s(T67)))) → U61_AG(T14, T77, half17_in_ga(T67, s(s(T76))))
U60_AG(T14, T77, half17_out_ga(T58, s(s(T67)))) → HALF17_IN_GA(T67, s(s(T76)))
U61_AG(T14, T77, half17_out_ga(T67, s(s(T76)))) → U62_AG(T14, T77, half17_in_ga(T76, X252))
U61_AG(T14, T77, half17_out_ga(T67, s(s(T76)))) → HALF17_IN_GA(T76, X252)
LOG21_IN_AG(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → U63_AG(T14, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → HALF17_IN_AA(T14, s(s(T31)))
U63_AG(T14, half17_out_aa(T14, s(s(T31)))) → U64_AG(T14, half17_in_ga(T31, s(s(T40))))
U63_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U64_AG(T14, half17_out_ga(T31, s(s(T40)))) → U65_AG(T14, half17_in_ga(T40, s(s(T49))))
U64_AG(T14, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U65_AG(T14, half17_out_ga(T40, s(s(T49)))) → U66_AG(T14, half17_in_ga(T49, s(s(T58))))
U65_AG(T14, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U66_AG(T14, half17_out_ga(T49, s(s(T58)))) → U67_AG(T14, half17_in_ga(T58, s(s(T67))))
U66_AG(T14, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GA(T58, s(s(T67)))
U67_AG(T14, half17_out_ga(T58, s(s(T67)))) → U68_AG(T14, half17_in_ga(T67, s(s(T76))))
U67_AG(T14, half17_out_ga(T58, s(s(T67)))) → HALF17_IN_GA(T67, s(s(T76)))
U68_AG(T14, half17_out_ga(T67, s(s(T76)))) → U69_AG(T14, half17_in_gg(T76, 0))
U68_AG(T14, half17_out_ga(T67, s(s(T76)))) → HALF17_IN_GG(T76, 0)
U68_AG(T14, half17_out_ga(T67, s(s(T76)))) → U70_AG(T14, half17_in_gg(T76, s(0)))
U68_AG(T14, half17_out_ga(T67, s(s(T76)))) → HALF17_IN_GG(T76, s(0))
LOG21_IN_AG(s(s(T14)), T86) → U71_AG(T14, T86, half17_in_aa(T14, s(s(T31))))
U71_AG(T14, T86, half17_out_aa(T14, s(s(T31)))) → U72_AG(T14, T86, half17_in_ga(T31, s(s(T40))))
U71_AG(T14, T86, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U72_AG(T14, T86, half17_out_ga(T31, s(s(T40)))) → U73_AG(T14, T86, half17_in_ga(T40, s(s(T49))))
U72_AG(T14, T86, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U73_AG(T14, T86, half17_out_ga(T40, s(s(T49)))) → U74_AG(T14, T86, half17_in_ga(T49, s(s(T58))))
U73_AG(T14, T86, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U74_AG(T14, T86, half17_out_ga(T49, s(s(T58)))) → U75_AG(T14, T86, half17_in_ga(T58, s(s(T67))))
U74_AG(T14, T86, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GA(T58, s(s(T67)))
U75_AG(T14, T86, half17_out_ga(T58, s(s(T67)))) → U76_AG(T14, T86, half17_in_ga(T67, s(s(T76))))
U75_AG(T14, T86, half17_out_ga(T58, s(s(T67)))) → HALF17_IN_GA(T67, s(s(T76)))
U76_AG(T14, T86, half17_out_ga(T67, s(s(T76)))) → U77_AG(T14, T86, half17_in_ga(T76, s(s(T85))))
U76_AG(T14, T86, half17_out_ga(T67, s(s(T76)))) → HALF17_IN_GA(T76, s(s(T85)))
U77_AG(T14, T86, half17_out_ga(T76, s(s(T85)))) → U78_AG(T14, T86, p139_in_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86))
U77_AG(T14, T86, half17_out_ga(T76, s(s(T85)))) → P139_IN_GAGG(T85, X286, s(s(s(s(s(s(s(0))))))), T86)
P139_IN_GAGG(T85, X286, T88, T86) → U3_GAGG(T85, X286, T88, T86, half17_in_ga(T85, X286))
P139_IN_GAGG(T85, X286, T88, T86) → HALF17_IN_GA(T85, X286)
P139_IN_GAGG(T85, 0, T98, s(T98)) → U4_GAGG(T85, T98, half17_in_gg(T85, 0))
P139_IN_GAGG(T85, 0, T98, s(T98)) → HALF17_IN_GG(T85, 0)
P139_IN_GAGG(T85, s(0), T103, s(T103)) → U5_GAGG(T85, T103, half17_in_gg(T85, s(0)))
P139_IN_GAGG(T85, s(0), T103, s(T103)) → HALF17_IN_GG(T85, s(0))
P139_IN_GAGG(T85, s(s(T110)), T111, T112) → U6_GAGG(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
P139_IN_GAGG(T85, s(s(T110)), T111, T112) → HALF17_IN_GA(T85, s(s(T110)))
U6_GAGG(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → U7_GAGG(T85, T110, T111, T112, p139_in_gagg(T110, X323, s(T111), T112))
U6_GAGG(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → P139_IN_GAGG(T110, X323, s(T111), T112)

The TRS R consists of the following rules:

log21_in_ag(0, 0) → log21_out_ag(0, 0)
log21_in_ag(s(0), 0) → log21_out_ag(s(0), 0)
log21_in_ag(s(s(T14)), T13) → U8_ag(T14, T13, half17_in_aa(T14, X28))
half17_in_aa(T22, s(X46)) → U2_aa(T22, X46, half22_in_aa(T22, X46))
half22_in_aa(0, 0) → half22_out_aa(0, 0)
half22_in_aa(s(0), 0) → half22_out_aa(s(0), 0)
half22_in_aa(s(s(T26)), s(X55)) → U1_aa(T26, X55, half22_in_aa(T26, X55))
U1_aa(T26, X55, half22_out_aa(T26, X55)) → half22_out_aa(s(s(T26)), s(X55))
U2_aa(T22, X46, half22_out_aa(T22, X46)) → half17_out_aa(T22, s(X46))
U8_ag(T14, T13, half17_out_aa(T14, X28)) → log21_out_ag(s(s(T14)), T13)
log21_in_ag(s(s(T14)), s(0)) → U9_ag(T14, half17_in_ag(T14, 0))
half17_in_ag(T22, s(X46)) → U2_ag(T22, X46, half22_in_ag(T22, X46))
half22_in_ag(0, 0) → half22_out_ag(0, 0)
half22_in_ag(s(0), 0) → half22_out_ag(s(0), 0)
half22_in_ag(s(s(T26)), s(X55)) → U1_ag(T26, X55, half22_in_ag(T26, X55))
U1_ag(T26, X55, half22_out_ag(T26, X55)) → half22_out_ag(s(s(T26)), s(X55))
U2_ag(T22, X46, half22_out_ag(T22, X46)) → half17_out_ag(T22, s(X46))
U9_ag(T14, half17_out_ag(T14, 0)) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), s(0)) → U10_ag(T14, half17_in_ag(T14, s(0)))
U10_ag(T14, half17_out_ag(T14, s(0))) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), T32) → U11_ag(T14, T32, half17_in_aa(T14, s(s(T31))))
U11_ag(T14, T32, half17_out_aa(T14, s(s(T31)))) → U12_ag(T14, T32, half17_in_ga(T31, X82))
half17_in_ga(T22, s(X46)) → U2_ga(T22, X46, half22_in_ga(T22, X46))
half22_in_ga(0, 0) → half22_out_ga(0, 0)
half22_in_ga(s(0), 0) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26)), s(X55)) → U1_ga(T26, X55, half22_in_ga(T26, X55))
U1_ga(T26, X55, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))
U2_ga(T22, X46, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
U12_ag(T14, T32, half17_out_ga(T31, X82)) → log21_out_ag(s(s(T14)), T32)
log21_in_ag(s(s(T14)), s(s(0))) → U13_ag(T14, half17_in_aa(T14, s(s(T31))))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U14_ag(T14, half17_in_gg(T31, 0))
half17_in_gg(T22, s(X46)) → U2_gg(T22, X46, half22_in_gg(T22, X46))
half22_in_gg(0, 0) → half22_out_gg(0, 0)
half22_in_gg(s(0), 0) → half22_out_gg(s(0), 0)
half22_in_gg(s(s(T26)), s(X55)) → U1_gg(T26, X55, half22_in_gg(T26, X55))
U1_gg(T26, X55, half22_out_gg(T26, X55)) → half22_out_gg(s(s(T26)), s(X55))
U2_gg(T22, X46, half22_out_gg(T22, X46)) → half17_out_gg(T22, s(X46))
U14_ag(T14, half17_out_gg(T31, 0)) → log21_out_ag(s(s(T14)), s(s(0)))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U15_ag(T14, half17_in_gg(T31, s(0)))
U15_ag(T14, half17_out_gg(T31, s(0))) → log21_out_ag(s(s(T14)), s(s(0)))
log21_in_ag(s(s(T14)), T41) → U16_ag(T14, T41, half17_in_aa(T14, s(s(T31))))
U16_ag(T14, T41, half17_out_aa(T14, s(s(T31)))) → U17_ag(T14, T41, half17_in_ga(T31, s(s(T40))))
U17_ag(T14, T41, half17_out_ga(T31, s(s(T40)))) → U18_ag(T14, T41, half17_in_ga(T40, X116))
U18_ag(T14, T41, half17_out_ga(T40, X116)) → log21_out_ag(s(s(T14)), T41)
log21_in_ag(s(s(T14)), s(s(s(0)))) → U19_ag(T14, half17_in_aa(T14, s(s(T31))))
U19_ag(T14, half17_out_aa(T14, s(s(T31)))) → U20_ag(T14, half17_in_ga(T31, s(s(T40))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U21_ag(T14, half17_in_gg(T40, 0))
U21_ag(T14, half17_out_gg(T40, 0)) → log21_out_ag(s(s(T14)), s(s(s(0))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U22_ag(T14, half17_in_gg(T40, s(0)))
U22_ag(T14, half17_out_gg(T40, s(0))) → log21_out_ag(s(s(T14)), s(s(s(0))))
log21_in_ag(s(s(T14)), T50) → U23_ag(T14, T50, half17_in_aa(T14, s(s(T31))))
U23_ag(T14, T50, half17_out_aa(T14, s(s(T31)))) → U24_ag(T14, T50, half17_in_ga(T31, s(s(T40))))
U24_ag(T14, T50, half17_out_ga(T31, s(s(T40)))) → U25_ag(T14, T50, half17_in_ga(T40, s(s(T49))))
U25_ag(T14, T50, half17_out_ga(T40, s(s(T49)))) → U26_ag(T14, T50, half17_in_ga(T49, X150))
U26_ag(T14, T50, half17_out_ga(T49, X150)) → log21_out_ag(s(s(T14)), T50)
log21_in_ag(s(s(T14)), s(s(s(s(0))))) → U27_ag(T14, half17_in_aa(T14, s(s(T31))))
U27_ag(T14, half17_out_aa(T14, s(s(T31)))) → U28_ag(T14, half17_in_ga(T31, s(s(T40))))
U28_ag(T14, half17_out_ga(T31, s(s(T40)))) → U29_ag(T14, half17_in_ga(T40, s(s(T49))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U30_ag(T14, half17_in_gg(T49, 0))
U30_ag(T14, half17_out_gg(T49, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U31_ag(T14, half17_in_gg(T49, s(0)))
U31_ag(T14, half17_out_gg(T49, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
log21_in_ag(s(s(T14)), T59) → U32_ag(T14, T59, half17_in_aa(T14, s(s(T31))))
U32_ag(T14, T59, half17_out_aa(T14, s(s(T31)))) → U33_ag(T14, T59, half17_in_ga(T31, s(s(T40))))
U33_ag(T14, T59, half17_out_ga(T31, s(s(T40)))) → U34_ag(T14, T59, half17_in_ga(T40, s(s(T49))))
U34_ag(T14, T59, half17_out_ga(T40, s(s(T49)))) → U35_ag(T14, T59, half17_in_ga(T49, s(s(T58))))
U35_ag(T14, T59, half17_out_ga(T49, s(s(T58)))) → U36_ag(T14, T59, half17_in_ga(T58, X184))
U36_ag(T14, T59, half17_out_ga(T58, X184)) → log21_out_ag(s(s(T14)), T59)
log21_in_ag(s(s(T14)), s(s(s(s(s(0)))))) → U37_ag(T14, half17_in_aa(T14, s(s(T31))))
U37_ag(T14, half17_out_aa(T14, s(s(T31)))) → U38_ag(T14, half17_in_ga(T31, s(s(T40))))
U38_ag(T14, half17_out_ga(T31, s(s(T40)))) → U39_ag(T14, half17_in_ga(T40, s(s(T49))))
U39_ag(T14, half17_out_ga(T40, s(s(T49)))) → U40_ag(T14, half17_in_ga(T49, s(s(T58))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U41_ag(T14, half17_in_gg(T58, 0))
U41_ag(T14, half17_out_gg(T58, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U42_ag(T14, half17_in_gg(T58, s(0)))
U42_ag(T14, half17_out_gg(T58, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
log21_in_ag(s(s(T14)), T68) → U43_ag(T14, T68, half17_in_aa(T14, s(s(T31))))
U43_ag(T14, T68, half17_out_aa(T14, s(s(T31)))) → U44_ag(T14, T68, half17_in_ga(T31, s(s(T40))))
U44_ag(T14, T68, half17_out_ga(T31, s(s(T40)))) → U45_ag(T14, T68, half17_in_ga(T40, s(s(T49))))
U45_ag(T14, T68, half17_out_ga(T40, s(s(T49)))) → U46_ag(T14, T68, half17_in_ga(T49, s(s(T58))))
U46_ag(T14, T68, half17_out_ga(T49, s(s(T58)))) → U47_ag(T14, T68, half17_in_ga(T58, s(s(T67))))
U47_ag(T14, T68, half17_out_ga(T58, s(s(T67)))) → U48_ag(T14, T68, half17_in_ga(T67, X218))
U48_ag(T14, T68, half17_out_ga(T67, X218)) → log21_out_ag(s(s(T14)), T68)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(0))))))) → U49_ag(T14, half17_in_aa(T14, s(s(T31))))
U49_ag(T14, half17_out_aa(T14, s(s(T31)))) → U50_ag(T14, half17_in_ga(T31, s(s(T40))))
U50_ag(T14, half17_out_ga(T31, s(s(T40)))) → U51_ag(T14, half17_in_ga(T40, s(s(T49))))
U51_ag(T14, half17_out_ga(T40, s(s(T49)))) → U52_ag(T14, half17_in_ga(T49, s(s(T58))))
U52_ag(T14, half17_out_ga(T49, s(s(T58)))) → U53_ag(T14, half17_in_ga(T58, s(s(T67))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U54_ag(T14, half17_in_gg(T67, 0))
U54_ag(T14, half17_out_gg(T67, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U55_ag(T14, half17_in_gg(T67, s(0)))
U55_ag(T14, half17_out_gg(T67, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
log21_in_ag(s(s(T14)), T77) → U56_ag(T14, T77, half17_in_aa(T14, s(s(T31))))
U56_ag(T14, T77, half17_out_aa(T14, s(s(T31)))) → U57_ag(T14, T77, half17_in_ga(T31, s(s(T40))))
U57_ag(T14, T77, half17_out_ga(T31, s(s(T40)))) → U58_ag(T14, T77, half17_in_ga(T40, s(s(T49))))
U58_ag(T14, T77, half17_out_ga(T40, s(s(T49)))) → U59_ag(T14, T77, half17_in_ga(T49, s(s(T58))))
U59_ag(T14, T77, half17_out_ga(T49, s(s(T58)))) → U60_ag(T14, T77, half17_in_ga(T58, s(s(T67))))
U60_ag(T14, T77, half17_out_ga(T58, s(s(T67)))) → U61_ag(T14, T77, half17_in_ga(T67, s(s(T76))))
U61_ag(T14, T77, half17_out_ga(T67, s(s(T76)))) → U62_ag(T14, T77, half17_in_ga(T76, X252))
U62_ag(T14, T77, half17_out_ga(T76, X252)) → log21_out_ag(s(s(T14)), T77)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → U63_ag(T14, half17_in_aa(T14, s(s(T31))))
U63_ag(T14, half17_out_aa(T14, s(s(T31)))) → U64_ag(T14, half17_in_ga(T31, s(s(T40))))
U64_ag(T14, half17_out_ga(T31, s(s(T40)))) → U65_ag(T14, half17_in_ga(T40, s(s(T49))))
U65_ag(T14, half17_out_ga(T40, s(s(T49)))) → U66_ag(T14, half17_in_ga(T49, s(s(T58))))
U66_ag(T14, half17_out_ga(T49, s(s(T58)))) → U67_ag(T14, half17_in_ga(T58, s(s(T67))))
U67_ag(T14, half17_out_ga(T58, s(s(T67)))) → U68_ag(T14, half17_in_ga(T67, s(s(T76))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U69_ag(T14, half17_in_gg(T76, 0))
U69_ag(T14, half17_out_gg(T76, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U70_ag(T14, half17_in_gg(T76, s(0)))
U70_ag(T14, half17_out_gg(T76, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
log21_in_ag(s(s(T14)), T86) → U71_ag(T14, T86, half17_in_aa(T14, s(s(T31))))
U71_ag(T14, T86, half17_out_aa(T14, s(s(T31)))) → U72_ag(T14, T86, half17_in_ga(T31, s(s(T40))))
U72_ag(T14, T86, half17_out_ga(T31, s(s(T40)))) → U73_ag(T14, T86, half17_in_ga(T40, s(s(T49))))
U73_ag(T14, T86, half17_out_ga(T40, s(s(T49)))) → U74_ag(T14, T86, half17_in_ga(T49, s(s(T58))))
U74_ag(T14, T86, half17_out_ga(T49, s(s(T58)))) → U75_ag(T14, T86, half17_in_ga(T58, s(s(T67))))
U75_ag(T14, T86, half17_out_ga(T58, s(s(T67)))) → U76_ag(T14, T86, half17_in_ga(T67, s(s(T76))))
U76_ag(T14, T86, half17_out_ga(T67, s(s(T76)))) → U77_ag(T14, T86, half17_in_ga(T76, s(s(T85))))
U77_ag(T14, T86, half17_out_ga(T76, s(s(T85)))) → U78_ag(T14, T86, p139_in_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86))
p139_in_gagg(T85, X286, T88, T86) → U3_gagg(T85, X286, T88, T86, half17_in_ga(T85, X286))
U3_gagg(T85, X286, T88, T86, half17_out_ga(T85, X286)) → p139_out_gagg(T85, X286, T88, T86)
p139_in_gagg(T85, 0, T98, s(T98)) → U4_gagg(T85, T98, half17_in_gg(T85, 0))
U4_gagg(T85, T98, half17_out_gg(T85, 0)) → p139_out_gagg(T85, 0, T98, s(T98))
p139_in_gagg(T85, s(0), T103, s(T103)) → U5_gagg(T85, T103, half17_in_gg(T85, s(0)))
U5_gagg(T85, T103, half17_out_gg(T85, s(0))) → p139_out_gagg(T85, s(0), T103, s(T103))
p139_in_gagg(T85, s(s(T110)), T111, T112) → U6_gagg(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
U6_gagg(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → U7_gagg(T85, T110, T111, T112, p139_in_gagg(T110, X323, s(T111), T112))
U7_gagg(T85, T110, T111, T112, p139_out_gagg(T110, X323, s(T111), T112)) → p139_out_gagg(T85, s(s(T110)), T111, T112)
U78_ag(T14, T86, p139_out_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86)) → log21_out_ag(s(s(T14)), T86)

The argument filtering Pi contains the following mapping:
log21_in_ag(x1, x2)  =  log21_in_ag(x2)
0  =  0
log21_out_ag(x1, x2)  =  log21_out_ag(x1)
U8_ag(x1, x2, x3)  =  U8_ag(x3)
half17_in_aa(x1, x2)  =  half17_in_aa
U2_aa(x1, x2, x3)  =  U2_aa(x3)
half22_in_aa(x1, x2)  =  half22_in_aa
half22_out_aa(x1, x2)  =  half22_out_aa(x1, x2)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
half17_out_aa(x1, x2)  =  half17_out_aa(x1, x2)
s(x1)  =  s(x1)
U9_ag(x1, x2)  =  U9_ag(x2)
half17_in_ag(x1, x2)  =  half17_in_ag(x2)
U2_ag(x1, x2, x3)  =  U2_ag(x3)
half22_in_ag(x1, x2)  =  half22_in_ag(x2)
half22_out_ag(x1, x2)  =  half22_out_ag(x1)
U1_ag(x1, x2, x3)  =  U1_ag(x3)
half17_out_ag(x1, x2)  =  half17_out_ag(x1)
U10_ag(x1, x2)  =  U10_ag(x2)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
U12_ag(x1, x2, x3)  =  U12_ag(x1, x3)
half17_in_ga(x1, x2)  =  half17_in_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x3)
half22_in_ga(x1, x2)  =  half22_in_ga(x1)
half22_out_ga(x1, x2)  =  half22_out_ga(x2)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
half17_out_ga(x1, x2)  =  half17_out_ga(x2)
U13_ag(x1, x2)  =  U13_ag(x2)
U14_ag(x1, x2)  =  U14_ag(x1, x2)
half17_in_gg(x1, x2)  =  half17_in_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x3)
half22_in_gg(x1, x2)  =  half22_in_gg(x1, x2)
half22_out_gg(x1, x2)  =  half22_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
half17_out_gg(x1, x2)  =  half17_out_gg
U15_ag(x1, x2)  =  U15_ag(x1, x2)
U16_ag(x1, x2, x3)  =  U16_ag(x3)
U17_ag(x1, x2, x3)  =  U17_ag(x1, x3)
U18_ag(x1, x2, x3)  =  U18_ag(x1, x3)
U19_ag(x1, x2)  =  U19_ag(x2)
U20_ag(x1, x2)  =  U20_ag(x1, x2)
U21_ag(x1, x2)  =  U21_ag(x1, x2)
U22_ag(x1, x2)  =  U22_ag(x1, x2)
U23_ag(x1, x2, x3)  =  U23_ag(x3)
U24_ag(x1, x2, x3)  =  U24_ag(x1, x3)
U25_ag(x1, x2, x3)  =  U25_ag(x1, x3)
U26_ag(x1, x2, x3)  =  U26_ag(x1, x3)
U27_ag(x1, x2)  =  U27_ag(x2)
U28_ag(x1, x2)  =  U28_ag(x1, x2)
U29_ag(x1, x2)  =  U29_ag(x1, x2)
U30_ag(x1, x2)  =  U30_ag(x1, x2)
U31_ag(x1, x2)  =  U31_ag(x1, x2)
U32_ag(x1, x2, x3)  =  U32_ag(x3)
U33_ag(x1, x2, x3)  =  U33_ag(x1, x3)
U34_ag(x1, x2, x3)  =  U34_ag(x1, x3)
U35_ag(x1, x2, x3)  =  U35_ag(x1, x3)
U36_ag(x1, x2, x3)  =  U36_ag(x1, x3)
U37_ag(x1, x2)  =  U37_ag(x2)
U38_ag(x1, x2)  =  U38_ag(x1, x2)
U39_ag(x1, x2)  =  U39_ag(x1, x2)
U40_ag(x1, x2)  =  U40_ag(x1, x2)
U41_ag(x1, x2)  =  U41_ag(x1, x2)
U42_ag(x1, x2)  =  U42_ag(x1, x2)
U43_ag(x1, x2, x3)  =  U43_ag(x3)
U44_ag(x1, x2, x3)  =  U44_ag(x1, x3)
U45_ag(x1, x2, x3)  =  U45_ag(x1, x3)
U46_ag(x1, x2, x3)  =  U46_ag(x1, x3)
U47_ag(x1, x2, x3)  =  U47_ag(x1, x3)
U48_ag(x1, x2, x3)  =  U48_ag(x1, x3)
U49_ag(x1, x2)  =  U49_ag(x2)
U50_ag(x1, x2)  =  U50_ag(x1, x2)
U51_ag(x1, x2)  =  U51_ag(x1, x2)
U52_ag(x1, x2)  =  U52_ag(x1, x2)
U53_ag(x1, x2)  =  U53_ag(x1, x2)
U54_ag(x1, x2)  =  U54_ag(x1, x2)
U55_ag(x1, x2)  =  U55_ag(x1, x2)
U56_ag(x1, x2, x3)  =  U56_ag(x3)
U57_ag(x1, x2, x3)  =  U57_ag(x1, x3)
U58_ag(x1, x2, x3)  =  U58_ag(x1, x3)
U59_ag(x1, x2, x3)  =  U59_ag(x1, x3)
U60_ag(x1, x2, x3)  =  U60_ag(x1, x3)
U61_ag(x1, x2, x3)  =  U61_ag(x1, x3)
U62_ag(x1, x2, x3)  =  U62_ag(x1, x3)
U63_ag(x1, x2)  =  U63_ag(x2)
U64_ag(x1, x2)  =  U64_ag(x1, x2)
U65_ag(x1, x2)  =  U65_ag(x1, x2)
U66_ag(x1, x2)  =  U66_ag(x1, x2)
U67_ag(x1, x2)  =  U67_ag(x1, x2)
U68_ag(x1, x2)  =  U68_ag(x1, x2)
U69_ag(x1, x2)  =  U69_ag(x1, x2)
U70_ag(x1, x2)  =  U70_ag(x1, x2)
U71_ag(x1, x2, x3)  =  U71_ag(x2, x3)
U72_ag(x1, x2, x3)  =  U72_ag(x1, x2, x3)
U73_ag(x1, x2, x3)  =  U73_ag(x1, x2, x3)
U74_ag(x1, x2, x3)  =  U74_ag(x1, x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x1, x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x1, x2, x3)
U77_ag(x1, x2, x3)  =  U77_ag(x1, x2, x3)
U78_ag(x1, x2, x3)  =  U78_ag(x1, x3)
p139_in_gagg(x1, x2, x3, x4)  =  p139_in_gagg(x1, x3, x4)
U3_gagg(x1, x2, x3, x4, x5)  =  U3_gagg(x5)
p139_out_gagg(x1, x2, x3, x4)  =  p139_out_gagg(x2)
U4_gagg(x1, x2, x3)  =  U4_gagg(x3)
U5_gagg(x1, x2, x3)  =  U5_gagg(x3)
U6_gagg(x1, x2, x3, x4, x5)  =  U6_gagg(x3, x4, x5)
U7_gagg(x1, x2, x3, x4, x5)  =  U7_gagg(x2, x5)
LOG21_IN_AG(x1, x2)  =  LOG21_IN_AG(x2)
U8_AG(x1, x2, x3)  =  U8_AG(x3)
HALF17_IN_AA(x1, x2)  =  HALF17_IN_AA
U2_AA(x1, x2, x3)  =  U2_AA(x3)
HALF22_IN_AA(x1, x2)  =  HALF22_IN_AA
U1_AA(x1, x2, x3)  =  U1_AA(x3)
U9_AG(x1, x2)  =  U9_AG(x2)
HALF17_IN_AG(x1, x2)  =  HALF17_IN_AG(x2)
U2_AG(x1, x2, x3)  =  U2_AG(x3)
HALF22_IN_AG(x1, x2)  =  HALF22_IN_AG(x2)
U1_AG(x1, x2, x3)  =  U1_AG(x3)
U10_AG(x1, x2)  =  U10_AG(x2)
U11_AG(x1, x2, x3)  =  U11_AG(x3)
U12_AG(x1, x2, x3)  =  U12_AG(x1, x3)
HALF17_IN_GA(x1, x2)  =  HALF17_IN_GA(x1)
U2_GA(x1, x2, x3)  =  U2_GA(x3)
HALF22_IN_GA(x1, x2)  =  HALF22_IN_GA(x1)
U1_GA(x1, x2, x3)  =  U1_GA(x3)
U13_AG(x1, x2)  =  U13_AG(x2)
U14_AG(x1, x2)  =  U14_AG(x1, x2)
HALF17_IN_GG(x1, x2)  =  HALF17_IN_GG(x1, x2)
U2_GG(x1, x2, x3)  =  U2_GG(x3)
HALF22_IN_GG(x1, x2)  =  HALF22_IN_GG(x1, x2)
U1_GG(x1, x2, x3)  =  U1_GG(x3)
U15_AG(x1, x2)  =  U15_AG(x1, x2)
U16_AG(x1, x2, x3)  =  U16_AG(x3)
U17_AG(x1, x2, x3)  =  U17_AG(x1, x3)
U18_AG(x1, x2, x3)  =  U18_AG(x1, x3)
U19_AG(x1, x2)  =  U19_AG(x2)
U20_AG(x1, x2)  =  U20_AG(x1, x2)
U21_AG(x1, x2)  =  U21_AG(x1, x2)
U22_AG(x1, x2)  =  U22_AG(x1, x2)
U23_AG(x1, x2, x3)  =  U23_AG(x3)
U24_AG(x1, x2, x3)  =  U24_AG(x1, x3)
U25_AG(x1, x2, x3)  =  U25_AG(x1, x3)
U26_AG(x1, x2, x3)  =  U26_AG(x1, x3)
U27_AG(x1, x2)  =  U27_AG(x2)
U28_AG(x1, x2)  =  U28_AG(x1, x2)
U29_AG(x1, x2)  =  U29_AG(x1, x2)
U30_AG(x1, x2)  =  U30_AG(x1, x2)
U31_AG(x1, x2)  =  U31_AG(x1, x2)
U32_AG(x1, x2, x3)  =  U32_AG(x3)
U33_AG(x1, x2, x3)  =  U33_AG(x1, x3)
U34_AG(x1, x2, x3)  =  U34_AG(x1, x3)
U35_AG(x1, x2, x3)  =  U35_AG(x1, x3)
U36_AG(x1, x2, x3)  =  U36_AG(x1, x3)
U37_AG(x1, x2)  =  U37_AG(x2)
U38_AG(x1, x2)  =  U38_AG(x1, x2)
U39_AG(x1, x2)  =  U39_AG(x1, x2)
U40_AG(x1, x2)  =  U40_AG(x1, x2)
U41_AG(x1, x2)  =  U41_AG(x1, x2)
U42_AG(x1, x2)  =  U42_AG(x1, x2)
U43_AG(x1, x2, x3)  =  U43_AG(x3)
U44_AG(x1, x2, x3)  =  U44_AG(x1, x3)
U45_AG(x1, x2, x3)  =  U45_AG(x1, x3)
U46_AG(x1, x2, x3)  =  U46_AG(x1, x3)
U47_AG(x1, x2, x3)  =  U47_AG(x1, x3)
U48_AG(x1, x2, x3)  =  U48_AG(x1, x3)
U49_AG(x1, x2)  =  U49_AG(x2)
U50_AG(x1, x2)  =  U50_AG(x1, x2)
U51_AG(x1, x2)  =  U51_AG(x1, x2)
U52_AG(x1, x2)  =  U52_AG(x1, x2)
U53_AG(x1, x2)  =  U53_AG(x1, x2)
U54_AG(x1, x2)  =  U54_AG(x1, x2)
U55_AG(x1, x2)  =  U55_AG(x1, x2)
U56_AG(x1, x2, x3)  =  U56_AG(x3)
U57_AG(x1, x2, x3)  =  U57_AG(x1, x3)
U58_AG(x1, x2, x3)  =  U58_AG(x1, x3)
U59_AG(x1, x2, x3)  =  U59_AG(x1, x3)
U60_AG(x1, x2, x3)  =  U60_AG(x1, x3)
U61_AG(x1, x2, x3)  =  U61_AG(x1, x3)
U62_AG(x1, x2, x3)  =  U62_AG(x1, x3)
U63_AG(x1, x2)  =  U63_AG(x2)
U64_AG(x1, x2)  =  U64_AG(x1, x2)
U65_AG(x1, x2)  =  U65_AG(x1, x2)
U66_AG(x1, x2)  =  U66_AG(x1, x2)
U67_AG(x1, x2)  =  U67_AG(x1, x2)
U68_AG(x1, x2)  =  U68_AG(x1, x2)
U69_AG(x1, x2)  =  U69_AG(x1, x2)
U70_AG(x1, x2)  =  U70_AG(x1, x2)
U71_AG(x1, x2, x3)  =  U71_AG(x2, x3)
U72_AG(x1, x2, x3)  =  U72_AG(x1, x2, x3)
U73_AG(x1, x2, x3)  =  U73_AG(x1, x2, x3)
U74_AG(x1, x2, x3)  =  U74_AG(x1, x2, x3)
U75_AG(x1, x2, x3)  =  U75_AG(x1, x2, x3)
U76_AG(x1, x2, x3)  =  U76_AG(x1, x2, x3)
U77_AG(x1, x2, x3)  =  U77_AG(x1, x2, x3)
U78_AG(x1, x2, x3)  =  U78_AG(x1, x3)
P139_IN_GAGG(x1, x2, x3, x4)  =  P139_IN_GAGG(x1, x3, x4)
U3_GAGG(x1, x2, x3, x4, x5)  =  U3_GAGG(x5)
U4_GAGG(x1, x2, x3)  =  U4_GAGG(x3)
U5_GAGG(x1, x2, x3)  =  U5_GAGG(x3)
U6_GAGG(x1, x2, x3, x4, x5)  =  U6_GAGG(x3, x4, x5)
U7_GAGG(x1, x2, x3, x4, x5)  =  U7_GAGG(x2, x5)

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

(55) Obligation:

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

LOG21_IN_AG(s(s(T14)), T13) → U8_AG(T14, T13, half17_in_aa(T14, X28))
LOG21_IN_AG(s(s(T14)), T13) → HALF17_IN_AA(T14, X28)
HALF17_IN_AA(T22, s(X46)) → U2_AA(T22, X46, half22_in_aa(T22, X46))
HALF17_IN_AA(T22, s(X46)) → HALF22_IN_AA(T22, X46)
HALF22_IN_AA(s(s(T26)), s(X55)) → U1_AA(T26, X55, half22_in_aa(T26, X55))
HALF22_IN_AA(s(s(T26)), s(X55)) → HALF22_IN_AA(T26, X55)
LOG21_IN_AG(s(s(T14)), s(0)) → U9_AG(T14, half17_in_ag(T14, 0))
LOG21_IN_AG(s(s(T14)), s(0)) → HALF17_IN_AG(T14, 0)
HALF17_IN_AG(T22, s(X46)) → U2_AG(T22, X46, half22_in_ag(T22, X46))
HALF17_IN_AG(T22, s(X46)) → HALF22_IN_AG(T22, X46)
HALF22_IN_AG(s(s(T26)), s(X55)) → U1_AG(T26, X55, half22_in_ag(T26, X55))
HALF22_IN_AG(s(s(T26)), s(X55)) → HALF22_IN_AG(T26, X55)
LOG21_IN_AG(s(s(T14)), s(0)) → U10_AG(T14, half17_in_ag(T14, s(0)))
LOG21_IN_AG(s(s(T14)), s(0)) → HALF17_IN_AG(T14, s(0))
LOG21_IN_AG(s(s(T14)), T32) → U11_AG(T14, T32, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), T32) → HALF17_IN_AA(T14, s(s(T31)))
U11_AG(T14, T32, half17_out_aa(T14, s(s(T31)))) → U12_AG(T14, T32, half17_in_ga(T31, X82))
U11_AG(T14, T32, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, X82)
HALF17_IN_GA(T22, s(X46)) → U2_GA(T22, X46, half22_in_ga(T22, X46))
HALF17_IN_GA(T22, s(X46)) → HALF22_IN_GA(T22, X46)
HALF22_IN_GA(s(s(T26)), s(X55)) → U1_GA(T26, X55, half22_in_ga(T26, X55))
HALF22_IN_GA(s(s(T26)), s(X55)) → HALF22_IN_GA(T26, X55)
LOG21_IN_AG(s(s(T14)), s(s(0))) → U13_AG(T14, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), s(s(0))) → HALF17_IN_AA(T14, s(s(T31)))
U13_AG(T14, half17_out_aa(T14, s(s(T31)))) → U14_AG(T14, half17_in_gg(T31, 0))
U13_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GG(T31, 0)
HALF17_IN_GG(T22, s(X46)) → U2_GG(T22, X46, half22_in_gg(T22, X46))
HALF17_IN_GG(T22, s(X46)) → HALF22_IN_GG(T22, X46)
HALF22_IN_GG(s(s(T26)), s(X55)) → U1_GG(T26, X55, half22_in_gg(T26, X55))
HALF22_IN_GG(s(s(T26)), s(X55)) → HALF22_IN_GG(T26, X55)
U13_AG(T14, half17_out_aa(T14, s(s(T31)))) → U15_AG(T14, half17_in_gg(T31, s(0)))
U13_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GG(T31, s(0))
LOG21_IN_AG(s(s(T14)), T41) → U16_AG(T14, T41, half17_in_aa(T14, s(s(T31))))
U16_AG(T14, T41, half17_out_aa(T14, s(s(T31)))) → U17_AG(T14, T41, half17_in_ga(T31, s(s(T40))))
U16_AG(T14, T41, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U17_AG(T14, T41, half17_out_ga(T31, s(s(T40)))) → U18_AG(T14, T41, half17_in_ga(T40, X116))
U17_AG(T14, T41, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, X116)
LOG21_IN_AG(s(s(T14)), s(s(s(0)))) → U19_AG(T14, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), s(s(s(0)))) → HALF17_IN_AA(T14, s(s(T31)))
U19_AG(T14, half17_out_aa(T14, s(s(T31)))) → U20_AG(T14, half17_in_ga(T31, s(s(T40))))
U19_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U20_AG(T14, half17_out_ga(T31, s(s(T40)))) → U21_AG(T14, half17_in_gg(T40, 0))
U20_AG(T14, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GG(T40, 0)
U20_AG(T14, half17_out_ga(T31, s(s(T40)))) → U22_AG(T14, half17_in_gg(T40, s(0)))
U20_AG(T14, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GG(T40, s(0))
LOG21_IN_AG(s(s(T14)), T50) → U23_AG(T14, T50, half17_in_aa(T14, s(s(T31))))
U23_AG(T14, T50, half17_out_aa(T14, s(s(T31)))) → U24_AG(T14, T50, half17_in_ga(T31, s(s(T40))))
U23_AG(T14, T50, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U24_AG(T14, T50, half17_out_ga(T31, s(s(T40)))) → U25_AG(T14, T50, half17_in_ga(T40, s(s(T49))))
U24_AG(T14, T50, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U25_AG(T14, T50, half17_out_ga(T40, s(s(T49)))) → U26_AG(T14, T50, half17_in_ga(T49, X150))
U25_AG(T14, T50, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, X150)
LOG21_IN_AG(s(s(T14)), s(s(s(s(0))))) → U27_AG(T14, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), s(s(s(s(0))))) → HALF17_IN_AA(T14, s(s(T31)))
U27_AG(T14, half17_out_aa(T14, s(s(T31)))) → U28_AG(T14, half17_in_ga(T31, s(s(T40))))
U27_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U28_AG(T14, half17_out_ga(T31, s(s(T40)))) → U29_AG(T14, half17_in_ga(T40, s(s(T49))))
U28_AG(T14, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U29_AG(T14, half17_out_ga(T40, s(s(T49)))) → U30_AG(T14, half17_in_gg(T49, 0))
U29_AG(T14, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GG(T49, 0)
U29_AG(T14, half17_out_ga(T40, s(s(T49)))) → U31_AG(T14, half17_in_gg(T49, s(0)))
U29_AG(T14, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GG(T49, s(0))
LOG21_IN_AG(s(s(T14)), T59) → U32_AG(T14, T59, half17_in_aa(T14, s(s(T31))))
U32_AG(T14, T59, half17_out_aa(T14, s(s(T31)))) → U33_AG(T14, T59, half17_in_ga(T31, s(s(T40))))
U32_AG(T14, T59, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U33_AG(T14, T59, half17_out_ga(T31, s(s(T40)))) → U34_AG(T14, T59, half17_in_ga(T40, s(s(T49))))
U33_AG(T14, T59, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U34_AG(T14, T59, half17_out_ga(T40, s(s(T49)))) → U35_AG(T14, T59, half17_in_ga(T49, s(s(T58))))
U34_AG(T14, T59, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U35_AG(T14, T59, half17_out_ga(T49, s(s(T58)))) → U36_AG(T14, T59, half17_in_ga(T58, X184))
U35_AG(T14, T59, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GA(T58, X184)
LOG21_IN_AG(s(s(T14)), s(s(s(s(s(0)))))) → U37_AG(T14, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), s(s(s(s(s(0)))))) → HALF17_IN_AA(T14, s(s(T31)))
U37_AG(T14, half17_out_aa(T14, s(s(T31)))) → U38_AG(T14, half17_in_ga(T31, s(s(T40))))
U37_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U38_AG(T14, half17_out_ga(T31, s(s(T40)))) → U39_AG(T14, half17_in_ga(T40, s(s(T49))))
U38_AG(T14, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U39_AG(T14, half17_out_ga(T40, s(s(T49)))) → U40_AG(T14, half17_in_ga(T49, s(s(T58))))
U39_AG(T14, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U40_AG(T14, half17_out_ga(T49, s(s(T58)))) → U41_AG(T14, half17_in_gg(T58, 0))
U40_AG(T14, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GG(T58, 0)
U40_AG(T14, half17_out_ga(T49, s(s(T58)))) → U42_AG(T14, half17_in_gg(T58, s(0)))
U40_AG(T14, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GG(T58, s(0))
LOG21_IN_AG(s(s(T14)), T68) → U43_AG(T14, T68, half17_in_aa(T14, s(s(T31))))
U43_AG(T14, T68, half17_out_aa(T14, s(s(T31)))) → U44_AG(T14, T68, half17_in_ga(T31, s(s(T40))))
U43_AG(T14, T68, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U44_AG(T14, T68, half17_out_ga(T31, s(s(T40)))) → U45_AG(T14, T68, half17_in_ga(T40, s(s(T49))))
U44_AG(T14, T68, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U45_AG(T14, T68, half17_out_ga(T40, s(s(T49)))) → U46_AG(T14, T68, half17_in_ga(T49, s(s(T58))))
U45_AG(T14, T68, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U46_AG(T14, T68, half17_out_ga(T49, s(s(T58)))) → U47_AG(T14, T68, half17_in_ga(T58, s(s(T67))))
U46_AG(T14, T68, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GA(T58, s(s(T67)))
U47_AG(T14, T68, half17_out_ga(T58, s(s(T67)))) → U48_AG(T14, T68, half17_in_ga(T67, X218))
U47_AG(T14, T68, half17_out_ga(T58, s(s(T67)))) → HALF17_IN_GA(T67, X218)
LOG21_IN_AG(s(s(T14)), s(s(s(s(s(s(0))))))) → U49_AG(T14, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), s(s(s(s(s(s(0))))))) → HALF17_IN_AA(T14, s(s(T31)))
U49_AG(T14, half17_out_aa(T14, s(s(T31)))) → U50_AG(T14, half17_in_ga(T31, s(s(T40))))
U49_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U50_AG(T14, half17_out_ga(T31, s(s(T40)))) → U51_AG(T14, half17_in_ga(T40, s(s(T49))))
U50_AG(T14, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U51_AG(T14, half17_out_ga(T40, s(s(T49)))) → U52_AG(T14, half17_in_ga(T49, s(s(T58))))
U51_AG(T14, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U52_AG(T14, half17_out_ga(T49, s(s(T58)))) → U53_AG(T14, half17_in_ga(T58, s(s(T67))))
U52_AG(T14, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GA(T58, s(s(T67)))
U53_AG(T14, half17_out_ga(T58, s(s(T67)))) → U54_AG(T14, half17_in_gg(T67, 0))
U53_AG(T14, half17_out_ga(T58, s(s(T67)))) → HALF17_IN_GG(T67, 0)
U53_AG(T14, half17_out_ga(T58, s(s(T67)))) → U55_AG(T14, half17_in_gg(T67, s(0)))
U53_AG(T14, half17_out_ga(T58, s(s(T67)))) → HALF17_IN_GG(T67, s(0))
LOG21_IN_AG(s(s(T14)), T77) → U56_AG(T14, T77, half17_in_aa(T14, s(s(T31))))
U56_AG(T14, T77, half17_out_aa(T14, s(s(T31)))) → U57_AG(T14, T77, half17_in_ga(T31, s(s(T40))))
U56_AG(T14, T77, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U57_AG(T14, T77, half17_out_ga(T31, s(s(T40)))) → U58_AG(T14, T77, half17_in_ga(T40, s(s(T49))))
U57_AG(T14, T77, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U58_AG(T14, T77, half17_out_ga(T40, s(s(T49)))) → U59_AG(T14, T77, half17_in_ga(T49, s(s(T58))))
U58_AG(T14, T77, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U59_AG(T14, T77, half17_out_ga(T49, s(s(T58)))) → U60_AG(T14, T77, half17_in_ga(T58, s(s(T67))))
U59_AG(T14, T77, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GA(T58, s(s(T67)))
U60_AG(T14, T77, half17_out_ga(T58, s(s(T67)))) → U61_AG(T14, T77, half17_in_ga(T67, s(s(T76))))
U60_AG(T14, T77, half17_out_ga(T58, s(s(T67)))) → HALF17_IN_GA(T67, s(s(T76)))
U61_AG(T14, T77, half17_out_ga(T67, s(s(T76)))) → U62_AG(T14, T77, half17_in_ga(T76, X252))
U61_AG(T14, T77, half17_out_ga(T67, s(s(T76)))) → HALF17_IN_GA(T76, X252)
LOG21_IN_AG(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → U63_AG(T14, half17_in_aa(T14, s(s(T31))))
LOG21_IN_AG(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → HALF17_IN_AA(T14, s(s(T31)))
U63_AG(T14, half17_out_aa(T14, s(s(T31)))) → U64_AG(T14, half17_in_ga(T31, s(s(T40))))
U63_AG(T14, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U64_AG(T14, half17_out_ga(T31, s(s(T40)))) → U65_AG(T14, half17_in_ga(T40, s(s(T49))))
U64_AG(T14, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U65_AG(T14, half17_out_ga(T40, s(s(T49)))) → U66_AG(T14, half17_in_ga(T49, s(s(T58))))
U65_AG(T14, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U66_AG(T14, half17_out_ga(T49, s(s(T58)))) → U67_AG(T14, half17_in_ga(T58, s(s(T67))))
U66_AG(T14, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GA(T58, s(s(T67)))
U67_AG(T14, half17_out_ga(T58, s(s(T67)))) → U68_AG(T14, half17_in_ga(T67, s(s(T76))))
U67_AG(T14, half17_out_ga(T58, s(s(T67)))) → HALF17_IN_GA(T67, s(s(T76)))
U68_AG(T14, half17_out_ga(T67, s(s(T76)))) → U69_AG(T14, half17_in_gg(T76, 0))
U68_AG(T14, half17_out_ga(T67, s(s(T76)))) → HALF17_IN_GG(T76, 0)
U68_AG(T14, half17_out_ga(T67, s(s(T76)))) → U70_AG(T14, half17_in_gg(T76, s(0)))
U68_AG(T14, half17_out_ga(T67, s(s(T76)))) → HALF17_IN_GG(T76, s(0))
LOG21_IN_AG(s(s(T14)), T86) → U71_AG(T14, T86, half17_in_aa(T14, s(s(T31))))
U71_AG(T14, T86, half17_out_aa(T14, s(s(T31)))) → U72_AG(T14, T86, half17_in_ga(T31, s(s(T40))))
U71_AG(T14, T86, half17_out_aa(T14, s(s(T31)))) → HALF17_IN_GA(T31, s(s(T40)))
U72_AG(T14, T86, half17_out_ga(T31, s(s(T40)))) → U73_AG(T14, T86, half17_in_ga(T40, s(s(T49))))
U72_AG(T14, T86, half17_out_ga(T31, s(s(T40)))) → HALF17_IN_GA(T40, s(s(T49)))
U73_AG(T14, T86, half17_out_ga(T40, s(s(T49)))) → U74_AG(T14, T86, half17_in_ga(T49, s(s(T58))))
U73_AG(T14, T86, half17_out_ga(T40, s(s(T49)))) → HALF17_IN_GA(T49, s(s(T58)))
U74_AG(T14, T86, half17_out_ga(T49, s(s(T58)))) → U75_AG(T14, T86, half17_in_ga(T58, s(s(T67))))
U74_AG(T14, T86, half17_out_ga(T49, s(s(T58)))) → HALF17_IN_GA(T58, s(s(T67)))
U75_AG(T14, T86, half17_out_ga(T58, s(s(T67)))) → U76_AG(T14, T86, half17_in_ga(T67, s(s(T76))))
U75_AG(T14, T86, half17_out_ga(T58, s(s(T67)))) → HALF17_IN_GA(T67, s(s(T76)))
U76_AG(T14, T86, half17_out_ga(T67, s(s(T76)))) → U77_AG(T14, T86, half17_in_ga(T76, s(s(T85))))
U76_AG(T14, T86, half17_out_ga(T67, s(s(T76)))) → HALF17_IN_GA(T76, s(s(T85)))
U77_AG(T14, T86, half17_out_ga(T76, s(s(T85)))) → U78_AG(T14, T86, p139_in_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86))
U77_AG(T14, T86, half17_out_ga(T76, s(s(T85)))) → P139_IN_GAGG(T85, X286, s(s(s(s(s(s(s(0))))))), T86)
P139_IN_GAGG(T85, X286, T88, T86) → U3_GAGG(T85, X286, T88, T86, half17_in_ga(T85, X286))
P139_IN_GAGG(T85, X286, T88, T86) → HALF17_IN_GA(T85, X286)
P139_IN_GAGG(T85, 0, T98, s(T98)) → U4_GAGG(T85, T98, half17_in_gg(T85, 0))
P139_IN_GAGG(T85, 0, T98, s(T98)) → HALF17_IN_GG(T85, 0)
P139_IN_GAGG(T85, s(0), T103, s(T103)) → U5_GAGG(T85, T103, half17_in_gg(T85, s(0)))
P139_IN_GAGG(T85, s(0), T103, s(T103)) → HALF17_IN_GG(T85, s(0))
P139_IN_GAGG(T85, s(s(T110)), T111, T112) → U6_GAGG(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
P139_IN_GAGG(T85, s(s(T110)), T111, T112) → HALF17_IN_GA(T85, s(s(T110)))
U6_GAGG(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → U7_GAGG(T85, T110, T111, T112, p139_in_gagg(T110, X323, s(T111), T112))
U6_GAGG(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → P139_IN_GAGG(T110, X323, s(T111), T112)

The TRS R consists of the following rules:

log21_in_ag(0, 0) → log21_out_ag(0, 0)
log21_in_ag(s(0), 0) → log21_out_ag(s(0), 0)
log21_in_ag(s(s(T14)), T13) → U8_ag(T14, T13, half17_in_aa(T14, X28))
half17_in_aa(T22, s(X46)) → U2_aa(T22, X46, half22_in_aa(T22, X46))
half22_in_aa(0, 0) → half22_out_aa(0, 0)
half22_in_aa(s(0), 0) → half22_out_aa(s(0), 0)
half22_in_aa(s(s(T26)), s(X55)) → U1_aa(T26, X55, half22_in_aa(T26, X55))
U1_aa(T26, X55, half22_out_aa(T26, X55)) → half22_out_aa(s(s(T26)), s(X55))
U2_aa(T22, X46, half22_out_aa(T22, X46)) → half17_out_aa(T22, s(X46))
U8_ag(T14, T13, half17_out_aa(T14, X28)) → log21_out_ag(s(s(T14)), T13)
log21_in_ag(s(s(T14)), s(0)) → U9_ag(T14, half17_in_ag(T14, 0))
half17_in_ag(T22, s(X46)) → U2_ag(T22, X46, half22_in_ag(T22, X46))
half22_in_ag(0, 0) → half22_out_ag(0, 0)
half22_in_ag(s(0), 0) → half22_out_ag(s(0), 0)
half22_in_ag(s(s(T26)), s(X55)) → U1_ag(T26, X55, half22_in_ag(T26, X55))
U1_ag(T26, X55, half22_out_ag(T26, X55)) → half22_out_ag(s(s(T26)), s(X55))
U2_ag(T22, X46, half22_out_ag(T22, X46)) → half17_out_ag(T22, s(X46))
U9_ag(T14, half17_out_ag(T14, 0)) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), s(0)) → U10_ag(T14, half17_in_ag(T14, s(0)))
U10_ag(T14, half17_out_ag(T14, s(0))) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), T32) → U11_ag(T14, T32, half17_in_aa(T14, s(s(T31))))
U11_ag(T14, T32, half17_out_aa(T14, s(s(T31)))) → U12_ag(T14, T32, half17_in_ga(T31, X82))
half17_in_ga(T22, s(X46)) → U2_ga(T22, X46, half22_in_ga(T22, X46))
half22_in_ga(0, 0) → half22_out_ga(0, 0)
half22_in_ga(s(0), 0) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26)), s(X55)) → U1_ga(T26, X55, half22_in_ga(T26, X55))
U1_ga(T26, X55, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))
U2_ga(T22, X46, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
U12_ag(T14, T32, half17_out_ga(T31, X82)) → log21_out_ag(s(s(T14)), T32)
log21_in_ag(s(s(T14)), s(s(0))) → U13_ag(T14, half17_in_aa(T14, s(s(T31))))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U14_ag(T14, half17_in_gg(T31, 0))
half17_in_gg(T22, s(X46)) → U2_gg(T22, X46, half22_in_gg(T22, X46))
half22_in_gg(0, 0) → half22_out_gg(0, 0)
half22_in_gg(s(0), 0) → half22_out_gg(s(0), 0)
half22_in_gg(s(s(T26)), s(X55)) → U1_gg(T26, X55, half22_in_gg(T26, X55))
U1_gg(T26, X55, half22_out_gg(T26, X55)) → half22_out_gg(s(s(T26)), s(X55))
U2_gg(T22, X46, half22_out_gg(T22, X46)) → half17_out_gg(T22, s(X46))
U14_ag(T14, half17_out_gg(T31, 0)) → log21_out_ag(s(s(T14)), s(s(0)))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U15_ag(T14, half17_in_gg(T31, s(0)))
U15_ag(T14, half17_out_gg(T31, s(0))) → log21_out_ag(s(s(T14)), s(s(0)))
log21_in_ag(s(s(T14)), T41) → U16_ag(T14, T41, half17_in_aa(T14, s(s(T31))))
U16_ag(T14, T41, half17_out_aa(T14, s(s(T31)))) → U17_ag(T14, T41, half17_in_ga(T31, s(s(T40))))
U17_ag(T14, T41, half17_out_ga(T31, s(s(T40)))) → U18_ag(T14, T41, half17_in_ga(T40, X116))
U18_ag(T14, T41, half17_out_ga(T40, X116)) → log21_out_ag(s(s(T14)), T41)
log21_in_ag(s(s(T14)), s(s(s(0)))) → U19_ag(T14, half17_in_aa(T14, s(s(T31))))
U19_ag(T14, half17_out_aa(T14, s(s(T31)))) → U20_ag(T14, half17_in_ga(T31, s(s(T40))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U21_ag(T14, half17_in_gg(T40, 0))
U21_ag(T14, half17_out_gg(T40, 0)) → log21_out_ag(s(s(T14)), s(s(s(0))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U22_ag(T14, half17_in_gg(T40, s(0)))
U22_ag(T14, half17_out_gg(T40, s(0))) → log21_out_ag(s(s(T14)), s(s(s(0))))
log21_in_ag(s(s(T14)), T50) → U23_ag(T14, T50, half17_in_aa(T14, s(s(T31))))
U23_ag(T14, T50, half17_out_aa(T14, s(s(T31)))) → U24_ag(T14, T50, half17_in_ga(T31, s(s(T40))))
U24_ag(T14, T50, half17_out_ga(T31, s(s(T40)))) → U25_ag(T14, T50, half17_in_ga(T40, s(s(T49))))
U25_ag(T14, T50, half17_out_ga(T40, s(s(T49)))) → U26_ag(T14, T50, half17_in_ga(T49, X150))
U26_ag(T14, T50, half17_out_ga(T49, X150)) → log21_out_ag(s(s(T14)), T50)
log21_in_ag(s(s(T14)), s(s(s(s(0))))) → U27_ag(T14, half17_in_aa(T14, s(s(T31))))
U27_ag(T14, half17_out_aa(T14, s(s(T31)))) → U28_ag(T14, half17_in_ga(T31, s(s(T40))))
U28_ag(T14, half17_out_ga(T31, s(s(T40)))) → U29_ag(T14, half17_in_ga(T40, s(s(T49))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U30_ag(T14, half17_in_gg(T49, 0))
U30_ag(T14, half17_out_gg(T49, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U31_ag(T14, half17_in_gg(T49, s(0)))
U31_ag(T14, half17_out_gg(T49, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
log21_in_ag(s(s(T14)), T59) → U32_ag(T14, T59, half17_in_aa(T14, s(s(T31))))
U32_ag(T14, T59, half17_out_aa(T14, s(s(T31)))) → U33_ag(T14, T59, half17_in_ga(T31, s(s(T40))))
U33_ag(T14, T59, half17_out_ga(T31, s(s(T40)))) → U34_ag(T14, T59, half17_in_ga(T40, s(s(T49))))
U34_ag(T14, T59, half17_out_ga(T40, s(s(T49)))) → U35_ag(T14, T59, half17_in_ga(T49, s(s(T58))))
U35_ag(T14, T59, half17_out_ga(T49, s(s(T58)))) → U36_ag(T14, T59, half17_in_ga(T58, X184))
U36_ag(T14, T59, half17_out_ga(T58, X184)) → log21_out_ag(s(s(T14)), T59)
log21_in_ag(s(s(T14)), s(s(s(s(s(0)))))) → U37_ag(T14, half17_in_aa(T14, s(s(T31))))
U37_ag(T14, half17_out_aa(T14, s(s(T31)))) → U38_ag(T14, half17_in_ga(T31, s(s(T40))))
U38_ag(T14, half17_out_ga(T31, s(s(T40)))) → U39_ag(T14, half17_in_ga(T40, s(s(T49))))
U39_ag(T14, half17_out_ga(T40, s(s(T49)))) → U40_ag(T14, half17_in_ga(T49, s(s(T58))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U41_ag(T14, half17_in_gg(T58, 0))
U41_ag(T14, half17_out_gg(T58, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U42_ag(T14, half17_in_gg(T58, s(0)))
U42_ag(T14, half17_out_gg(T58, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
log21_in_ag(s(s(T14)), T68) → U43_ag(T14, T68, half17_in_aa(T14, s(s(T31))))
U43_ag(T14, T68, half17_out_aa(T14, s(s(T31)))) → U44_ag(T14, T68, half17_in_ga(T31, s(s(T40))))
U44_ag(T14, T68, half17_out_ga(T31, s(s(T40)))) → U45_ag(T14, T68, half17_in_ga(T40, s(s(T49))))
U45_ag(T14, T68, half17_out_ga(T40, s(s(T49)))) → U46_ag(T14, T68, half17_in_ga(T49, s(s(T58))))
U46_ag(T14, T68, half17_out_ga(T49, s(s(T58)))) → U47_ag(T14, T68, half17_in_ga(T58, s(s(T67))))
U47_ag(T14, T68, half17_out_ga(T58, s(s(T67)))) → U48_ag(T14, T68, half17_in_ga(T67, X218))
U48_ag(T14, T68, half17_out_ga(T67, X218)) → log21_out_ag(s(s(T14)), T68)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(0))))))) → U49_ag(T14, half17_in_aa(T14, s(s(T31))))
U49_ag(T14, half17_out_aa(T14, s(s(T31)))) → U50_ag(T14, half17_in_ga(T31, s(s(T40))))
U50_ag(T14, half17_out_ga(T31, s(s(T40)))) → U51_ag(T14, half17_in_ga(T40, s(s(T49))))
U51_ag(T14, half17_out_ga(T40, s(s(T49)))) → U52_ag(T14, half17_in_ga(T49, s(s(T58))))
U52_ag(T14, half17_out_ga(T49, s(s(T58)))) → U53_ag(T14, half17_in_ga(T58, s(s(T67))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U54_ag(T14, half17_in_gg(T67, 0))
U54_ag(T14, half17_out_gg(T67, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U55_ag(T14, half17_in_gg(T67, s(0)))
U55_ag(T14, half17_out_gg(T67, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
log21_in_ag(s(s(T14)), T77) → U56_ag(T14, T77, half17_in_aa(T14, s(s(T31))))
U56_ag(T14, T77, half17_out_aa(T14, s(s(T31)))) → U57_ag(T14, T77, half17_in_ga(T31, s(s(T40))))
U57_ag(T14, T77, half17_out_ga(T31, s(s(T40)))) → U58_ag(T14, T77, half17_in_ga(T40, s(s(T49))))
U58_ag(T14, T77, half17_out_ga(T40, s(s(T49)))) → U59_ag(T14, T77, half17_in_ga(T49, s(s(T58))))
U59_ag(T14, T77, half17_out_ga(T49, s(s(T58)))) → U60_ag(T14, T77, half17_in_ga(T58, s(s(T67))))
U60_ag(T14, T77, half17_out_ga(T58, s(s(T67)))) → U61_ag(T14, T77, half17_in_ga(T67, s(s(T76))))
U61_ag(T14, T77, half17_out_ga(T67, s(s(T76)))) → U62_ag(T14, T77, half17_in_ga(T76, X252))
U62_ag(T14, T77, half17_out_ga(T76, X252)) → log21_out_ag(s(s(T14)), T77)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → U63_ag(T14, half17_in_aa(T14, s(s(T31))))
U63_ag(T14, half17_out_aa(T14, s(s(T31)))) → U64_ag(T14, half17_in_ga(T31, s(s(T40))))
U64_ag(T14, half17_out_ga(T31, s(s(T40)))) → U65_ag(T14, half17_in_ga(T40, s(s(T49))))
U65_ag(T14, half17_out_ga(T40, s(s(T49)))) → U66_ag(T14, half17_in_ga(T49, s(s(T58))))
U66_ag(T14, half17_out_ga(T49, s(s(T58)))) → U67_ag(T14, half17_in_ga(T58, s(s(T67))))
U67_ag(T14, half17_out_ga(T58, s(s(T67)))) → U68_ag(T14, half17_in_ga(T67, s(s(T76))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U69_ag(T14, half17_in_gg(T76, 0))
U69_ag(T14, half17_out_gg(T76, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U70_ag(T14, half17_in_gg(T76, s(0)))
U70_ag(T14, half17_out_gg(T76, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
log21_in_ag(s(s(T14)), T86) → U71_ag(T14, T86, half17_in_aa(T14, s(s(T31))))
U71_ag(T14, T86, half17_out_aa(T14, s(s(T31)))) → U72_ag(T14, T86, half17_in_ga(T31, s(s(T40))))
U72_ag(T14, T86, half17_out_ga(T31, s(s(T40)))) → U73_ag(T14, T86, half17_in_ga(T40, s(s(T49))))
U73_ag(T14, T86, half17_out_ga(T40, s(s(T49)))) → U74_ag(T14, T86, half17_in_ga(T49, s(s(T58))))
U74_ag(T14, T86, half17_out_ga(T49, s(s(T58)))) → U75_ag(T14, T86, half17_in_ga(T58, s(s(T67))))
U75_ag(T14, T86, half17_out_ga(T58, s(s(T67)))) → U76_ag(T14, T86, half17_in_ga(T67, s(s(T76))))
U76_ag(T14, T86, half17_out_ga(T67, s(s(T76)))) → U77_ag(T14, T86, half17_in_ga(T76, s(s(T85))))
U77_ag(T14, T86, half17_out_ga(T76, s(s(T85)))) → U78_ag(T14, T86, p139_in_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86))
p139_in_gagg(T85, X286, T88, T86) → U3_gagg(T85, X286, T88, T86, half17_in_ga(T85, X286))
U3_gagg(T85, X286, T88, T86, half17_out_ga(T85, X286)) → p139_out_gagg(T85, X286, T88, T86)
p139_in_gagg(T85, 0, T98, s(T98)) → U4_gagg(T85, T98, half17_in_gg(T85, 0))
U4_gagg(T85, T98, half17_out_gg(T85, 0)) → p139_out_gagg(T85, 0, T98, s(T98))
p139_in_gagg(T85, s(0), T103, s(T103)) → U5_gagg(T85, T103, half17_in_gg(T85, s(0)))
U5_gagg(T85, T103, half17_out_gg(T85, s(0))) → p139_out_gagg(T85, s(0), T103, s(T103))
p139_in_gagg(T85, s(s(T110)), T111, T112) → U6_gagg(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
U6_gagg(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → U7_gagg(T85, T110, T111, T112, p139_in_gagg(T110, X323, s(T111), T112))
U7_gagg(T85, T110, T111, T112, p139_out_gagg(T110, X323, s(T111), T112)) → p139_out_gagg(T85, s(s(T110)), T111, T112)
U78_ag(T14, T86, p139_out_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86)) → log21_out_ag(s(s(T14)), T86)

The argument filtering Pi contains the following mapping:
log21_in_ag(x1, x2)  =  log21_in_ag(x2)
0  =  0
log21_out_ag(x1, x2)  =  log21_out_ag(x1)
U8_ag(x1, x2, x3)  =  U8_ag(x3)
half17_in_aa(x1, x2)  =  half17_in_aa
U2_aa(x1, x2, x3)  =  U2_aa(x3)
half22_in_aa(x1, x2)  =  half22_in_aa
half22_out_aa(x1, x2)  =  half22_out_aa(x1, x2)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
half17_out_aa(x1, x2)  =  half17_out_aa(x1, x2)
s(x1)  =  s(x1)
U9_ag(x1, x2)  =  U9_ag(x2)
half17_in_ag(x1, x2)  =  half17_in_ag(x2)
U2_ag(x1, x2, x3)  =  U2_ag(x3)
half22_in_ag(x1, x2)  =  half22_in_ag(x2)
half22_out_ag(x1, x2)  =  half22_out_ag(x1)
U1_ag(x1, x2, x3)  =  U1_ag(x3)
half17_out_ag(x1, x2)  =  half17_out_ag(x1)
U10_ag(x1, x2)  =  U10_ag(x2)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
U12_ag(x1, x2, x3)  =  U12_ag(x1, x3)
half17_in_ga(x1, x2)  =  half17_in_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x3)
half22_in_ga(x1, x2)  =  half22_in_ga(x1)
half22_out_ga(x1, x2)  =  half22_out_ga(x2)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
half17_out_ga(x1, x2)  =  half17_out_ga(x2)
U13_ag(x1, x2)  =  U13_ag(x2)
U14_ag(x1, x2)  =  U14_ag(x1, x2)
half17_in_gg(x1, x2)  =  half17_in_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x3)
half22_in_gg(x1, x2)  =  half22_in_gg(x1, x2)
half22_out_gg(x1, x2)  =  half22_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
half17_out_gg(x1, x2)  =  half17_out_gg
U15_ag(x1, x2)  =  U15_ag(x1, x2)
U16_ag(x1, x2, x3)  =  U16_ag(x3)
U17_ag(x1, x2, x3)  =  U17_ag(x1, x3)
U18_ag(x1, x2, x3)  =  U18_ag(x1, x3)
U19_ag(x1, x2)  =  U19_ag(x2)
U20_ag(x1, x2)  =  U20_ag(x1, x2)
U21_ag(x1, x2)  =  U21_ag(x1, x2)
U22_ag(x1, x2)  =  U22_ag(x1, x2)
U23_ag(x1, x2, x3)  =  U23_ag(x3)
U24_ag(x1, x2, x3)  =  U24_ag(x1, x3)
U25_ag(x1, x2, x3)  =  U25_ag(x1, x3)
U26_ag(x1, x2, x3)  =  U26_ag(x1, x3)
U27_ag(x1, x2)  =  U27_ag(x2)
U28_ag(x1, x2)  =  U28_ag(x1, x2)
U29_ag(x1, x2)  =  U29_ag(x1, x2)
U30_ag(x1, x2)  =  U30_ag(x1, x2)
U31_ag(x1, x2)  =  U31_ag(x1, x2)
U32_ag(x1, x2, x3)  =  U32_ag(x3)
U33_ag(x1, x2, x3)  =  U33_ag(x1, x3)
U34_ag(x1, x2, x3)  =  U34_ag(x1, x3)
U35_ag(x1, x2, x3)  =  U35_ag(x1, x3)
U36_ag(x1, x2, x3)  =  U36_ag(x1, x3)
U37_ag(x1, x2)  =  U37_ag(x2)
U38_ag(x1, x2)  =  U38_ag(x1, x2)
U39_ag(x1, x2)  =  U39_ag(x1, x2)
U40_ag(x1, x2)  =  U40_ag(x1, x2)
U41_ag(x1, x2)  =  U41_ag(x1, x2)
U42_ag(x1, x2)  =  U42_ag(x1, x2)
U43_ag(x1, x2, x3)  =  U43_ag(x3)
U44_ag(x1, x2, x3)  =  U44_ag(x1, x3)
U45_ag(x1, x2, x3)  =  U45_ag(x1, x3)
U46_ag(x1, x2, x3)  =  U46_ag(x1, x3)
U47_ag(x1, x2, x3)  =  U47_ag(x1, x3)
U48_ag(x1, x2, x3)  =  U48_ag(x1, x3)
U49_ag(x1, x2)  =  U49_ag(x2)
U50_ag(x1, x2)  =  U50_ag(x1, x2)
U51_ag(x1, x2)  =  U51_ag(x1, x2)
U52_ag(x1, x2)  =  U52_ag(x1, x2)
U53_ag(x1, x2)  =  U53_ag(x1, x2)
U54_ag(x1, x2)  =  U54_ag(x1, x2)
U55_ag(x1, x2)  =  U55_ag(x1, x2)
U56_ag(x1, x2, x3)  =  U56_ag(x3)
U57_ag(x1, x2, x3)  =  U57_ag(x1, x3)
U58_ag(x1, x2, x3)  =  U58_ag(x1, x3)
U59_ag(x1, x2, x3)  =  U59_ag(x1, x3)
U60_ag(x1, x2, x3)  =  U60_ag(x1, x3)
U61_ag(x1, x2, x3)  =  U61_ag(x1, x3)
U62_ag(x1, x2, x3)  =  U62_ag(x1, x3)
U63_ag(x1, x2)  =  U63_ag(x2)
U64_ag(x1, x2)  =  U64_ag(x1, x2)
U65_ag(x1, x2)  =  U65_ag(x1, x2)
U66_ag(x1, x2)  =  U66_ag(x1, x2)
U67_ag(x1, x2)  =  U67_ag(x1, x2)
U68_ag(x1, x2)  =  U68_ag(x1, x2)
U69_ag(x1, x2)  =  U69_ag(x1, x2)
U70_ag(x1, x2)  =  U70_ag(x1, x2)
U71_ag(x1, x2, x3)  =  U71_ag(x2, x3)
U72_ag(x1, x2, x3)  =  U72_ag(x1, x2, x3)
U73_ag(x1, x2, x3)  =  U73_ag(x1, x2, x3)
U74_ag(x1, x2, x3)  =  U74_ag(x1, x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x1, x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x1, x2, x3)
U77_ag(x1, x2, x3)  =  U77_ag(x1, x2, x3)
U78_ag(x1, x2, x3)  =  U78_ag(x1, x3)
p139_in_gagg(x1, x2, x3, x4)  =  p139_in_gagg(x1, x3, x4)
U3_gagg(x1, x2, x3, x4, x5)  =  U3_gagg(x5)
p139_out_gagg(x1, x2, x3, x4)  =  p139_out_gagg(x2)
U4_gagg(x1, x2, x3)  =  U4_gagg(x3)
U5_gagg(x1, x2, x3)  =  U5_gagg(x3)
U6_gagg(x1, x2, x3, x4, x5)  =  U6_gagg(x3, x4, x5)
U7_gagg(x1, x2, x3, x4, x5)  =  U7_gagg(x2, x5)
LOG21_IN_AG(x1, x2)  =  LOG21_IN_AG(x2)
U8_AG(x1, x2, x3)  =  U8_AG(x3)
HALF17_IN_AA(x1, x2)  =  HALF17_IN_AA
U2_AA(x1, x2, x3)  =  U2_AA(x3)
HALF22_IN_AA(x1, x2)  =  HALF22_IN_AA
U1_AA(x1, x2, x3)  =  U1_AA(x3)
U9_AG(x1, x2)  =  U9_AG(x2)
HALF17_IN_AG(x1, x2)  =  HALF17_IN_AG(x2)
U2_AG(x1, x2, x3)  =  U2_AG(x3)
HALF22_IN_AG(x1, x2)  =  HALF22_IN_AG(x2)
U1_AG(x1, x2, x3)  =  U1_AG(x3)
U10_AG(x1, x2)  =  U10_AG(x2)
U11_AG(x1, x2, x3)  =  U11_AG(x3)
U12_AG(x1, x2, x3)  =  U12_AG(x1, x3)
HALF17_IN_GA(x1, x2)  =  HALF17_IN_GA(x1)
U2_GA(x1, x2, x3)  =  U2_GA(x3)
HALF22_IN_GA(x1, x2)  =  HALF22_IN_GA(x1)
U1_GA(x1, x2, x3)  =  U1_GA(x3)
U13_AG(x1, x2)  =  U13_AG(x2)
U14_AG(x1, x2)  =  U14_AG(x1, x2)
HALF17_IN_GG(x1, x2)  =  HALF17_IN_GG(x1, x2)
U2_GG(x1, x2, x3)  =  U2_GG(x3)
HALF22_IN_GG(x1, x2)  =  HALF22_IN_GG(x1, x2)
U1_GG(x1, x2, x3)  =  U1_GG(x3)
U15_AG(x1, x2)  =  U15_AG(x1, x2)
U16_AG(x1, x2, x3)  =  U16_AG(x3)
U17_AG(x1, x2, x3)  =  U17_AG(x1, x3)
U18_AG(x1, x2, x3)  =  U18_AG(x1, x3)
U19_AG(x1, x2)  =  U19_AG(x2)
U20_AG(x1, x2)  =  U20_AG(x1, x2)
U21_AG(x1, x2)  =  U21_AG(x1, x2)
U22_AG(x1, x2)  =  U22_AG(x1, x2)
U23_AG(x1, x2, x3)  =  U23_AG(x3)
U24_AG(x1, x2, x3)  =  U24_AG(x1, x3)
U25_AG(x1, x2, x3)  =  U25_AG(x1, x3)
U26_AG(x1, x2, x3)  =  U26_AG(x1, x3)
U27_AG(x1, x2)  =  U27_AG(x2)
U28_AG(x1, x2)  =  U28_AG(x1, x2)
U29_AG(x1, x2)  =  U29_AG(x1, x2)
U30_AG(x1, x2)  =  U30_AG(x1, x2)
U31_AG(x1, x2)  =  U31_AG(x1, x2)
U32_AG(x1, x2, x3)  =  U32_AG(x3)
U33_AG(x1, x2, x3)  =  U33_AG(x1, x3)
U34_AG(x1, x2, x3)  =  U34_AG(x1, x3)
U35_AG(x1, x2, x3)  =  U35_AG(x1, x3)
U36_AG(x1, x2, x3)  =  U36_AG(x1, x3)
U37_AG(x1, x2)  =  U37_AG(x2)
U38_AG(x1, x2)  =  U38_AG(x1, x2)
U39_AG(x1, x2)  =  U39_AG(x1, x2)
U40_AG(x1, x2)  =  U40_AG(x1, x2)
U41_AG(x1, x2)  =  U41_AG(x1, x2)
U42_AG(x1, x2)  =  U42_AG(x1, x2)
U43_AG(x1, x2, x3)  =  U43_AG(x3)
U44_AG(x1, x2, x3)  =  U44_AG(x1, x3)
U45_AG(x1, x2, x3)  =  U45_AG(x1, x3)
U46_AG(x1, x2, x3)  =  U46_AG(x1, x3)
U47_AG(x1, x2, x3)  =  U47_AG(x1, x3)
U48_AG(x1, x2, x3)  =  U48_AG(x1, x3)
U49_AG(x1, x2)  =  U49_AG(x2)
U50_AG(x1, x2)  =  U50_AG(x1, x2)
U51_AG(x1, x2)  =  U51_AG(x1, x2)
U52_AG(x1, x2)  =  U52_AG(x1, x2)
U53_AG(x1, x2)  =  U53_AG(x1, x2)
U54_AG(x1, x2)  =  U54_AG(x1, x2)
U55_AG(x1, x2)  =  U55_AG(x1, x2)
U56_AG(x1, x2, x3)  =  U56_AG(x3)
U57_AG(x1, x2, x3)  =  U57_AG(x1, x3)
U58_AG(x1, x2, x3)  =  U58_AG(x1, x3)
U59_AG(x1, x2, x3)  =  U59_AG(x1, x3)
U60_AG(x1, x2, x3)  =  U60_AG(x1, x3)
U61_AG(x1, x2, x3)  =  U61_AG(x1, x3)
U62_AG(x1, x2, x3)  =  U62_AG(x1, x3)
U63_AG(x1, x2)  =  U63_AG(x2)
U64_AG(x1, x2)  =  U64_AG(x1, x2)
U65_AG(x1, x2)  =  U65_AG(x1, x2)
U66_AG(x1, x2)  =  U66_AG(x1, x2)
U67_AG(x1, x2)  =  U67_AG(x1, x2)
U68_AG(x1, x2)  =  U68_AG(x1, x2)
U69_AG(x1, x2)  =  U69_AG(x1, x2)
U70_AG(x1, x2)  =  U70_AG(x1, x2)
U71_AG(x1, x2, x3)  =  U71_AG(x2, x3)
U72_AG(x1, x2, x3)  =  U72_AG(x1, x2, x3)
U73_AG(x1, x2, x3)  =  U73_AG(x1, x2, x3)
U74_AG(x1, x2, x3)  =  U74_AG(x1, x2, x3)
U75_AG(x1, x2, x3)  =  U75_AG(x1, x2, x3)
U76_AG(x1, x2, x3)  =  U76_AG(x1, x2, x3)
U77_AG(x1, x2, x3)  =  U77_AG(x1, x2, x3)
U78_AG(x1, x2, x3)  =  U78_AG(x1, x3)
P139_IN_GAGG(x1, x2, x3, x4)  =  P139_IN_GAGG(x1, x3, x4)
U3_GAGG(x1, x2, x3, x4, x5)  =  U3_GAGG(x5)
U4_GAGG(x1, x2, x3)  =  U4_GAGG(x3)
U5_GAGG(x1, x2, x3)  =  U5_GAGG(x3)
U6_GAGG(x1, x2, x3, x4, x5)  =  U6_GAGG(x3, x4, x5)
U7_GAGG(x1, x2, x3, x4, x5)  =  U7_GAGG(x2, x5)

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

(56) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 5 SCCs with 156 less nodes.

(57) Complex Obligation (AND)

(58) Obligation:

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

HALF22_IN_GG(s(s(T26)), s(X55)) → HALF22_IN_GG(T26, X55)

The TRS R consists of the following rules:

log21_in_ag(0, 0) → log21_out_ag(0, 0)
log21_in_ag(s(0), 0) → log21_out_ag(s(0), 0)
log21_in_ag(s(s(T14)), T13) → U8_ag(T14, T13, half17_in_aa(T14, X28))
half17_in_aa(T22, s(X46)) → U2_aa(T22, X46, half22_in_aa(T22, X46))
half22_in_aa(0, 0) → half22_out_aa(0, 0)
half22_in_aa(s(0), 0) → half22_out_aa(s(0), 0)
half22_in_aa(s(s(T26)), s(X55)) → U1_aa(T26, X55, half22_in_aa(T26, X55))
U1_aa(T26, X55, half22_out_aa(T26, X55)) → half22_out_aa(s(s(T26)), s(X55))
U2_aa(T22, X46, half22_out_aa(T22, X46)) → half17_out_aa(T22, s(X46))
U8_ag(T14, T13, half17_out_aa(T14, X28)) → log21_out_ag(s(s(T14)), T13)
log21_in_ag(s(s(T14)), s(0)) → U9_ag(T14, half17_in_ag(T14, 0))
half17_in_ag(T22, s(X46)) → U2_ag(T22, X46, half22_in_ag(T22, X46))
half22_in_ag(0, 0) → half22_out_ag(0, 0)
half22_in_ag(s(0), 0) → half22_out_ag(s(0), 0)
half22_in_ag(s(s(T26)), s(X55)) → U1_ag(T26, X55, half22_in_ag(T26, X55))
U1_ag(T26, X55, half22_out_ag(T26, X55)) → half22_out_ag(s(s(T26)), s(X55))
U2_ag(T22, X46, half22_out_ag(T22, X46)) → half17_out_ag(T22, s(X46))
U9_ag(T14, half17_out_ag(T14, 0)) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), s(0)) → U10_ag(T14, half17_in_ag(T14, s(0)))
U10_ag(T14, half17_out_ag(T14, s(0))) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), T32) → U11_ag(T14, T32, half17_in_aa(T14, s(s(T31))))
U11_ag(T14, T32, half17_out_aa(T14, s(s(T31)))) → U12_ag(T14, T32, half17_in_ga(T31, X82))
half17_in_ga(T22, s(X46)) → U2_ga(T22, X46, half22_in_ga(T22, X46))
half22_in_ga(0, 0) → half22_out_ga(0, 0)
half22_in_ga(s(0), 0) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26)), s(X55)) → U1_ga(T26, X55, half22_in_ga(T26, X55))
U1_ga(T26, X55, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))
U2_ga(T22, X46, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
U12_ag(T14, T32, half17_out_ga(T31, X82)) → log21_out_ag(s(s(T14)), T32)
log21_in_ag(s(s(T14)), s(s(0))) → U13_ag(T14, half17_in_aa(T14, s(s(T31))))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U14_ag(T14, half17_in_gg(T31, 0))
half17_in_gg(T22, s(X46)) → U2_gg(T22, X46, half22_in_gg(T22, X46))
half22_in_gg(0, 0) → half22_out_gg(0, 0)
half22_in_gg(s(0), 0) → half22_out_gg(s(0), 0)
half22_in_gg(s(s(T26)), s(X55)) → U1_gg(T26, X55, half22_in_gg(T26, X55))
U1_gg(T26, X55, half22_out_gg(T26, X55)) → half22_out_gg(s(s(T26)), s(X55))
U2_gg(T22, X46, half22_out_gg(T22, X46)) → half17_out_gg(T22, s(X46))
U14_ag(T14, half17_out_gg(T31, 0)) → log21_out_ag(s(s(T14)), s(s(0)))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U15_ag(T14, half17_in_gg(T31, s(0)))
U15_ag(T14, half17_out_gg(T31, s(0))) → log21_out_ag(s(s(T14)), s(s(0)))
log21_in_ag(s(s(T14)), T41) → U16_ag(T14, T41, half17_in_aa(T14, s(s(T31))))
U16_ag(T14, T41, half17_out_aa(T14, s(s(T31)))) → U17_ag(T14, T41, half17_in_ga(T31, s(s(T40))))
U17_ag(T14, T41, half17_out_ga(T31, s(s(T40)))) → U18_ag(T14, T41, half17_in_ga(T40, X116))
U18_ag(T14, T41, half17_out_ga(T40, X116)) → log21_out_ag(s(s(T14)), T41)
log21_in_ag(s(s(T14)), s(s(s(0)))) → U19_ag(T14, half17_in_aa(T14, s(s(T31))))
U19_ag(T14, half17_out_aa(T14, s(s(T31)))) → U20_ag(T14, half17_in_ga(T31, s(s(T40))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U21_ag(T14, half17_in_gg(T40, 0))
U21_ag(T14, half17_out_gg(T40, 0)) → log21_out_ag(s(s(T14)), s(s(s(0))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U22_ag(T14, half17_in_gg(T40, s(0)))
U22_ag(T14, half17_out_gg(T40, s(0))) → log21_out_ag(s(s(T14)), s(s(s(0))))
log21_in_ag(s(s(T14)), T50) → U23_ag(T14, T50, half17_in_aa(T14, s(s(T31))))
U23_ag(T14, T50, half17_out_aa(T14, s(s(T31)))) → U24_ag(T14, T50, half17_in_ga(T31, s(s(T40))))
U24_ag(T14, T50, half17_out_ga(T31, s(s(T40)))) → U25_ag(T14, T50, half17_in_ga(T40, s(s(T49))))
U25_ag(T14, T50, half17_out_ga(T40, s(s(T49)))) → U26_ag(T14, T50, half17_in_ga(T49, X150))
U26_ag(T14, T50, half17_out_ga(T49, X150)) → log21_out_ag(s(s(T14)), T50)
log21_in_ag(s(s(T14)), s(s(s(s(0))))) → U27_ag(T14, half17_in_aa(T14, s(s(T31))))
U27_ag(T14, half17_out_aa(T14, s(s(T31)))) → U28_ag(T14, half17_in_ga(T31, s(s(T40))))
U28_ag(T14, half17_out_ga(T31, s(s(T40)))) → U29_ag(T14, half17_in_ga(T40, s(s(T49))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U30_ag(T14, half17_in_gg(T49, 0))
U30_ag(T14, half17_out_gg(T49, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U31_ag(T14, half17_in_gg(T49, s(0)))
U31_ag(T14, half17_out_gg(T49, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
log21_in_ag(s(s(T14)), T59) → U32_ag(T14, T59, half17_in_aa(T14, s(s(T31))))
U32_ag(T14, T59, half17_out_aa(T14, s(s(T31)))) → U33_ag(T14, T59, half17_in_ga(T31, s(s(T40))))
U33_ag(T14, T59, half17_out_ga(T31, s(s(T40)))) → U34_ag(T14, T59, half17_in_ga(T40, s(s(T49))))
U34_ag(T14, T59, half17_out_ga(T40, s(s(T49)))) → U35_ag(T14, T59, half17_in_ga(T49, s(s(T58))))
U35_ag(T14, T59, half17_out_ga(T49, s(s(T58)))) → U36_ag(T14, T59, half17_in_ga(T58, X184))
U36_ag(T14, T59, half17_out_ga(T58, X184)) → log21_out_ag(s(s(T14)), T59)
log21_in_ag(s(s(T14)), s(s(s(s(s(0)))))) → U37_ag(T14, half17_in_aa(T14, s(s(T31))))
U37_ag(T14, half17_out_aa(T14, s(s(T31)))) → U38_ag(T14, half17_in_ga(T31, s(s(T40))))
U38_ag(T14, half17_out_ga(T31, s(s(T40)))) → U39_ag(T14, half17_in_ga(T40, s(s(T49))))
U39_ag(T14, half17_out_ga(T40, s(s(T49)))) → U40_ag(T14, half17_in_ga(T49, s(s(T58))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U41_ag(T14, half17_in_gg(T58, 0))
U41_ag(T14, half17_out_gg(T58, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U42_ag(T14, half17_in_gg(T58, s(0)))
U42_ag(T14, half17_out_gg(T58, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
log21_in_ag(s(s(T14)), T68) → U43_ag(T14, T68, half17_in_aa(T14, s(s(T31))))
U43_ag(T14, T68, half17_out_aa(T14, s(s(T31)))) → U44_ag(T14, T68, half17_in_ga(T31, s(s(T40))))
U44_ag(T14, T68, half17_out_ga(T31, s(s(T40)))) → U45_ag(T14, T68, half17_in_ga(T40, s(s(T49))))
U45_ag(T14, T68, half17_out_ga(T40, s(s(T49)))) → U46_ag(T14, T68, half17_in_ga(T49, s(s(T58))))
U46_ag(T14, T68, half17_out_ga(T49, s(s(T58)))) → U47_ag(T14, T68, half17_in_ga(T58, s(s(T67))))
U47_ag(T14, T68, half17_out_ga(T58, s(s(T67)))) → U48_ag(T14, T68, half17_in_ga(T67, X218))
U48_ag(T14, T68, half17_out_ga(T67, X218)) → log21_out_ag(s(s(T14)), T68)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(0))))))) → U49_ag(T14, half17_in_aa(T14, s(s(T31))))
U49_ag(T14, half17_out_aa(T14, s(s(T31)))) → U50_ag(T14, half17_in_ga(T31, s(s(T40))))
U50_ag(T14, half17_out_ga(T31, s(s(T40)))) → U51_ag(T14, half17_in_ga(T40, s(s(T49))))
U51_ag(T14, half17_out_ga(T40, s(s(T49)))) → U52_ag(T14, half17_in_ga(T49, s(s(T58))))
U52_ag(T14, half17_out_ga(T49, s(s(T58)))) → U53_ag(T14, half17_in_ga(T58, s(s(T67))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U54_ag(T14, half17_in_gg(T67, 0))
U54_ag(T14, half17_out_gg(T67, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U55_ag(T14, half17_in_gg(T67, s(0)))
U55_ag(T14, half17_out_gg(T67, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
log21_in_ag(s(s(T14)), T77) → U56_ag(T14, T77, half17_in_aa(T14, s(s(T31))))
U56_ag(T14, T77, half17_out_aa(T14, s(s(T31)))) → U57_ag(T14, T77, half17_in_ga(T31, s(s(T40))))
U57_ag(T14, T77, half17_out_ga(T31, s(s(T40)))) → U58_ag(T14, T77, half17_in_ga(T40, s(s(T49))))
U58_ag(T14, T77, half17_out_ga(T40, s(s(T49)))) → U59_ag(T14, T77, half17_in_ga(T49, s(s(T58))))
U59_ag(T14, T77, half17_out_ga(T49, s(s(T58)))) → U60_ag(T14, T77, half17_in_ga(T58, s(s(T67))))
U60_ag(T14, T77, half17_out_ga(T58, s(s(T67)))) → U61_ag(T14, T77, half17_in_ga(T67, s(s(T76))))
U61_ag(T14, T77, half17_out_ga(T67, s(s(T76)))) → U62_ag(T14, T77, half17_in_ga(T76, X252))
U62_ag(T14, T77, half17_out_ga(T76, X252)) → log21_out_ag(s(s(T14)), T77)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → U63_ag(T14, half17_in_aa(T14, s(s(T31))))
U63_ag(T14, half17_out_aa(T14, s(s(T31)))) → U64_ag(T14, half17_in_ga(T31, s(s(T40))))
U64_ag(T14, half17_out_ga(T31, s(s(T40)))) → U65_ag(T14, half17_in_ga(T40, s(s(T49))))
U65_ag(T14, half17_out_ga(T40, s(s(T49)))) → U66_ag(T14, half17_in_ga(T49, s(s(T58))))
U66_ag(T14, half17_out_ga(T49, s(s(T58)))) → U67_ag(T14, half17_in_ga(T58, s(s(T67))))
U67_ag(T14, half17_out_ga(T58, s(s(T67)))) → U68_ag(T14, half17_in_ga(T67, s(s(T76))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U69_ag(T14, half17_in_gg(T76, 0))
U69_ag(T14, half17_out_gg(T76, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U70_ag(T14, half17_in_gg(T76, s(0)))
U70_ag(T14, half17_out_gg(T76, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
log21_in_ag(s(s(T14)), T86) → U71_ag(T14, T86, half17_in_aa(T14, s(s(T31))))
U71_ag(T14, T86, half17_out_aa(T14, s(s(T31)))) → U72_ag(T14, T86, half17_in_ga(T31, s(s(T40))))
U72_ag(T14, T86, half17_out_ga(T31, s(s(T40)))) → U73_ag(T14, T86, half17_in_ga(T40, s(s(T49))))
U73_ag(T14, T86, half17_out_ga(T40, s(s(T49)))) → U74_ag(T14, T86, half17_in_ga(T49, s(s(T58))))
U74_ag(T14, T86, half17_out_ga(T49, s(s(T58)))) → U75_ag(T14, T86, half17_in_ga(T58, s(s(T67))))
U75_ag(T14, T86, half17_out_ga(T58, s(s(T67)))) → U76_ag(T14, T86, half17_in_ga(T67, s(s(T76))))
U76_ag(T14, T86, half17_out_ga(T67, s(s(T76)))) → U77_ag(T14, T86, half17_in_ga(T76, s(s(T85))))
U77_ag(T14, T86, half17_out_ga(T76, s(s(T85)))) → U78_ag(T14, T86, p139_in_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86))
p139_in_gagg(T85, X286, T88, T86) → U3_gagg(T85, X286, T88, T86, half17_in_ga(T85, X286))
U3_gagg(T85, X286, T88, T86, half17_out_ga(T85, X286)) → p139_out_gagg(T85, X286, T88, T86)
p139_in_gagg(T85, 0, T98, s(T98)) → U4_gagg(T85, T98, half17_in_gg(T85, 0))
U4_gagg(T85, T98, half17_out_gg(T85, 0)) → p139_out_gagg(T85, 0, T98, s(T98))
p139_in_gagg(T85, s(0), T103, s(T103)) → U5_gagg(T85, T103, half17_in_gg(T85, s(0)))
U5_gagg(T85, T103, half17_out_gg(T85, s(0))) → p139_out_gagg(T85, s(0), T103, s(T103))
p139_in_gagg(T85, s(s(T110)), T111, T112) → U6_gagg(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
U6_gagg(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → U7_gagg(T85, T110, T111, T112, p139_in_gagg(T110, X323, s(T111), T112))
U7_gagg(T85, T110, T111, T112, p139_out_gagg(T110, X323, s(T111), T112)) → p139_out_gagg(T85, s(s(T110)), T111, T112)
U78_ag(T14, T86, p139_out_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86)) → log21_out_ag(s(s(T14)), T86)

The argument filtering Pi contains the following mapping:
log21_in_ag(x1, x2)  =  log21_in_ag(x2)
0  =  0
log21_out_ag(x1, x2)  =  log21_out_ag(x1)
U8_ag(x1, x2, x3)  =  U8_ag(x3)
half17_in_aa(x1, x2)  =  half17_in_aa
U2_aa(x1, x2, x3)  =  U2_aa(x3)
half22_in_aa(x1, x2)  =  half22_in_aa
half22_out_aa(x1, x2)  =  half22_out_aa(x1, x2)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
half17_out_aa(x1, x2)  =  half17_out_aa(x1, x2)
s(x1)  =  s(x1)
U9_ag(x1, x2)  =  U9_ag(x2)
half17_in_ag(x1, x2)  =  half17_in_ag(x2)
U2_ag(x1, x2, x3)  =  U2_ag(x3)
half22_in_ag(x1, x2)  =  half22_in_ag(x2)
half22_out_ag(x1, x2)  =  half22_out_ag(x1)
U1_ag(x1, x2, x3)  =  U1_ag(x3)
half17_out_ag(x1, x2)  =  half17_out_ag(x1)
U10_ag(x1, x2)  =  U10_ag(x2)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
U12_ag(x1, x2, x3)  =  U12_ag(x1, x3)
half17_in_ga(x1, x2)  =  half17_in_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x3)
half22_in_ga(x1, x2)  =  half22_in_ga(x1)
half22_out_ga(x1, x2)  =  half22_out_ga(x2)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
half17_out_ga(x1, x2)  =  half17_out_ga(x2)
U13_ag(x1, x2)  =  U13_ag(x2)
U14_ag(x1, x2)  =  U14_ag(x1, x2)
half17_in_gg(x1, x2)  =  half17_in_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x3)
half22_in_gg(x1, x2)  =  half22_in_gg(x1, x2)
half22_out_gg(x1, x2)  =  half22_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
half17_out_gg(x1, x2)  =  half17_out_gg
U15_ag(x1, x2)  =  U15_ag(x1, x2)
U16_ag(x1, x2, x3)  =  U16_ag(x3)
U17_ag(x1, x2, x3)  =  U17_ag(x1, x3)
U18_ag(x1, x2, x3)  =  U18_ag(x1, x3)
U19_ag(x1, x2)  =  U19_ag(x2)
U20_ag(x1, x2)  =  U20_ag(x1, x2)
U21_ag(x1, x2)  =  U21_ag(x1, x2)
U22_ag(x1, x2)  =  U22_ag(x1, x2)
U23_ag(x1, x2, x3)  =  U23_ag(x3)
U24_ag(x1, x2, x3)  =  U24_ag(x1, x3)
U25_ag(x1, x2, x3)  =  U25_ag(x1, x3)
U26_ag(x1, x2, x3)  =  U26_ag(x1, x3)
U27_ag(x1, x2)  =  U27_ag(x2)
U28_ag(x1, x2)  =  U28_ag(x1, x2)
U29_ag(x1, x2)  =  U29_ag(x1, x2)
U30_ag(x1, x2)  =  U30_ag(x1, x2)
U31_ag(x1, x2)  =  U31_ag(x1, x2)
U32_ag(x1, x2, x3)  =  U32_ag(x3)
U33_ag(x1, x2, x3)  =  U33_ag(x1, x3)
U34_ag(x1, x2, x3)  =  U34_ag(x1, x3)
U35_ag(x1, x2, x3)  =  U35_ag(x1, x3)
U36_ag(x1, x2, x3)  =  U36_ag(x1, x3)
U37_ag(x1, x2)  =  U37_ag(x2)
U38_ag(x1, x2)  =  U38_ag(x1, x2)
U39_ag(x1, x2)  =  U39_ag(x1, x2)
U40_ag(x1, x2)  =  U40_ag(x1, x2)
U41_ag(x1, x2)  =  U41_ag(x1, x2)
U42_ag(x1, x2)  =  U42_ag(x1, x2)
U43_ag(x1, x2, x3)  =  U43_ag(x3)
U44_ag(x1, x2, x3)  =  U44_ag(x1, x3)
U45_ag(x1, x2, x3)  =  U45_ag(x1, x3)
U46_ag(x1, x2, x3)  =  U46_ag(x1, x3)
U47_ag(x1, x2, x3)  =  U47_ag(x1, x3)
U48_ag(x1, x2, x3)  =  U48_ag(x1, x3)
U49_ag(x1, x2)  =  U49_ag(x2)
U50_ag(x1, x2)  =  U50_ag(x1, x2)
U51_ag(x1, x2)  =  U51_ag(x1, x2)
U52_ag(x1, x2)  =  U52_ag(x1, x2)
U53_ag(x1, x2)  =  U53_ag(x1, x2)
U54_ag(x1, x2)  =  U54_ag(x1, x2)
U55_ag(x1, x2)  =  U55_ag(x1, x2)
U56_ag(x1, x2, x3)  =  U56_ag(x3)
U57_ag(x1, x2, x3)  =  U57_ag(x1, x3)
U58_ag(x1, x2, x3)  =  U58_ag(x1, x3)
U59_ag(x1, x2, x3)  =  U59_ag(x1, x3)
U60_ag(x1, x2, x3)  =  U60_ag(x1, x3)
U61_ag(x1, x2, x3)  =  U61_ag(x1, x3)
U62_ag(x1, x2, x3)  =  U62_ag(x1, x3)
U63_ag(x1, x2)  =  U63_ag(x2)
U64_ag(x1, x2)  =  U64_ag(x1, x2)
U65_ag(x1, x2)  =  U65_ag(x1, x2)
U66_ag(x1, x2)  =  U66_ag(x1, x2)
U67_ag(x1, x2)  =  U67_ag(x1, x2)
U68_ag(x1, x2)  =  U68_ag(x1, x2)
U69_ag(x1, x2)  =  U69_ag(x1, x2)
U70_ag(x1, x2)  =  U70_ag(x1, x2)
U71_ag(x1, x2, x3)  =  U71_ag(x2, x3)
U72_ag(x1, x2, x3)  =  U72_ag(x1, x2, x3)
U73_ag(x1, x2, x3)  =  U73_ag(x1, x2, x3)
U74_ag(x1, x2, x3)  =  U74_ag(x1, x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x1, x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x1, x2, x3)
U77_ag(x1, x2, x3)  =  U77_ag(x1, x2, x3)
U78_ag(x1, x2, x3)  =  U78_ag(x1, x3)
p139_in_gagg(x1, x2, x3, x4)  =  p139_in_gagg(x1, x3, x4)
U3_gagg(x1, x2, x3, x4, x5)  =  U3_gagg(x5)
p139_out_gagg(x1, x2, x3, x4)  =  p139_out_gagg(x2)
U4_gagg(x1, x2, x3)  =  U4_gagg(x3)
U5_gagg(x1, x2, x3)  =  U5_gagg(x3)
U6_gagg(x1, x2, x3, x4, x5)  =  U6_gagg(x3, x4, x5)
U7_gagg(x1, x2, x3, x4, x5)  =  U7_gagg(x2, x5)
HALF22_IN_GG(x1, x2)  =  HALF22_IN_GG(x1, x2)

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

(59) UsableRulesProof (EQUIVALENT transformation)

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

(60) Obligation:

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

HALF22_IN_GG(s(s(T26)), s(X55)) → HALF22_IN_GG(T26, X55)

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

(61) PiDPToQDPProof (EQUIVALENT transformation)

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

(62) Obligation:

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

HALF22_IN_GG(s(s(T26)), s(X55)) → HALF22_IN_GG(T26, X55)

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

(63) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • HALF22_IN_GG(s(s(T26)), s(X55)) → HALF22_IN_GG(T26, X55)
    The graph contains the following edges 1 > 1, 2 > 2

(64) YES

(65) Obligation:

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

HALF22_IN_GA(s(s(T26)), s(X55)) → HALF22_IN_GA(T26, X55)

The TRS R consists of the following rules:

log21_in_ag(0, 0) → log21_out_ag(0, 0)
log21_in_ag(s(0), 0) → log21_out_ag(s(0), 0)
log21_in_ag(s(s(T14)), T13) → U8_ag(T14, T13, half17_in_aa(T14, X28))
half17_in_aa(T22, s(X46)) → U2_aa(T22, X46, half22_in_aa(T22, X46))
half22_in_aa(0, 0) → half22_out_aa(0, 0)
half22_in_aa(s(0), 0) → half22_out_aa(s(0), 0)
half22_in_aa(s(s(T26)), s(X55)) → U1_aa(T26, X55, half22_in_aa(T26, X55))
U1_aa(T26, X55, half22_out_aa(T26, X55)) → half22_out_aa(s(s(T26)), s(X55))
U2_aa(T22, X46, half22_out_aa(T22, X46)) → half17_out_aa(T22, s(X46))
U8_ag(T14, T13, half17_out_aa(T14, X28)) → log21_out_ag(s(s(T14)), T13)
log21_in_ag(s(s(T14)), s(0)) → U9_ag(T14, half17_in_ag(T14, 0))
half17_in_ag(T22, s(X46)) → U2_ag(T22, X46, half22_in_ag(T22, X46))
half22_in_ag(0, 0) → half22_out_ag(0, 0)
half22_in_ag(s(0), 0) → half22_out_ag(s(0), 0)
half22_in_ag(s(s(T26)), s(X55)) → U1_ag(T26, X55, half22_in_ag(T26, X55))
U1_ag(T26, X55, half22_out_ag(T26, X55)) → half22_out_ag(s(s(T26)), s(X55))
U2_ag(T22, X46, half22_out_ag(T22, X46)) → half17_out_ag(T22, s(X46))
U9_ag(T14, half17_out_ag(T14, 0)) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), s(0)) → U10_ag(T14, half17_in_ag(T14, s(0)))
U10_ag(T14, half17_out_ag(T14, s(0))) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), T32) → U11_ag(T14, T32, half17_in_aa(T14, s(s(T31))))
U11_ag(T14, T32, half17_out_aa(T14, s(s(T31)))) → U12_ag(T14, T32, half17_in_ga(T31, X82))
half17_in_ga(T22, s(X46)) → U2_ga(T22, X46, half22_in_ga(T22, X46))
half22_in_ga(0, 0) → half22_out_ga(0, 0)
half22_in_ga(s(0), 0) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26)), s(X55)) → U1_ga(T26, X55, half22_in_ga(T26, X55))
U1_ga(T26, X55, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))
U2_ga(T22, X46, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
U12_ag(T14, T32, half17_out_ga(T31, X82)) → log21_out_ag(s(s(T14)), T32)
log21_in_ag(s(s(T14)), s(s(0))) → U13_ag(T14, half17_in_aa(T14, s(s(T31))))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U14_ag(T14, half17_in_gg(T31, 0))
half17_in_gg(T22, s(X46)) → U2_gg(T22, X46, half22_in_gg(T22, X46))
half22_in_gg(0, 0) → half22_out_gg(0, 0)
half22_in_gg(s(0), 0) → half22_out_gg(s(0), 0)
half22_in_gg(s(s(T26)), s(X55)) → U1_gg(T26, X55, half22_in_gg(T26, X55))
U1_gg(T26, X55, half22_out_gg(T26, X55)) → half22_out_gg(s(s(T26)), s(X55))
U2_gg(T22, X46, half22_out_gg(T22, X46)) → half17_out_gg(T22, s(X46))
U14_ag(T14, half17_out_gg(T31, 0)) → log21_out_ag(s(s(T14)), s(s(0)))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U15_ag(T14, half17_in_gg(T31, s(0)))
U15_ag(T14, half17_out_gg(T31, s(0))) → log21_out_ag(s(s(T14)), s(s(0)))
log21_in_ag(s(s(T14)), T41) → U16_ag(T14, T41, half17_in_aa(T14, s(s(T31))))
U16_ag(T14, T41, half17_out_aa(T14, s(s(T31)))) → U17_ag(T14, T41, half17_in_ga(T31, s(s(T40))))
U17_ag(T14, T41, half17_out_ga(T31, s(s(T40)))) → U18_ag(T14, T41, half17_in_ga(T40, X116))
U18_ag(T14, T41, half17_out_ga(T40, X116)) → log21_out_ag(s(s(T14)), T41)
log21_in_ag(s(s(T14)), s(s(s(0)))) → U19_ag(T14, half17_in_aa(T14, s(s(T31))))
U19_ag(T14, half17_out_aa(T14, s(s(T31)))) → U20_ag(T14, half17_in_ga(T31, s(s(T40))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U21_ag(T14, half17_in_gg(T40, 0))
U21_ag(T14, half17_out_gg(T40, 0)) → log21_out_ag(s(s(T14)), s(s(s(0))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U22_ag(T14, half17_in_gg(T40, s(0)))
U22_ag(T14, half17_out_gg(T40, s(0))) → log21_out_ag(s(s(T14)), s(s(s(0))))
log21_in_ag(s(s(T14)), T50) → U23_ag(T14, T50, half17_in_aa(T14, s(s(T31))))
U23_ag(T14, T50, half17_out_aa(T14, s(s(T31)))) → U24_ag(T14, T50, half17_in_ga(T31, s(s(T40))))
U24_ag(T14, T50, half17_out_ga(T31, s(s(T40)))) → U25_ag(T14, T50, half17_in_ga(T40, s(s(T49))))
U25_ag(T14, T50, half17_out_ga(T40, s(s(T49)))) → U26_ag(T14, T50, half17_in_ga(T49, X150))
U26_ag(T14, T50, half17_out_ga(T49, X150)) → log21_out_ag(s(s(T14)), T50)
log21_in_ag(s(s(T14)), s(s(s(s(0))))) → U27_ag(T14, half17_in_aa(T14, s(s(T31))))
U27_ag(T14, half17_out_aa(T14, s(s(T31)))) → U28_ag(T14, half17_in_ga(T31, s(s(T40))))
U28_ag(T14, half17_out_ga(T31, s(s(T40)))) → U29_ag(T14, half17_in_ga(T40, s(s(T49))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U30_ag(T14, half17_in_gg(T49, 0))
U30_ag(T14, half17_out_gg(T49, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U31_ag(T14, half17_in_gg(T49, s(0)))
U31_ag(T14, half17_out_gg(T49, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
log21_in_ag(s(s(T14)), T59) → U32_ag(T14, T59, half17_in_aa(T14, s(s(T31))))
U32_ag(T14, T59, half17_out_aa(T14, s(s(T31)))) → U33_ag(T14, T59, half17_in_ga(T31, s(s(T40))))
U33_ag(T14, T59, half17_out_ga(T31, s(s(T40)))) → U34_ag(T14, T59, half17_in_ga(T40, s(s(T49))))
U34_ag(T14, T59, half17_out_ga(T40, s(s(T49)))) → U35_ag(T14, T59, half17_in_ga(T49, s(s(T58))))
U35_ag(T14, T59, half17_out_ga(T49, s(s(T58)))) → U36_ag(T14, T59, half17_in_ga(T58, X184))
U36_ag(T14, T59, half17_out_ga(T58, X184)) → log21_out_ag(s(s(T14)), T59)
log21_in_ag(s(s(T14)), s(s(s(s(s(0)))))) → U37_ag(T14, half17_in_aa(T14, s(s(T31))))
U37_ag(T14, half17_out_aa(T14, s(s(T31)))) → U38_ag(T14, half17_in_ga(T31, s(s(T40))))
U38_ag(T14, half17_out_ga(T31, s(s(T40)))) → U39_ag(T14, half17_in_ga(T40, s(s(T49))))
U39_ag(T14, half17_out_ga(T40, s(s(T49)))) → U40_ag(T14, half17_in_ga(T49, s(s(T58))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U41_ag(T14, half17_in_gg(T58, 0))
U41_ag(T14, half17_out_gg(T58, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U42_ag(T14, half17_in_gg(T58, s(0)))
U42_ag(T14, half17_out_gg(T58, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
log21_in_ag(s(s(T14)), T68) → U43_ag(T14, T68, half17_in_aa(T14, s(s(T31))))
U43_ag(T14, T68, half17_out_aa(T14, s(s(T31)))) → U44_ag(T14, T68, half17_in_ga(T31, s(s(T40))))
U44_ag(T14, T68, half17_out_ga(T31, s(s(T40)))) → U45_ag(T14, T68, half17_in_ga(T40, s(s(T49))))
U45_ag(T14, T68, half17_out_ga(T40, s(s(T49)))) → U46_ag(T14, T68, half17_in_ga(T49, s(s(T58))))
U46_ag(T14, T68, half17_out_ga(T49, s(s(T58)))) → U47_ag(T14, T68, half17_in_ga(T58, s(s(T67))))
U47_ag(T14, T68, half17_out_ga(T58, s(s(T67)))) → U48_ag(T14, T68, half17_in_ga(T67, X218))
U48_ag(T14, T68, half17_out_ga(T67, X218)) → log21_out_ag(s(s(T14)), T68)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(0))))))) → U49_ag(T14, half17_in_aa(T14, s(s(T31))))
U49_ag(T14, half17_out_aa(T14, s(s(T31)))) → U50_ag(T14, half17_in_ga(T31, s(s(T40))))
U50_ag(T14, half17_out_ga(T31, s(s(T40)))) → U51_ag(T14, half17_in_ga(T40, s(s(T49))))
U51_ag(T14, half17_out_ga(T40, s(s(T49)))) → U52_ag(T14, half17_in_ga(T49, s(s(T58))))
U52_ag(T14, half17_out_ga(T49, s(s(T58)))) → U53_ag(T14, half17_in_ga(T58, s(s(T67))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U54_ag(T14, half17_in_gg(T67, 0))
U54_ag(T14, half17_out_gg(T67, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U55_ag(T14, half17_in_gg(T67, s(0)))
U55_ag(T14, half17_out_gg(T67, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
log21_in_ag(s(s(T14)), T77) → U56_ag(T14, T77, half17_in_aa(T14, s(s(T31))))
U56_ag(T14, T77, half17_out_aa(T14, s(s(T31)))) → U57_ag(T14, T77, half17_in_ga(T31, s(s(T40))))
U57_ag(T14, T77, half17_out_ga(T31, s(s(T40)))) → U58_ag(T14, T77, half17_in_ga(T40, s(s(T49))))
U58_ag(T14, T77, half17_out_ga(T40, s(s(T49)))) → U59_ag(T14, T77, half17_in_ga(T49, s(s(T58))))
U59_ag(T14, T77, half17_out_ga(T49, s(s(T58)))) → U60_ag(T14, T77, half17_in_ga(T58, s(s(T67))))
U60_ag(T14, T77, half17_out_ga(T58, s(s(T67)))) → U61_ag(T14, T77, half17_in_ga(T67, s(s(T76))))
U61_ag(T14, T77, half17_out_ga(T67, s(s(T76)))) → U62_ag(T14, T77, half17_in_ga(T76, X252))
U62_ag(T14, T77, half17_out_ga(T76, X252)) → log21_out_ag(s(s(T14)), T77)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → U63_ag(T14, half17_in_aa(T14, s(s(T31))))
U63_ag(T14, half17_out_aa(T14, s(s(T31)))) → U64_ag(T14, half17_in_ga(T31, s(s(T40))))
U64_ag(T14, half17_out_ga(T31, s(s(T40)))) → U65_ag(T14, half17_in_ga(T40, s(s(T49))))
U65_ag(T14, half17_out_ga(T40, s(s(T49)))) → U66_ag(T14, half17_in_ga(T49, s(s(T58))))
U66_ag(T14, half17_out_ga(T49, s(s(T58)))) → U67_ag(T14, half17_in_ga(T58, s(s(T67))))
U67_ag(T14, half17_out_ga(T58, s(s(T67)))) → U68_ag(T14, half17_in_ga(T67, s(s(T76))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U69_ag(T14, half17_in_gg(T76, 0))
U69_ag(T14, half17_out_gg(T76, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U70_ag(T14, half17_in_gg(T76, s(0)))
U70_ag(T14, half17_out_gg(T76, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
log21_in_ag(s(s(T14)), T86) → U71_ag(T14, T86, half17_in_aa(T14, s(s(T31))))
U71_ag(T14, T86, half17_out_aa(T14, s(s(T31)))) → U72_ag(T14, T86, half17_in_ga(T31, s(s(T40))))
U72_ag(T14, T86, half17_out_ga(T31, s(s(T40)))) → U73_ag(T14, T86, half17_in_ga(T40, s(s(T49))))
U73_ag(T14, T86, half17_out_ga(T40, s(s(T49)))) → U74_ag(T14, T86, half17_in_ga(T49, s(s(T58))))
U74_ag(T14, T86, half17_out_ga(T49, s(s(T58)))) → U75_ag(T14, T86, half17_in_ga(T58, s(s(T67))))
U75_ag(T14, T86, half17_out_ga(T58, s(s(T67)))) → U76_ag(T14, T86, half17_in_ga(T67, s(s(T76))))
U76_ag(T14, T86, half17_out_ga(T67, s(s(T76)))) → U77_ag(T14, T86, half17_in_ga(T76, s(s(T85))))
U77_ag(T14, T86, half17_out_ga(T76, s(s(T85)))) → U78_ag(T14, T86, p139_in_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86))
p139_in_gagg(T85, X286, T88, T86) → U3_gagg(T85, X286, T88, T86, half17_in_ga(T85, X286))
U3_gagg(T85, X286, T88, T86, half17_out_ga(T85, X286)) → p139_out_gagg(T85, X286, T88, T86)
p139_in_gagg(T85, 0, T98, s(T98)) → U4_gagg(T85, T98, half17_in_gg(T85, 0))
U4_gagg(T85, T98, half17_out_gg(T85, 0)) → p139_out_gagg(T85, 0, T98, s(T98))
p139_in_gagg(T85, s(0), T103, s(T103)) → U5_gagg(T85, T103, half17_in_gg(T85, s(0)))
U5_gagg(T85, T103, half17_out_gg(T85, s(0))) → p139_out_gagg(T85, s(0), T103, s(T103))
p139_in_gagg(T85, s(s(T110)), T111, T112) → U6_gagg(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
U6_gagg(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → U7_gagg(T85, T110, T111, T112, p139_in_gagg(T110, X323, s(T111), T112))
U7_gagg(T85, T110, T111, T112, p139_out_gagg(T110, X323, s(T111), T112)) → p139_out_gagg(T85, s(s(T110)), T111, T112)
U78_ag(T14, T86, p139_out_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86)) → log21_out_ag(s(s(T14)), T86)

The argument filtering Pi contains the following mapping:
log21_in_ag(x1, x2)  =  log21_in_ag(x2)
0  =  0
log21_out_ag(x1, x2)  =  log21_out_ag(x1)
U8_ag(x1, x2, x3)  =  U8_ag(x3)
half17_in_aa(x1, x2)  =  half17_in_aa
U2_aa(x1, x2, x3)  =  U2_aa(x3)
half22_in_aa(x1, x2)  =  half22_in_aa
half22_out_aa(x1, x2)  =  half22_out_aa(x1, x2)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
half17_out_aa(x1, x2)  =  half17_out_aa(x1, x2)
s(x1)  =  s(x1)
U9_ag(x1, x2)  =  U9_ag(x2)
half17_in_ag(x1, x2)  =  half17_in_ag(x2)
U2_ag(x1, x2, x3)  =  U2_ag(x3)
half22_in_ag(x1, x2)  =  half22_in_ag(x2)
half22_out_ag(x1, x2)  =  half22_out_ag(x1)
U1_ag(x1, x2, x3)  =  U1_ag(x3)
half17_out_ag(x1, x2)  =  half17_out_ag(x1)
U10_ag(x1, x2)  =  U10_ag(x2)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
U12_ag(x1, x2, x3)  =  U12_ag(x1, x3)
half17_in_ga(x1, x2)  =  half17_in_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x3)
half22_in_ga(x1, x2)  =  half22_in_ga(x1)
half22_out_ga(x1, x2)  =  half22_out_ga(x2)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
half17_out_ga(x1, x2)  =  half17_out_ga(x2)
U13_ag(x1, x2)  =  U13_ag(x2)
U14_ag(x1, x2)  =  U14_ag(x1, x2)
half17_in_gg(x1, x2)  =  half17_in_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x3)
half22_in_gg(x1, x2)  =  half22_in_gg(x1, x2)
half22_out_gg(x1, x2)  =  half22_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
half17_out_gg(x1, x2)  =  half17_out_gg
U15_ag(x1, x2)  =  U15_ag(x1, x2)
U16_ag(x1, x2, x3)  =  U16_ag(x3)
U17_ag(x1, x2, x3)  =  U17_ag(x1, x3)
U18_ag(x1, x2, x3)  =  U18_ag(x1, x3)
U19_ag(x1, x2)  =  U19_ag(x2)
U20_ag(x1, x2)  =  U20_ag(x1, x2)
U21_ag(x1, x2)  =  U21_ag(x1, x2)
U22_ag(x1, x2)  =  U22_ag(x1, x2)
U23_ag(x1, x2, x3)  =  U23_ag(x3)
U24_ag(x1, x2, x3)  =  U24_ag(x1, x3)
U25_ag(x1, x2, x3)  =  U25_ag(x1, x3)
U26_ag(x1, x2, x3)  =  U26_ag(x1, x3)
U27_ag(x1, x2)  =  U27_ag(x2)
U28_ag(x1, x2)  =  U28_ag(x1, x2)
U29_ag(x1, x2)  =  U29_ag(x1, x2)
U30_ag(x1, x2)  =  U30_ag(x1, x2)
U31_ag(x1, x2)  =  U31_ag(x1, x2)
U32_ag(x1, x2, x3)  =  U32_ag(x3)
U33_ag(x1, x2, x3)  =  U33_ag(x1, x3)
U34_ag(x1, x2, x3)  =  U34_ag(x1, x3)
U35_ag(x1, x2, x3)  =  U35_ag(x1, x3)
U36_ag(x1, x2, x3)  =  U36_ag(x1, x3)
U37_ag(x1, x2)  =  U37_ag(x2)
U38_ag(x1, x2)  =  U38_ag(x1, x2)
U39_ag(x1, x2)  =  U39_ag(x1, x2)
U40_ag(x1, x2)  =  U40_ag(x1, x2)
U41_ag(x1, x2)  =  U41_ag(x1, x2)
U42_ag(x1, x2)  =  U42_ag(x1, x2)
U43_ag(x1, x2, x3)  =  U43_ag(x3)
U44_ag(x1, x2, x3)  =  U44_ag(x1, x3)
U45_ag(x1, x2, x3)  =  U45_ag(x1, x3)
U46_ag(x1, x2, x3)  =  U46_ag(x1, x3)
U47_ag(x1, x2, x3)  =  U47_ag(x1, x3)
U48_ag(x1, x2, x3)  =  U48_ag(x1, x3)
U49_ag(x1, x2)  =  U49_ag(x2)
U50_ag(x1, x2)  =  U50_ag(x1, x2)
U51_ag(x1, x2)  =  U51_ag(x1, x2)
U52_ag(x1, x2)  =  U52_ag(x1, x2)
U53_ag(x1, x2)  =  U53_ag(x1, x2)
U54_ag(x1, x2)  =  U54_ag(x1, x2)
U55_ag(x1, x2)  =  U55_ag(x1, x2)
U56_ag(x1, x2, x3)  =  U56_ag(x3)
U57_ag(x1, x2, x3)  =  U57_ag(x1, x3)
U58_ag(x1, x2, x3)  =  U58_ag(x1, x3)
U59_ag(x1, x2, x3)  =  U59_ag(x1, x3)
U60_ag(x1, x2, x3)  =  U60_ag(x1, x3)
U61_ag(x1, x2, x3)  =  U61_ag(x1, x3)
U62_ag(x1, x2, x3)  =  U62_ag(x1, x3)
U63_ag(x1, x2)  =  U63_ag(x2)
U64_ag(x1, x2)  =  U64_ag(x1, x2)
U65_ag(x1, x2)  =  U65_ag(x1, x2)
U66_ag(x1, x2)  =  U66_ag(x1, x2)
U67_ag(x1, x2)  =  U67_ag(x1, x2)
U68_ag(x1, x2)  =  U68_ag(x1, x2)
U69_ag(x1, x2)  =  U69_ag(x1, x2)
U70_ag(x1, x2)  =  U70_ag(x1, x2)
U71_ag(x1, x2, x3)  =  U71_ag(x2, x3)
U72_ag(x1, x2, x3)  =  U72_ag(x1, x2, x3)
U73_ag(x1, x2, x3)  =  U73_ag(x1, x2, x3)
U74_ag(x1, x2, x3)  =  U74_ag(x1, x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x1, x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x1, x2, x3)
U77_ag(x1, x2, x3)  =  U77_ag(x1, x2, x3)
U78_ag(x1, x2, x3)  =  U78_ag(x1, x3)
p139_in_gagg(x1, x2, x3, x4)  =  p139_in_gagg(x1, x3, x4)
U3_gagg(x1, x2, x3, x4, x5)  =  U3_gagg(x5)
p139_out_gagg(x1, x2, x3, x4)  =  p139_out_gagg(x2)
U4_gagg(x1, x2, x3)  =  U4_gagg(x3)
U5_gagg(x1, x2, x3)  =  U5_gagg(x3)
U6_gagg(x1, x2, x3, x4, x5)  =  U6_gagg(x3, x4, x5)
U7_gagg(x1, x2, x3, x4, x5)  =  U7_gagg(x2, x5)
HALF22_IN_GA(x1, x2)  =  HALF22_IN_GA(x1)

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

(66) UsableRulesProof (EQUIVALENT transformation)

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

(67) Obligation:

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

HALF22_IN_GA(s(s(T26)), s(X55)) → HALF22_IN_GA(T26, X55)

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

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

(68) PiDPToQDPProof (SOUND transformation)

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

(69) Obligation:

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

HALF22_IN_GA(s(s(T26))) → HALF22_IN_GA(T26)

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

(70) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • HALF22_IN_GA(s(s(T26))) → HALF22_IN_GA(T26)
    The graph contains the following edges 1 > 1

(71) YES

(72) Obligation:

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

P139_IN_GAGG(T85, s(s(T110)), T111, T112) → U6_GAGG(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
U6_GAGG(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → P139_IN_GAGG(T110, X323, s(T111), T112)

The TRS R consists of the following rules:

log21_in_ag(0, 0) → log21_out_ag(0, 0)
log21_in_ag(s(0), 0) → log21_out_ag(s(0), 0)
log21_in_ag(s(s(T14)), T13) → U8_ag(T14, T13, half17_in_aa(T14, X28))
half17_in_aa(T22, s(X46)) → U2_aa(T22, X46, half22_in_aa(T22, X46))
half22_in_aa(0, 0) → half22_out_aa(0, 0)
half22_in_aa(s(0), 0) → half22_out_aa(s(0), 0)
half22_in_aa(s(s(T26)), s(X55)) → U1_aa(T26, X55, half22_in_aa(T26, X55))
U1_aa(T26, X55, half22_out_aa(T26, X55)) → half22_out_aa(s(s(T26)), s(X55))
U2_aa(T22, X46, half22_out_aa(T22, X46)) → half17_out_aa(T22, s(X46))
U8_ag(T14, T13, half17_out_aa(T14, X28)) → log21_out_ag(s(s(T14)), T13)
log21_in_ag(s(s(T14)), s(0)) → U9_ag(T14, half17_in_ag(T14, 0))
half17_in_ag(T22, s(X46)) → U2_ag(T22, X46, half22_in_ag(T22, X46))
half22_in_ag(0, 0) → half22_out_ag(0, 0)
half22_in_ag(s(0), 0) → half22_out_ag(s(0), 0)
half22_in_ag(s(s(T26)), s(X55)) → U1_ag(T26, X55, half22_in_ag(T26, X55))
U1_ag(T26, X55, half22_out_ag(T26, X55)) → half22_out_ag(s(s(T26)), s(X55))
U2_ag(T22, X46, half22_out_ag(T22, X46)) → half17_out_ag(T22, s(X46))
U9_ag(T14, half17_out_ag(T14, 0)) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), s(0)) → U10_ag(T14, half17_in_ag(T14, s(0)))
U10_ag(T14, half17_out_ag(T14, s(0))) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), T32) → U11_ag(T14, T32, half17_in_aa(T14, s(s(T31))))
U11_ag(T14, T32, half17_out_aa(T14, s(s(T31)))) → U12_ag(T14, T32, half17_in_ga(T31, X82))
half17_in_ga(T22, s(X46)) → U2_ga(T22, X46, half22_in_ga(T22, X46))
half22_in_ga(0, 0) → half22_out_ga(0, 0)
half22_in_ga(s(0), 0) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26)), s(X55)) → U1_ga(T26, X55, half22_in_ga(T26, X55))
U1_ga(T26, X55, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))
U2_ga(T22, X46, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
U12_ag(T14, T32, half17_out_ga(T31, X82)) → log21_out_ag(s(s(T14)), T32)
log21_in_ag(s(s(T14)), s(s(0))) → U13_ag(T14, half17_in_aa(T14, s(s(T31))))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U14_ag(T14, half17_in_gg(T31, 0))
half17_in_gg(T22, s(X46)) → U2_gg(T22, X46, half22_in_gg(T22, X46))
half22_in_gg(0, 0) → half22_out_gg(0, 0)
half22_in_gg(s(0), 0) → half22_out_gg(s(0), 0)
half22_in_gg(s(s(T26)), s(X55)) → U1_gg(T26, X55, half22_in_gg(T26, X55))
U1_gg(T26, X55, half22_out_gg(T26, X55)) → half22_out_gg(s(s(T26)), s(X55))
U2_gg(T22, X46, half22_out_gg(T22, X46)) → half17_out_gg(T22, s(X46))
U14_ag(T14, half17_out_gg(T31, 0)) → log21_out_ag(s(s(T14)), s(s(0)))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U15_ag(T14, half17_in_gg(T31, s(0)))
U15_ag(T14, half17_out_gg(T31, s(0))) → log21_out_ag(s(s(T14)), s(s(0)))
log21_in_ag(s(s(T14)), T41) → U16_ag(T14, T41, half17_in_aa(T14, s(s(T31))))
U16_ag(T14, T41, half17_out_aa(T14, s(s(T31)))) → U17_ag(T14, T41, half17_in_ga(T31, s(s(T40))))
U17_ag(T14, T41, half17_out_ga(T31, s(s(T40)))) → U18_ag(T14, T41, half17_in_ga(T40, X116))
U18_ag(T14, T41, half17_out_ga(T40, X116)) → log21_out_ag(s(s(T14)), T41)
log21_in_ag(s(s(T14)), s(s(s(0)))) → U19_ag(T14, half17_in_aa(T14, s(s(T31))))
U19_ag(T14, half17_out_aa(T14, s(s(T31)))) → U20_ag(T14, half17_in_ga(T31, s(s(T40))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U21_ag(T14, half17_in_gg(T40, 0))
U21_ag(T14, half17_out_gg(T40, 0)) → log21_out_ag(s(s(T14)), s(s(s(0))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U22_ag(T14, half17_in_gg(T40, s(0)))
U22_ag(T14, half17_out_gg(T40, s(0))) → log21_out_ag(s(s(T14)), s(s(s(0))))
log21_in_ag(s(s(T14)), T50) → U23_ag(T14, T50, half17_in_aa(T14, s(s(T31))))
U23_ag(T14, T50, half17_out_aa(T14, s(s(T31)))) → U24_ag(T14, T50, half17_in_ga(T31, s(s(T40))))
U24_ag(T14, T50, half17_out_ga(T31, s(s(T40)))) → U25_ag(T14, T50, half17_in_ga(T40, s(s(T49))))
U25_ag(T14, T50, half17_out_ga(T40, s(s(T49)))) → U26_ag(T14, T50, half17_in_ga(T49, X150))
U26_ag(T14, T50, half17_out_ga(T49, X150)) → log21_out_ag(s(s(T14)), T50)
log21_in_ag(s(s(T14)), s(s(s(s(0))))) → U27_ag(T14, half17_in_aa(T14, s(s(T31))))
U27_ag(T14, half17_out_aa(T14, s(s(T31)))) → U28_ag(T14, half17_in_ga(T31, s(s(T40))))
U28_ag(T14, half17_out_ga(T31, s(s(T40)))) → U29_ag(T14, half17_in_ga(T40, s(s(T49))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U30_ag(T14, half17_in_gg(T49, 0))
U30_ag(T14, half17_out_gg(T49, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U31_ag(T14, half17_in_gg(T49, s(0)))
U31_ag(T14, half17_out_gg(T49, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
log21_in_ag(s(s(T14)), T59) → U32_ag(T14, T59, half17_in_aa(T14, s(s(T31))))
U32_ag(T14, T59, half17_out_aa(T14, s(s(T31)))) → U33_ag(T14, T59, half17_in_ga(T31, s(s(T40))))
U33_ag(T14, T59, half17_out_ga(T31, s(s(T40)))) → U34_ag(T14, T59, half17_in_ga(T40, s(s(T49))))
U34_ag(T14, T59, half17_out_ga(T40, s(s(T49)))) → U35_ag(T14, T59, half17_in_ga(T49, s(s(T58))))
U35_ag(T14, T59, half17_out_ga(T49, s(s(T58)))) → U36_ag(T14, T59, half17_in_ga(T58, X184))
U36_ag(T14, T59, half17_out_ga(T58, X184)) → log21_out_ag(s(s(T14)), T59)
log21_in_ag(s(s(T14)), s(s(s(s(s(0)))))) → U37_ag(T14, half17_in_aa(T14, s(s(T31))))
U37_ag(T14, half17_out_aa(T14, s(s(T31)))) → U38_ag(T14, half17_in_ga(T31, s(s(T40))))
U38_ag(T14, half17_out_ga(T31, s(s(T40)))) → U39_ag(T14, half17_in_ga(T40, s(s(T49))))
U39_ag(T14, half17_out_ga(T40, s(s(T49)))) → U40_ag(T14, half17_in_ga(T49, s(s(T58))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U41_ag(T14, half17_in_gg(T58, 0))
U41_ag(T14, half17_out_gg(T58, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U42_ag(T14, half17_in_gg(T58, s(0)))
U42_ag(T14, half17_out_gg(T58, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
log21_in_ag(s(s(T14)), T68) → U43_ag(T14, T68, half17_in_aa(T14, s(s(T31))))
U43_ag(T14, T68, half17_out_aa(T14, s(s(T31)))) → U44_ag(T14, T68, half17_in_ga(T31, s(s(T40))))
U44_ag(T14, T68, half17_out_ga(T31, s(s(T40)))) → U45_ag(T14, T68, half17_in_ga(T40, s(s(T49))))
U45_ag(T14, T68, half17_out_ga(T40, s(s(T49)))) → U46_ag(T14, T68, half17_in_ga(T49, s(s(T58))))
U46_ag(T14, T68, half17_out_ga(T49, s(s(T58)))) → U47_ag(T14, T68, half17_in_ga(T58, s(s(T67))))
U47_ag(T14, T68, half17_out_ga(T58, s(s(T67)))) → U48_ag(T14, T68, half17_in_ga(T67, X218))
U48_ag(T14, T68, half17_out_ga(T67, X218)) → log21_out_ag(s(s(T14)), T68)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(0))))))) → U49_ag(T14, half17_in_aa(T14, s(s(T31))))
U49_ag(T14, half17_out_aa(T14, s(s(T31)))) → U50_ag(T14, half17_in_ga(T31, s(s(T40))))
U50_ag(T14, half17_out_ga(T31, s(s(T40)))) → U51_ag(T14, half17_in_ga(T40, s(s(T49))))
U51_ag(T14, half17_out_ga(T40, s(s(T49)))) → U52_ag(T14, half17_in_ga(T49, s(s(T58))))
U52_ag(T14, half17_out_ga(T49, s(s(T58)))) → U53_ag(T14, half17_in_ga(T58, s(s(T67))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U54_ag(T14, half17_in_gg(T67, 0))
U54_ag(T14, half17_out_gg(T67, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U55_ag(T14, half17_in_gg(T67, s(0)))
U55_ag(T14, half17_out_gg(T67, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
log21_in_ag(s(s(T14)), T77) → U56_ag(T14, T77, half17_in_aa(T14, s(s(T31))))
U56_ag(T14, T77, half17_out_aa(T14, s(s(T31)))) → U57_ag(T14, T77, half17_in_ga(T31, s(s(T40))))
U57_ag(T14, T77, half17_out_ga(T31, s(s(T40)))) → U58_ag(T14, T77, half17_in_ga(T40, s(s(T49))))
U58_ag(T14, T77, half17_out_ga(T40, s(s(T49)))) → U59_ag(T14, T77, half17_in_ga(T49, s(s(T58))))
U59_ag(T14, T77, half17_out_ga(T49, s(s(T58)))) → U60_ag(T14, T77, half17_in_ga(T58, s(s(T67))))
U60_ag(T14, T77, half17_out_ga(T58, s(s(T67)))) → U61_ag(T14, T77, half17_in_ga(T67, s(s(T76))))
U61_ag(T14, T77, half17_out_ga(T67, s(s(T76)))) → U62_ag(T14, T77, half17_in_ga(T76, X252))
U62_ag(T14, T77, half17_out_ga(T76, X252)) → log21_out_ag(s(s(T14)), T77)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → U63_ag(T14, half17_in_aa(T14, s(s(T31))))
U63_ag(T14, half17_out_aa(T14, s(s(T31)))) → U64_ag(T14, half17_in_ga(T31, s(s(T40))))
U64_ag(T14, half17_out_ga(T31, s(s(T40)))) → U65_ag(T14, half17_in_ga(T40, s(s(T49))))
U65_ag(T14, half17_out_ga(T40, s(s(T49)))) → U66_ag(T14, half17_in_ga(T49, s(s(T58))))
U66_ag(T14, half17_out_ga(T49, s(s(T58)))) → U67_ag(T14, half17_in_ga(T58, s(s(T67))))
U67_ag(T14, half17_out_ga(T58, s(s(T67)))) → U68_ag(T14, half17_in_ga(T67, s(s(T76))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U69_ag(T14, half17_in_gg(T76, 0))
U69_ag(T14, half17_out_gg(T76, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U70_ag(T14, half17_in_gg(T76, s(0)))
U70_ag(T14, half17_out_gg(T76, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
log21_in_ag(s(s(T14)), T86) → U71_ag(T14, T86, half17_in_aa(T14, s(s(T31))))
U71_ag(T14, T86, half17_out_aa(T14, s(s(T31)))) → U72_ag(T14, T86, half17_in_ga(T31, s(s(T40))))
U72_ag(T14, T86, half17_out_ga(T31, s(s(T40)))) → U73_ag(T14, T86, half17_in_ga(T40, s(s(T49))))
U73_ag(T14, T86, half17_out_ga(T40, s(s(T49)))) → U74_ag(T14, T86, half17_in_ga(T49, s(s(T58))))
U74_ag(T14, T86, half17_out_ga(T49, s(s(T58)))) → U75_ag(T14, T86, half17_in_ga(T58, s(s(T67))))
U75_ag(T14, T86, half17_out_ga(T58, s(s(T67)))) → U76_ag(T14, T86, half17_in_ga(T67, s(s(T76))))
U76_ag(T14, T86, half17_out_ga(T67, s(s(T76)))) → U77_ag(T14, T86, half17_in_ga(T76, s(s(T85))))
U77_ag(T14, T86, half17_out_ga(T76, s(s(T85)))) → U78_ag(T14, T86, p139_in_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86))
p139_in_gagg(T85, X286, T88, T86) → U3_gagg(T85, X286, T88, T86, half17_in_ga(T85, X286))
U3_gagg(T85, X286, T88, T86, half17_out_ga(T85, X286)) → p139_out_gagg(T85, X286, T88, T86)
p139_in_gagg(T85, 0, T98, s(T98)) → U4_gagg(T85, T98, half17_in_gg(T85, 0))
U4_gagg(T85, T98, half17_out_gg(T85, 0)) → p139_out_gagg(T85, 0, T98, s(T98))
p139_in_gagg(T85, s(0), T103, s(T103)) → U5_gagg(T85, T103, half17_in_gg(T85, s(0)))
U5_gagg(T85, T103, half17_out_gg(T85, s(0))) → p139_out_gagg(T85, s(0), T103, s(T103))
p139_in_gagg(T85, s(s(T110)), T111, T112) → U6_gagg(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
U6_gagg(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → U7_gagg(T85, T110, T111, T112, p139_in_gagg(T110, X323, s(T111), T112))
U7_gagg(T85, T110, T111, T112, p139_out_gagg(T110, X323, s(T111), T112)) → p139_out_gagg(T85, s(s(T110)), T111, T112)
U78_ag(T14, T86, p139_out_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86)) → log21_out_ag(s(s(T14)), T86)

The argument filtering Pi contains the following mapping:
log21_in_ag(x1, x2)  =  log21_in_ag(x2)
0  =  0
log21_out_ag(x1, x2)  =  log21_out_ag(x1)
U8_ag(x1, x2, x3)  =  U8_ag(x3)
half17_in_aa(x1, x2)  =  half17_in_aa
U2_aa(x1, x2, x3)  =  U2_aa(x3)
half22_in_aa(x1, x2)  =  half22_in_aa
half22_out_aa(x1, x2)  =  half22_out_aa(x1, x2)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
half17_out_aa(x1, x2)  =  half17_out_aa(x1, x2)
s(x1)  =  s(x1)
U9_ag(x1, x2)  =  U9_ag(x2)
half17_in_ag(x1, x2)  =  half17_in_ag(x2)
U2_ag(x1, x2, x3)  =  U2_ag(x3)
half22_in_ag(x1, x2)  =  half22_in_ag(x2)
half22_out_ag(x1, x2)  =  half22_out_ag(x1)
U1_ag(x1, x2, x3)  =  U1_ag(x3)
half17_out_ag(x1, x2)  =  half17_out_ag(x1)
U10_ag(x1, x2)  =  U10_ag(x2)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
U12_ag(x1, x2, x3)  =  U12_ag(x1, x3)
half17_in_ga(x1, x2)  =  half17_in_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x3)
half22_in_ga(x1, x2)  =  half22_in_ga(x1)
half22_out_ga(x1, x2)  =  half22_out_ga(x2)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
half17_out_ga(x1, x2)  =  half17_out_ga(x2)
U13_ag(x1, x2)  =  U13_ag(x2)
U14_ag(x1, x2)  =  U14_ag(x1, x2)
half17_in_gg(x1, x2)  =  half17_in_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x3)
half22_in_gg(x1, x2)  =  half22_in_gg(x1, x2)
half22_out_gg(x1, x2)  =  half22_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
half17_out_gg(x1, x2)  =  half17_out_gg
U15_ag(x1, x2)  =  U15_ag(x1, x2)
U16_ag(x1, x2, x3)  =  U16_ag(x3)
U17_ag(x1, x2, x3)  =  U17_ag(x1, x3)
U18_ag(x1, x2, x3)  =  U18_ag(x1, x3)
U19_ag(x1, x2)  =  U19_ag(x2)
U20_ag(x1, x2)  =  U20_ag(x1, x2)
U21_ag(x1, x2)  =  U21_ag(x1, x2)
U22_ag(x1, x2)  =  U22_ag(x1, x2)
U23_ag(x1, x2, x3)  =  U23_ag(x3)
U24_ag(x1, x2, x3)  =  U24_ag(x1, x3)
U25_ag(x1, x2, x3)  =  U25_ag(x1, x3)
U26_ag(x1, x2, x3)  =  U26_ag(x1, x3)
U27_ag(x1, x2)  =  U27_ag(x2)
U28_ag(x1, x2)  =  U28_ag(x1, x2)
U29_ag(x1, x2)  =  U29_ag(x1, x2)
U30_ag(x1, x2)  =  U30_ag(x1, x2)
U31_ag(x1, x2)  =  U31_ag(x1, x2)
U32_ag(x1, x2, x3)  =  U32_ag(x3)
U33_ag(x1, x2, x3)  =  U33_ag(x1, x3)
U34_ag(x1, x2, x3)  =  U34_ag(x1, x3)
U35_ag(x1, x2, x3)  =  U35_ag(x1, x3)
U36_ag(x1, x2, x3)  =  U36_ag(x1, x3)
U37_ag(x1, x2)  =  U37_ag(x2)
U38_ag(x1, x2)  =  U38_ag(x1, x2)
U39_ag(x1, x2)  =  U39_ag(x1, x2)
U40_ag(x1, x2)  =  U40_ag(x1, x2)
U41_ag(x1, x2)  =  U41_ag(x1, x2)
U42_ag(x1, x2)  =  U42_ag(x1, x2)
U43_ag(x1, x2, x3)  =  U43_ag(x3)
U44_ag(x1, x2, x3)  =  U44_ag(x1, x3)
U45_ag(x1, x2, x3)  =  U45_ag(x1, x3)
U46_ag(x1, x2, x3)  =  U46_ag(x1, x3)
U47_ag(x1, x2, x3)  =  U47_ag(x1, x3)
U48_ag(x1, x2, x3)  =  U48_ag(x1, x3)
U49_ag(x1, x2)  =  U49_ag(x2)
U50_ag(x1, x2)  =  U50_ag(x1, x2)
U51_ag(x1, x2)  =  U51_ag(x1, x2)
U52_ag(x1, x2)  =  U52_ag(x1, x2)
U53_ag(x1, x2)  =  U53_ag(x1, x2)
U54_ag(x1, x2)  =  U54_ag(x1, x2)
U55_ag(x1, x2)  =  U55_ag(x1, x2)
U56_ag(x1, x2, x3)  =  U56_ag(x3)
U57_ag(x1, x2, x3)  =  U57_ag(x1, x3)
U58_ag(x1, x2, x3)  =  U58_ag(x1, x3)
U59_ag(x1, x2, x3)  =  U59_ag(x1, x3)
U60_ag(x1, x2, x3)  =  U60_ag(x1, x3)
U61_ag(x1, x2, x3)  =  U61_ag(x1, x3)
U62_ag(x1, x2, x3)  =  U62_ag(x1, x3)
U63_ag(x1, x2)  =  U63_ag(x2)
U64_ag(x1, x2)  =  U64_ag(x1, x2)
U65_ag(x1, x2)  =  U65_ag(x1, x2)
U66_ag(x1, x2)  =  U66_ag(x1, x2)
U67_ag(x1, x2)  =  U67_ag(x1, x2)
U68_ag(x1, x2)  =  U68_ag(x1, x2)
U69_ag(x1, x2)  =  U69_ag(x1, x2)
U70_ag(x1, x2)  =  U70_ag(x1, x2)
U71_ag(x1, x2, x3)  =  U71_ag(x2, x3)
U72_ag(x1, x2, x3)  =  U72_ag(x1, x2, x3)
U73_ag(x1, x2, x3)  =  U73_ag(x1, x2, x3)
U74_ag(x1, x2, x3)  =  U74_ag(x1, x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x1, x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x1, x2, x3)
U77_ag(x1, x2, x3)  =  U77_ag(x1, x2, x3)
U78_ag(x1, x2, x3)  =  U78_ag(x1, x3)
p139_in_gagg(x1, x2, x3, x4)  =  p139_in_gagg(x1, x3, x4)
U3_gagg(x1, x2, x3, x4, x5)  =  U3_gagg(x5)
p139_out_gagg(x1, x2, x3, x4)  =  p139_out_gagg(x2)
U4_gagg(x1, x2, x3)  =  U4_gagg(x3)
U5_gagg(x1, x2, x3)  =  U5_gagg(x3)
U6_gagg(x1, x2, x3, x4, x5)  =  U6_gagg(x3, x4, x5)
U7_gagg(x1, x2, x3, x4, x5)  =  U7_gagg(x2, x5)
P139_IN_GAGG(x1, x2, x3, x4)  =  P139_IN_GAGG(x1, x3, x4)
U6_GAGG(x1, x2, x3, x4, x5)  =  U6_GAGG(x3, x4, x5)

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:

P139_IN_GAGG(T85, s(s(T110)), T111, T112) → U6_GAGG(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
U6_GAGG(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → P139_IN_GAGG(T110, X323, s(T111), T112)

The TRS R consists of the following rules:

half17_in_ga(T22, s(X46)) → U2_ga(T22, X46, half22_in_ga(T22, X46))
U2_ga(T22, X46, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
half22_in_ga(0, 0) → half22_out_ga(0, 0)
half22_in_ga(s(0), 0) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26)), s(X55)) → U1_ga(T26, X55, half22_in_ga(T26, X55))
U1_ga(T26, X55, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))

The argument filtering Pi contains the following mapping:
0  =  0
s(x1)  =  s(x1)
half17_in_ga(x1, x2)  =  half17_in_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x3)
half22_in_ga(x1, x2)  =  half22_in_ga(x1)
half22_out_ga(x1, x2)  =  half22_out_ga(x2)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
half17_out_ga(x1, x2)  =  half17_out_ga(x2)
P139_IN_GAGG(x1, x2, x3, x4)  =  P139_IN_GAGG(x1, x3, x4)
U6_GAGG(x1, x2, x3, x4, x5)  =  U6_GAGG(x3, x4, x5)

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:

P139_IN_GAGG(T85, T111, T112) → U6_GAGG(T111, T112, half17_in_ga(T85))
U6_GAGG(T111, T112, half17_out_ga(s(s(T110)))) → P139_IN_GAGG(T110, s(T111), T112)

The TRS R consists of the following rules:

half17_in_ga(T22) → U2_ga(half22_in_ga(T22))
U2_ga(half22_out_ga(X46)) → half17_out_ga(s(X46))
half22_in_ga(0) → half22_out_ga(0)
half22_in_ga(s(0)) → half22_out_ga(0)
half22_in_ga(s(s(T26))) → U1_ga(half22_in_ga(T26))
U1_ga(half22_out_ga(X55)) → half22_out_ga(s(X55))

The set Q consists of the following terms:

half17_in_ga(x0)
U2_ga(x0)
half22_in_ga(x0)
U1_ga(x0)

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

(77) MRRProof (EQUIVALENT transformation)

By using the rule removal processor [LPAR04] with the following ordering, at least one Dependency Pair or term rewrite system rule of this QDP problem can be strictly oriented.

Strictly oriented rules of the TRS R:

half22_in_ga(s(0)) → half22_out_ga(0)
half22_in_ga(s(s(T26))) → U1_ga(half22_in_ga(T26))
U1_ga(half22_out_ga(X55)) → half22_out_ga(s(X55))

Used ordering: Polynomial interpretation [POLO]:

POL(0) = 0   
POL(P139_IN_GAGG(x1, x2, x3)) = 2 + x1 + x2 + x3   
POL(U1_ga(x1)) = 3 + x1   
POL(U2_ga(x1)) = 2 + x1   
POL(U6_GAGG(x1, x2, x3)) = x1 + x2 + x3   
POL(half17_in_ga(x1)) = 2 + x1   
POL(half17_out_ga(x1)) = x1   
POL(half22_in_ga(x1)) = x1   
POL(half22_out_ga(x1)) = x1   
POL(s(x1)) = 2 + x1   

(78) Obligation:

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

P139_IN_GAGG(T85, T111, T112) → U6_GAGG(T111, T112, half17_in_ga(T85))
U6_GAGG(T111, T112, half17_out_ga(s(s(T110)))) → P139_IN_GAGG(T110, s(T111), T112)

The TRS R consists of the following rules:

half17_in_ga(T22) → U2_ga(half22_in_ga(T22))
U2_ga(half22_out_ga(X46)) → half17_out_ga(s(X46))
half22_in_ga(0) → half22_out_ga(0)

The set Q consists of the following terms:

half17_in_ga(x0)
U2_ga(x0)
half22_in_ga(x0)
U1_ga(x0)

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

(79) QReductionProof (EQUIVALENT transformation)

We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN].

U1_ga(x0)

(80) Obligation:

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

P139_IN_GAGG(T85, T111, T112) → U6_GAGG(T111, T112, half17_in_ga(T85))
U6_GAGG(T111, T112, half17_out_ga(s(s(T110)))) → P139_IN_GAGG(T110, s(T111), T112)

The TRS R consists of the following rules:

half17_in_ga(T22) → U2_ga(half22_in_ga(T22))
U2_ga(half22_out_ga(X46)) → half17_out_ga(s(X46))
half22_in_ga(0) → half22_out_ga(0)

The set Q consists of the following terms:

half17_in_ga(x0)
U2_ga(x0)
half22_in_ga(x0)

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

(81) MRRProof (EQUIVALENT transformation)

By using the rule removal processor [LPAR04] with the following ordering, at least one Dependency Pair or term rewrite system rule of this QDP problem can be strictly oriented.
Strictly oriented dependency pairs:

U6_GAGG(T111, T112, half17_out_ga(s(s(T110)))) → P139_IN_GAGG(T110, s(T111), T112)


Used ordering: Polynomial interpretation [POLO]:

POL(0) = 0   
POL(P139_IN_GAGG(x1, x2, x3)) = 2 + 2·x1 + x2 + x3   
POL(U2_ga(x1)) = 1 + x1   
POL(U6_GAGG(x1, x2, x3)) = x1 + x2 + 2·x3   
POL(half17_in_ga(x1)) = 1 + x1   
POL(half17_out_ga(x1)) = x1   
POL(half22_in_ga(x1)) = x1   
POL(half22_out_ga(x1)) = 2·x1   
POL(s(x1)) = 1 + x1   

(82) Obligation:

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

P139_IN_GAGG(T85, T111, T112) → U6_GAGG(T111, T112, half17_in_ga(T85))

The TRS R consists of the following rules:

half17_in_ga(T22) → U2_ga(half22_in_ga(T22))
U2_ga(half22_out_ga(X46)) → half17_out_ga(s(X46))
half22_in_ga(0) → half22_out_ga(0)

The set Q consists of the following terms:

half17_in_ga(x0)
U2_ga(x0)
half22_in_ga(x0)

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

(83) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 0 SCCs with 1 less node.

(84) TRUE

(85) Obligation:

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

HALF22_IN_AG(s(s(T26)), s(X55)) → HALF22_IN_AG(T26, X55)

The TRS R consists of the following rules:

log21_in_ag(0, 0) → log21_out_ag(0, 0)
log21_in_ag(s(0), 0) → log21_out_ag(s(0), 0)
log21_in_ag(s(s(T14)), T13) → U8_ag(T14, T13, half17_in_aa(T14, X28))
half17_in_aa(T22, s(X46)) → U2_aa(T22, X46, half22_in_aa(T22, X46))
half22_in_aa(0, 0) → half22_out_aa(0, 0)
half22_in_aa(s(0), 0) → half22_out_aa(s(0), 0)
half22_in_aa(s(s(T26)), s(X55)) → U1_aa(T26, X55, half22_in_aa(T26, X55))
U1_aa(T26, X55, half22_out_aa(T26, X55)) → half22_out_aa(s(s(T26)), s(X55))
U2_aa(T22, X46, half22_out_aa(T22, X46)) → half17_out_aa(T22, s(X46))
U8_ag(T14, T13, half17_out_aa(T14, X28)) → log21_out_ag(s(s(T14)), T13)
log21_in_ag(s(s(T14)), s(0)) → U9_ag(T14, half17_in_ag(T14, 0))
half17_in_ag(T22, s(X46)) → U2_ag(T22, X46, half22_in_ag(T22, X46))
half22_in_ag(0, 0) → half22_out_ag(0, 0)
half22_in_ag(s(0), 0) → half22_out_ag(s(0), 0)
half22_in_ag(s(s(T26)), s(X55)) → U1_ag(T26, X55, half22_in_ag(T26, X55))
U1_ag(T26, X55, half22_out_ag(T26, X55)) → half22_out_ag(s(s(T26)), s(X55))
U2_ag(T22, X46, half22_out_ag(T22, X46)) → half17_out_ag(T22, s(X46))
U9_ag(T14, half17_out_ag(T14, 0)) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), s(0)) → U10_ag(T14, half17_in_ag(T14, s(0)))
U10_ag(T14, half17_out_ag(T14, s(0))) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), T32) → U11_ag(T14, T32, half17_in_aa(T14, s(s(T31))))
U11_ag(T14, T32, half17_out_aa(T14, s(s(T31)))) → U12_ag(T14, T32, half17_in_ga(T31, X82))
half17_in_ga(T22, s(X46)) → U2_ga(T22, X46, half22_in_ga(T22, X46))
half22_in_ga(0, 0) → half22_out_ga(0, 0)
half22_in_ga(s(0), 0) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26)), s(X55)) → U1_ga(T26, X55, half22_in_ga(T26, X55))
U1_ga(T26, X55, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))
U2_ga(T22, X46, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
U12_ag(T14, T32, half17_out_ga(T31, X82)) → log21_out_ag(s(s(T14)), T32)
log21_in_ag(s(s(T14)), s(s(0))) → U13_ag(T14, half17_in_aa(T14, s(s(T31))))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U14_ag(T14, half17_in_gg(T31, 0))
half17_in_gg(T22, s(X46)) → U2_gg(T22, X46, half22_in_gg(T22, X46))
half22_in_gg(0, 0) → half22_out_gg(0, 0)
half22_in_gg(s(0), 0) → half22_out_gg(s(0), 0)
half22_in_gg(s(s(T26)), s(X55)) → U1_gg(T26, X55, half22_in_gg(T26, X55))
U1_gg(T26, X55, half22_out_gg(T26, X55)) → half22_out_gg(s(s(T26)), s(X55))
U2_gg(T22, X46, half22_out_gg(T22, X46)) → half17_out_gg(T22, s(X46))
U14_ag(T14, half17_out_gg(T31, 0)) → log21_out_ag(s(s(T14)), s(s(0)))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U15_ag(T14, half17_in_gg(T31, s(0)))
U15_ag(T14, half17_out_gg(T31, s(0))) → log21_out_ag(s(s(T14)), s(s(0)))
log21_in_ag(s(s(T14)), T41) → U16_ag(T14, T41, half17_in_aa(T14, s(s(T31))))
U16_ag(T14, T41, half17_out_aa(T14, s(s(T31)))) → U17_ag(T14, T41, half17_in_ga(T31, s(s(T40))))
U17_ag(T14, T41, half17_out_ga(T31, s(s(T40)))) → U18_ag(T14, T41, half17_in_ga(T40, X116))
U18_ag(T14, T41, half17_out_ga(T40, X116)) → log21_out_ag(s(s(T14)), T41)
log21_in_ag(s(s(T14)), s(s(s(0)))) → U19_ag(T14, half17_in_aa(T14, s(s(T31))))
U19_ag(T14, half17_out_aa(T14, s(s(T31)))) → U20_ag(T14, half17_in_ga(T31, s(s(T40))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U21_ag(T14, half17_in_gg(T40, 0))
U21_ag(T14, half17_out_gg(T40, 0)) → log21_out_ag(s(s(T14)), s(s(s(0))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U22_ag(T14, half17_in_gg(T40, s(0)))
U22_ag(T14, half17_out_gg(T40, s(0))) → log21_out_ag(s(s(T14)), s(s(s(0))))
log21_in_ag(s(s(T14)), T50) → U23_ag(T14, T50, half17_in_aa(T14, s(s(T31))))
U23_ag(T14, T50, half17_out_aa(T14, s(s(T31)))) → U24_ag(T14, T50, half17_in_ga(T31, s(s(T40))))
U24_ag(T14, T50, half17_out_ga(T31, s(s(T40)))) → U25_ag(T14, T50, half17_in_ga(T40, s(s(T49))))
U25_ag(T14, T50, half17_out_ga(T40, s(s(T49)))) → U26_ag(T14, T50, half17_in_ga(T49, X150))
U26_ag(T14, T50, half17_out_ga(T49, X150)) → log21_out_ag(s(s(T14)), T50)
log21_in_ag(s(s(T14)), s(s(s(s(0))))) → U27_ag(T14, half17_in_aa(T14, s(s(T31))))
U27_ag(T14, half17_out_aa(T14, s(s(T31)))) → U28_ag(T14, half17_in_ga(T31, s(s(T40))))
U28_ag(T14, half17_out_ga(T31, s(s(T40)))) → U29_ag(T14, half17_in_ga(T40, s(s(T49))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U30_ag(T14, half17_in_gg(T49, 0))
U30_ag(T14, half17_out_gg(T49, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U31_ag(T14, half17_in_gg(T49, s(0)))
U31_ag(T14, half17_out_gg(T49, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
log21_in_ag(s(s(T14)), T59) → U32_ag(T14, T59, half17_in_aa(T14, s(s(T31))))
U32_ag(T14, T59, half17_out_aa(T14, s(s(T31)))) → U33_ag(T14, T59, half17_in_ga(T31, s(s(T40))))
U33_ag(T14, T59, half17_out_ga(T31, s(s(T40)))) → U34_ag(T14, T59, half17_in_ga(T40, s(s(T49))))
U34_ag(T14, T59, half17_out_ga(T40, s(s(T49)))) → U35_ag(T14, T59, half17_in_ga(T49, s(s(T58))))
U35_ag(T14, T59, half17_out_ga(T49, s(s(T58)))) → U36_ag(T14, T59, half17_in_ga(T58, X184))
U36_ag(T14, T59, half17_out_ga(T58, X184)) → log21_out_ag(s(s(T14)), T59)
log21_in_ag(s(s(T14)), s(s(s(s(s(0)))))) → U37_ag(T14, half17_in_aa(T14, s(s(T31))))
U37_ag(T14, half17_out_aa(T14, s(s(T31)))) → U38_ag(T14, half17_in_ga(T31, s(s(T40))))
U38_ag(T14, half17_out_ga(T31, s(s(T40)))) → U39_ag(T14, half17_in_ga(T40, s(s(T49))))
U39_ag(T14, half17_out_ga(T40, s(s(T49)))) → U40_ag(T14, half17_in_ga(T49, s(s(T58))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U41_ag(T14, half17_in_gg(T58, 0))
U41_ag(T14, half17_out_gg(T58, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U42_ag(T14, half17_in_gg(T58, s(0)))
U42_ag(T14, half17_out_gg(T58, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
log21_in_ag(s(s(T14)), T68) → U43_ag(T14, T68, half17_in_aa(T14, s(s(T31))))
U43_ag(T14, T68, half17_out_aa(T14, s(s(T31)))) → U44_ag(T14, T68, half17_in_ga(T31, s(s(T40))))
U44_ag(T14, T68, half17_out_ga(T31, s(s(T40)))) → U45_ag(T14, T68, half17_in_ga(T40, s(s(T49))))
U45_ag(T14, T68, half17_out_ga(T40, s(s(T49)))) → U46_ag(T14, T68, half17_in_ga(T49, s(s(T58))))
U46_ag(T14, T68, half17_out_ga(T49, s(s(T58)))) → U47_ag(T14, T68, half17_in_ga(T58, s(s(T67))))
U47_ag(T14, T68, half17_out_ga(T58, s(s(T67)))) → U48_ag(T14, T68, half17_in_ga(T67, X218))
U48_ag(T14, T68, half17_out_ga(T67, X218)) → log21_out_ag(s(s(T14)), T68)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(0))))))) → U49_ag(T14, half17_in_aa(T14, s(s(T31))))
U49_ag(T14, half17_out_aa(T14, s(s(T31)))) → U50_ag(T14, half17_in_ga(T31, s(s(T40))))
U50_ag(T14, half17_out_ga(T31, s(s(T40)))) → U51_ag(T14, half17_in_ga(T40, s(s(T49))))
U51_ag(T14, half17_out_ga(T40, s(s(T49)))) → U52_ag(T14, half17_in_ga(T49, s(s(T58))))
U52_ag(T14, half17_out_ga(T49, s(s(T58)))) → U53_ag(T14, half17_in_ga(T58, s(s(T67))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U54_ag(T14, half17_in_gg(T67, 0))
U54_ag(T14, half17_out_gg(T67, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U55_ag(T14, half17_in_gg(T67, s(0)))
U55_ag(T14, half17_out_gg(T67, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
log21_in_ag(s(s(T14)), T77) → U56_ag(T14, T77, half17_in_aa(T14, s(s(T31))))
U56_ag(T14, T77, half17_out_aa(T14, s(s(T31)))) → U57_ag(T14, T77, half17_in_ga(T31, s(s(T40))))
U57_ag(T14, T77, half17_out_ga(T31, s(s(T40)))) → U58_ag(T14, T77, half17_in_ga(T40, s(s(T49))))
U58_ag(T14, T77, half17_out_ga(T40, s(s(T49)))) → U59_ag(T14, T77, half17_in_ga(T49, s(s(T58))))
U59_ag(T14, T77, half17_out_ga(T49, s(s(T58)))) → U60_ag(T14, T77, half17_in_ga(T58, s(s(T67))))
U60_ag(T14, T77, half17_out_ga(T58, s(s(T67)))) → U61_ag(T14, T77, half17_in_ga(T67, s(s(T76))))
U61_ag(T14, T77, half17_out_ga(T67, s(s(T76)))) → U62_ag(T14, T77, half17_in_ga(T76, X252))
U62_ag(T14, T77, half17_out_ga(T76, X252)) → log21_out_ag(s(s(T14)), T77)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → U63_ag(T14, half17_in_aa(T14, s(s(T31))))
U63_ag(T14, half17_out_aa(T14, s(s(T31)))) → U64_ag(T14, half17_in_ga(T31, s(s(T40))))
U64_ag(T14, half17_out_ga(T31, s(s(T40)))) → U65_ag(T14, half17_in_ga(T40, s(s(T49))))
U65_ag(T14, half17_out_ga(T40, s(s(T49)))) → U66_ag(T14, half17_in_ga(T49, s(s(T58))))
U66_ag(T14, half17_out_ga(T49, s(s(T58)))) → U67_ag(T14, half17_in_ga(T58, s(s(T67))))
U67_ag(T14, half17_out_ga(T58, s(s(T67)))) → U68_ag(T14, half17_in_ga(T67, s(s(T76))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U69_ag(T14, half17_in_gg(T76, 0))
U69_ag(T14, half17_out_gg(T76, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U70_ag(T14, half17_in_gg(T76, s(0)))
U70_ag(T14, half17_out_gg(T76, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
log21_in_ag(s(s(T14)), T86) → U71_ag(T14, T86, half17_in_aa(T14, s(s(T31))))
U71_ag(T14, T86, half17_out_aa(T14, s(s(T31)))) → U72_ag(T14, T86, half17_in_ga(T31, s(s(T40))))
U72_ag(T14, T86, half17_out_ga(T31, s(s(T40)))) → U73_ag(T14, T86, half17_in_ga(T40, s(s(T49))))
U73_ag(T14, T86, half17_out_ga(T40, s(s(T49)))) → U74_ag(T14, T86, half17_in_ga(T49, s(s(T58))))
U74_ag(T14, T86, half17_out_ga(T49, s(s(T58)))) → U75_ag(T14, T86, half17_in_ga(T58, s(s(T67))))
U75_ag(T14, T86, half17_out_ga(T58, s(s(T67)))) → U76_ag(T14, T86, half17_in_ga(T67, s(s(T76))))
U76_ag(T14, T86, half17_out_ga(T67, s(s(T76)))) → U77_ag(T14, T86, half17_in_ga(T76, s(s(T85))))
U77_ag(T14, T86, half17_out_ga(T76, s(s(T85)))) → U78_ag(T14, T86, p139_in_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86))
p139_in_gagg(T85, X286, T88, T86) → U3_gagg(T85, X286, T88, T86, half17_in_ga(T85, X286))
U3_gagg(T85, X286, T88, T86, half17_out_ga(T85, X286)) → p139_out_gagg(T85, X286, T88, T86)
p139_in_gagg(T85, 0, T98, s(T98)) → U4_gagg(T85, T98, half17_in_gg(T85, 0))
U4_gagg(T85, T98, half17_out_gg(T85, 0)) → p139_out_gagg(T85, 0, T98, s(T98))
p139_in_gagg(T85, s(0), T103, s(T103)) → U5_gagg(T85, T103, half17_in_gg(T85, s(0)))
U5_gagg(T85, T103, half17_out_gg(T85, s(0))) → p139_out_gagg(T85, s(0), T103, s(T103))
p139_in_gagg(T85, s(s(T110)), T111, T112) → U6_gagg(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
U6_gagg(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → U7_gagg(T85, T110, T111, T112, p139_in_gagg(T110, X323, s(T111), T112))
U7_gagg(T85, T110, T111, T112, p139_out_gagg(T110, X323, s(T111), T112)) → p139_out_gagg(T85, s(s(T110)), T111, T112)
U78_ag(T14, T86, p139_out_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86)) → log21_out_ag(s(s(T14)), T86)

The argument filtering Pi contains the following mapping:
log21_in_ag(x1, x2)  =  log21_in_ag(x2)
0  =  0
log21_out_ag(x1, x2)  =  log21_out_ag(x1)
U8_ag(x1, x2, x3)  =  U8_ag(x3)
half17_in_aa(x1, x2)  =  half17_in_aa
U2_aa(x1, x2, x3)  =  U2_aa(x3)
half22_in_aa(x1, x2)  =  half22_in_aa
half22_out_aa(x1, x2)  =  half22_out_aa(x1, x2)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
half17_out_aa(x1, x2)  =  half17_out_aa(x1, x2)
s(x1)  =  s(x1)
U9_ag(x1, x2)  =  U9_ag(x2)
half17_in_ag(x1, x2)  =  half17_in_ag(x2)
U2_ag(x1, x2, x3)  =  U2_ag(x3)
half22_in_ag(x1, x2)  =  half22_in_ag(x2)
half22_out_ag(x1, x2)  =  half22_out_ag(x1)
U1_ag(x1, x2, x3)  =  U1_ag(x3)
half17_out_ag(x1, x2)  =  half17_out_ag(x1)
U10_ag(x1, x2)  =  U10_ag(x2)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
U12_ag(x1, x2, x3)  =  U12_ag(x1, x3)
half17_in_ga(x1, x2)  =  half17_in_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x3)
half22_in_ga(x1, x2)  =  half22_in_ga(x1)
half22_out_ga(x1, x2)  =  half22_out_ga(x2)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
half17_out_ga(x1, x2)  =  half17_out_ga(x2)
U13_ag(x1, x2)  =  U13_ag(x2)
U14_ag(x1, x2)  =  U14_ag(x1, x2)
half17_in_gg(x1, x2)  =  half17_in_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x3)
half22_in_gg(x1, x2)  =  half22_in_gg(x1, x2)
half22_out_gg(x1, x2)  =  half22_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
half17_out_gg(x1, x2)  =  half17_out_gg
U15_ag(x1, x2)  =  U15_ag(x1, x2)
U16_ag(x1, x2, x3)  =  U16_ag(x3)
U17_ag(x1, x2, x3)  =  U17_ag(x1, x3)
U18_ag(x1, x2, x3)  =  U18_ag(x1, x3)
U19_ag(x1, x2)  =  U19_ag(x2)
U20_ag(x1, x2)  =  U20_ag(x1, x2)
U21_ag(x1, x2)  =  U21_ag(x1, x2)
U22_ag(x1, x2)  =  U22_ag(x1, x2)
U23_ag(x1, x2, x3)  =  U23_ag(x3)
U24_ag(x1, x2, x3)  =  U24_ag(x1, x3)
U25_ag(x1, x2, x3)  =  U25_ag(x1, x3)
U26_ag(x1, x2, x3)  =  U26_ag(x1, x3)
U27_ag(x1, x2)  =  U27_ag(x2)
U28_ag(x1, x2)  =  U28_ag(x1, x2)
U29_ag(x1, x2)  =  U29_ag(x1, x2)
U30_ag(x1, x2)  =  U30_ag(x1, x2)
U31_ag(x1, x2)  =  U31_ag(x1, x2)
U32_ag(x1, x2, x3)  =  U32_ag(x3)
U33_ag(x1, x2, x3)  =  U33_ag(x1, x3)
U34_ag(x1, x2, x3)  =  U34_ag(x1, x3)
U35_ag(x1, x2, x3)  =  U35_ag(x1, x3)
U36_ag(x1, x2, x3)  =  U36_ag(x1, x3)
U37_ag(x1, x2)  =  U37_ag(x2)
U38_ag(x1, x2)  =  U38_ag(x1, x2)
U39_ag(x1, x2)  =  U39_ag(x1, x2)
U40_ag(x1, x2)  =  U40_ag(x1, x2)
U41_ag(x1, x2)  =  U41_ag(x1, x2)
U42_ag(x1, x2)  =  U42_ag(x1, x2)
U43_ag(x1, x2, x3)  =  U43_ag(x3)
U44_ag(x1, x2, x3)  =  U44_ag(x1, x3)
U45_ag(x1, x2, x3)  =  U45_ag(x1, x3)
U46_ag(x1, x2, x3)  =  U46_ag(x1, x3)
U47_ag(x1, x2, x3)  =  U47_ag(x1, x3)
U48_ag(x1, x2, x3)  =  U48_ag(x1, x3)
U49_ag(x1, x2)  =  U49_ag(x2)
U50_ag(x1, x2)  =  U50_ag(x1, x2)
U51_ag(x1, x2)  =  U51_ag(x1, x2)
U52_ag(x1, x2)  =  U52_ag(x1, x2)
U53_ag(x1, x2)  =  U53_ag(x1, x2)
U54_ag(x1, x2)  =  U54_ag(x1, x2)
U55_ag(x1, x2)  =  U55_ag(x1, x2)
U56_ag(x1, x2, x3)  =  U56_ag(x3)
U57_ag(x1, x2, x3)  =  U57_ag(x1, x3)
U58_ag(x1, x2, x3)  =  U58_ag(x1, x3)
U59_ag(x1, x2, x3)  =  U59_ag(x1, x3)
U60_ag(x1, x2, x3)  =  U60_ag(x1, x3)
U61_ag(x1, x2, x3)  =  U61_ag(x1, x3)
U62_ag(x1, x2, x3)  =  U62_ag(x1, x3)
U63_ag(x1, x2)  =  U63_ag(x2)
U64_ag(x1, x2)  =  U64_ag(x1, x2)
U65_ag(x1, x2)  =  U65_ag(x1, x2)
U66_ag(x1, x2)  =  U66_ag(x1, x2)
U67_ag(x1, x2)  =  U67_ag(x1, x2)
U68_ag(x1, x2)  =  U68_ag(x1, x2)
U69_ag(x1, x2)  =  U69_ag(x1, x2)
U70_ag(x1, x2)  =  U70_ag(x1, x2)
U71_ag(x1, x2, x3)  =  U71_ag(x2, x3)
U72_ag(x1, x2, x3)  =  U72_ag(x1, x2, x3)
U73_ag(x1, x2, x3)  =  U73_ag(x1, x2, x3)
U74_ag(x1, x2, x3)  =  U74_ag(x1, x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x1, x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x1, x2, x3)
U77_ag(x1, x2, x3)  =  U77_ag(x1, x2, x3)
U78_ag(x1, x2, x3)  =  U78_ag(x1, x3)
p139_in_gagg(x1, x2, x3, x4)  =  p139_in_gagg(x1, x3, x4)
U3_gagg(x1, x2, x3, x4, x5)  =  U3_gagg(x5)
p139_out_gagg(x1, x2, x3, x4)  =  p139_out_gagg(x2)
U4_gagg(x1, x2, x3)  =  U4_gagg(x3)
U5_gagg(x1, x2, x3)  =  U5_gagg(x3)
U6_gagg(x1, x2, x3, x4, x5)  =  U6_gagg(x3, x4, x5)
U7_gagg(x1, x2, x3, x4, x5)  =  U7_gagg(x2, x5)
HALF22_IN_AG(x1, x2)  =  HALF22_IN_AG(x2)

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

(86) UsableRulesProof (EQUIVALENT transformation)

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

(87) Obligation:

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

HALF22_IN_AG(s(s(T26)), s(X55)) → HALF22_IN_AG(T26, X55)

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

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

(88) PiDPToQDPProof (SOUND transformation)

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

(89) Obligation:

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

HALF22_IN_AG(s(X55)) → HALF22_IN_AG(X55)

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

(90) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • HALF22_IN_AG(s(X55)) → HALF22_IN_AG(X55)
    The graph contains the following edges 1 > 1

(91) YES

(92) Obligation:

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

HALF22_IN_AA(s(s(T26)), s(X55)) → HALF22_IN_AA(T26, X55)

The TRS R consists of the following rules:

log21_in_ag(0, 0) → log21_out_ag(0, 0)
log21_in_ag(s(0), 0) → log21_out_ag(s(0), 0)
log21_in_ag(s(s(T14)), T13) → U8_ag(T14, T13, half17_in_aa(T14, X28))
half17_in_aa(T22, s(X46)) → U2_aa(T22, X46, half22_in_aa(T22, X46))
half22_in_aa(0, 0) → half22_out_aa(0, 0)
half22_in_aa(s(0), 0) → half22_out_aa(s(0), 0)
half22_in_aa(s(s(T26)), s(X55)) → U1_aa(T26, X55, half22_in_aa(T26, X55))
U1_aa(T26, X55, half22_out_aa(T26, X55)) → half22_out_aa(s(s(T26)), s(X55))
U2_aa(T22, X46, half22_out_aa(T22, X46)) → half17_out_aa(T22, s(X46))
U8_ag(T14, T13, half17_out_aa(T14, X28)) → log21_out_ag(s(s(T14)), T13)
log21_in_ag(s(s(T14)), s(0)) → U9_ag(T14, half17_in_ag(T14, 0))
half17_in_ag(T22, s(X46)) → U2_ag(T22, X46, half22_in_ag(T22, X46))
half22_in_ag(0, 0) → half22_out_ag(0, 0)
half22_in_ag(s(0), 0) → half22_out_ag(s(0), 0)
half22_in_ag(s(s(T26)), s(X55)) → U1_ag(T26, X55, half22_in_ag(T26, X55))
U1_ag(T26, X55, half22_out_ag(T26, X55)) → half22_out_ag(s(s(T26)), s(X55))
U2_ag(T22, X46, half22_out_ag(T22, X46)) → half17_out_ag(T22, s(X46))
U9_ag(T14, half17_out_ag(T14, 0)) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), s(0)) → U10_ag(T14, half17_in_ag(T14, s(0)))
U10_ag(T14, half17_out_ag(T14, s(0))) → log21_out_ag(s(s(T14)), s(0))
log21_in_ag(s(s(T14)), T32) → U11_ag(T14, T32, half17_in_aa(T14, s(s(T31))))
U11_ag(T14, T32, half17_out_aa(T14, s(s(T31)))) → U12_ag(T14, T32, half17_in_ga(T31, X82))
half17_in_ga(T22, s(X46)) → U2_ga(T22, X46, half22_in_ga(T22, X46))
half22_in_ga(0, 0) → half22_out_ga(0, 0)
half22_in_ga(s(0), 0) → half22_out_ga(s(0), 0)
half22_in_ga(s(s(T26)), s(X55)) → U1_ga(T26, X55, half22_in_ga(T26, X55))
U1_ga(T26, X55, half22_out_ga(T26, X55)) → half22_out_ga(s(s(T26)), s(X55))
U2_ga(T22, X46, half22_out_ga(T22, X46)) → half17_out_ga(T22, s(X46))
U12_ag(T14, T32, half17_out_ga(T31, X82)) → log21_out_ag(s(s(T14)), T32)
log21_in_ag(s(s(T14)), s(s(0))) → U13_ag(T14, half17_in_aa(T14, s(s(T31))))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U14_ag(T14, half17_in_gg(T31, 0))
half17_in_gg(T22, s(X46)) → U2_gg(T22, X46, half22_in_gg(T22, X46))
half22_in_gg(0, 0) → half22_out_gg(0, 0)
half22_in_gg(s(0), 0) → half22_out_gg(s(0), 0)
half22_in_gg(s(s(T26)), s(X55)) → U1_gg(T26, X55, half22_in_gg(T26, X55))
U1_gg(T26, X55, half22_out_gg(T26, X55)) → half22_out_gg(s(s(T26)), s(X55))
U2_gg(T22, X46, half22_out_gg(T22, X46)) → half17_out_gg(T22, s(X46))
U14_ag(T14, half17_out_gg(T31, 0)) → log21_out_ag(s(s(T14)), s(s(0)))
U13_ag(T14, half17_out_aa(T14, s(s(T31)))) → U15_ag(T14, half17_in_gg(T31, s(0)))
U15_ag(T14, half17_out_gg(T31, s(0))) → log21_out_ag(s(s(T14)), s(s(0)))
log21_in_ag(s(s(T14)), T41) → U16_ag(T14, T41, half17_in_aa(T14, s(s(T31))))
U16_ag(T14, T41, half17_out_aa(T14, s(s(T31)))) → U17_ag(T14, T41, half17_in_ga(T31, s(s(T40))))
U17_ag(T14, T41, half17_out_ga(T31, s(s(T40)))) → U18_ag(T14, T41, half17_in_ga(T40, X116))
U18_ag(T14, T41, half17_out_ga(T40, X116)) → log21_out_ag(s(s(T14)), T41)
log21_in_ag(s(s(T14)), s(s(s(0)))) → U19_ag(T14, half17_in_aa(T14, s(s(T31))))
U19_ag(T14, half17_out_aa(T14, s(s(T31)))) → U20_ag(T14, half17_in_ga(T31, s(s(T40))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U21_ag(T14, half17_in_gg(T40, 0))
U21_ag(T14, half17_out_gg(T40, 0)) → log21_out_ag(s(s(T14)), s(s(s(0))))
U20_ag(T14, half17_out_ga(T31, s(s(T40)))) → U22_ag(T14, half17_in_gg(T40, s(0)))
U22_ag(T14, half17_out_gg(T40, s(0))) → log21_out_ag(s(s(T14)), s(s(s(0))))
log21_in_ag(s(s(T14)), T50) → U23_ag(T14, T50, half17_in_aa(T14, s(s(T31))))
U23_ag(T14, T50, half17_out_aa(T14, s(s(T31)))) → U24_ag(T14, T50, half17_in_ga(T31, s(s(T40))))
U24_ag(T14, T50, half17_out_ga(T31, s(s(T40)))) → U25_ag(T14, T50, half17_in_ga(T40, s(s(T49))))
U25_ag(T14, T50, half17_out_ga(T40, s(s(T49)))) → U26_ag(T14, T50, half17_in_ga(T49, X150))
U26_ag(T14, T50, half17_out_ga(T49, X150)) → log21_out_ag(s(s(T14)), T50)
log21_in_ag(s(s(T14)), s(s(s(s(0))))) → U27_ag(T14, half17_in_aa(T14, s(s(T31))))
U27_ag(T14, half17_out_aa(T14, s(s(T31)))) → U28_ag(T14, half17_in_ga(T31, s(s(T40))))
U28_ag(T14, half17_out_ga(T31, s(s(T40)))) → U29_ag(T14, half17_in_ga(T40, s(s(T49))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U30_ag(T14, half17_in_gg(T49, 0))
U30_ag(T14, half17_out_gg(T49, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
U29_ag(T14, half17_out_ga(T40, s(s(T49)))) → U31_ag(T14, half17_in_gg(T49, s(0)))
U31_ag(T14, half17_out_gg(T49, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(0)))))
log21_in_ag(s(s(T14)), T59) → U32_ag(T14, T59, half17_in_aa(T14, s(s(T31))))
U32_ag(T14, T59, half17_out_aa(T14, s(s(T31)))) → U33_ag(T14, T59, half17_in_ga(T31, s(s(T40))))
U33_ag(T14, T59, half17_out_ga(T31, s(s(T40)))) → U34_ag(T14, T59, half17_in_ga(T40, s(s(T49))))
U34_ag(T14, T59, half17_out_ga(T40, s(s(T49)))) → U35_ag(T14, T59, half17_in_ga(T49, s(s(T58))))
U35_ag(T14, T59, half17_out_ga(T49, s(s(T58)))) → U36_ag(T14, T59, half17_in_ga(T58, X184))
U36_ag(T14, T59, half17_out_ga(T58, X184)) → log21_out_ag(s(s(T14)), T59)
log21_in_ag(s(s(T14)), s(s(s(s(s(0)))))) → U37_ag(T14, half17_in_aa(T14, s(s(T31))))
U37_ag(T14, half17_out_aa(T14, s(s(T31)))) → U38_ag(T14, half17_in_ga(T31, s(s(T40))))
U38_ag(T14, half17_out_ga(T31, s(s(T40)))) → U39_ag(T14, half17_in_ga(T40, s(s(T49))))
U39_ag(T14, half17_out_ga(T40, s(s(T49)))) → U40_ag(T14, half17_in_ga(T49, s(s(T58))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U41_ag(T14, half17_in_gg(T58, 0))
U41_ag(T14, half17_out_gg(T58, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
U40_ag(T14, half17_out_ga(T49, s(s(T58)))) → U42_ag(T14, half17_in_gg(T58, s(0)))
U42_ag(T14, half17_out_gg(T58, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(0))))))
log21_in_ag(s(s(T14)), T68) → U43_ag(T14, T68, half17_in_aa(T14, s(s(T31))))
U43_ag(T14, T68, half17_out_aa(T14, s(s(T31)))) → U44_ag(T14, T68, half17_in_ga(T31, s(s(T40))))
U44_ag(T14, T68, half17_out_ga(T31, s(s(T40)))) → U45_ag(T14, T68, half17_in_ga(T40, s(s(T49))))
U45_ag(T14, T68, half17_out_ga(T40, s(s(T49)))) → U46_ag(T14, T68, half17_in_ga(T49, s(s(T58))))
U46_ag(T14, T68, half17_out_ga(T49, s(s(T58)))) → U47_ag(T14, T68, half17_in_ga(T58, s(s(T67))))
U47_ag(T14, T68, half17_out_ga(T58, s(s(T67)))) → U48_ag(T14, T68, half17_in_ga(T67, X218))
U48_ag(T14, T68, half17_out_ga(T67, X218)) → log21_out_ag(s(s(T14)), T68)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(0))))))) → U49_ag(T14, half17_in_aa(T14, s(s(T31))))
U49_ag(T14, half17_out_aa(T14, s(s(T31)))) → U50_ag(T14, half17_in_ga(T31, s(s(T40))))
U50_ag(T14, half17_out_ga(T31, s(s(T40)))) → U51_ag(T14, half17_in_ga(T40, s(s(T49))))
U51_ag(T14, half17_out_ga(T40, s(s(T49)))) → U52_ag(T14, half17_in_ga(T49, s(s(T58))))
U52_ag(T14, half17_out_ga(T49, s(s(T58)))) → U53_ag(T14, half17_in_ga(T58, s(s(T67))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U54_ag(T14, half17_in_gg(T67, 0))
U54_ag(T14, half17_out_gg(T67, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
U53_ag(T14, half17_out_ga(T58, s(s(T67)))) → U55_ag(T14, half17_in_gg(T67, s(0)))
U55_ag(T14, half17_out_gg(T67, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(0)))))))
log21_in_ag(s(s(T14)), T77) → U56_ag(T14, T77, half17_in_aa(T14, s(s(T31))))
U56_ag(T14, T77, half17_out_aa(T14, s(s(T31)))) → U57_ag(T14, T77, half17_in_ga(T31, s(s(T40))))
U57_ag(T14, T77, half17_out_ga(T31, s(s(T40)))) → U58_ag(T14, T77, half17_in_ga(T40, s(s(T49))))
U58_ag(T14, T77, half17_out_ga(T40, s(s(T49)))) → U59_ag(T14, T77, half17_in_ga(T49, s(s(T58))))
U59_ag(T14, T77, half17_out_ga(T49, s(s(T58)))) → U60_ag(T14, T77, half17_in_ga(T58, s(s(T67))))
U60_ag(T14, T77, half17_out_ga(T58, s(s(T67)))) → U61_ag(T14, T77, half17_in_ga(T67, s(s(T76))))
U61_ag(T14, T77, half17_out_ga(T67, s(s(T76)))) → U62_ag(T14, T77, half17_in_ga(T76, X252))
U62_ag(T14, T77, half17_out_ga(T76, X252)) → log21_out_ag(s(s(T14)), T77)
log21_in_ag(s(s(T14)), s(s(s(s(s(s(s(0)))))))) → U63_ag(T14, half17_in_aa(T14, s(s(T31))))
U63_ag(T14, half17_out_aa(T14, s(s(T31)))) → U64_ag(T14, half17_in_ga(T31, s(s(T40))))
U64_ag(T14, half17_out_ga(T31, s(s(T40)))) → U65_ag(T14, half17_in_ga(T40, s(s(T49))))
U65_ag(T14, half17_out_ga(T40, s(s(T49)))) → U66_ag(T14, half17_in_ga(T49, s(s(T58))))
U66_ag(T14, half17_out_ga(T49, s(s(T58)))) → U67_ag(T14, half17_in_ga(T58, s(s(T67))))
U67_ag(T14, half17_out_ga(T58, s(s(T67)))) → U68_ag(T14, half17_in_ga(T67, s(s(T76))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U69_ag(T14, half17_in_gg(T76, 0))
U69_ag(T14, half17_out_gg(T76, 0)) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
U68_ag(T14, half17_out_ga(T67, s(s(T76)))) → U70_ag(T14, half17_in_gg(T76, s(0)))
U70_ag(T14, half17_out_gg(T76, s(0))) → log21_out_ag(s(s(T14)), s(s(s(s(s(s(s(0))))))))
log21_in_ag(s(s(T14)), T86) → U71_ag(T14, T86, half17_in_aa(T14, s(s(T31))))
U71_ag(T14, T86, half17_out_aa(T14, s(s(T31)))) → U72_ag(T14, T86, half17_in_ga(T31, s(s(T40))))
U72_ag(T14, T86, half17_out_ga(T31, s(s(T40)))) → U73_ag(T14, T86, half17_in_ga(T40, s(s(T49))))
U73_ag(T14, T86, half17_out_ga(T40, s(s(T49)))) → U74_ag(T14, T86, half17_in_ga(T49, s(s(T58))))
U74_ag(T14, T86, half17_out_ga(T49, s(s(T58)))) → U75_ag(T14, T86, half17_in_ga(T58, s(s(T67))))
U75_ag(T14, T86, half17_out_ga(T58, s(s(T67)))) → U76_ag(T14, T86, half17_in_ga(T67, s(s(T76))))
U76_ag(T14, T86, half17_out_ga(T67, s(s(T76)))) → U77_ag(T14, T86, half17_in_ga(T76, s(s(T85))))
U77_ag(T14, T86, half17_out_ga(T76, s(s(T85)))) → U78_ag(T14, T86, p139_in_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86))
p139_in_gagg(T85, X286, T88, T86) → U3_gagg(T85, X286, T88, T86, half17_in_ga(T85, X286))
U3_gagg(T85, X286, T88, T86, half17_out_ga(T85, X286)) → p139_out_gagg(T85, X286, T88, T86)
p139_in_gagg(T85, 0, T98, s(T98)) → U4_gagg(T85, T98, half17_in_gg(T85, 0))
U4_gagg(T85, T98, half17_out_gg(T85, 0)) → p139_out_gagg(T85, 0, T98, s(T98))
p139_in_gagg(T85, s(0), T103, s(T103)) → U5_gagg(T85, T103, half17_in_gg(T85, s(0)))
U5_gagg(T85, T103, half17_out_gg(T85, s(0))) → p139_out_gagg(T85, s(0), T103, s(T103))
p139_in_gagg(T85, s(s(T110)), T111, T112) → U6_gagg(T85, T110, T111, T112, half17_in_ga(T85, s(s(T110))))
U6_gagg(T85, T110, T111, T112, half17_out_ga(T85, s(s(T110)))) → U7_gagg(T85, T110, T111, T112, p139_in_gagg(T110, X323, s(T111), T112))
U7_gagg(T85, T110, T111, T112, p139_out_gagg(T110, X323, s(T111), T112)) → p139_out_gagg(T85, s(s(T110)), T111, T112)
U78_ag(T14, T86, p139_out_gagg(T85, X286, s(s(s(s(s(s(s(0))))))), T86)) → log21_out_ag(s(s(T14)), T86)

The argument filtering Pi contains the following mapping:
log21_in_ag(x1, x2)  =  log21_in_ag(x2)
0  =  0
log21_out_ag(x1, x2)  =  log21_out_ag(x1)
U8_ag(x1, x2, x3)  =  U8_ag(x3)
half17_in_aa(x1, x2)  =  half17_in_aa
U2_aa(x1, x2, x3)  =  U2_aa(x3)
half22_in_aa(x1, x2)  =  half22_in_aa
half22_out_aa(x1, x2)  =  half22_out_aa(x1, x2)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
half17_out_aa(x1, x2)  =  half17_out_aa(x1, x2)
s(x1)  =  s(x1)
U9_ag(x1, x2)  =  U9_ag(x2)
half17_in_ag(x1, x2)  =  half17_in_ag(x2)
U2_ag(x1, x2, x3)  =  U2_ag(x3)
half22_in_ag(x1, x2)  =  half22_in_ag(x2)
half22_out_ag(x1, x2)  =  half22_out_ag(x1)
U1_ag(x1, x2, x3)  =  U1_ag(x3)
half17_out_ag(x1, x2)  =  half17_out_ag(x1)
U10_ag(x1, x2)  =  U10_ag(x2)
U11_ag(x1, x2, x3)  =  U11_ag(x3)
U12_ag(x1, x2, x3)  =  U12_ag(x1, x3)
half17_in_ga(x1, x2)  =  half17_in_ga(x1)
U2_ga(x1, x2, x3)  =  U2_ga(x3)
half22_in_ga(x1, x2)  =  half22_in_ga(x1)
half22_out_ga(x1, x2)  =  half22_out_ga(x2)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
half17_out_ga(x1, x2)  =  half17_out_ga(x2)
U13_ag(x1, x2)  =  U13_ag(x2)
U14_ag(x1, x2)  =  U14_ag(x1, x2)
half17_in_gg(x1, x2)  =  half17_in_gg(x1, x2)
U2_gg(x1, x2, x3)  =  U2_gg(x3)
half22_in_gg(x1, x2)  =  half22_in_gg(x1, x2)
half22_out_gg(x1, x2)  =  half22_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
half17_out_gg(x1, x2)  =  half17_out_gg
U15_ag(x1, x2)  =  U15_ag(x1, x2)
U16_ag(x1, x2, x3)  =  U16_ag(x3)
U17_ag(x1, x2, x3)  =  U17_ag(x1, x3)
U18_ag(x1, x2, x3)  =  U18_ag(x1, x3)
U19_ag(x1, x2)  =  U19_ag(x2)
U20_ag(x1, x2)  =  U20_ag(x1, x2)
U21_ag(x1, x2)  =  U21_ag(x1, x2)
U22_ag(x1, x2)  =  U22_ag(x1, x2)
U23_ag(x1, x2, x3)  =  U23_ag(x3)
U24_ag(x1, x2, x3)  =  U24_ag(x1, x3)
U25_ag(x1, x2, x3)  =  U25_ag(x1, x3)
U26_ag(x1, x2, x3)  =  U26_ag(x1, x3)
U27_ag(x1, x2)  =  U27_ag(x2)
U28_ag(x1, x2)  =  U28_ag(x1, x2)
U29_ag(x1, x2)  =  U29_ag(x1, x2)
U30_ag(x1, x2)  =  U30_ag(x1, x2)
U31_ag(x1, x2)  =  U31_ag(x1, x2)
U32_ag(x1, x2, x3)  =  U32_ag(x3)
U33_ag(x1, x2, x3)  =  U33_ag(x1, x3)
U34_ag(x1, x2, x3)  =  U34_ag(x1, x3)
U35_ag(x1, x2, x3)  =  U35_ag(x1, x3)
U36_ag(x1, x2, x3)  =  U36_ag(x1, x3)
U37_ag(x1, x2)  =  U37_ag(x2)
U38_ag(x1, x2)  =  U38_ag(x1, x2)
U39_ag(x1, x2)  =  U39_ag(x1, x2)
U40_ag(x1, x2)  =  U40_ag(x1, x2)
U41_ag(x1, x2)  =  U41_ag(x1, x2)
U42_ag(x1, x2)  =  U42_ag(x1, x2)
U43_ag(x1, x2, x3)  =  U43_ag(x3)
U44_ag(x1, x2, x3)  =  U44_ag(x1, x3)
U45_ag(x1, x2, x3)  =  U45_ag(x1, x3)
U46_ag(x1, x2, x3)  =  U46_ag(x1, x3)
U47_ag(x1, x2, x3)  =  U47_ag(x1, x3)
U48_ag(x1, x2, x3)  =  U48_ag(x1, x3)
U49_ag(x1, x2)  =  U49_ag(x2)
U50_ag(x1, x2)  =  U50_ag(x1, x2)
U51_ag(x1, x2)  =  U51_ag(x1, x2)
U52_ag(x1, x2)  =  U52_ag(x1, x2)
U53_ag(x1, x2)  =  U53_ag(x1, x2)
U54_ag(x1, x2)  =  U54_ag(x1, x2)
U55_ag(x1, x2)  =  U55_ag(x1, x2)
U56_ag(x1, x2, x3)  =  U56_ag(x3)
U57_ag(x1, x2, x3)  =  U57_ag(x1, x3)
U58_ag(x1, x2, x3)  =  U58_ag(x1, x3)
U59_ag(x1, x2, x3)  =  U59_ag(x1, x3)
U60_ag(x1, x2, x3)  =  U60_ag(x1, x3)
U61_ag(x1, x2, x3)  =  U61_ag(x1, x3)
U62_ag(x1, x2, x3)  =  U62_ag(x1, x3)
U63_ag(x1, x2)  =  U63_ag(x2)
U64_ag(x1, x2)  =  U64_ag(x1, x2)
U65_ag(x1, x2)  =  U65_ag(x1, x2)
U66_ag(x1, x2)  =  U66_ag(x1, x2)
U67_ag(x1, x2)  =  U67_ag(x1, x2)
U68_ag(x1, x2)  =  U68_ag(x1, x2)
U69_ag(x1, x2)  =  U69_ag(x1, x2)
U70_ag(x1, x2)  =  U70_ag(x1, x2)
U71_ag(x1, x2, x3)  =  U71_ag(x2, x3)
U72_ag(x1, x2, x3)  =  U72_ag(x1, x2, x3)
U73_ag(x1, x2, x3)  =  U73_ag(x1, x2, x3)
U74_ag(x1, x2, x3)  =  U74_ag(x1, x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x1, x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x1, x2, x3)
U77_ag(x1, x2, x3)  =  U77_ag(x1, x2, x3)
U78_ag(x1, x2, x3)  =  U78_ag(x1, x3)
p139_in_gagg(x1, x2, x3, x4)  =  p139_in_gagg(x1, x3, x4)
U3_gagg(x1, x2, x3, x4, x5)  =  U3_gagg(x5)
p139_out_gagg(x1, x2, x3, x4)  =  p139_out_gagg(x2)
U4_gagg(x1, x2, x3)  =  U4_gagg(x3)
U5_gagg(x1, x2, x3)  =  U5_gagg(x3)
U6_gagg(x1, x2, x3, x4, x5)  =  U6_gagg(x3, x4, x5)
U7_gagg(x1, x2, x3, x4, x5)  =  U7_gagg(x2, x5)
HALF22_IN_AA(x1, x2)  =  HALF22_IN_AA

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

(93) UsableRulesProof (EQUIVALENT transformation)

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

(94) Obligation:

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

HALF22_IN_AA(s(s(T26)), s(X55)) → HALF22_IN_AA(T26, X55)

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

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

(95) PiDPToQDPProof (SOUND transformation)

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

(96) Obligation:

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

HALF22_IN_AAHALF22_IN_AA

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

(97) 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 = HALF22_IN_AA evaluates to t =HALF22_IN_AA

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




Rewriting sequence

The DP semiunifies directly so there is only one rewrite step from HALF22_IN_AA to HALF22_IN_AA.



(98) NO