(0) Obligation:

Clauses:

delete(X, tree(X, void, Right), Right).
delete(X, tree(X, Left, void), Left).
delete(X, tree(X, Left, Right), tree(Y, Left, Right1)) :- delmin(Right, Y, Right1).
delete(X, tree(Y, Left, Right), tree(Y, Left1, Right)) :- ','(less(X, Y), delete(X, Left, Left1)).
delete(X, tree(Y, Left, Right), tree(Y, Left, Right1)) :- ','(less(Y, X), delete(X, Right, Right1)).
delmin(tree(Y, void, Right), Y, Right).
delmin(tree(X, Left, X1), Y, tree(X, Left1, X2)) :- delmin(Left, Y, Left1).
less(0, s(X3)).
less(s(X), s(Y)) :- less(X, Y).

Queries:

delete(a,a,g).

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph.

(2) Obligation:

Clauses:

delmin19(tree(T76, void, T77), T76, T77).
delmin19(tree(T90, T96, T92), T93, tree(T90, T94, T95)) :- delmin19(T96, T93, T94).
less34(0, s(T138)).
less34(s(T145), s(T144)) :- less34(T145, T144).
less46(0, s(T179)).
less46(s(T184), s(T186)) :- less46(T184, T186).
p44(T163, T167, T168, T166) :- less46(T163, T167).
p44(T163, T171, T172, T166) :- ','(less46(T163, T171), delete1(T171, T172, T166)).
p32(T126, T122, T127, T125) :- less34(T126, T122).
p32(T130, T122, T131, T125) :- ','(less34(T130, T122), delete1(T130, T131, T125)).
p72(0, s(T272), T271, T263) :- delete1(s(T272), T271, T263).
p72(s(T281), s(T283), T284, T263) :- p79(T281, T283, T284, T263).
p65(T223, T222, T224, T202) :- less34(T223, T222).
p65(T227, T222, T228, T202) :- ','(less34(T227, T222), delete1(s(T227), T228, T202)).
p79(T281, T283, T284, T263) :- less46(T281, T283).
p79(T281, T287, T288, T263) :- ','(less46(T281, T287), delete1(s(T287), T288, T263)).
p116(0, s(T470), T469, T461) :- delete1(s(T470), T469, T461).
p116(s(T479), s(T481), T482, T461) :- p79(T479, T481, T482, T461).
delete1(T6, tree(T6, void, T7), T7).
delete1(T10, tree(T10, T11, void), T11).
delete1(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32)).
delete1(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) :- delmin19(T63, T60, T61).
delete1(T126, tree(T122, T127, T124), tree(T122, T125, T124)) :- p32(T126, T122, T127, T125).
delete1(T167, tree(T163, T164, T168), tree(T163, T164, T166)) :- p44(T163, T167, T168, T166).
delete1(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) :- delete1(0, T210, T202).
delete1(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) :- p65(T223, T222, T224, T202).
delete1(T250, tree(T246, T247, T251), tree(T246, T247, T249)) :- p44(T246, T250, T251, T249).
delete1(T264, tree(T260, T261, T265), tree(T260, T261, T263)) :- p72(T260, T264, T265, T263).
delete1(T300, tree(T300, T301, tree(T314, void, T315)), tree(T314, T301, T315)).
delete1(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) :- delmin19(T346, T343, T344).
delete1(T376, tree(T372, T377, T374), tree(T372, T375, T374)) :- p32(T376, T372, T377, T375).
delete1(T395, tree(T391, T392, T396), tree(T391, T392, T394)) :- p72(T391, T395, T396, T394).
delete1(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) :- delete1(0, T416, T408).
delete1(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) :- p65(T429, T428, T430, T408).
delete1(T448, tree(T444, T445, T449), tree(T444, T445, T447)) :- p72(T444, T448, T449, T447).
delete1(T462, tree(T458, T459, T463), tree(T458, T459, T461)) :- p116(T458, T462, T463, T461).
delete1(T487, tree(T487, T488, void), T488).
delete1(T494, tree(T494, T495, tree(T508, void, T509)), tree(T508, T495, T509)).
delete1(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) :- delmin19(T540, T537, T538).
delete1(T570, tree(T566, T571, T568), tree(T566, T569, T568)) :- p32(T570, T566, T571, T569).
delete1(T589, tree(T585, T586, T590), tree(T585, T586, T588)) :- p116(T585, T589, T590, T588).
delete1(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) :- delete1(0, T610, T602).
delete1(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) :- p65(T623, T622, T624, T602).
delete1(T642, tree(T638, T639, T643), tree(T638, T639, T641)) :- p116(T638, T642, T643, T641).
delete1(s(T664), tree(0, T653, T663), tree(0, T653, T655)) :- delete1(s(T664), T663, T655).
delete1(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) :- p79(T673, T675, T676, T655).
delete1(T684, tree(T684, T685, tree(T698, void, T699)), tree(T698, T685, T699)).
delete1(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) :- delmin19(T730, T727, T728).
delete1(T760, tree(T756, T761, T758), tree(T756, T759, T758)) :- p32(T760, T756, T761, T759).
delete1(T779, tree(T775, T776, T780), tree(T775, T776, T778)) :- p116(T775, T779, T780, T778).
delete1(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) :- delete1(0, T800, T792).
delete1(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) :- p65(T813, T812, T814, T792).
delete1(T832, tree(T828, T829, T833), tree(T828, T829, T831)) :- p116(T828, T832, T833, T831).
delete1(s(T854), tree(0, T843, T853), tree(0, T843, T845)) :- delete1(s(T854), T853, T845).
delete1(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) :- p79(T863, T865, T866, T845).

Queries:

delete1(a,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:
delete1_in: (f,f,b) (b,f,b)
delmin19_in: (f,b,b)
p32_in: (f,b,f,b) (b,b,f,b)
less34_in: (f,b) (b,b)
p44_in: (b,b,f,b) (b,f,f,b)
less46_in: (b,b) (b,f)
p65_in: (b,b,f,b) (f,b,f,b)
p72_in: (b,b,f,b) (b,f,f,b)
p79_in: (b,b,f,b) (b,f,f,b)
p116_in: (b,b,f,b) (b,f,f,b)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

delete1_in_aag(T6, tree(T6, void, T7), T7) → delete1_out_aag(T6, tree(T6, void, T7), T7)
delete1_in_aag(T10, tree(T10, T11, void), T11) → delete1_out_aag(T10, tree(T10, T11, void), T11)
delete1_in_aag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32)) → delete1_out_aag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32))
delete1_in_aag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_aag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
delmin19_in_agg(tree(T76, void, T77), T76, T77) → delmin19_out_agg(tree(T76, void, T77), T76, T77)
delmin19_in_agg(tree(T90, T96, T92), T93, tree(T90, T94, T95)) → U1_agg(T90, T96, T92, T93, T94, T95, delmin19_in_agg(T96, T93, T94))
U1_agg(T90, T96, T92, T93, T94, T95, delmin19_out_agg(T96, T93, T94)) → delmin19_out_agg(tree(T90, T96, T92), T93, tree(T90, T94, T95))
U20_aag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_out_agg(T63, T60, T61)) → delete1_out_aag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62)))
delete1_in_aag(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_aag(T126, T122, T127, T124, T125, p32_in_agag(T126, T122, T127, T125))
p32_in_agag(T126, T122, T127, T125) → U7_agag(T126, T122, T127, T125, less34_in_ag(T126, T122))
less34_in_ag(0, s(T138)) → less34_out_ag(0, s(T138))
less34_in_ag(s(T145), s(T144)) → U2_ag(T145, T144, less34_in_ag(T145, T144))
U2_ag(T145, T144, less34_out_ag(T145, T144)) → less34_out_ag(s(T145), s(T144))
U7_agag(T126, T122, T127, T125, less34_out_ag(T126, T122)) → p32_out_agag(T126, T122, T127, T125)
p32_in_agag(T130, T122, T131, T125) → U8_agag(T130, T122, T131, T125, less34_in_ag(T130, T122))
U8_agag(T130, T122, T131, T125, less34_out_ag(T130, T122)) → U9_agag(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
delete1_in_gag(T6, tree(T6, void, T7), T7) → delete1_out_gag(T6, tree(T6, void, T7), T7)
delete1_in_gag(T10, tree(T10, T11, void), T11) → delete1_out_gag(T10, tree(T10, T11, void), T11)
delete1_in_gag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32)) → delete1_out_gag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32))
delete1_in_gag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_gag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
U20_gag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_out_agg(T63, T60, T61)) → delete1_out_gag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62)))
delete1_in_gag(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_gag(T126, T122, T127, T124, T125, p32_in_ggag(T126, T122, T127, T125))
p32_in_ggag(T126, T122, T127, T125) → U7_ggag(T126, T122, T127, T125, less34_in_gg(T126, T122))
less34_in_gg(0, s(T138)) → less34_out_gg(0, s(T138))
less34_in_gg(s(T145), s(T144)) → U2_gg(T145, T144, less34_in_gg(T145, T144))
U2_gg(T145, T144, less34_out_gg(T145, T144)) → less34_out_gg(s(T145), s(T144))
U7_ggag(T126, T122, T127, T125, less34_out_gg(T126, T122)) → p32_out_ggag(T126, T122, T127, T125)
p32_in_ggag(T130, T122, T131, T125) → U8_ggag(T130, T122, T131, T125, less34_in_gg(T130, T122))
U8_ggag(T130, T122, T131, T125, less34_out_gg(T130, T122)) → U9_ggag(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
delete1_in_gag(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_gag(T167, T163, T164, T168, T166, p44_in_ggag(T163, T167, T168, T166))
p44_in_ggag(T163, T167, T168, T166) → U4_ggag(T163, T167, T168, T166, less46_in_gg(T163, T167))
less46_in_gg(0, s(T179)) → less46_out_gg(0, s(T179))
less46_in_gg(s(T184), s(T186)) → U3_gg(T184, T186, less46_in_gg(T184, T186))
U3_gg(T184, T186, less46_out_gg(T184, T186)) → less46_out_gg(s(T184), s(T186))
U4_ggag(T163, T167, T168, T166, less46_out_gg(T163, T167)) → p44_out_ggag(T163, T167, T168, T166)
p44_in_ggag(T163, T171, T172, T166) → U5_ggag(T163, T171, T172, T166, less46_in_gg(T163, T171))
U5_ggag(T163, T171, T172, T166, less46_out_gg(T163, T171)) → U6_ggag(T163, T171, T172, T166, delete1_in_gag(T171, T172, T166))
delete1_in_gag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_gag(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
delete1_in_gag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_gag(T223, T222, T224, T201, T202, p65_in_ggag(T223, T222, T224, T202))
p65_in_ggag(T223, T222, T224, T202) → U12_ggag(T223, T222, T224, T202, less34_in_gg(T223, T222))
U12_ggag(T223, T222, T224, T202, less34_out_gg(T223, T222)) → p65_out_ggag(T223, T222, T224, T202)
p65_in_ggag(T227, T222, T228, T202) → U13_ggag(T227, T222, T228, T202, less34_in_gg(T227, T222))
U13_ggag(T227, T222, T228, T202, less34_out_gg(T227, T222)) → U14_ggag(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
delete1_in_gag(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_gag(T250, T246, T247, T251, T249, p44_in_ggag(T246, T250, T251, T249))
U25_gag(T250, T246, T247, T251, T249, p44_out_ggag(T246, T250, T251, T249)) → delete1_out_gag(T250, tree(T246, T247, T251), tree(T246, T247, T249))
delete1_in_gag(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_gag(T264, T260, T261, T265, T263, p72_in_ggag(T260, T264, T265, T263))
p72_in_ggag(0, s(T272), T271, T263) → U10_ggag(T272, T271, T263, delete1_in_gag(s(T272), T271, T263))
delete1_in_gag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_gag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
U27_gag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_out_agg(T346, T343, T344)) → delete1_out_gag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345)))
delete1_in_gag(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_gag(T376, T372, T377, T374, T375, p32_in_ggag(T376, T372, T377, T375))
U28_gag(T376, T372, T377, T374, T375, p32_out_ggag(T376, T372, T377, T375)) → delete1_out_gag(T376, tree(T372, T377, T374), tree(T372, T375, T374))
delete1_in_gag(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_gag(T395, T391, T392, T396, T394, p72_in_ggag(T391, T395, T396, T394))
p72_in_ggag(s(T281), s(T283), T284, T263) → U11_ggag(T281, T283, T284, T263, p79_in_ggag(T281, T283, T284, T263))
p79_in_ggag(T281, T283, T284, T263) → U15_ggag(T281, T283, T284, T263, less46_in_gg(T281, T283))
U15_ggag(T281, T283, T284, T263, less46_out_gg(T281, T283)) → p79_out_ggag(T281, T283, T284, T263)
p79_in_ggag(T281, T287, T288, T263) → U16_ggag(T281, T287, T288, T263, less46_in_gg(T281, T287))
U16_ggag(T281, T287, T288, T263, less46_out_gg(T281, T287)) → U17_ggag(T281, T287, T288, T263, delete1_in_gag(s(T287), T288, T263))
delete1_in_gag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_gag(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
delete1_in_gag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_gag(T429, T428, T430, T407, T408, p65_in_ggag(T429, T428, T430, T408))
U31_gag(T429, T428, T430, T407, T408, p65_out_ggag(T429, T428, T430, T408)) → delete1_out_gag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407))
delete1_in_gag(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_gag(T448, T444, T445, T449, T447, p72_in_ggag(T444, T448, T449, T447))
U32_gag(T448, T444, T445, T449, T447, p72_out_ggag(T444, T448, T449, T447)) → delete1_out_gag(T448, tree(T444, T445, T449), tree(T444, T445, T447))
delete1_in_gag(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_gag(T462, T458, T459, T463, T461, p116_in_ggag(T458, T462, T463, T461))
p116_in_ggag(0, s(T470), T469, T461) → U18_ggag(T470, T469, T461, delete1_in_gag(s(T470), T469, T461))
delete1_in_gag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_gag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
U34_gag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_out_agg(T540, T537, T538)) → delete1_out_gag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539)))
delete1_in_gag(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_gag(T570, T566, T571, T568, T569, p32_in_ggag(T570, T566, T571, T569))
U35_gag(T570, T566, T571, T568, T569, p32_out_ggag(T570, T566, T571, T569)) → delete1_out_gag(T570, tree(T566, T571, T568), tree(T566, T569, T568))
delete1_in_gag(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_gag(T589, T585, T586, T590, T588, p116_in_ggag(T585, T589, T590, T588))
p116_in_ggag(s(T479), s(T481), T482, T461) → U19_ggag(T479, T481, T482, T461, p79_in_ggag(T479, T481, T482, T461))
U19_ggag(T479, T481, T482, T461, p79_out_ggag(T479, T481, T482, T461)) → p116_out_ggag(s(T479), s(T481), T482, T461)
U36_gag(T589, T585, T586, T590, T588, p116_out_ggag(T585, T589, T590, T588)) → delete1_out_gag(T589, tree(T585, T586, T590), tree(T585, T586, T588))
delete1_in_gag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_gag(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
delete1_in_gag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_gag(T623, T622, T624, T601, T602, p65_in_ggag(T623, T622, T624, T602))
U38_gag(T623, T622, T624, T601, T602, p65_out_ggag(T623, T622, T624, T602)) → delete1_out_gag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601))
delete1_in_gag(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_gag(T642, T638, T639, T643, T641, p116_in_ggag(T638, T642, T643, T641))
U39_gag(T642, T638, T639, T643, T641, p116_out_ggag(T638, T642, T643, T641)) → delete1_out_gag(T642, tree(T638, T639, T643), tree(T638, T639, T641))
delete1_in_gag(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_gag(T664, T653, T663, T655, delete1_in_gag(s(T664), T663, T655))
delete1_in_gag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_gag(T675, T673, T653, T676, T655, p79_in_ggag(T673, T675, T676, T655))
U41_gag(T675, T673, T653, T676, T655, p79_out_ggag(T673, T675, T676, T655)) → delete1_out_gag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655))
delete1_in_gag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_gag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
U42_gag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_out_agg(T730, T727, T728)) → delete1_out_gag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729)))
delete1_in_gag(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_gag(T760, T756, T761, T758, T759, p32_in_ggag(T760, T756, T761, T759))
U43_gag(T760, T756, T761, T758, T759, p32_out_ggag(T760, T756, T761, T759)) → delete1_out_gag(T760, tree(T756, T761, T758), tree(T756, T759, T758))
delete1_in_gag(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_gag(T779, T775, T776, T780, T778, p116_in_ggag(T775, T779, T780, T778))
U44_gag(T779, T775, T776, T780, T778, p116_out_ggag(T775, T779, T780, T778)) → delete1_out_gag(T779, tree(T775, T776, T780), tree(T775, T776, T778))
delete1_in_gag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_gag(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
delete1_in_gag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_gag(T813, T812, T814, T791, T792, p65_in_ggag(T813, T812, T814, T792))
U46_gag(T813, T812, T814, T791, T792, p65_out_ggag(T813, T812, T814, T792)) → delete1_out_gag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791))
delete1_in_gag(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_gag(T832, T828, T829, T833, T831, p116_in_ggag(T828, T832, T833, T831))
U47_gag(T832, T828, T829, T833, T831, p116_out_ggag(T828, T832, T833, T831)) → delete1_out_gag(T832, tree(T828, T829, T833), tree(T828, T829, T831))
delete1_in_gag(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_gag(T854, T843, T853, T845, delete1_in_gag(s(T854), T853, T845))
delete1_in_gag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_gag(T865, T863, T843, T866, T845, p79_in_ggag(T863, T865, T866, T845))
U49_gag(T865, T863, T843, T866, T845, p79_out_ggag(T863, T865, T866, T845)) → delete1_out_gag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845))
U48_gag(T854, T843, T853, T845, delete1_out_gag(s(T854), T853, T845)) → delete1_out_gag(s(T854), tree(0, T843, T853), tree(0, T843, T845))
U45_gag(T799, T800, T791, T792, delete1_out_gag(0, T800, T792)) → delete1_out_gag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791))
U40_gag(T664, T653, T663, T655, delete1_out_gag(s(T664), T663, T655)) → delete1_out_gag(s(T664), tree(0, T653, T663), tree(0, T653, T655))
U37_gag(T609, T610, T601, T602, delete1_out_gag(0, T610, T602)) → delete1_out_gag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601))
U18_ggag(T470, T469, T461, delete1_out_gag(s(T470), T469, T461)) → p116_out_ggag(0, s(T470), T469, T461)
U33_gag(T462, T458, T459, T463, T461, p116_out_ggag(T458, T462, T463, T461)) → delete1_out_gag(T462, tree(T458, T459, T463), tree(T458, T459, T461))
U30_gag(T415, T416, T407, T408, delete1_out_gag(0, T416, T408)) → delete1_out_gag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407))
U17_ggag(T281, T287, T288, T263, delete1_out_gag(s(T287), T288, T263)) → p79_out_ggag(T281, T287, T288, T263)
U11_ggag(T281, T283, T284, T263, p79_out_ggag(T281, T283, T284, T263)) → p72_out_ggag(s(T281), s(T283), T284, T263)
U29_gag(T395, T391, T392, T396, T394, p72_out_ggag(T391, T395, T396, T394)) → delete1_out_gag(T395, tree(T391, T392, T396), tree(T391, T392, T394))
U10_ggag(T272, T271, T263, delete1_out_gag(s(T272), T271, T263)) → p72_out_ggag(0, s(T272), T271, T263)
U26_gag(T264, T260, T261, T265, T263, p72_out_ggag(T260, T264, T265, T263)) → delete1_out_gag(T264, tree(T260, T261, T265), tree(T260, T261, T263))
U14_ggag(T227, T222, T228, T202, delete1_out_gag(s(T227), T228, T202)) → p65_out_ggag(T227, T222, T228, T202)
U24_gag(T223, T222, T224, T201, T202, p65_out_ggag(T223, T222, T224, T202)) → delete1_out_gag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201))
U23_gag(T209, T210, T201, T202, delete1_out_gag(0, T210, T202)) → delete1_out_gag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201))
U6_ggag(T163, T171, T172, T166, delete1_out_gag(T171, T172, T166)) → p44_out_ggag(T163, T171, T172, T166)
U22_gag(T167, T163, T164, T168, T166, p44_out_ggag(T163, T167, T168, T166)) → delete1_out_gag(T167, tree(T163, T164, T168), tree(T163, T164, T166))
U9_ggag(T130, T122, T131, T125, delete1_out_gag(T130, T131, T125)) → p32_out_ggag(T130, T122, T131, T125)
U21_gag(T126, T122, T127, T124, T125, p32_out_ggag(T126, T122, T127, T125)) → delete1_out_gag(T126, tree(T122, T127, T124), tree(T122, T125, T124))
U9_agag(T130, T122, T131, T125, delete1_out_gag(T130, T131, T125)) → p32_out_agag(T130, T122, T131, T125)
U21_aag(T126, T122, T127, T124, T125, p32_out_agag(T126, T122, T127, T125)) → delete1_out_aag(T126, tree(T122, T127, T124), tree(T122, T125, T124))
delete1_in_aag(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_aag(T167, T163, T164, T168, T166, p44_in_gaag(T163, T167, T168, T166))
p44_in_gaag(T163, T167, T168, T166) → U4_gaag(T163, T167, T168, T166, less46_in_ga(T163, T167))
less46_in_ga(0, s(T179)) → less46_out_ga(0, s(T179))
less46_in_ga(s(T184), s(T186)) → U3_ga(T184, T186, less46_in_ga(T184, T186))
U3_ga(T184, T186, less46_out_ga(T184, T186)) → less46_out_ga(s(T184), s(T186))
U4_gaag(T163, T167, T168, T166, less46_out_ga(T163, T167)) → p44_out_gaag(T163, T167, T168, T166)
p44_in_gaag(T163, T171, T172, T166) → U5_gaag(T163, T171, T172, T166, less46_in_ga(T163, T171))
U5_gaag(T163, T171, T172, T166, less46_out_ga(T163, T171)) → U6_gaag(T163, T171, T172, T166, delete1_in_aag(T171, T172, T166))
delete1_in_aag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_aag(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
U23_aag(T209, T210, T201, T202, delete1_out_gag(0, T210, T202)) → delete1_out_aag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201))
delete1_in_aag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_aag(T223, T222, T224, T201, T202, p65_in_agag(T223, T222, T224, T202))
p65_in_agag(T223, T222, T224, T202) → U12_agag(T223, T222, T224, T202, less34_in_ag(T223, T222))
U12_agag(T223, T222, T224, T202, less34_out_ag(T223, T222)) → p65_out_agag(T223, T222, T224, T202)
p65_in_agag(T227, T222, T228, T202) → U13_agag(T227, T222, T228, T202, less34_in_ag(T227, T222))
U13_agag(T227, T222, T228, T202, less34_out_ag(T227, T222)) → U14_agag(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
U14_agag(T227, T222, T228, T202, delete1_out_gag(s(T227), T228, T202)) → p65_out_agag(T227, T222, T228, T202)
U24_aag(T223, T222, T224, T201, T202, p65_out_agag(T223, T222, T224, T202)) → delete1_out_aag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201))
delete1_in_aag(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_aag(T250, T246, T247, T251, T249, p44_in_gaag(T246, T250, T251, T249))
U25_aag(T250, T246, T247, T251, T249, p44_out_gaag(T246, T250, T251, T249)) → delete1_out_aag(T250, tree(T246, T247, T251), tree(T246, T247, T249))
delete1_in_aag(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_aag(T264, T260, T261, T265, T263, p72_in_gaag(T260, T264, T265, T263))
p72_in_gaag(0, s(T272), T271, T263) → U10_gaag(T272, T271, T263, delete1_in_aag(s(T272), T271, T263))
delete1_in_aag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_aag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
U27_aag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_out_agg(T346, T343, T344)) → delete1_out_aag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345)))
delete1_in_aag(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_aag(T376, T372, T377, T374, T375, p32_in_agag(T376, T372, T377, T375))
U28_aag(T376, T372, T377, T374, T375, p32_out_agag(T376, T372, T377, T375)) → delete1_out_aag(T376, tree(T372, T377, T374), tree(T372, T375, T374))
delete1_in_aag(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_aag(T395, T391, T392, T396, T394, p72_in_gaag(T391, T395, T396, T394))
p72_in_gaag(s(T281), s(T283), T284, T263) → U11_gaag(T281, T283, T284, T263, p79_in_gaag(T281, T283, T284, T263))
p79_in_gaag(T281, T283, T284, T263) → U15_gaag(T281, T283, T284, T263, less46_in_ga(T281, T283))
U15_gaag(T281, T283, T284, T263, less46_out_ga(T281, T283)) → p79_out_gaag(T281, T283, T284, T263)
p79_in_gaag(T281, T287, T288, T263) → U16_gaag(T281, T287, T288, T263, less46_in_ga(T281, T287))
U16_gaag(T281, T287, T288, T263, less46_out_ga(T281, T287)) → U17_gaag(T281, T287, T288, T263, delete1_in_aag(s(T287), T288, T263))
delete1_in_aag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_aag(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
U30_aag(T415, T416, T407, T408, delete1_out_gag(0, T416, T408)) → delete1_out_aag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407))
delete1_in_aag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_aag(T429, T428, T430, T407, T408, p65_in_agag(T429, T428, T430, T408))
U31_aag(T429, T428, T430, T407, T408, p65_out_agag(T429, T428, T430, T408)) → delete1_out_aag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407))
delete1_in_aag(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_aag(T448, T444, T445, T449, T447, p72_in_gaag(T444, T448, T449, T447))
U32_aag(T448, T444, T445, T449, T447, p72_out_gaag(T444, T448, T449, T447)) → delete1_out_aag(T448, tree(T444, T445, T449), tree(T444, T445, T447))
delete1_in_aag(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_aag(T462, T458, T459, T463, T461, p116_in_gaag(T458, T462, T463, T461))
p116_in_gaag(0, s(T470), T469, T461) → U18_gaag(T470, T469, T461, delete1_in_aag(s(T470), T469, T461))
delete1_in_aag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_aag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
U34_aag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_out_agg(T540, T537, T538)) → delete1_out_aag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539)))
delete1_in_aag(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_aag(T570, T566, T571, T568, T569, p32_in_agag(T570, T566, T571, T569))
U35_aag(T570, T566, T571, T568, T569, p32_out_agag(T570, T566, T571, T569)) → delete1_out_aag(T570, tree(T566, T571, T568), tree(T566, T569, T568))
delete1_in_aag(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_aag(T589, T585, T586, T590, T588, p116_in_gaag(T585, T589, T590, T588))
p116_in_gaag(s(T479), s(T481), T482, T461) → U19_gaag(T479, T481, T482, T461, p79_in_gaag(T479, T481, T482, T461))
U19_gaag(T479, T481, T482, T461, p79_out_gaag(T479, T481, T482, T461)) → p116_out_gaag(s(T479), s(T481), T482, T461)
U36_aag(T589, T585, T586, T590, T588, p116_out_gaag(T585, T589, T590, T588)) → delete1_out_aag(T589, tree(T585, T586, T590), tree(T585, T586, T588))
delete1_in_aag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_aag(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
U37_aag(T609, T610, T601, T602, delete1_out_gag(0, T610, T602)) → delete1_out_aag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601))
delete1_in_aag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_aag(T623, T622, T624, T601, T602, p65_in_agag(T623, T622, T624, T602))
U38_aag(T623, T622, T624, T601, T602, p65_out_agag(T623, T622, T624, T602)) → delete1_out_aag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601))
delete1_in_aag(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_aag(T642, T638, T639, T643, T641, p116_in_gaag(T638, T642, T643, T641))
U39_aag(T642, T638, T639, T643, T641, p116_out_gaag(T638, T642, T643, T641)) → delete1_out_aag(T642, tree(T638, T639, T643), tree(T638, T639, T641))
delete1_in_aag(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_aag(T664, T653, T663, T655, delete1_in_aag(s(T664), T663, T655))
delete1_in_aag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_aag(T675, T673, T653, T676, T655, p79_in_gaag(T673, T675, T676, T655))
U41_aag(T675, T673, T653, T676, T655, p79_out_gaag(T673, T675, T676, T655)) → delete1_out_aag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655))
delete1_in_aag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_aag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
U42_aag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_out_agg(T730, T727, T728)) → delete1_out_aag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729)))
delete1_in_aag(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_aag(T760, T756, T761, T758, T759, p32_in_agag(T760, T756, T761, T759))
U43_aag(T760, T756, T761, T758, T759, p32_out_agag(T760, T756, T761, T759)) → delete1_out_aag(T760, tree(T756, T761, T758), tree(T756, T759, T758))
delete1_in_aag(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_aag(T779, T775, T776, T780, T778, p116_in_gaag(T775, T779, T780, T778))
U44_aag(T779, T775, T776, T780, T778, p116_out_gaag(T775, T779, T780, T778)) → delete1_out_aag(T779, tree(T775, T776, T780), tree(T775, T776, T778))
delete1_in_aag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_aag(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
U45_aag(T799, T800, T791, T792, delete1_out_gag(0, T800, T792)) → delete1_out_aag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791))
delete1_in_aag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_aag(T813, T812, T814, T791, T792, p65_in_agag(T813, T812, T814, T792))
U46_aag(T813, T812, T814, T791, T792, p65_out_agag(T813, T812, T814, T792)) → delete1_out_aag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791))
delete1_in_aag(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_aag(T832, T828, T829, T833, T831, p116_in_gaag(T828, T832, T833, T831))
U47_aag(T832, T828, T829, T833, T831, p116_out_gaag(T828, T832, T833, T831)) → delete1_out_aag(T832, tree(T828, T829, T833), tree(T828, T829, T831))
delete1_in_aag(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_aag(T854, T843, T853, T845, delete1_in_aag(s(T854), T853, T845))
delete1_in_aag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_aag(T865, T863, T843, T866, T845, p79_in_gaag(T863, T865, T866, T845))
U49_aag(T865, T863, T843, T866, T845, p79_out_gaag(T863, T865, T866, T845)) → delete1_out_aag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845))
U48_aag(T854, T843, T853, T845, delete1_out_aag(s(T854), T853, T845)) → delete1_out_aag(s(T854), tree(0, T843, T853), tree(0, T843, T845))
U40_aag(T664, T653, T663, T655, delete1_out_aag(s(T664), T663, T655)) → delete1_out_aag(s(T664), tree(0, T653, T663), tree(0, T653, T655))
U18_gaag(T470, T469, T461, delete1_out_aag(s(T470), T469, T461)) → p116_out_gaag(0, s(T470), T469, T461)
U33_aag(T462, T458, T459, T463, T461, p116_out_gaag(T458, T462, T463, T461)) → delete1_out_aag(T462, tree(T458, T459, T463), tree(T458, T459, T461))
U17_gaag(T281, T287, T288, T263, delete1_out_aag(s(T287), T288, T263)) → p79_out_gaag(T281, T287, T288, T263)
U11_gaag(T281, T283, T284, T263, p79_out_gaag(T281, T283, T284, T263)) → p72_out_gaag(s(T281), s(T283), T284, T263)
U29_aag(T395, T391, T392, T396, T394, p72_out_gaag(T391, T395, T396, T394)) → delete1_out_aag(T395, tree(T391, T392, T396), tree(T391, T392, T394))
U10_gaag(T272, T271, T263, delete1_out_aag(s(T272), T271, T263)) → p72_out_gaag(0, s(T272), T271, T263)
U26_aag(T264, T260, T261, T265, T263, p72_out_gaag(T260, T264, T265, T263)) → delete1_out_aag(T264, tree(T260, T261, T265), tree(T260, T261, T263))
U6_gaag(T163, T171, T172, T166, delete1_out_aag(T171, T172, T166)) → p44_out_gaag(T163, T171, T172, T166)
U22_aag(T167, T163, T164, T168, T166, p44_out_gaag(T163, T167, T168, T166)) → delete1_out_aag(T167, tree(T163, T164, T168), tree(T163, T164, T166))

The argument filtering Pi contains the following mapping:
delete1_in_aag(x1, x2, x3)  =  delete1_in_aag(x3)
delete1_out_aag(x1, x2, x3)  =  delete1_out_aag
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U20_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aag(x9)
delmin19_in_agg(x1, x2, x3)  =  delmin19_in_agg(x2, x3)
delmin19_out_agg(x1, x2, x3)  =  delmin19_out_agg
U1_agg(x1, x2, x3, x4, x5, x6, x7)  =  U1_agg(x7)
U21_aag(x1, x2, x3, x4, x5, x6)  =  U21_aag(x6)
p32_in_agag(x1, x2, x3, x4)  =  p32_in_agag(x2, x4)
U7_agag(x1, x2, x3, x4, x5)  =  U7_agag(x5)
less34_in_ag(x1, x2)  =  less34_in_ag(x2)
s(x1)  =  s(x1)
less34_out_ag(x1, x2)  =  less34_out_ag(x1)
U2_ag(x1, x2, x3)  =  U2_ag(x3)
p32_out_agag(x1, x2, x3, x4)  =  p32_out_agag(x1)
U8_agag(x1, x2, x3, x4, x5)  =  U8_agag(x4, x5)
U9_agag(x1, x2, x3, x4, x5)  =  U9_agag(x1, x5)
delete1_in_gag(x1, x2, x3)  =  delete1_in_gag(x1, x3)
delete1_out_gag(x1, x2, x3)  =  delete1_out_gag
U20_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gag(x9)
U21_gag(x1, x2, x3, x4, x5, x6)  =  U21_gag(x6)
p32_in_ggag(x1, x2, x3, x4)  =  p32_in_ggag(x1, x2, x4)
U7_ggag(x1, x2, x3, x4, x5)  =  U7_ggag(x5)
less34_in_gg(x1, x2)  =  less34_in_gg(x1, x2)
0  =  0
less34_out_gg(x1, x2)  =  less34_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
p32_out_ggag(x1, x2, x3, x4)  =  p32_out_ggag
U8_ggag(x1, x2, x3, x4, x5)  =  U8_ggag(x1, x4, x5)
U9_ggag(x1, x2, x3, x4, x5)  =  U9_ggag(x5)
U22_gag(x1, x2, x3, x4, x5, x6)  =  U22_gag(x6)
p44_in_ggag(x1, x2, x3, x4)  =  p44_in_ggag(x1, x2, x4)
U4_ggag(x1, x2, x3, x4, x5)  =  U4_ggag(x5)
less46_in_gg(x1, x2)  =  less46_in_gg(x1, x2)
less46_out_gg(x1, x2)  =  less46_out_gg
U3_gg(x1, x2, x3)  =  U3_gg(x3)
p44_out_ggag(x1, x2, x3, x4)  =  p44_out_ggag
U5_ggag(x1, x2, x3, x4, x5)  =  U5_ggag(x2, x4, x5)
U6_ggag(x1, x2, x3, x4, x5)  =  U6_ggag(x5)
U23_gag(x1, x2, x3, x4, x5)  =  U23_gag(x5)
U24_gag(x1, x2, x3, x4, x5, x6)  =  U24_gag(x6)
p65_in_ggag(x1, x2, x3, x4)  =  p65_in_ggag(x1, x2, x4)
U12_ggag(x1, x2, x3, x4, x5)  =  U12_ggag(x5)
p65_out_ggag(x1, x2, x3, x4)  =  p65_out_ggag
U13_ggag(x1, x2, x3, x4, x5)  =  U13_ggag(x1, x4, x5)
U14_ggag(x1, x2, x3, x4, x5)  =  U14_ggag(x5)
U25_gag(x1, x2, x3, x4, x5, x6)  =  U25_gag(x6)
U26_gag(x1, x2, x3, x4, x5, x6)  =  U26_gag(x6)
p72_in_ggag(x1, x2, x3, x4)  =  p72_in_ggag(x1, x2, x4)
U10_ggag(x1, x2, x3, x4)  =  U10_ggag(x4)
U27_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gag(x9)
U28_gag(x1, x2, x3, x4, x5, x6)  =  U28_gag(x6)
U29_gag(x1, x2, x3, x4, x5, x6)  =  U29_gag(x6)
U11_ggag(x1, x2, x3, x4, x5)  =  U11_ggag(x5)
p79_in_ggag(x1, x2, x3, x4)  =  p79_in_ggag(x1, x2, x4)
U15_ggag(x1, x2, x3, x4, x5)  =  U15_ggag(x5)
p79_out_ggag(x1, x2, x3, x4)  =  p79_out_ggag
U16_ggag(x1, x2, x3, x4, x5)  =  U16_ggag(x2, x4, x5)
U17_ggag(x1, x2, x3, x4, x5)  =  U17_ggag(x5)
U30_gag(x1, x2, x3, x4, x5)  =  U30_gag(x5)
U31_gag(x1, x2, x3, x4, x5, x6)  =  U31_gag(x6)
U32_gag(x1, x2, x3, x4, x5, x6)  =  U32_gag(x6)
p72_out_ggag(x1, x2, x3, x4)  =  p72_out_ggag
U33_gag(x1, x2, x3, x4, x5, x6)  =  U33_gag(x6)
p116_in_ggag(x1, x2, x3, x4)  =  p116_in_ggag(x1, x2, x4)
U18_ggag(x1, x2, x3, x4)  =  U18_ggag(x4)
U34_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_gag(x9)
U35_gag(x1, x2, x3, x4, x5, x6)  =  U35_gag(x6)
U36_gag(x1, x2, x3, x4, x5, x6)  =  U36_gag(x6)
U19_ggag(x1, x2, x3, x4, x5)  =  U19_ggag(x5)
p116_out_ggag(x1, x2, x3, x4)  =  p116_out_ggag
U37_gag(x1, x2, x3, x4, x5)  =  U37_gag(x5)
U38_gag(x1, x2, x3, x4, x5, x6)  =  U38_gag(x6)
U39_gag(x1, x2, x3, x4, x5, x6)  =  U39_gag(x6)
U40_gag(x1, x2, x3, x4, x5)  =  U40_gag(x5)
U41_gag(x1, x2, x3, x4, x5, x6)  =  U41_gag(x6)
U42_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_gag(x9)
U43_gag(x1, x2, x3, x4, x5, x6)  =  U43_gag(x6)
U44_gag(x1, x2, x3, x4, x5, x6)  =  U44_gag(x6)
U45_gag(x1, x2, x3, x4, x5)  =  U45_gag(x5)
U46_gag(x1, x2, x3, x4, x5, x6)  =  U46_gag(x6)
U47_gag(x1, x2, x3, x4, x5, x6)  =  U47_gag(x6)
U48_gag(x1, x2, x3, x4, x5)  =  U48_gag(x5)
U49_gag(x1, x2, x3, x4, x5, x6)  =  U49_gag(x6)
U22_aag(x1, x2, x3, x4, x5, x6)  =  U22_aag(x6)
p44_in_gaag(x1, x2, x3, x4)  =  p44_in_gaag(x1, x4)
U4_gaag(x1, x2, x3, x4, x5)  =  U4_gaag(x5)
less46_in_ga(x1, x2)  =  less46_in_ga(x1)
less46_out_ga(x1, x2)  =  less46_out_ga
U3_ga(x1, x2, x3)  =  U3_ga(x3)
p44_out_gaag(x1, x2, x3, x4)  =  p44_out_gaag
U5_gaag(x1, x2, x3, x4, x5)  =  U5_gaag(x4, x5)
U6_gaag(x1, x2, x3, x4, x5)  =  U6_gaag(x5)
U23_aag(x1, x2, x3, x4, x5)  =  U23_aag(x5)
U24_aag(x1, x2, x3, x4, x5, x6)  =  U24_aag(x6)
p65_in_agag(x1, x2, x3, x4)  =  p65_in_agag(x2, x4)
U12_agag(x1, x2, x3, x4, x5)  =  U12_agag(x5)
p65_out_agag(x1, x2, x3, x4)  =  p65_out_agag(x1)
U13_agag(x1, x2, x3, x4, x5)  =  U13_agag(x4, x5)
U14_agag(x1, x2, x3, x4, x5)  =  U14_agag(x1, x5)
U25_aag(x1, x2, x3, x4, x5, x6)  =  U25_aag(x6)
U26_aag(x1, x2, x3, x4, x5, x6)  =  U26_aag(x6)
p72_in_gaag(x1, x2, x3, x4)  =  p72_in_gaag(x1, x4)
U10_gaag(x1, x2, x3, x4)  =  U10_gaag(x4)
U27_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aag(x9)
U28_aag(x1, x2, x3, x4, x5, x6)  =  U28_aag(x6)
U29_aag(x1, x2, x3, x4, x5, x6)  =  U29_aag(x6)
U11_gaag(x1, x2, x3, x4, x5)  =  U11_gaag(x5)
p79_in_gaag(x1, x2, x3, x4)  =  p79_in_gaag(x1, x4)
U15_gaag(x1, x2, x3, x4, x5)  =  U15_gaag(x5)
p79_out_gaag(x1, x2, x3, x4)  =  p79_out_gaag
U16_gaag(x1, x2, x3, x4, x5)  =  U16_gaag(x4, x5)
U17_gaag(x1, x2, x3, x4, x5)  =  U17_gaag(x5)
U30_aag(x1, x2, x3, x4, x5)  =  U30_aag(x5)
U31_aag(x1, x2, x3, x4, x5, x6)  =  U31_aag(x6)
U32_aag(x1, x2, x3, x4, x5, x6)  =  U32_aag(x6)
p72_out_gaag(x1, x2, x3, x4)  =  p72_out_gaag
U33_aag(x1, x2, x3, x4, x5, x6)  =  U33_aag(x6)
p116_in_gaag(x1, x2, x3, x4)  =  p116_in_gaag(x1, x4)
U18_gaag(x1, x2, x3, x4)  =  U18_gaag(x4)
U34_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_aag(x9)
U35_aag(x1, x2, x3, x4, x5, x6)  =  U35_aag(x6)
U36_aag(x1, x2, x3, x4, x5, x6)  =  U36_aag(x6)
U19_gaag(x1, x2, x3, x4, x5)  =  U19_gaag(x5)
p116_out_gaag(x1, x2, x3, x4)  =  p116_out_gaag
U37_aag(x1, x2, x3, x4, x5)  =  U37_aag(x5)
U38_aag(x1, x2, x3, x4, x5, x6)  =  U38_aag(x6)
U39_aag(x1, x2, x3, x4, x5, x6)  =  U39_aag(x6)
U40_aag(x1, x2, x3, x4, x5)  =  U40_aag(x5)
U41_aag(x1, x2, x3, x4, x5, x6)  =  U41_aag(x6)
U42_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_aag(x9)
U43_aag(x1, x2, x3, x4, x5, x6)  =  U43_aag(x6)
U44_aag(x1, x2, x3, x4, x5, x6)  =  U44_aag(x6)
U45_aag(x1, x2, x3, x4, x5)  =  U45_aag(x5)
U46_aag(x1, x2, x3, x4, x5, x6)  =  U46_aag(x6)
U47_aag(x1, x2, x3, x4, x5, x6)  =  U47_aag(x6)
U48_aag(x1, x2, x3, x4, x5)  =  U48_aag(x5)
U49_aag(x1, x2, x3, x4, x5, x6)  =  U49_aag(x6)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

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

delete1_in_aag(T6, tree(T6, void, T7), T7) → delete1_out_aag(T6, tree(T6, void, T7), T7)
delete1_in_aag(T10, tree(T10, T11, void), T11) → delete1_out_aag(T10, tree(T10, T11, void), T11)
delete1_in_aag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32)) → delete1_out_aag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32))
delete1_in_aag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_aag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
delmin19_in_agg(tree(T76, void, T77), T76, T77) → delmin19_out_agg(tree(T76, void, T77), T76, T77)
delmin19_in_agg(tree(T90, T96, T92), T93, tree(T90, T94, T95)) → U1_agg(T90, T96, T92, T93, T94, T95, delmin19_in_agg(T96, T93, T94))
U1_agg(T90, T96, T92, T93, T94, T95, delmin19_out_agg(T96, T93, T94)) → delmin19_out_agg(tree(T90, T96, T92), T93, tree(T90, T94, T95))
U20_aag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_out_agg(T63, T60, T61)) → delete1_out_aag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62)))
delete1_in_aag(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_aag(T126, T122, T127, T124, T125, p32_in_agag(T126, T122, T127, T125))
p32_in_agag(T126, T122, T127, T125) → U7_agag(T126, T122, T127, T125, less34_in_ag(T126, T122))
less34_in_ag(0, s(T138)) → less34_out_ag(0, s(T138))
less34_in_ag(s(T145), s(T144)) → U2_ag(T145, T144, less34_in_ag(T145, T144))
U2_ag(T145, T144, less34_out_ag(T145, T144)) → less34_out_ag(s(T145), s(T144))
U7_agag(T126, T122, T127, T125, less34_out_ag(T126, T122)) → p32_out_agag(T126, T122, T127, T125)
p32_in_agag(T130, T122, T131, T125) → U8_agag(T130, T122, T131, T125, less34_in_ag(T130, T122))
U8_agag(T130, T122, T131, T125, less34_out_ag(T130, T122)) → U9_agag(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
delete1_in_gag(T6, tree(T6, void, T7), T7) → delete1_out_gag(T6, tree(T6, void, T7), T7)
delete1_in_gag(T10, tree(T10, T11, void), T11) → delete1_out_gag(T10, tree(T10, T11, void), T11)
delete1_in_gag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32)) → delete1_out_gag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32))
delete1_in_gag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_gag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
U20_gag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_out_agg(T63, T60, T61)) → delete1_out_gag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62)))
delete1_in_gag(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_gag(T126, T122, T127, T124, T125, p32_in_ggag(T126, T122, T127, T125))
p32_in_ggag(T126, T122, T127, T125) → U7_ggag(T126, T122, T127, T125, less34_in_gg(T126, T122))
less34_in_gg(0, s(T138)) → less34_out_gg(0, s(T138))
less34_in_gg(s(T145), s(T144)) → U2_gg(T145, T144, less34_in_gg(T145, T144))
U2_gg(T145, T144, less34_out_gg(T145, T144)) → less34_out_gg(s(T145), s(T144))
U7_ggag(T126, T122, T127, T125, less34_out_gg(T126, T122)) → p32_out_ggag(T126, T122, T127, T125)
p32_in_ggag(T130, T122, T131, T125) → U8_ggag(T130, T122, T131, T125, less34_in_gg(T130, T122))
U8_ggag(T130, T122, T131, T125, less34_out_gg(T130, T122)) → U9_ggag(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
delete1_in_gag(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_gag(T167, T163, T164, T168, T166, p44_in_ggag(T163, T167, T168, T166))
p44_in_ggag(T163, T167, T168, T166) → U4_ggag(T163, T167, T168, T166, less46_in_gg(T163, T167))
less46_in_gg(0, s(T179)) → less46_out_gg(0, s(T179))
less46_in_gg(s(T184), s(T186)) → U3_gg(T184, T186, less46_in_gg(T184, T186))
U3_gg(T184, T186, less46_out_gg(T184, T186)) → less46_out_gg(s(T184), s(T186))
U4_ggag(T163, T167, T168, T166, less46_out_gg(T163, T167)) → p44_out_ggag(T163, T167, T168, T166)
p44_in_ggag(T163, T171, T172, T166) → U5_ggag(T163, T171, T172, T166, less46_in_gg(T163, T171))
U5_ggag(T163, T171, T172, T166, less46_out_gg(T163, T171)) → U6_ggag(T163, T171, T172, T166, delete1_in_gag(T171, T172, T166))
delete1_in_gag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_gag(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
delete1_in_gag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_gag(T223, T222, T224, T201, T202, p65_in_ggag(T223, T222, T224, T202))
p65_in_ggag(T223, T222, T224, T202) → U12_ggag(T223, T222, T224, T202, less34_in_gg(T223, T222))
U12_ggag(T223, T222, T224, T202, less34_out_gg(T223, T222)) → p65_out_ggag(T223, T222, T224, T202)
p65_in_ggag(T227, T222, T228, T202) → U13_ggag(T227, T222, T228, T202, less34_in_gg(T227, T222))
U13_ggag(T227, T222, T228, T202, less34_out_gg(T227, T222)) → U14_ggag(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
delete1_in_gag(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_gag(T250, T246, T247, T251, T249, p44_in_ggag(T246, T250, T251, T249))
U25_gag(T250, T246, T247, T251, T249, p44_out_ggag(T246, T250, T251, T249)) → delete1_out_gag(T250, tree(T246, T247, T251), tree(T246, T247, T249))
delete1_in_gag(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_gag(T264, T260, T261, T265, T263, p72_in_ggag(T260, T264, T265, T263))
p72_in_ggag(0, s(T272), T271, T263) → U10_ggag(T272, T271, T263, delete1_in_gag(s(T272), T271, T263))
delete1_in_gag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_gag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
U27_gag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_out_agg(T346, T343, T344)) → delete1_out_gag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345)))
delete1_in_gag(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_gag(T376, T372, T377, T374, T375, p32_in_ggag(T376, T372, T377, T375))
U28_gag(T376, T372, T377, T374, T375, p32_out_ggag(T376, T372, T377, T375)) → delete1_out_gag(T376, tree(T372, T377, T374), tree(T372, T375, T374))
delete1_in_gag(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_gag(T395, T391, T392, T396, T394, p72_in_ggag(T391, T395, T396, T394))
p72_in_ggag(s(T281), s(T283), T284, T263) → U11_ggag(T281, T283, T284, T263, p79_in_ggag(T281, T283, T284, T263))
p79_in_ggag(T281, T283, T284, T263) → U15_ggag(T281, T283, T284, T263, less46_in_gg(T281, T283))
U15_ggag(T281, T283, T284, T263, less46_out_gg(T281, T283)) → p79_out_ggag(T281, T283, T284, T263)
p79_in_ggag(T281, T287, T288, T263) → U16_ggag(T281, T287, T288, T263, less46_in_gg(T281, T287))
U16_ggag(T281, T287, T288, T263, less46_out_gg(T281, T287)) → U17_ggag(T281, T287, T288, T263, delete1_in_gag(s(T287), T288, T263))
delete1_in_gag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_gag(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
delete1_in_gag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_gag(T429, T428, T430, T407, T408, p65_in_ggag(T429, T428, T430, T408))
U31_gag(T429, T428, T430, T407, T408, p65_out_ggag(T429, T428, T430, T408)) → delete1_out_gag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407))
delete1_in_gag(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_gag(T448, T444, T445, T449, T447, p72_in_ggag(T444, T448, T449, T447))
U32_gag(T448, T444, T445, T449, T447, p72_out_ggag(T444, T448, T449, T447)) → delete1_out_gag(T448, tree(T444, T445, T449), tree(T444, T445, T447))
delete1_in_gag(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_gag(T462, T458, T459, T463, T461, p116_in_ggag(T458, T462, T463, T461))
p116_in_ggag(0, s(T470), T469, T461) → U18_ggag(T470, T469, T461, delete1_in_gag(s(T470), T469, T461))
delete1_in_gag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_gag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
U34_gag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_out_agg(T540, T537, T538)) → delete1_out_gag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539)))
delete1_in_gag(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_gag(T570, T566, T571, T568, T569, p32_in_ggag(T570, T566, T571, T569))
U35_gag(T570, T566, T571, T568, T569, p32_out_ggag(T570, T566, T571, T569)) → delete1_out_gag(T570, tree(T566, T571, T568), tree(T566, T569, T568))
delete1_in_gag(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_gag(T589, T585, T586, T590, T588, p116_in_ggag(T585, T589, T590, T588))
p116_in_ggag(s(T479), s(T481), T482, T461) → U19_ggag(T479, T481, T482, T461, p79_in_ggag(T479, T481, T482, T461))
U19_ggag(T479, T481, T482, T461, p79_out_ggag(T479, T481, T482, T461)) → p116_out_ggag(s(T479), s(T481), T482, T461)
U36_gag(T589, T585, T586, T590, T588, p116_out_ggag(T585, T589, T590, T588)) → delete1_out_gag(T589, tree(T585, T586, T590), tree(T585, T586, T588))
delete1_in_gag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_gag(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
delete1_in_gag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_gag(T623, T622, T624, T601, T602, p65_in_ggag(T623, T622, T624, T602))
U38_gag(T623, T622, T624, T601, T602, p65_out_ggag(T623, T622, T624, T602)) → delete1_out_gag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601))
delete1_in_gag(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_gag(T642, T638, T639, T643, T641, p116_in_ggag(T638, T642, T643, T641))
U39_gag(T642, T638, T639, T643, T641, p116_out_ggag(T638, T642, T643, T641)) → delete1_out_gag(T642, tree(T638, T639, T643), tree(T638, T639, T641))
delete1_in_gag(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_gag(T664, T653, T663, T655, delete1_in_gag(s(T664), T663, T655))
delete1_in_gag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_gag(T675, T673, T653, T676, T655, p79_in_ggag(T673, T675, T676, T655))
U41_gag(T675, T673, T653, T676, T655, p79_out_ggag(T673, T675, T676, T655)) → delete1_out_gag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655))
delete1_in_gag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_gag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
U42_gag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_out_agg(T730, T727, T728)) → delete1_out_gag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729)))
delete1_in_gag(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_gag(T760, T756, T761, T758, T759, p32_in_ggag(T760, T756, T761, T759))
U43_gag(T760, T756, T761, T758, T759, p32_out_ggag(T760, T756, T761, T759)) → delete1_out_gag(T760, tree(T756, T761, T758), tree(T756, T759, T758))
delete1_in_gag(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_gag(T779, T775, T776, T780, T778, p116_in_ggag(T775, T779, T780, T778))
U44_gag(T779, T775, T776, T780, T778, p116_out_ggag(T775, T779, T780, T778)) → delete1_out_gag(T779, tree(T775, T776, T780), tree(T775, T776, T778))
delete1_in_gag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_gag(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
delete1_in_gag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_gag(T813, T812, T814, T791, T792, p65_in_ggag(T813, T812, T814, T792))
U46_gag(T813, T812, T814, T791, T792, p65_out_ggag(T813, T812, T814, T792)) → delete1_out_gag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791))
delete1_in_gag(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_gag(T832, T828, T829, T833, T831, p116_in_ggag(T828, T832, T833, T831))
U47_gag(T832, T828, T829, T833, T831, p116_out_ggag(T828, T832, T833, T831)) → delete1_out_gag(T832, tree(T828, T829, T833), tree(T828, T829, T831))
delete1_in_gag(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_gag(T854, T843, T853, T845, delete1_in_gag(s(T854), T853, T845))
delete1_in_gag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_gag(T865, T863, T843, T866, T845, p79_in_ggag(T863, T865, T866, T845))
U49_gag(T865, T863, T843, T866, T845, p79_out_ggag(T863, T865, T866, T845)) → delete1_out_gag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845))
U48_gag(T854, T843, T853, T845, delete1_out_gag(s(T854), T853, T845)) → delete1_out_gag(s(T854), tree(0, T843, T853), tree(0, T843, T845))
U45_gag(T799, T800, T791, T792, delete1_out_gag(0, T800, T792)) → delete1_out_gag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791))
U40_gag(T664, T653, T663, T655, delete1_out_gag(s(T664), T663, T655)) → delete1_out_gag(s(T664), tree(0, T653, T663), tree(0, T653, T655))
U37_gag(T609, T610, T601, T602, delete1_out_gag(0, T610, T602)) → delete1_out_gag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601))
U18_ggag(T470, T469, T461, delete1_out_gag(s(T470), T469, T461)) → p116_out_ggag(0, s(T470), T469, T461)
U33_gag(T462, T458, T459, T463, T461, p116_out_ggag(T458, T462, T463, T461)) → delete1_out_gag(T462, tree(T458, T459, T463), tree(T458, T459, T461))
U30_gag(T415, T416, T407, T408, delete1_out_gag(0, T416, T408)) → delete1_out_gag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407))
U17_ggag(T281, T287, T288, T263, delete1_out_gag(s(T287), T288, T263)) → p79_out_ggag(T281, T287, T288, T263)
U11_ggag(T281, T283, T284, T263, p79_out_ggag(T281, T283, T284, T263)) → p72_out_ggag(s(T281), s(T283), T284, T263)
U29_gag(T395, T391, T392, T396, T394, p72_out_ggag(T391, T395, T396, T394)) → delete1_out_gag(T395, tree(T391, T392, T396), tree(T391, T392, T394))
U10_ggag(T272, T271, T263, delete1_out_gag(s(T272), T271, T263)) → p72_out_ggag(0, s(T272), T271, T263)
U26_gag(T264, T260, T261, T265, T263, p72_out_ggag(T260, T264, T265, T263)) → delete1_out_gag(T264, tree(T260, T261, T265), tree(T260, T261, T263))
U14_ggag(T227, T222, T228, T202, delete1_out_gag(s(T227), T228, T202)) → p65_out_ggag(T227, T222, T228, T202)
U24_gag(T223, T222, T224, T201, T202, p65_out_ggag(T223, T222, T224, T202)) → delete1_out_gag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201))
U23_gag(T209, T210, T201, T202, delete1_out_gag(0, T210, T202)) → delete1_out_gag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201))
U6_ggag(T163, T171, T172, T166, delete1_out_gag(T171, T172, T166)) → p44_out_ggag(T163, T171, T172, T166)
U22_gag(T167, T163, T164, T168, T166, p44_out_ggag(T163, T167, T168, T166)) → delete1_out_gag(T167, tree(T163, T164, T168), tree(T163, T164, T166))
U9_ggag(T130, T122, T131, T125, delete1_out_gag(T130, T131, T125)) → p32_out_ggag(T130, T122, T131, T125)
U21_gag(T126, T122, T127, T124, T125, p32_out_ggag(T126, T122, T127, T125)) → delete1_out_gag(T126, tree(T122, T127, T124), tree(T122, T125, T124))
U9_agag(T130, T122, T131, T125, delete1_out_gag(T130, T131, T125)) → p32_out_agag(T130, T122, T131, T125)
U21_aag(T126, T122, T127, T124, T125, p32_out_agag(T126, T122, T127, T125)) → delete1_out_aag(T126, tree(T122, T127, T124), tree(T122, T125, T124))
delete1_in_aag(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_aag(T167, T163, T164, T168, T166, p44_in_gaag(T163, T167, T168, T166))
p44_in_gaag(T163, T167, T168, T166) → U4_gaag(T163, T167, T168, T166, less46_in_ga(T163, T167))
less46_in_ga(0, s(T179)) → less46_out_ga(0, s(T179))
less46_in_ga(s(T184), s(T186)) → U3_ga(T184, T186, less46_in_ga(T184, T186))
U3_ga(T184, T186, less46_out_ga(T184, T186)) → less46_out_ga(s(T184), s(T186))
U4_gaag(T163, T167, T168, T166, less46_out_ga(T163, T167)) → p44_out_gaag(T163, T167, T168, T166)
p44_in_gaag(T163, T171, T172, T166) → U5_gaag(T163, T171, T172, T166, less46_in_ga(T163, T171))
U5_gaag(T163, T171, T172, T166, less46_out_ga(T163, T171)) → U6_gaag(T163, T171, T172, T166, delete1_in_aag(T171, T172, T166))
delete1_in_aag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_aag(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
U23_aag(T209, T210, T201, T202, delete1_out_gag(0, T210, T202)) → delete1_out_aag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201))
delete1_in_aag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_aag(T223, T222, T224, T201, T202, p65_in_agag(T223, T222, T224, T202))
p65_in_agag(T223, T222, T224, T202) → U12_agag(T223, T222, T224, T202, less34_in_ag(T223, T222))
U12_agag(T223, T222, T224, T202, less34_out_ag(T223, T222)) → p65_out_agag(T223, T222, T224, T202)
p65_in_agag(T227, T222, T228, T202) → U13_agag(T227, T222, T228, T202, less34_in_ag(T227, T222))
U13_agag(T227, T222, T228, T202, less34_out_ag(T227, T222)) → U14_agag(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
U14_agag(T227, T222, T228, T202, delete1_out_gag(s(T227), T228, T202)) → p65_out_agag(T227, T222, T228, T202)
U24_aag(T223, T222, T224, T201, T202, p65_out_agag(T223, T222, T224, T202)) → delete1_out_aag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201))
delete1_in_aag(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_aag(T250, T246, T247, T251, T249, p44_in_gaag(T246, T250, T251, T249))
U25_aag(T250, T246, T247, T251, T249, p44_out_gaag(T246, T250, T251, T249)) → delete1_out_aag(T250, tree(T246, T247, T251), tree(T246, T247, T249))
delete1_in_aag(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_aag(T264, T260, T261, T265, T263, p72_in_gaag(T260, T264, T265, T263))
p72_in_gaag(0, s(T272), T271, T263) → U10_gaag(T272, T271, T263, delete1_in_aag(s(T272), T271, T263))
delete1_in_aag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_aag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
U27_aag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_out_agg(T346, T343, T344)) → delete1_out_aag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345)))
delete1_in_aag(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_aag(T376, T372, T377, T374, T375, p32_in_agag(T376, T372, T377, T375))
U28_aag(T376, T372, T377, T374, T375, p32_out_agag(T376, T372, T377, T375)) → delete1_out_aag(T376, tree(T372, T377, T374), tree(T372, T375, T374))
delete1_in_aag(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_aag(T395, T391, T392, T396, T394, p72_in_gaag(T391, T395, T396, T394))
p72_in_gaag(s(T281), s(T283), T284, T263) → U11_gaag(T281, T283, T284, T263, p79_in_gaag(T281, T283, T284, T263))
p79_in_gaag(T281, T283, T284, T263) → U15_gaag(T281, T283, T284, T263, less46_in_ga(T281, T283))
U15_gaag(T281, T283, T284, T263, less46_out_ga(T281, T283)) → p79_out_gaag(T281, T283, T284, T263)
p79_in_gaag(T281, T287, T288, T263) → U16_gaag(T281, T287, T288, T263, less46_in_ga(T281, T287))
U16_gaag(T281, T287, T288, T263, less46_out_ga(T281, T287)) → U17_gaag(T281, T287, T288, T263, delete1_in_aag(s(T287), T288, T263))
delete1_in_aag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_aag(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
U30_aag(T415, T416, T407, T408, delete1_out_gag(0, T416, T408)) → delete1_out_aag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407))
delete1_in_aag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_aag(T429, T428, T430, T407, T408, p65_in_agag(T429, T428, T430, T408))
U31_aag(T429, T428, T430, T407, T408, p65_out_agag(T429, T428, T430, T408)) → delete1_out_aag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407))
delete1_in_aag(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_aag(T448, T444, T445, T449, T447, p72_in_gaag(T444, T448, T449, T447))
U32_aag(T448, T444, T445, T449, T447, p72_out_gaag(T444, T448, T449, T447)) → delete1_out_aag(T448, tree(T444, T445, T449), tree(T444, T445, T447))
delete1_in_aag(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_aag(T462, T458, T459, T463, T461, p116_in_gaag(T458, T462, T463, T461))
p116_in_gaag(0, s(T470), T469, T461) → U18_gaag(T470, T469, T461, delete1_in_aag(s(T470), T469, T461))
delete1_in_aag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_aag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
U34_aag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_out_agg(T540, T537, T538)) → delete1_out_aag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539)))
delete1_in_aag(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_aag(T570, T566, T571, T568, T569, p32_in_agag(T570, T566, T571, T569))
U35_aag(T570, T566, T571, T568, T569, p32_out_agag(T570, T566, T571, T569)) → delete1_out_aag(T570, tree(T566, T571, T568), tree(T566, T569, T568))
delete1_in_aag(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_aag(T589, T585, T586, T590, T588, p116_in_gaag(T585, T589, T590, T588))
p116_in_gaag(s(T479), s(T481), T482, T461) → U19_gaag(T479, T481, T482, T461, p79_in_gaag(T479, T481, T482, T461))
U19_gaag(T479, T481, T482, T461, p79_out_gaag(T479, T481, T482, T461)) → p116_out_gaag(s(T479), s(T481), T482, T461)
U36_aag(T589, T585, T586, T590, T588, p116_out_gaag(T585, T589, T590, T588)) → delete1_out_aag(T589, tree(T585, T586, T590), tree(T585, T586, T588))
delete1_in_aag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_aag(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
U37_aag(T609, T610, T601, T602, delete1_out_gag(0, T610, T602)) → delete1_out_aag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601))
delete1_in_aag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_aag(T623, T622, T624, T601, T602, p65_in_agag(T623, T622, T624, T602))
U38_aag(T623, T622, T624, T601, T602, p65_out_agag(T623, T622, T624, T602)) → delete1_out_aag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601))
delete1_in_aag(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_aag(T642, T638, T639, T643, T641, p116_in_gaag(T638, T642, T643, T641))
U39_aag(T642, T638, T639, T643, T641, p116_out_gaag(T638, T642, T643, T641)) → delete1_out_aag(T642, tree(T638, T639, T643), tree(T638, T639, T641))
delete1_in_aag(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_aag(T664, T653, T663, T655, delete1_in_aag(s(T664), T663, T655))
delete1_in_aag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_aag(T675, T673, T653, T676, T655, p79_in_gaag(T673, T675, T676, T655))
U41_aag(T675, T673, T653, T676, T655, p79_out_gaag(T673, T675, T676, T655)) → delete1_out_aag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655))
delete1_in_aag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_aag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
U42_aag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_out_agg(T730, T727, T728)) → delete1_out_aag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729)))
delete1_in_aag(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_aag(T760, T756, T761, T758, T759, p32_in_agag(T760, T756, T761, T759))
U43_aag(T760, T756, T761, T758, T759, p32_out_agag(T760, T756, T761, T759)) → delete1_out_aag(T760, tree(T756, T761, T758), tree(T756, T759, T758))
delete1_in_aag(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_aag(T779, T775, T776, T780, T778, p116_in_gaag(T775, T779, T780, T778))
U44_aag(T779, T775, T776, T780, T778, p116_out_gaag(T775, T779, T780, T778)) → delete1_out_aag(T779, tree(T775, T776, T780), tree(T775, T776, T778))
delete1_in_aag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_aag(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
U45_aag(T799, T800, T791, T792, delete1_out_gag(0, T800, T792)) → delete1_out_aag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791))
delete1_in_aag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_aag(T813, T812, T814, T791, T792, p65_in_agag(T813, T812, T814, T792))
U46_aag(T813, T812, T814, T791, T792, p65_out_agag(T813, T812, T814, T792)) → delete1_out_aag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791))
delete1_in_aag(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_aag(T832, T828, T829, T833, T831, p116_in_gaag(T828, T832, T833, T831))
U47_aag(T832, T828, T829, T833, T831, p116_out_gaag(T828, T832, T833, T831)) → delete1_out_aag(T832, tree(T828, T829, T833), tree(T828, T829, T831))
delete1_in_aag(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_aag(T854, T843, T853, T845, delete1_in_aag(s(T854), T853, T845))
delete1_in_aag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_aag(T865, T863, T843, T866, T845, p79_in_gaag(T863, T865, T866, T845))
U49_aag(T865, T863, T843, T866, T845, p79_out_gaag(T863, T865, T866, T845)) → delete1_out_aag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845))
U48_aag(T854, T843, T853, T845, delete1_out_aag(s(T854), T853, T845)) → delete1_out_aag(s(T854), tree(0, T843, T853), tree(0, T843, T845))
U40_aag(T664, T653, T663, T655, delete1_out_aag(s(T664), T663, T655)) → delete1_out_aag(s(T664), tree(0, T653, T663), tree(0, T653, T655))
U18_gaag(T470, T469, T461, delete1_out_aag(s(T470), T469, T461)) → p116_out_gaag(0, s(T470), T469, T461)
U33_aag(T462, T458, T459, T463, T461, p116_out_gaag(T458, T462, T463, T461)) → delete1_out_aag(T462, tree(T458, T459, T463), tree(T458, T459, T461))
U17_gaag(T281, T287, T288, T263, delete1_out_aag(s(T287), T288, T263)) → p79_out_gaag(T281, T287, T288, T263)
U11_gaag(T281, T283, T284, T263, p79_out_gaag(T281, T283, T284, T263)) → p72_out_gaag(s(T281), s(T283), T284, T263)
U29_aag(T395, T391, T392, T396, T394, p72_out_gaag(T391, T395, T396, T394)) → delete1_out_aag(T395, tree(T391, T392, T396), tree(T391, T392, T394))
U10_gaag(T272, T271, T263, delete1_out_aag(s(T272), T271, T263)) → p72_out_gaag(0, s(T272), T271, T263)
U26_aag(T264, T260, T261, T265, T263, p72_out_gaag(T260, T264, T265, T263)) → delete1_out_aag(T264, tree(T260, T261, T265), tree(T260, T261, T263))
U6_gaag(T163, T171, T172, T166, delete1_out_aag(T171, T172, T166)) → p44_out_gaag(T163, T171, T172, T166)
U22_aag(T167, T163, T164, T168, T166, p44_out_gaag(T163, T167, T168, T166)) → delete1_out_aag(T167, tree(T163, T164, T168), tree(T163, T164, T166))

The argument filtering Pi contains the following mapping:
delete1_in_aag(x1, x2, x3)  =  delete1_in_aag(x3)
delete1_out_aag(x1, x2, x3)  =  delete1_out_aag
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U20_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aag(x9)
delmin19_in_agg(x1, x2, x3)  =  delmin19_in_agg(x2, x3)
delmin19_out_agg(x1, x2, x3)  =  delmin19_out_agg
U1_agg(x1, x2, x3, x4, x5, x6, x7)  =  U1_agg(x7)
U21_aag(x1, x2, x3, x4, x5, x6)  =  U21_aag(x6)
p32_in_agag(x1, x2, x3, x4)  =  p32_in_agag(x2, x4)
U7_agag(x1, x2, x3, x4, x5)  =  U7_agag(x5)
less34_in_ag(x1, x2)  =  less34_in_ag(x2)
s(x1)  =  s(x1)
less34_out_ag(x1, x2)  =  less34_out_ag(x1)
U2_ag(x1, x2, x3)  =  U2_ag(x3)
p32_out_agag(x1, x2, x3, x4)  =  p32_out_agag(x1)
U8_agag(x1, x2, x3, x4, x5)  =  U8_agag(x4, x5)
U9_agag(x1, x2, x3, x4, x5)  =  U9_agag(x1, x5)
delete1_in_gag(x1, x2, x3)  =  delete1_in_gag(x1, x3)
delete1_out_gag(x1, x2, x3)  =  delete1_out_gag
U20_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gag(x9)
U21_gag(x1, x2, x3, x4, x5, x6)  =  U21_gag(x6)
p32_in_ggag(x1, x2, x3, x4)  =  p32_in_ggag(x1, x2, x4)
U7_ggag(x1, x2, x3, x4, x5)  =  U7_ggag(x5)
less34_in_gg(x1, x2)  =  less34_in_gg(x1, x2)
0  =  0
less34_out_gg(x1, x2)  =  less34_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
p32_out_ggag(x1, x2, x3, x4)  =  p32_out_ggag
U8_ggag(x1, x2, x3, x4, x5)  =  U8_ggag(x1, x4, x5)
U9_ggag(x1, x2, x3, x4, x5)  =  U9_ggag(x5)
U22_gag(x1, x2, x3, x4, x5, x6)  =  U22_gag(x6)
p44_in_ggag(x1, x2, x3, x4)  =  p44_in_ggag(x1, x2, x4)
U4_ggag(x1, x2, x3, x4, x5)  =  U4_ggag(x5)
less46_in_gg(x1, x2)  =  less46_in_gg(x1, x2)
less46_out_gg(x1, x2)  =  less46_out_gg
U3_gg(x1, x2, x3)  =  U3_gg(x3)
p44_out_ggag(x1, x2, x3, x4)  =  p44_out_ggag
U5_ggag(x1, x2, x3, x4, x5)  =  U5_ggag(x2, x4, x5)
U6_ggag(x1, x2, x3, x4, x5)  =  U6_ggag(x5)
U23_gag(x1, x2, x3, x4, x5)  =  U23_gag(x5)
U24_gag(x1, x2, x3, x4, x5, x6)  =  U24_gag(x6)
p65_in_ggag(x1, x2, x3, x4)  =  p65_in_ggag(x1, x2, x4)
U12_ggag(x1, x2, x3, x4, x5)  =  U12_ggag(x5)
p65_out_ggag(x1, x2, x3, x4)  =  p65_out_ggag
U13_ggag(x1, x2, x3, x4, x5)  =  U13_ggag(x1, x4, x5)
U14_ggag(x1, x2, x3, x4, x5)  =  U14_ggag(x5)
U25_gag(x1, x2, x3, x4, x5, x6)  =  U25_gag(x6)
U26_gag(x1, x2, x3, x4, x5, x6)  =  U26_gag(x6)
p72_in_ggag(x1, x2, x3, x4)  =  p72_in_ggag(x1, x2, x4)
U10_ggag(x1, x2, x3, x4)  =  U10_ggag(x4)
U27_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gag(x9)
U28_gag(x1, x2, x3, x4, x5, x6)  =  U28_gag(x6)
U29_gag(x1, x2, x3, x4, x5, x6)  =  U29_gag(x6)
U11_ggag(x1, x2, x3, x4, x5)  =  U11_ggag(x5)
p79_in_ggag(x1, x2, x3, x4)  =  p79_in_ggag(x1, x2, x4)
U15_ggag(x1, x2, x3, x4, x5)  =  U15_ggag(x5)
p79_out_ggag(x1, x2, x3, x4)  =  p79_out_ggag
U16_ggag(x1, x2, x3, x4, x5)  =  U16_ggag(x2, x4, x5)
U17_ggag(x1, x2, x3, x4, x5)  =  U17_ggag(x5)
U30_gag(x1, x2, x3, x4, x5)  =  U30_gag(x5)
U31_gag(x1, x2, x3, x4, x5, x6)  =  U31_gag(x6)
U32_gag(x1, x2, x3, x4, x5, x6)  =  U32_gag(x6)
p72_out_ggag(x1, x2, x3, x4)  =  p72_out_ggag
U33_gag(x1, x2, x3, x4, x5, x6)  =  U33_gag(x6)
p116_in_ggag(x1, x2, x3, x4)  =  p116_in_ggag(x1, x2, x4)
U18_ggag(x1, x2, x3, x4)  =  U18_ggag(x4)
U34_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_gag(x9)
U35_gag(x1, x2, x3, x4, x5, x6)  =  U35_gag(x6)
U36_gag(x1, x2, x3, x4, x5, x6)  =  U36_gag(x6)
U19_ggag(x1, x2, x3, x4, x5)  =  U19_ggag(x5)
p116_out_ggag(x1, x2, x3, x4)  =  p116_out_ggag
U37_gag(x1, x2, x3, x4, x5)  =  U37_gag(x5)
U38_gag(x1, x2, x3, x4, x5, x6)  =  U38_gag(x6)
U39_gag(x1, x2, x3, x4, x5, x6)  =  U39_gag(x6)
U40_gag(x1, x2, x3, x4, x5)  =  U40_gag(x5)
U41_gag(x1, x2, x3, x4, x5, x6)  =  U41_gag(x6)
U42_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_gag(x9)
U43_gag(x1, x2, x3, x4, x5, x6)  =  U43_gag(x6)
U44_gag(x1, x2, x3, x4, x5, x6)  =  U44_gag(x6)
U45_gag(x1, x2, x3, x4, x5)  =  U45_gag(x5)
U46_gag(x1, x2, x3, x4, x5, x6)  =  U46_gag(x6)
U47_gag(x1, x2, x3, x4, x5, x6)  =  U47_gag(x6)
U48_gag(x1, x2, x3, x4, x5)  =  U48_gag(x5)
U49_gag(x1, x2, x3, x4, x5, x6)  =  U49_gag(x6)
U22_aag(x1, x2, x3, x4, x5, x6)  =  U22_aag(x6)
p44_in_gaag(x1, x2, x3, x4)  =  p44_in_gaag(x1, x4)
U4_gaag(x1, x2, x3, x4, x5)  =  U4_gaag(x5)
less46_in_ga(x1, x2)  =  less46_in_ga(x1)
less46_out_ga(x1, x2)  =  less46_out_ga
U3_ga(x1, x2, x3)  =  U3_ga(x3)
p44_out_gaag(x1, x2, x3, x4)  =  p44_out_gaag
U5_gaag(x1, x2, x3, x4, x5)  =  U5_gaag(x4, x5)
U6_gaag(x1, x2, x3, x4, x5)  =  U6_gaag(x5)
U23_aag(x1, x2, x3, x4, x5)  =  U23_aag(x5)
U24_aag(x1, x2, x3, x4, x5, x6)  =  U24_aag(x6)
p65_in_agag(x1, x2, x3, x4)  =  p65_in_agag(x2, x4)
U12_agag(x1, x2, x3, x4, x5)  =  U12_agag(x5)
p65_out_agag(x1, x2, x3, x4)  =  p65_out_agag(x1)
U13_agag(x1, x2, x3, x4, x5)  =  U13_agag(x4, x5)
U14_agag(x1, x2, x3, x4, x5)  =  U14_agag(x1, x5)
U25_aag(x1, x2, x3, x4, x5, x6)  =  U25_aag(x6)
U26_aag(x1, x2, x3, x4, x5, x6)  =  U26_aag(x6)
p72_in_gaag(x1, x2, x3, x4)  =  p72_in_gaag(x1, x4)
U10_gaag(x1, x2, x3, x4)  =  U10_gaag(x4)
U27_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aag(x9)
U28_aag(x1, x2, x3, x4, x5, x6)  =  U28_aag(x6)
U29_aag(x1, x2, x3, x4, x5, x6)  =  U29_aag(x6)
U11_gaag(x1, x2, x3, x4, x5)  =  U11_gaag(x5)
p79_in_gaag(x1, x2, x3, x4)  =  p79_in_gaag(x1, x4)
U15_gaag(x1, x2, x3, x4, x5)  =  U15_gaag(x5)
p79_out_gaag(x1, x2, x3, x4)  =  p79_out_gaag
U16_gaag(x1, x2, x3, x4, x5)  =  U16_gaag(x4, x5)
U17_gaag(x1, x2, x3, x4, x5)  =  U17_gaag(x5)
U30_aag(x1, x2, x3, x4, x5)  =  U30_aag(x5)
U31_aag(x1, x2, x3, x4, x5, x6)  =  U31_aag(x6)
U32_aag(x1, x2, x3, x4, x5, x6)  =  U32_aag(x6)
p72_out_gaag(x1, x2, x3, x4)  =  p72_out_gaag
U33_aag(x1, x2, x3, x4, x5, x6)  =  U33_aag(x6)
p116_in_gaag(x1, x2, x3, x4)  =  p116_in_gaag(x1, x4)
U18_gaag(x1, x2, x3, x4)  =  U18_gaag(x4)
U34_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_aag(x9)
U35_aag(x1, x2, x3, x4, x5, x6)  =  U35_aag(x6)
U36_aag(x1, x2, x3, x4, x5, x6)  =  U36_aag(x6)
U19_gaag(x1, x2, x3, x4, x5)  =  U19_gaag(x5)
p116_out_gaag(x1, x2, x3, x4)  =  p116_out_gaag
U37_aag(x1, x2, x3, x4, x5)  =  U37_aag(x5)
U38_aag(x1, x2, x3, x4, x5, x6)  =  U38_aag(x6)
U39_aag(x1, x2, x3, x4, x5, x6)  =  U39_aag(x6)
U40_aag(x1, x2, x3, x4, x5)  =  U40_aag(x5)
U41_aag(x1, x2, x3, x4, x5, x6)  =  U41_aag(x6)
U42_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_aag(x9)
U43_aag(x1, x2, x3, x4, x5, x6)  =  U43_aag(x6)
U44_aag(x1, x2, x3, x4, x5, x6)  =  U44_aag(x6)
U45_aag(x1, x2, x3, x4, x5)  =  U45_aag(x5)
U46_aag(x1, x2, x3, x4, x5, x6)  =  U46_aag(x6)
U47_aag(x1, x2, x3, x4, x5, x6)  =  U47_aag(x6)
U48_aag(x1, x2, x3, x4, x5)  =  U48_aag(x5)
U49_aag(x1, x2, x3, x4, x5, x6)  =  U49_aag(x6)

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

DELETE1_IN_AAG(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_AAG(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
DELETE1_IN_AAG(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → DELMIN19_IN_AGG(T63, T60, T61)
DELMIN19_IN_AGG(tree(T90, T96, T92), T93, tree(T90, T94, T95)) → U1_AGG(T90, T96, T92, T93, T94, T95, delmin19_in_agg(T96, T93, T94))
DELMIN19_IN_AGG(tree(T90, T96, T92), T93, tree(T90, T94, T95)) → DELMIN19_IN_AGG(T96, T93, T94)
DELETE1_IN_AAG(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_AAG(T126, T122, T127, T124, T125, p32_in_agag(T126, T122, T127, T125))
DELETE1_IN_AAG(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → P32_IN_AGAG(T126, T122, T127, T125)
P32_IN_AGAG(T126, T122, T127, T125) → U7_AGAG(T126, T122, T127, T125, less34_in_ag(T126, T122))
P32_IN_AGAG(T126, T122, T127, T125) → LESS34_IN_AG(T126, T122)
LESS34_IN_AG(s(T145), s(T144)) → U2_AG(T145, T144, less34_in_ag(T145, T144))
LESS34_IN_AG(s(T145), s(T144)) → LESS34_IN_AG(T145, T144)
P32_IN_AGAG(T130, T122, T131, T125) → U8_AGAG(T130, T122, T131, T125, less34_in_ag(T130, T122))
U8_AGAG(T130, T122, T131, T125, less34_out_ag(T130, T122)) → U9_AGAG(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
U8_AGAG(T130, T122, T131, T125, less34_out_ag(T130, T122)) → DELETE1_IN_GAG(T130, T131, T125)
DELETE1_IN_GAG(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_GAG(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
DELETE1_IN_GAG(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → DELMIN19_IN_AGG(T63, T60, T61)
DELETE1_IN_GAG(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_GAG(T126, T122, T127, T124, T125, p32_in_ggag(T126, T122, T127, T125))
DELETE1_IN_GAG(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → P32_IN_GGAG(T126, T122, T127, T125)
P32_IN_GGAG(T126, T122, T127, T125) → U7_GGAG(T126, T122, T127, T125, less34_in_gg(T126, T122))
P32_IN_GGAG(T126, T122, T127, T125) → LESS34_IN_GG(T126, T122)
LESS34_IN_GG(s(T145), s(T144)) → U2_GG(T145, T144, less34_in_gg(T145, T144))
LESS34_IN_GG(s(T145), s(T144)) → LESS34_IN_GG(T145, T144)
P32_IN_GGAG(T130, T122, T131, T125) → U8_GGAG(T130, T122, T131, T125, less34_in_gg(T130, T122))
U8_GGAG(T130, T122, T131, T125, less34_out_gg(T130, T122)) → U9_GGAG(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
U8_GGAG(T130, T122, T131, T125, less34_out_gg(T130, T122)) → DELETE1_IN_GAG(T130, T131, T125)
DELETE1_IN_GAG(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_GAG(T167, T163, T164, T168, T166, p44_in_ggag(T163, T167, T168, T166))
DELETE1_IN_GAG(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → P44_IN_GGAG(T163, T167, T168, T166)
P44_IN_GGAG(T163, T167, T168, T166) → U4_GGAG(T163, T167, T168, T166, less46_in_gg(T163, T167))
P44_IN_GGAG(T163, T167, T168, T166) → LESS46_IN_GG(T163, T167)
LESS46_IN_GG(s(T184), s(T186)) → U3_GG(T184, T186, less46_in_gg(T184, T186))
LESS46_IN_GG(s(T184), s(T186)) → LESS46_IN_GG(T184, T186)
P44_IN_GGAG(T163, T171, T172, T166) → U5_GGAG(T163, T171, T172, T166, less46_in_gg(T163, T171))
U5_GGAG(T163, T171, T172, T166, less46_out_gg(T163, T171)) → U6_GGAG(T163, T171, T172, T166, delete1_in_gag(T171, T172, T166))
U5_GGAG(T163, T171, T172, T166, less46_out_gg(T163, T171)) → DELETE1_IN_GAG(T171, T172, T166)
DELETE1_IN_GAG(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_GAG(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
DELETE1_IN_GAG(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → DELETE1_IN_GAG(0, T210, T202)
DELETE1_IN_GAG(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_GAG(T223, T222, T224, T201, T202, p65_in_ggag(T223, T222, T224, T202))
DELETE1_IN_GAG(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → P65_IN_GGAG(T223, T222, T224, T202)
P65_IN_GGAG(T223, T222, T224, T202) → U12_GGAG(T223, T222, T224, T202, less34_in_gg(T223, T222))
P65_IN_GGAG(T223, T222, T224, T202) → LESS34_IN_GG(T223, T222)
P65_IN_GGAG(T227, T222, T228, T202) → U13_GGAG(T227, T222, T228, T202, less34_in_gg(T227, T222))
U13_GGAG(T227, T222, T228, T202, less34_out_gg(T227, T222)) → U14_GGAG(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
U13_GGAG(T227, T222, T228, T202, less34_out_gg(T227, T222)) → DELETE1_IN_GAG(s(T227), T228, T202)
DELETE1_IN_GAG(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_GAG(T250, T246, T247, T251, T249, p44_in_ggag(T246, T250, T251, T249))
DELETE1_IN_GAG(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_GAG(T264, T260, T261, T265, T263, p72_in_ggag(T260, T264, T265, T263))
DELETE1_IN_GAG(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → P72_IN_GGAG(T260, T264, T265, T263)
P72_IN_GGAG(0, s(T272), T271, T263) → U10_GGAG(T272, T271, T263, delete1_in_gag(s(T272), T271, T263))
P72_IN_GGAG(0, s(T272), T271, T263) → DELETE1_IN_GAG(s(T272), T271, T263)
DELETE1_IN_GAG(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_GAG(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
DELETE1_IN_GAG(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_GAG(T376, T372, T377, T374, T375, p32_in_ggag(T376, T372, T377, T375))
DELETE1_IN_GAG(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_GAG(T395, T391, T392, T396, T394, p72_in_ggag(T391, T395, T396, T394))
P72_IN_GGAG(s(T281), s(T283), T284, T263) → U11_GGAG(T281, T283, T284, T263, p79_in_ggag(T281, T283, T284, T263))
P72_IN_GGAG(s(T281), s(T283), T284, T263) → P79_IN_GGAG(T281, T283, T284, T263)
P79_IN_GGAG(T281, T283, T284, T263) → U15_GGAG(T281, T283, T284, T263, less46_in_gg(T281, T283))
P79_IN_GGAG(T281, T283, T284, T263) → LESS46_IN_GG(T281, T283)
P79_IN_GGAG(T281, T287, T288, T263) → U16_GGAG(T281, T287, T288, T263, less46_in_gg(T281, T287))
U16_GGAG(T281, T287, T288, T263, less46_out_gg(T281, T287)) → U17_GGAG(T281, T287, T288, T263, delete1_in_gag(s(T287), T288, T263))
U16_GGAG(T281, T287, T288, T263, less46_out_gg(T281, T287)) → DELETE1_IN_GAG(s(T287), T288, T263)
DELETE1_IN_GAG(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_GAG(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
DELETE1_IN_GAG(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_GAG(T429, T428, T430, T407, T408, p65_in_ggag(T429, T428, T430, T408))
DELETE1_IN_GAG(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_GAG(T448, T444, T445, T449, T447, p72_in_ggag(T444, T448, T449, T447))
DELETE1_IN_GAG(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_GAG(T462, T458, T459, T463, T461, p116_in_ggag(T458, T462, T463, T461))
DELETE1_IN_GAG(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → P116_IN_GGAG(T458, T462, T463, T461)
P116_IN_GGAG(0, s(T470), T469, T461) → U18_GGAG(T470, T469, T461, delete1_in_gag(s(T470), T469, T461))
P116_IN_GGAG(0, s(T470), T469, T461) → DELETE1_IN_GAG(s(T470), T469, T461)
DELETE1_IN_GAG(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_GAG(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
DELETE1_IN_GAG(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_GAG(T570, T566, T571, T568, T569, p32_in_ggag(T570, T566, T571, T569))
DELETE1_IN_GAG(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_GAG(T589, T585, T586, T590, T588, p116_in_ggag(T585, T589, T590, T588))
P116_IN_GGAG(s(T479), s(T481), T482, T461) → U19_GGAG(T479, T481, T482, T461, p79_in_ggag(T479, T481, T482, T461))
P116_IN_GGAG(s(T479), s(T481), T482, T461) → P79_IN_GGAG(T479, T481, T482, T461)
DELETE1_IN_GAG(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_GAG(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
DELETE1_IN_GAG(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_GAG(T623, T622, T624, T601, T602, p65_in_ggag(T623, T622, T624, T602))
DELETE1_IN_GAG(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_GAG(T642, T638, T639, T643, T641, p116_in_ggag(T638, T642, T643, T641))
DELETE1_IN_GAG(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_GAG(T664, T653, T663, T655, delete1_in_gag(s(T664), T663, T655))
DELETE1_IN_GAG(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → DELETE1_IN_GAG(s(T664), T663, T655)
DELETE1_IN_GAG(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_GAG(T675, T673, T653, T676, T655, p79_in_ggag(T673, T675, T676, T655))
DELETE1_IN_GAG(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → P79_IN_GGAG(T673, T675, T676, T655)
DELETE1_IN_GAG(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_GAG(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
DELETE1_IN_GAG(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_GAG(T760, T756, T761, T758, T759, p32_in_ggag(T760, T756, T761, T759))
DELETE1_IN_GAG(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_GAG(T779, T775, T776, T780, T778, p116_in_ggag(T775, T779, T780, T778))
DELETE1_IN_GAG(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_GAG(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
DELETE1_IN_GAG(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_GAG(T813, T812, T814, T791, T792, p65_in_ggag(T813, T812, T814, T792))
DELETE1_IN_GAG(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_GAG(T832, T828, T829, T833, T831, p116_in_ggag(T828, T832, T833, T831))
DELETE1_IN_GAG(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_GAG(T854, T843, T853, T845, delete1_in_gag(s(T854), T853, T845))
DELETE1_IN_GAG(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_GAG(T865, T863, T843, T866, T845, p79_in_ggag(T863, T865, T866, T845))
DELETE1_IN_AAG(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_AAG(T167, T163, T164, T168, T166, p44_in_gaag(T163, T167, T168, T166))
DELETE1_IN_AAG(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → P44_IN_GAAG(T163, T167, T168, T166)
P44_IN_GAAG(T163, T167, T168, T166) → U4_GAAG(T163, T167, T168, T166, less46_in_ga(T163, T167))
P44_IN_GAAG(T163, T167, T168, T166) → LESS46_IN_GA(T163, T167)
LESS46_IN_GA(s(T184), s(T186)) → U3_GA(T184, T186, less46_in_ga(T184, T186))
LESS46_IN_GA(s(T184), s(T186)) → LESS46_IN_GA(T184, T186)
P44_IN_GAAG(T163, T171, T172, T166) → U5_GAAG(T163, T171, T172, T166, less46_in_ga(T163, T171))
U5_GAAG(T163, T171, T172, T166, less46_out_ga(T163, T171)) → U6_GAAG(T163, T171, T172, T166, delete1_in_aag(T171, T172, T166))
U5_GAAG(T163, T171, T172, T166, less46_out_ga(T163, T171)) → DELETE1_IN_AAG(T171, T172, T166)
DELETE1_IN_AAG(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_AAG(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
DELETE1_IN_AAG(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → DELETE1_IN_GAG(0, T210, T202)
DELETE1_IN_AAG(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_AAG(T223, T222, T224, T201, T202, p65_in_agag(T223, T222, T224, T202))
DELETE1_IN_AAG(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → P65_IN_AGAG(T223, T222, T224, T202)
P65_IN_AGAG(T223, T222, T224, T202) → U12_AGAG(T223, T222, T224, T202, less34_in_ag(T223, T222))
P65_IN_AGAG(T223, T222, T224, T202) → LESS34_IN_AG(T223, T222)
P65_IN_AGAG(T227, T222, T228, T202) → U13_AGAG(T227, T222, T228, T202, less34_in_ag(T227, T222))
U13_AGAG(T227, T222, T228, T202, less34_out_ag(T227, T222)) → U14_AGAG(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
U13_AGAG(T227, T222, T228, T202, less34_out_ag(T227, T222)) → DELETE1_IN_GAG(s(T227), T228, T202)
DELETE1_IN_AAG(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_AAG(T250, T246, T247, T251, T249, p44_in_gaag(T246, T250, T251, T249))
DELETE1_IN_AAG(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_AAG(T264, T260, T261, T265, T263, p72_in_gaag(T260, T264, T265, T263))
DELETE1_IN_AAG(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → P72_IN_GAAG(T260, T264, T265, T263)
P72_IN_GAAG(0, s(T272), T271, T263) → U10_GAAG(T272, T271, T263, delete1_in_aag(s(T272), T271, T263))
P72_IN_GAAG(0, s(T272), T271, T263) → DELETE1_IN_AAG(s(T272), T271, T263)
DELETE1_IN_AAG(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_AAG(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
DELETE1_IN_AAG(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_AAG(T376, T372, T377, T374, T375, p32_in_agag(T376, T372, T377, T375))
DELETE1_IN_AAG(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_AAG(T395, T391, T392, T396, T394, p72_in_gaag(T391, T395, T396, T394))
P72_IN_GAAG(s(T281), s(T283), T284, T263) → U11_GAAG(T281, T283, T284, T263, p79_in_gaag(T281, T283, T284, T263))
P72_IN_GAAG(s(T281), s(T283), T284, T263) → P79_IN_GAAG(T281, T283, T284, T263)
P79_IN_GAAG(T281, T283, T284, T263) → U15_GAAG(T281, T283, T284, T263, less46_in_ga(T281, T283))
P79_IN_GAAG(T281, T283, T284, T263) → LESS46_IN_GA(T281, T283)
P79_IN_GAAG(T281, T287, T288, T263) → U16_GAAG(T281, T287, T288, T263, less46_in_ga(T281, T287))
U16_GAAG(T281, T287, T288, T263, less46_out_ga(T281, T287)) → U17_GAAG(T281, T287, T288, T263, delete1_in_aag(s(T287), T288, T263))
U16_GAAG(T281, T287, T288, T263, less46_out_ga(T281, T287)) → DELETE1_IN_AAG(s(T287), T288, T263)
DELETE1_IN_AAG(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_AAG(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
DELETE1_IN_AAG(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_AAG(T429, T428, T430, T407, T408, p65_in_agag(T429, T428, T430, T408))
DELETE1_IN_AAG(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_AAG(T448, T444, T445, T449, T447, p72_in_gaag(T444, T448, T449, T447))
DELETE1_IN_AAG(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_AAG(T462, T458, T459, T463, T461, p116_in_gaag(T458, T462, T463, T461))
DELETE1_IN_AAG(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → P116_IN_GAAG(T458, T462, T463, T461)
P116_IN_GAAG(0, s(T470), T469, T461) → U18_GAAG(T470, T469, T461, delete1_in_aag(s(T470), T469, T461))
P116_IN_GAAG(0, s(T470), T469, T461) → DELETE1_IN_AAG(s(T470), T469, T461)
DELETE1_IN_AAG(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_AAG(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
DELETE1_IN_AAG(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_AAG(T570, T566, T571, T568, T569, p32_in_agag(T570, T566, T571, T569))
DELETE1_IN_AAG(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_AAG(T589, T585, T586, T590, T588, p116_in_gaag(T585, T589, T590, T588))
P116_IN_GAAG(s(T479), s(T481), T482, T461) → U19_GAAG(T479, T481, T482, T461, p79_in_gaag(T479, T481, T482, T461))
P116_IN_GAAG(s(T479), s(T481), T482, T461) → P79_IN_GAAG(T479, T481, T482, T461)
DELETE1_IN_AAG(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_AAG(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
DELETE1_IN_AAG(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_AAG(T623, T622, T624, T601, T602, p65_in_agag(T623, T622, T624, T602))
DELETE1_IN_AAG(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_AAG(T642, T638, T639, T643, T641, p116_in_gaag(T638, T642, T643, T641))
DELETE1_IN_AAG(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_AAG(T664, T653, T663, T655, delete1_in_aag(s(T664), T663, T655))
DELETE1_IN_AAG(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → DELETE1_IN_AAG(s(T664), T663, T655)
DELETE1_IN_AAG(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_AAG(T675, T673, T653, T676, T655, p79_in_gaag(T673, T675, T676, T655))
DELETE1_IN_AAG(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → P79_IN_GAAG(T673, T675, T676, T655)
DELETE1_IN_AAG(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_AAG(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
DELETE1_IN_AAG(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_AAG(T760, T756, T761, T758, T759, p32_in_agag(T760, T756, T761, T759))
DELETE1_IN_AAG(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_AAG(T779, T775, T776, T780, T778, p116_in_gaag(T775, T779, T780, T778))
DELETE1_IN_AAG(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_AAG(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
DELETE1_IN_AAG(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_AAG(T813, T812, T814, T791, T792, p65_in_agag(T813, T812, T814, T792))
DELETE1_IN_AAG(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_AAG(T832, T828, T829, T833, T831, p116_in_gaag(T828, T832, T833, T831))
DELETE1_IN_AAG(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_AAG(T854, T843, T853, T845, delete1_in_aag(s(T854), T853, T845))
DELETE1_IN_AAG(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_AAG(T865, T863, T843, T866, T845, p79_in_gaag(T863, T865, T866, T845))

The TRS R consists of the following rules:

delete1_in_aag(T6, tree(T6, void, T7), T7) → delete1_out_aag(T6, tree(T6, void, T7), T7)
delete1_in_aag(T10, tree(T10, T11, void), T11) → delete1_out_aag(T10, tree(T10, T11, void), T11)
delete1_in_aag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32)) → delete1_out_aag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32))
delete1_in_aag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_aag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
delmin19_in_agg(tree(T76, void, T77), T76, T77) → delmin19_out_agg(tree(T76, void, T77), T76, T77)
delmin19_in_agg(tree(T90, T96, T92), T93, tree(T90, T94, T95)) → U1_agg(T90, T96, T92, T93, T94, T95, delmin19_in_agg(T96, T93, T94))
U1_agg(T90, T96, T92, T93, T94, T95, delmin19_out_agg(T96, T93, T94)) → delmin19_out_agg(tree(T90, T96, T92), T93, tree(T90, T94, T95))
U20_aag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_out_agg(T63, T60, T61)) → delete1_out_aag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62)))
delete1_in_aag(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_aag(T126, T122, T127, T124, T125, p32_in_agag(T126, T122, T127, T125))
p32_in_agag(T126, T122, T127, T125) → U7_agag(T126, T122, T127, T125, less34_in_ag(T126, T122))
less34_in_ag(0, s(T138)) → less34_out_ag(0, s(T138))
less34_in_ag(s(T145), s(T144)) → U2_ag(T145, T144, less34_in_ag(T145, T144))
U2_ag(T145, T144, less34_out_ag(T145, T144)) → less34_out_ag(s(T145), s(T144))
U7_agag(T126, T122, T127, T125, less34_out_ag(T126, T122)) → p32_out_agag(T126, T122, T127, T125)
p32_in_agag(T130, T122, T131, T125) → U8_agag(T130, T122, T131, T125, less34_in_ag(T130, T122))
U8_agag(T130, T122, T131, T125, less34_out_ag(T130, T122)) → U9_agag(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
delete1_in_gag(T6, tree(T6, void, T7), T7) → delete1_out_gag(T6, tree(T6, void, T7), T7)
delete1_in_gag(T10, tree(T10, T11, void), T11) → delete1_out_gag(T10, tree(T10, T11, void), T11)
delete1_in_gag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32)) → delete1_out_gag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32))
delete1_in_gag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_gag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
U20_gag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_out_agg(T63, T60, T61)) → delete1_out_gag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62)))
delete1_in_gag(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_gag(T126, T122, T127, T124, T125, p32_in_ggag(T126, T122, T127, T125))
p32_in_ggag(T126, T122, T127, T125) → U7_ggag(T126, T122, T127, T125, less34_in_gg(T126, T122))
less34_in_gg(0, s(T138)) → less34_out_gg(0, s(T138))
less34_in_gg(s(T145), s(T144)) → U2_gg(T145, T144, less34_in_gg(T145, T144))
U2_gg(T145, T144, less34_out_gg(T145, T144)) → less34_out_gg(s(T145), s(T144))
U7_ggag(T126, T122, T127, T125, less34_out_gg(T126, T122)) → p32_out_ggag(T126, T122, T127, T125)
p32_in_ggag(T130, T122, T131, T125) → U8_ggag(T130, T122, T131, T125, less34_in_gg(T130, T122))
U8_ggag(T130, T122, T131, T125, less34_out_gg(T130, T122)) → U9_ggag(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
delete1_in_gag(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_gag(T167, T163, T164, T168, T166, p44_in_ggag(T163, T167, T168, T166))
p44_in_ggag(T163, T167, T168, T166) → U4_ggag(T163, T167, T168, T166, less46_in_gg(T163, T167))
less46_in_gg(0, s(T179)) → less46_out_gg(0, s(T179))
less46_in_gg(s(T184), s(T186)) → U3_gg(T184, T186, less46_in_gg(T184, T186))
U3_gg(T184, T186, less46_out_gg(T184, T186)) → less46_out_gg(s(T184), s(T186))
U4_ggag(T163, T167, T168, T166, less46_out_gg(T163, T167)) → p44_out_ggag(T163, T167, T168, T166)
p44_in_ggag(T163, T171, T172, T166) → U5_ggag(T163, T171, T172, T166, less46_in_gg(T163, T171))
U5_ggag(T163, T171, T172, T166, less46_out_gg(T163, T171)) → U6_ggag(T163, T171, T172, T166, delete1_in_gag(T171, T172, T166))
delete1_in_gag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_gag(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
delete1_in_gag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_gag(T223, T222, T224, T201, T202, p65_in_ggag(T223, T222, T224, T202))
p65_in_ggag(T223, T222, T224, T202) → U12_ggag(T223, T222, T224, T202, less34_in_gg(T223, T222))
U12_ggag(T223, T222, T224, T202, less34_out_gg(T223, T222)) → p65_out_ggag(T223, T222, T224, T202)
p65_in_ggag(T227, T222, T228, T202) → U13_ggag(T227, T222, T228, T202, less34_in_gg(T227, T222))
U13_ggag(T227, T222, T228, T202, less34_out_gg(T227, T222)) → U14_ggag(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
delete1_in_gag(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_gag(T250, T246, T247, T251, T249, p44_in_ggag(T246, T250, T251, T249))
U25_gag(T250, T246, T247, T251, T249, p44_out_ggag(T246, T250, T251, T249)) → delete1_out_gag(T250, tree(T246, T247, T251), tree(T246, T247, T249))
delete1_in_gag(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_gag(T264, T260, T261, T265, T263, p72_in_ggag(T260, T264, T265, T263))
p72_in_ggag(0, s(T272), T271, T263) → U10_ggag(T272, T271, T263, delete1_in_gag(s(T272), T271, T263))
delete1_in_gag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_gag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
U27_gag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_out_agg(T346, T343, T344)) → delete1_out_gag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345)))
delete1_in_gag(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_gag(T376, T372, T377, T374, T375, p32_in_ggag(T376, T372, T377, T375))
U28_gag(T376, T372, T377, T374, T375, p32_out_ggag(T376, T372, T377, T375)) → delete1_out_gag(T376, tree(T372, T377, T374), tree(T372, T375, T374))
delete1_in_gag(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_gag(T395, T391, T392, T396, T394, p72_in_ggag(T391, T395, T396, T394))
p72_in_ggag(s(T281), s(T283), T284, T263) → U11_ggag(T281, T283, T284, T263, p79_in_ggag(T281, T283, T284, T263))
p79_in_ggag(T281, T283, T284, T263) → U15_ggag(T281, T283, T284, T263, less46_in_gg(T281, T283))
U15_ggag(T281, T283, T284, T263, less46_out_gg(T281, T283)) → p79_out_ggag(T281, T283, T284, T263)
p79_in_ggag(T281, T287, T288, T263) → U16_ggag(T281, T287, T288, T263, less46_in_gg(T281, T287))
U16_ggag(T281, T287, T288, T263, less46_out_gg(T281, T287)) → U17_ggag(T281, T287, T288, T263, delete1_in_gag(s(T287), T288, T263))
delete1_in_gag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_gag(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
delete1_in_gag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_gag(T429, T428, T430, T407, T408, p65_in_ggag(T429, T428, T430, T408))
U31_gag(T429, T428, T430, T407, T408, p65_out_ggag(T429, T428, T430, T408)) → delete1_out_gag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407))
delete1_in_gag(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_gag(T448, T444, T445, T449, T447, p72_in_ggag(T444, T448, T449, T447))
U32_gag(T448, T444, T445, T449, T447, p72_out_ggag(T444, T448, T449, T447)) → delete1_out_gag(T448, tree(T444, T445, T449), tree(T444, T445, T447))
delete1_in_gag(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_gag(T462, T458, T459, T463, T461, p116_in_ggag(T458, T462, T463, T461))
p116_in_ggag(0, s(T470), T469, T461) → U18_ggag(T470, T469, T461, delete1_in_gag(s(T470), T469, T461))
delete1_in_gag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_gag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
U34_gag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_out_agg(T540, T537, T538)) → delete1_out_gag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539)))
delete1_in_gag(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_gag(T570, T566, T571, T568, T569, p32_in_ggag(T570, T566, T571, T569))
U35_gag(T570, T566, T571, T568, T569, p32_out_ggag(T570, T566, T571, T569)) → delete1_out_gag(T570, tree(T566, T571, T568), tree(T566, T569, T568))
delete1_in_gag(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_gag(T589, T585, T586, T590, T588, p116_in_ggag(T585, T589, T590, T588))
p116_in_ggag(s(T479), s(T481), T482, T461) → U19_ggag(T479, T481, T482, T461, p79_in_ggag(T479, T481, T482, T461))
U19_ggag(T479, T481, T482, T461, p79_out_ggag(T479, T481, T482, T461)) → p116_out_ggag(s(T479), s(T481), T482, T461)
U36_gag(T589, T585, T586, T590, T588, p116_out_ggag(T585, T589, T590, T588)) → delete1_out_gag(T589, tree(T585, T586, T590), tree(T585, T586, T588))
delete1_in_gag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_gag(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
delete1_in_gag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_gag(T623, T622, T624, T601, T602, p65_in_ggag(T623, T622, T624, T602))
U38_gag(T623, T622, T624, T601, T602, p65_out_ggag(T623, T622, T624, T602)) → delete1_out_gag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601))
delete1_in_gag(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_gag(T642, T638, T639, T643, T641, p116_in_ggag(T638, T642, T643, T641))
U39_gag(T642, T638, T639, T643, T641, p116_out_ggag(T638, T642, T643, T641)) → delete1_out_gag(T642, tree(T638, T639, T643), tree(T638, T639, T641))
delete1_in_gag(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_gag(T664, T653, T663, T655, delete1_in_gag(s(T664), T663, T655))
delete1_in_gag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_gag(T675, T673, T653, T676, T655, p79_in_ggag(T673, T675, T676, T655))
U41_gag(T675, T673, T653, T676, T655, p79_out_ggag(T673, T675, T676, T655)) → delete1_out_gag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655))
delete1_in_gag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_gag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
U42_gag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_out_agg(T730, T727, T728)) → delete1_out_gag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729)))
delete1_in_gag(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_gag(T760, T756, T761, T758, T759, p32_in_ggag(T760, T756, T761, T759))
U43_gag(T760, T756, T761, T758, T759, p32_out_ggag(T760, T756, T761, T759)) → delete1_out_gag(T760, tree(T756, T761, T758), tree(T756, T759, T758))
delete1_in_gag(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_gag(T779, T775, T776, T780, T778, p116_in_ggag(T775, T779, T780, T778))
U44_gag(T779, T775, T776, T780, T778, p116_out_ggag(T775, T779, T780, T778)) → delete1_out_gag(T779, tree(T775, T776, T780), tree(T775, T776, T778))
delete1_in_gag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_gag(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
delete1_in_gag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_gag(T813, T812, T814, T791, T792, p65_in_ggag(T813, T812, T814, T792))
U46_gag(T813, T812, T814, T791, T792, p65_out_ggag(T813, T812, T814, T792)) → delete1_out_gag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791))
delete1_in_gag(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_gag(T832, T828, T829, T833, T831, p116_in_ggag(T828, T832, T833, T831))
U47_gag(T832, T828, T829, T833, T831, p116_out_ggag(T828, T832, T833, T831)) → delete1_out_gag(T832, tree(T828, T829, T833), tree(T828, T829, T831))
delete1_in_gag(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_gag(T854, T843, T853, T845, delete1_in_gag(s(T854), T853, T845))
delete1_in_gag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_gag(T865, T863, T843, T866, T845, p79_in_ggag(T863, T865, T866, T845))
U49_gag(T865, T863, T843, T866, T845, p79_out_ggag(T863, T865, T866, T845)) → delete1_out_gag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845))
U48_gag(T854, T843, T853, T845, delete1_out_gag(s(T854), T853, T845)) → delete1_out_gag(s(T854), tree(0, T843, T853), tree(0, T843, T845))
U45_gag(T799, T800, T791, T792, delete1_out_gag(0, T800, T792)) → delete1_out_gag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791))
U40_gag(T664, T653, T663, T655, delete1_out_gag(s(T664), T663, T655)) → delete1_out_gag(s(T664), tree(0, T653, T663), tree(0, T653, T655))
U37_gag(T609, T610, T601, T602, delete1_out_gag(0, T610, T602)) → delete1_out_gag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601))
U18_ggag(T470, T469, T461, delete1_out_gag(s(T470), T469, T461)) → p116_out_ggag(0, s(T470), T469, T461)
U33_gag(T462, T458, T459, T463, T461, p116_out_ggag(T458, T462, T463, T461)) → delete1_out_gag(T462, tree(T458, T459, T463), tree(T458, T459, T461))
U30_gag(T415, T416, T407, T408, delete1_out_gag(0, T416, T408)) → delete1_out_gag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407))
U17_ggag(T281, T287, T288, T263, delete1_out_gag(s(T287), T288, T263)) → p79_out_ggag(T281, T287, T288, T263)
U11_ggag(T281, T283, T284, T263, p79_out_ggag(T281, T283, T284, T263)) → p72_out_ggag(s(T281), s(T283), T284, T263)
U29_gag(T395, T391, T392, T396, T394, p72_out_ggag(T391, T395, T396, T394)) → delete1_out_gag(T395, tree(T391, T392, T396), tree(T391, T392, T394))
U10_ggag(T272, T271, T263, delete1_out_gag(s(T272), T271, T263)) → p72_out_ggag(0, s(T272), T271, T263)
U26_gag(T264, T260, T261, T265, T263, p72_out_ggag(T260, T264, T265, T263)) → delete1_out_gag(T264, tree(T260, T261, T265), tree(T260, T261, T263))
U14_ggag(T227, T222, T228, T202, delete1_out_gag(s(T227), T228, T202)) → p65_out_ggag(T227, T222, T228, T202)
U24_gag(T223, T222, T224, T201, T202, p65_out_ggag(T223, T222, T224, T202)) → delete1_out_gag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201))
U23_gag(T209, T210, T201, T202, delete1_out_gag(0, T210, T202)) → delete1_out_gag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201))
U6_ggag(T163, T171, T172, T166, delete1_out_gag(T171, T172, T166)) → p44_out_ggag(T163, T171, T172, T166)
U22_gag(T167, T163, T164, T168, T166, p44_out_ggag(T163, T167, T168, T166)) → delete1_out_gag(T167, tree(T163, T164, T168), tree(T163, T164, T166))
U9_ggag(T130, T122, T131, T125, delete1_out_gag(T130, T131, T125)) → p32_out_ggag(T130, T122, T131, T125)
U21_gag(T126, T122, T127, T124, T125, p32_out_ggag(T126, T122, T127, T125)) → delete1_out_gag(T126, tree(T122, T127, T124), tree(T122, T125, T124))
U9_agag(T130, T122, T131, T125, delete1_out_gag(T130, T131, T125)) → p32_out_agag(T130, T122, T131, T125)
U21_aag(T126, T122, T127, T124, T125, p32_out_agag(T126, T122, T127, T125)) → delete1_out_aag(T126, tree(T122, T127, T124), tree(T122, T125, T124))
delete1_in_aag(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_aag(T167, T163, T164, T168, T166, p44_in_gaag(T163, T167, T168, T166))
p44_in_gaag(T163, T167, T168, T166) → U4_gaag(T163, T167, T168, T166, less46_in_ga(T163, T167))
less46_in_ga(0, s(T179)) → less46_out_ga(0, s(T179))
less46_in_ga(s(T184), s(T186)) → U3_ga(T184, T186, less46_in_ga(T184, T186))
U3_ga(T184, T186, less46_out_ga(T184, T186)) → less46_out_ga(s(T184), s(T186))
U4_gaag(T163, T167, T168, T166, less46_out_ga(T163, T167)) → p44_out_gaag(T163, T167, T168, T166)
p44_in_gaag(T163, T171, T172, T166) → U5_gaag(T163, T171, T172, T166, less46_in_ga(T163, T171))
U5_gaag(T163, T171, T172, T166, less46_out_ga(T163, T171)) → U6_gaag(T163, T171, T172, T166, delete1_in_aag(T171, T172, T166))
delete1_in_aag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_aag(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
U23_aag(T209, T210, T201, T202, delete1_out_gag(0, T210, T202)) → delete1_out_aag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201))
delete1_in_aag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_aag(T223, T222, T224, T201, T202, p65_in_agag(T223, T222, T224, T202))
p65_in_agag(T223, T222, T224, T202) → U12_agag(T223, T222, T224, T202, less34_in_ag(T223, T222))
U12_agag(T223, T222, T224, T202, less34_out_ag(T223, T222)) → p65_out_agag(T223, T222, T224, T202)
p65_in_agag(T227, T222, T228, T202) → U13_agag(T227, T222, T228, T202, less34_in_ag(T227, T222))
U13_agag(T227, T222, T228, T202, less34_out_ag(T227, T222)) → U14_agag(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
U14_agag(T227, T222, T228, T202, delete1_out_gag(s(T227), T228, T202)) → p65_out_agag(T227, T222, T228, T202)
U24_aag(T223, T222, T224, T201, T202, p65_out_agag(T223, T222, T224, T202)) → delete1_out_aag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201))
delete1_in_aag(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_aag(T250, T246, T247, T251, T249, p44_in_gaag(T246, T250, T251, T249))
U25_aag(T250, T246, T247, T251, T249, p44_out_gaag(T246, T250, T251, T249)) → delete1_out_aag(T250, tree(T246, T247, T251), tree(T246, T247, T249))
delete1_in_aag(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_aag(T264, T260, T261, T265, T263, p72_in_gaag(T260, T264, T265, T263))
p72_in_gaag(0, s(T272), T271, T263) → U10_gaag(T272, T271, T263, delete1_in_aag(s(T272), T271, T263))
delete1_in_aag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_aag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
U27_aag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_out_agg(T346, T343, T344)) → delete1_out_aag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345)))
delete1_in_aag(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_aag(T376, T372, T377, T374, T375, p32_in_agag(T376, T372, T377, T375))
U28_aag(T376, T372, T377, T374, T375, p32_out_agag(T376, T372, T377, T375)) → delete1_out_aag(T376, tree(T372, T377, T374), tree(T372, T375, T374))
delete1_in_aag(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_aag(T395, T391, T392, T396, T394, p72_in_gaag(T391, T395, T396, T394))
p72_in_gaag(s(T281), s(T283), T284, T263) → U11_gaag(T281, T283, T284, T263, p79_in_gaag(T281, T283, T284, T263))
p79_in_gaag(T281, T283, T284, T263) → U15_gaag(T281, T283, T284, T263, less46_in_ga(T281, T283))
U15_gaag(T281, T283, T284, T263, less46_out_ga(T281, T283)) → p79_out_gaag(T281, T283, T284, T263)
p79_in_gaag(T281, T287, T288, T263) → U16_gaag(T281, T287, T288, T263, less46_in_ga(T281, T287))
U16_gaag(T281, T287, T288, T263, less46_out_ga(T281, T287)) → U17_gaag(T281, T287, T288, T263, delete1_in_aag(s(T287), T288, T263))
delete1_in_aag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_aag(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
U30_aag(T415, T416, T407, T408, delete1_out_gag(0, T416, T408)) → delete1_out_aag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407))
delete1_in_aag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_aag(T429, T428, T430, T407, T408, p65_in_agag(T429, T428, T430, T408))
U31_aag(T429, T428, T430, T407, T408, p65_out_agag(T429, T428, T430, T408)) → delete1_out_aag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407))
delete1_in_aag(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_aag(T448, T444, T445, T449, T447, p72_in_gaag(T444, T448, T449, T447))
U32_aag(T448, T444, T445, T449, T447, p72_out_gaag(T444, T448, T449, T447)) → delete1_out_aag(T448, tree(T444, T445, T449), tree(T444, T445, T447))
delete1_in_aag(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_aag(T462, T458, T459, T463, T461, p116_in_gaag(T458, T462, T463, T461))
p116_in_gaag(0, s(T470), T469, T461) → U18_gaag(T470, T469, T461, delete1_in_aag(s(T470), T469, T461))
delete1_in_aag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_aag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
U34_aag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_out_agg(T540, T537, T538)) → delete1_out_aag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539)))
delete1_in_aag(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_aag(T570, T566, T571, T568, T569, p32_in_agag(T570, T566, T571, T569))
U35_aag(T570, T566, T571, T568, T569, p32_out_agag(T570, T566, T571, T569)) → delete1_out_aag(T570, tree(T566, T571, T568), tree(T566, T569, T568))
delete1_in_aag(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_aag(T589, T585, T586, T590, T588, p116_in_gaag(T585, T589, T590, T588))
p116_in_gaag(s(T479), s(T481), T482, T461) → U19_gaag(T479, T481, T482, T461, p79_in_gaag(T479, T481, T482, T461))
U19_gaag(T479, T481, T482, T461, p79_out_gaag(T479, T481, T482, T461)) → p116_out_gaag(s(T479), s(T481), T482, T461)
U36_aag(T589, T585, T586, T590, T588, p116_out_gaag(T585, T589, T590, T588)) → delete1_out_aag(T589, tree(T585, T586, T590), tree(T585, T586, T588))
delete1_in_aag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_aag(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
U37_aag(T609, T610, T601, T602, delete1_out_gag(0, T610, T602)) → delete1_out_aag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601))
delete1_in_aag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_aag(T623, T622, T624, T601, T602, p65_in_agag(T623, T622, T624, T602))
U38_aag(T623, T622, T624, T601, T602, p65_out_agag(T623, T622, T624, T602)) → delete1_out_aag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601))
delete1_in_aag(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_aag(T642, T638, T639, T643, T641, p116_in_gaag(T638, T642, T643, T641))
U39_aag(T642, T638, T639, T643, T641, p116_out_gaag(T638, T642, T643, T641)) → delete1_out_aag(T642, tree(T638, T639, T643), tree(T638, T639, T641))
delete1_in_aag(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_aag(T664, T653, T663, T655, delete1_in_aag(s(T664), T663, T655))
delete1_in_aag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_aag(T675, T673, T653, T676, T655, p79_in_gaag(T673, T675, T676, T655))
U41_aag(T675, T673, T653, T676, T655, p79_out_gaag(T673, T675, T676, T655)) → delete1_out_aag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655))
delete1_in_aag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_aag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
U42_aag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_out_agg(T730, T727, T728)) → delete1_out_aag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729)))
delete1_in_aag(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_aag(T760, T756, T761, T758, T759, p32_in_agag(T760, T756, T761, T759))
U43_aag(T760, T756, T761, T758, T759, p32_out_agag(T760, T756, T761, T759)) → delete1_out_aag(T760, tree(T756, T761, T758), tree(T756, T759, T758))
delete1_in_aag(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_aag(T779, T775, T776, T780, T778, p116_in_gaag(T775, T779, T780, T778))
U44_aag(T779, T775, T776, T780, T778, p116_out_gaag(T775, T779, T780, T778)) → delete1_out_aag(T779, tree(T775, T776, T780), tree(T775, T776, T778))
delete1_in_aag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_aag(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
U45_aag(T799, T800, T791, T792, delete1_out_gag(0, T800, T792)) → delete1_out_aag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791))
delete1_in_aag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_aag(T813, T812, T814, T791, T792, p65_in_agag(T813, T812, T814, T792))
U46_aag(T813, T812, T814, T791, T792, p65_out_agag(T813, T812, T814, T792)) → delete1_out_aag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791))
delete1_in_aag(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_aag(T832, T828, T829, T833, T831, p116_in_gaag(T828, T832, T833, T831))
U47_aag(T832, T828, T829, T833, T831, p116_out_gaag(T828, T832, T833, T831)) → delete1_out_aag(T832, tree(T828, T829, T833), tree(T828, T829, T831))
delete1_in_aag(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_aag(T854, T843, T853, T845, delete1_in_aag(s(T854), T853, T845))
delete1_in_aag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_aag(T865, T863, T843, T866, T845, p79_in_gaag(T863, T865, T866, T845))
U49_aag(T865, T863, T843, T866, T845, p79_out_gaag(T863, T865, T866, T845)) → delete1_out_aag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845))
U48_aag(T854, T843, T853, T845, delete1_out_aag(s(T854), T853, T845)) → delete1_out_aag(s(T854), tree(0, T843, T853), tree(0, T843, T845))
U40_aag(T664, T653, T663, T655, delete1_out_aag(s(T664), T663, T655)) → delete1_out_aag(s(T664), tree(0, T653, T663), tree(0, T653, T655))
U18_gaag(T470, T469, T461, delete1_out_aag(s(T470), T469, T461)) → p116_out_gaag(0, s(T470), T469, T461)
U33_aag(T462, T458, T459, T463, T461, p116_out_gaag(T458, T462, T463, T461)) → delete1_out_aag(T462, tree(T458, T459, T463), tree(T458, T459, T461))
U17_gaag(T281, T287, T288, T263, delete1_out_aag(s(T287), T288, T263)) → p79_out_gaag(T281, T287, T288, T263)
U11_gaag(T281, T283, T284, T263, p79_out_gaag(T281, T283, T284, T263)) → p72_out_gaag(s(T281), s(T283), T284, T263)
U29_aag(T395, T391, T392, T396, T394, p72_out_gaag(T391, T395, T396, T394)) → delete1_out_aag(T395, tree(T391, T392, T396), tree(T391, T392, T394))
U10_gaag(T272, T271, T263, delete1_out_aag(s(T272), T271, T263)) → p72_out_gaag(0, s(T272), T271, T263)
U26_aag(T264, T260, T261, T265, T263, p72_out_gaag(T260, T264, T265, T263)) → delete1_out_aag(T264, tree(T260, T261, T265), tree(T260, T261, T263))
U6_gaag(T163, T171, T172, T166, delete1_out_aag(T171, T172, T166)) → p44_out_gaag(T163, T171, T172, T166)
U22_aag(T167, T163, T164, T168, T166, p44_out_gaag(T163, T167, T168, T166)) → delete1_out_aag(T167, tree(T163, T164, T168), tree(T163, T164, T166))

The argument filtering Pi contains the following mapping:
delete1_in_aag(x1, x2, x3)  =  delete1_in_aag(x3)
delete1_out_aag(x1, x2, x3)  =  delete1_out_aag
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U20_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aag(x9)
delmin19_in_agg(x1, x2, x3)  =  delmin19_in_agg(x2, x3)
delmin19_out_agg(x1, x2, x3)  =  delmin19_out_agg
U1_agg(x1, x2, x3, x4, x5, x6, x7)  =  U1_agg(x7)
U21_aag(x1, x2, x3, x4, x5, x6)  =  U21_aag(x6)
p32_in_agag(x1, x2, x3, x4)  =  p32_in_agag(x2, x4)
U7_agag(x1, x2, x3, x4, x5)  =  U7_agag(x5)
less34_in_ag(x1, x2)  =  less34_in_ag(x2)
s(x1)  =  s(x1)
less34_out_ag(x1, x2)  =  less34_out_ag(x1)
U2_ag(x1, x2, x3)  =  U2_ag(x3)
p32_out_agag(x1, x2, x3, x4)  =  p32_out_agag(x1)
U8_agag(x1, x2, x3, x4, x5)  =  U8_agag(x4, x5)
U9_agag(x1, x2, x3, x4, x5)  =  U9_agag(x1, x5)
delete1_in_gag(x1, x2, x3)  =  delete1_in_gag(x1, x3)
delete1_out_gag(x1, x2, x3)  =  delete1_out_gag
U20_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gag(x9)
U21_gag(x1, x2, x3, x4, x5, x6)  =  U21_gag(x6)
p32_in_ggag(x1, x2, x3, x4)  =  p32_in_ggag(x1, x2, x4)
U7_ggag(x1, x2, x3, x4, x5)  =  U7_ggag(x5)
less34_in_gg(x1, x2)  =  less34_in_gg(x1, x2)
0  =  0
less34_out_gg(x1, x2)  =  less34_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
p32_out_ggag(x1, x2, x3, x4)  =  p32_out_ggag
U8_ggag(x1, x2, x3, x4, x5)  =  U8_ggag(x1, x4, x5)
U9_ggag(x1, x2, x3, x4, x5)  =  U9_ggag(x5)
U22_gag(x1, x2, x3, x4, x5, x6)  =  U22_gag(x6)
p44_in_ggag(x1, x2, x3, x4)  =  p44_in_ggag(x1, x2, x4)
U4_ggag(x1, x2, x3, x4, x5)  =  U4_ggag(x5)
less46_in_gg(x1, x2)  =  less46_in_gg(x1, x2)
less46_out_gg(x1, x2)  =  less46_out_gg
U3_gg(x1, x2, x3)  =  U3_gg(x3)
p44_out_ggag(x1, x2, x3, x4)  =  p44_out_ggag
U5_ggag(x1, x2, x3, x4, x5)  =  U5_ggag(x2, x4, x5)
U6_ggag(x1, x2, x3, x4, x5)  =  U6_ggag(x5)
U23_gag(x1, x2, x3, x4, x5)  =  U23_gag(x5)
U24_gag(x1, x2, x3, x4, x5, x6)  =  U24_gag(x6)
p65_in_ggag(x1, x2, x3, x4)  =  p65_in_ggag(x1, x2, x4)
U12_ggag(x1, x2, x3, x4, x5)  =  U12_ggag(x5)
p65_out_ggag(x1, x2, x3, x4)  =  p65_out_ggag
U13_ggag(x1, x2, x3, x4, x5)  =  U13_ggag(x1, x4, x5)
U14_ggag(x1, x2, x3, x4, x5)  =  U14_ggag(x5)
U25_gag(x1, x2, x3, x4, x5, x6)  =  U25_gag(x6)
U26_gag(x1, x2, x3, x4, x5, x6)  =  U26_gag(x6)
p72_in_ggag(x1, x2, x3, x4)  =  p72_in_ggag(x1, x2, x4)
U10_ggag(x1, x2, x3, x4)  =  U10_ggag(x4)
U27_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gag(x9)
U28_gag(x1, x2, x3, x4, x5, x6)  =  U28_gag(x6)
U29_gag(x1, x2, x3, x4, x5, x6)  =  U29_gag(x6)
U11_ggag(x1, x2, x3, x4, x5)  =  U11_ggag(x5)
p79_in_ggag(x1, x2, x3, x4)  =  p79_in_ggag(x1, x2, x4)
U15_ggag(x1, x2, x3, x4, x5)  =  U15_ggag(x5)
p79_out_ggag(x1, x2, x3, x4)  =  p79_out_ggag
U16_ggag(x1, x2, x3, x4, x5)  =  U16_ggag(x2, x4, x5)
U17_ggag(x1, x2, x3, x4, x5)  =  U17_ggag(x5)
U30_gag(x1, x2, x3, x4, x5)  =  U30_gag(x5)
U31_gag(x1, x2, x3, x4, x5, x6)  =  U31_gag(x6)
U32_gag(x1, x2, x3, x4, x5, x6)  =  U32_gag(x6)
p72_out_ggag(x1, x2, x3, x4)  =  p72_out_ggag
U33_gag(x1, x2, x3, x4, x5, x6)  =  U33_gag(x6)
p116_in_ggag(x1, x2, x3, x4)  =  p116_in_ggag(x1, x2, x4)
U18_ggag(x1, x2, x3, x4)  =  U18_ggag(x4)
U34_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_gag(x9)
U35_gag(x1, x2, x3, x4, x5, x6)  =  U35_gag(x6)
U36_gag(x1, x2, x3, x4, x5, x6)  =  U36_gag(x6)
U19_ggag(x1, x2, x3, x4, x5)  =  U19_ggag(x5)
p116_out_ggag(x1, x2, x3, x4)  =  p116_out_ggag
U37_gag(x1, x2, x3, x4, x5)  =  U37_gag(x5)
U38_gag(x1, x2, x3, x4, x5, x6)  =  U38_gag(x6)
U39_gag(x1, x2, x3, x4, x5, x6)  =  U39_gag(x6)
U40_gag(x1, x2, x3, x4, x5)  =  U40_gag(x5)
U41_gag(x1, x2, x3, x4, x5, x6)  =  U41_gag(x6)
U42_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_gag(x9)
U43_gag(x1, x2, x3, x4, x5, x6)  =  U43_gag(x6)
U44_gag(x1, x2, x3, x4, x5, x6)  =  U44_gag(x6)
U45_gag(x1, x2, x3, x4, x5)  =  U45_gag(x5)
U46_gag(x1, x2, x3, x4, x5, x6)  =  U46_gag(x6)
U47_gag(x1, x2, x3, x4, x5, x6)  =  U47_gag(x6)
U48_gag(x1, x2, x3, x4, x5)  =  U48_gag(x5)
U49_gag(x1, x2, x3, x4, x5, x6)  =  U49_gag(x6)
U22_aag(x1, x2, x3, x4, x5, x6)  =  U22_aag(x6)
p44_in_gaag(x1, x2, x3, x4)  =  p44_in_gaag(x1, x4)
U4_gaag(x1, x2, x3, x4, x5)  =  U4_gaag(x5)
less46_in_ga(x1, x2)  =  less46_in_ga(x1)
less46_out_ga(x1, x2)  =  less46_out_ga
U3_ga(x1, x2, x3)  =  U3_ga(x3)
p44_out_gaag(x1, x2, x3, x4)  =  p44_out_gaag
U5_gaag(x1, x2, x3, x4, x5)  =  U5_gaag(x4, x5)
U6_gaag(x1, x2, x3, x4, x5)  =  U6_gaag(x5)
U23_aag(x1, x2, x3, x4, x5)  =  U23_aag(x5)
U24_aag(x1, x2, x3, x4, x5, x6)  =  U24_aag(x6)
p65_in_agag(x1, x2, x3, x4)  =  p65_in_agag(x2, x4)
U12_agag(x1, x2, x3, x4, x5)  =  U12_agag(x5)
p65_out_agag(x1, x2, x3, x4)  =  p65_out_agag(x1)
U13_agag(x1, x2, x3, x4, x5)  =  U13_agag(x4, x5)
U14_agag(x1, x2, x3, x4, x5)  =  U14_agag(x1, x5)
U25_aag(x1, x2, x3, x4, x5, x6)  =  U25_aag(x6)
U26_aag(x1, x2, x3, x4, x5, x6)  =  U26_aag(x6)
p72_in_gaag(x1, x2, x3, x4)  =  p72_in_gaag(x1, x4)
U10_gaag(x1, x2, x3, x4)  =  U10_gaag(x4)
U27_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aag(x9)
U28_aag(x1, x2, x3, x4, x5, x6)  =  U28_aag(x6)
U29_aag(x1, x2, x3, x4, x5, x6)  =  U29_aag(x6)
U11_gaag(x1, x2, x3, x4, x5)  =  U11_gaag(x5)
p79_in_gaag(x1, x2, x3, x4)  =  p79_in_gaag(x1, x4)
U15_gaag(x1, x2, x3, x4, x5)  =  U15_gaag(x5)
p79_out_gaag(x1, x2, x3, x4)  =  p79_out_gaag
U16_gaag(x1, x2, x3, x4, x5)  =  U16_gaag(x4, x5)
U17_gaag(x1, x2, x3, x4, x5)  =  U17_gaag(x5)
U30_aag(x1, x2, x3, x4, x5)  =  U30_aag(x5)
U31_aag(x1, x2, x3, x4, x5, x6)  =  U31_aag(x6)
U32_aag(x1, x2, x3, x4, x5, x6)  =  U32_aag(x6)
p72_out_gaag(x1, x2, x3, x4)  =  p72_out_gaag
U33_aag(x1, x2, x3, x4, x5, x6)  =  U33_aag(x6)
p116_in_gaag(x1, x2, x3, x4)  =  p116_in_gaag(x1, x4)
U18_gaag(x1, x2, x3, x4)  =  U18_gaag(x4)
U34_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_aag(x9)
U35_aag(x1, x2, x3, x4, x5, x6)  =  U35_aag(x6)
U36_aag(x1, x2, x3, x4, x5, x6)  =  U36_aag(x6)
U19_gaag(x1, x2, x3, x4, x5)  =  U19_gaag(x5)
p116_out_gaag(x1, x2, x3, x4)  =  p116_out_gaag
U37_aag(x1, x2, x3, x4, x5)  =  U37_aag(x5)
U38_aag(x1, x2, x3, x4, x5, x6)  =  U38_aag(x6)
U39_aag(x1, x2, x3, x4, x5, x6)  =  U39_aag(x6)
U40_aag(x1, x2, x3, x4, x5)  =  U40_aag(x5)
U41_aag(x1, x2, x3, x4, x5, x6)  =  U41_aag(x6)
U42_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_aag(x9)
U43_aag(x1, x2, x3, x4, x5, x6)  =  U43_aag(x6)
U44_aag(x1, x2, x3, x4, x5, x6)  =  U44_aag(x6)
U45_aag(x1, x2, x3, x4, x5)  =  U45_aag(x5)
U46_aag(x1, x2, x3, x4, x5, x6)  =  U46_aag(x6)
U47_aag(x1, x2, x3, x4, x5, x6)  =  U47_aag(x6)
U48_aag(x1, x2, x3, x4, x5)  =  U48_aag(x5)
U49_aag(x1, x2, x3, x4, x5, x6)  =  U49_aag(x6)
DELETE1_IN_AAG(x1, x2, x3)  =  DELETE1_IN_AAG(x3)
U20_AAG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_AAG(x9)
DELMIN19_IN_AGG(x1, x2, x3)  =  DELMIN19_IN_AGG(x2, x3)
U1_AGG(x1, x2, x3, x4, x5, x6, x7)  =  U1_AGG(x7)
U21_AAG(x1, x2, x3, x4, x5, x6)  =  U21_AAG(x6)
P32_IN_AGAG(x1, x2, x3, x4)  =  P32_IN_AGAG(x2, x4)
U7_AGAG(x1, x2, x3, x4, x5)  =  U7_AGAG(x5)
LESS34_IN_AG(x1, x2)  =  LESS34_IN_AG(x2)
U2_AG(x1, x2, x3)  =  U2_AG(x3)
U8_AGAG(x1, x2, x3, x4, x5)  =  U8_AGAG(x4, x5)
U9_AGAG(x1, x2, x3, x4, x5)  =  U9_AGAG(x1, x5)
DELETE1_IN_GAG(x1, x2, x3)  =  DELETE1_IN_GAG(x1, x3)
U20_GAG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_GAG(x9)
U21_GAG(x1, x2, x3, x4, x5, x6)  =  U21_GAG(x6)
P32_IN_GGAG(x1, x2, x3, x4)  =  P32_IN_GGAG(x1, x2, x4)
U7_GGAG(x1, x2, x3, x4, x5)  =  U7_GGAG(x5)
LESS34_IN_GG(x1, x2)  =  LESS34_IN_GG(x1, x2)
U2_GG(x1, x2, x3)  =  U2_GG(x3)
U8_GGAG(x1, x2, x3, x4, x5)  =  U8_GGAG(x1, x4, x5)
U9_GGAG(x1, x2, x3, x4, x5)  =  U9_GGAG(x5)
U22_GAG(x1, x2, x3, x4, x5, x6)  =  U22_GAG(x6)
P44_IN_GGAG(x1, x2, x3, x4)  =  P44_IN_GGAG(x1, x2, x4)
U4_GGAG(x1, x2, x3, x4, x5)  =  U4_GGAG(x5)
LESS46_IN_GG(x1, x2)  =  LESS46_IN_GG(x1, x2)
U3_GG(x1, x2, x3)  =  U3_GG(x3)
U5_GGAG(x1, x2, x3, x4, x5)  =  U5_GGAG(x2, x4, x5)
U6_GGAG(x1, x2, x3, x4, x5)  =  U6_GGAG(x5)
U23_GAG(x1, x2, x3, x4, x5)  =  U23_GAG(x5)
U24_GAG(x1, x2, x3, x4, x5, x6)  =  U24_GAG(x6)
P65_IN_GGAG(x1, x2, x3, x4)  =  P65_IN_GGAG(x1, x2, x4)
U12_GGAG(x1, x2, x3, x4, x5)  =  U12_GGAG(x5)
U13_GGAG(x1, x2, x3, x4, x5)  =  U13_GGAG(x1, x4, x5)
U14_GGAG(x1, x2, x3, x4, x5)  =  U14_GGAG(x5)
U25_GAG(x1, x2, x3, x4, x5, x6)  =  U25_GAG(x6)
U26_GAG(x1, x2, x3, x4, x5, x6)  =  U26_GAG(x6)
P72_IN_GGAG(x1, x2, x3, x4)  =  P72_IN_GGAG(x1, x2, x4)
U10_GGAG(x1, x2, x3, x4)  =  U10_GGAG(x4)
U27_GAG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_GAG(x9)
U28_GAG(x1, x2, x3, x4, x5, x6)  =  U28_GAG(x6)
U29_GAG(x1, x2, x3, x4, x5, x6)  =  U29_GAG(x6)
U11_GGAG(x1, x2, x3, x4, x5)  =  U11_GGAG(x5)
P79_IN_GGAG(x1, x2, x3, x4)  =  P79_IN_GGAG(x1, x2, x4)
U15_GGAG(x1, x2, x3, x4, x5)  =  U15_GGAG(x5)
U16_GGAG(x1, x2, x3, x4, x5)  =  U16_GGAG(x2, x4, x5)
U17_GGAG(x1, x2, x3, x4, x5)  =  U17_GGAG(x5)
U30_GAG(x1, x2, x3, x4, x5)  =  U30_GAG(x5)
U31_GAG(x1, x2, x3, x4, x5, x6)  =  U31_GAG(x6)
U32_GAG(x1, x2, x3, x4, x5, x6)  =  U32_GAG(x6)
U33_GAG(x1, x2, x3, x4, x5, x6)  =  U33_GAG(x6)
P116_IN_GGAG(x1, x2, x3, x4)  =  P116_IN_GGAG(x1, x2, x4)
U18_GGAG(x1, x2, x3, x4)  =  U18_GGAG(x4)
U34_GAG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_GAG(x9)
U35_GAG(x1, x2, x3, x4, x5, x6)  =  U35_GAG(x6)
U36_GAG(x1, x2, x3, x4, x5, x6)  =  U36_GAG(x6)
U19_GGAG(x1, x2, x3, x4, x5)  =  U19_GGAG(x5)
U37_GAG(x1, x2, x3, x4, x5)  =  U37_GAG(x5)
U38_GAG(x1, x2, x3, x4, x5, x6)  =  U38_GAG(x6)
U39_GAG(x1, x2, x3, x4, x5, x6)  =  U39_GAG(x6)
U40_GAG(x1, x2, x3, x4, x5)  =  U40_GAG(x5)
U41_GAG(x1, x2, x3, x4, x5, x6)  =  U41_GAG(x6)
U42_GAG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_GAG(x9)
U43_GAG(x1, x2, x3, x4, x5, x6)  =  U43_GAG(x6)
U44_GAG(x1, x2, x3, x4, x5, x6)  =  U44_GAG(x6)
U45_GAG(x1, x2, x3, x4, x5)  =  U45_GAG(x5)
U46_GAG(x1, x2, x3, x4, x5, x6)  =  U46_GAG(x6)
U47_GAG(x1, x2, x3, x4, x5, x6)  =  U47_GAG(x6)
U48_GAG(x1, x2, x3, x4, x5)  =  U48_GAG(x5)
U49_GAG(x1, x2, x3, x4, x5, x6)  =  U49_GAG(x6)
U22_AAG(x1, x2, x3, x4, x5, x6)  =  U22_AAG(x6)
P44_IN_GAAG(x1, x2, x3, x4)  =  P44_IN_GAAG(x1, x4)
U4_GAAG(x1, x2, x3, x4, x5)  =  U4_GAAG(x5)
LESS46_IN_GA(x1, x2)  =  LESS46_IN_GA(x1)
U3_GA(x1, x2, x3)  =  U3_GA(x3)
U5_GAAG(x1, x2, x3, x4, x5)  =  U5_GAAG(x4, x5)
U6_GAAG(x1, x2, x3, x4, x5)  =  U6_GAAG(x5)
U23_AAG(x1, x2, x3, x4, x5)  =  U23_AAG(x5)
U24_AAG(x1, x2, x3, x4, x5, x6)  =  U24_AAG(x6)
P65_IN_AGAG(x1, x2, x3, x4)  =  P65_IN_AGAG(x2, x4)
U12_AGAG(x1, x2, x3, x4, x5)  =  U12_AGAG(x5)
U13_AGAG(x1, x2, x3, x4, x5)  =  U13_AGAG(x4, x5)
U14_AGAG(x1, x2, x3, x4, x5)  =  U14_AGAG(x1, x5)
U25_AAG(x1, x2, x3, x4, x5, x6)  =  U25_AAG(x6)
U26_AAG(x1, x2, x3, x4, x5, x6)  =  U26_AAG(x6)
P72_IN_GAAG(x1, x2, x3, x4)  =  P72_IN_GAAG(x1, x4)
U10_GAAG(x1, x2, x3, x4)  =  U10_GAAG(x4)
U27_AAG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_AAG(x9)
U28_AAG(x1, x2, x3, x4, x5, x6)  =  U28_AAG(x6)
U29_AAG(x1, x2, x3, x4, x5, x6)  =  U29_AAG(x6)
U11_GAAG(x1, x2, x3, x4, x5)  =  U11_GAAG(x5)
P79_IN_GAAG(x1, x2, x3, x4)  =  P79_IN_GAAG(x1, x4)
U15_GAAG(x1, x2, x3, x4, x5)  =  U15_GAAG(x5)
U16_GAAG(x1, x2, x3, x4, x5)  =  U16_GAAG(x4, x5)
U17_GAAG(x1, x2, x3, x4, x5)  =  U17_GAAG(x5)
U30_AAG(x1, x2, x3, x4, x5)  =  U30_AAG(x5)
U31_AAG(x1, x2, x3, x4, x5, x6)  =  U31_AAG(x6)
U32_AAG(x1, x2, x3, x4, x5, x6)  =  U32_AAG(x6)
U33_AAG(x1, x2, x3, x4, x5, x6)  =  U33_AAG(x6)
P116_IN_GAAG(x1, x2, x3, x4)  =  P116_IN_GAAG(x1, x4)
U18_GAAG(x1, x2, x3, x4)  =  U18_GAAG(x4)
U34_AAG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_AAG(x9)
U35_AAG(x1, x2, x3, x4, x5, x6)  =  U35_AAG(x6)
U36_AAG(x1, x2, x3, x4, x5, x6)  =  U36_AAG(x6)
U19_GAAG(x1, x2, x3, x4, x5)  =  U19_GAAG(x5)
U37_AAG(x1, x2, x3, x4, x5)  =  U37_AAG(x5)
U38_AAG(x1, x2, x3, x4, x5, x6)  =  U38_AAG(x6)
U39_AAG(x1, x2, x3, x4, x5, x6)  =  U39_AAG(x6)
U40_AAG(x1, x2, x3, x4, x5)  =  U40_AAG(x5)
U41_AAG(x1, x2, x3, x4, x5, x6)  =  U41_AAG(x6)
U42_AAG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_AAG(x9)
U43_AAG(x1, x2, x3, x4, x5, x6)  =  U43_AAG(x6)
U44_AAG(x1, x2, x3, x4, x5, x6)  =  U44_AAG(x6)
U45_AAG(x1, x2, x3, x4, x5)  =  U45_AAG(x5)
U46_AAG(x1, x2, x3, x4, x5, x6)  =  U46_AAG(x6)
U47_AAG(x1, x2, x3, x4, x5, x6)  =  U47_AAG(x6)
U48_AAG(x1, x2, x3, x4, x5)  =  U48_AAG(x5)
U49_AAG(x1, x2, x3, x4, x5, x6)  =  U49_AAG(x6)

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

(6) Obligation:

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

DELETE1_IN_AAG(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_AAG(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
DELETE1_IN_AAG(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → DELMIN19_IN_AGG(T63, T60, T61)
DELMIN19_IN_AGG(tree(T90, T96, T92), T93, tree(T90, T94, T95)) → U1_AGG(T90, T96, T92, T93, T94, T95, delmin19_in_agg(T96, T93, T94))
DELMIN19_IN_AGG(tree(T90, T96, T92), T93, tree(T90, T94, T95)) → DELMIN19_IN_AGG(T96, T93, T94)
DELETE1_IN_AAG(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_AAG(T126, T122, T127, T124, T125, p32_in_agag(T126, T122, T127, T125))
DELETE1_IN_AAG(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → P32_IN_AGAG(T126, T122, T127, T125)
P32_IN_AGAG(T126, T122, T127, T125) → U7_AGAG(T126, T122, T127, T125, less34_in_ag(T126, T122))
P32_IN_AGAG(T126, T122, T127, T125) → LESS34_IN_AG(T126, T122)
LESS34_IN_AG(s(T145), s(T144)) → U2_AG(T145, T144, less34_in_ag(T145, T144))
LESS34_IN_AG(s(T145), s(T144)) → LESS34_IN_AG(T145, T144)
P32_IN_AGAG(T130, T122, T131, T125) → U8_AGAG(T130, T122, T131, T125, less34_in_ag(T130, T122))
U8_AGAG(T130, T122, T131, T125, less34_out_ag(T130, T122)) → U9_AGAG(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
U8_AGAG(T130, T122, T131, T125, less34_out_ag(T130, T122)) → DELETE1_IN_GAG(T130, T131, T125)
DELETE1_IN_GAG(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_GAG(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
DELETE1_IN_GAG(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → DELMIN19_IN_AGG(T63, T60, T61)
DELETE1_IN_GAG(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_GAG(T126, T122, T127, T124, T125, p32_in_ggag(T126, T122, T127, T125))
DELETE1_IN_GAG(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → P32_IN_GGAG(T126, T122, T127, T125)
P32_IN_GGAG(T126, T122, T127, T125) → U7_GGAG(T126, T122, T127, T125, less34_in_gg(T126, T122))
P32_IN_GGAG(T126, T122, T127, T125) → LESS34_IN_GG(T126, T122)
LESS34_IN_GG(s(T145), s(T144)) → U2_GG(T145, T144, less34_in_gg(T145, T144))
LESS34_IN_GG(s(T145), s(T144)) → LESS34_IN_GG(T145, T144)
P32_IN_GGAG(T130, T122, T131, T125) → U8_GGAG(T130, T122, T131, T125, less34_in_gg(T130, T122))
U8_GGAG(T130, T122, T131, T125, less34_out_gg(T130, T122)) → U9_GGAG(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
U8_GGAG(T130, T122, T131, T125, less34_out_gg(T130, T122)) → DELETE1_IN_GAG(T130, T131, T125)
DELETE1_IN_GAG(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_GAG(T167, T163, T164, T168, T166, p44_in_ggag(T163, T167, T168, T166))
DELETE1_IN_GAG(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → P44_IN_GGAG(T163, T167, T168, T166)
P44_IN_GGAG(T163, T167, T168, T166) → U4_GGAG(T163, T167, T168, T166, less46_in_gg(T163, T167))
P44_IN_GGAG(T163, T167, T168, T166) → LESS46_IN_GG(T163, T167)
LESS46_IN_GG(s(T184), s(T186)) → U3_GG(T184, T186, less46_in_gg(T184, T186))
LESS46_IN_GG(s(T184), s(T186)) → LESS46_IN_GG(T184, T186)
P44_IN_GGAG(T163, T171, T172, T166) → U5_GGAG(T163, T171, T172, T166, less46_in_gg(T163, T171))
U5_GGAG(T163, T171, T172, T166, less46_out_gg(T163, T171)) → U6_GGAG(T163, T171, T172, T166, delete1_in_gag(T171, T172, T166))
U5_GGAG(T163, T171, T172, T166, less46_out_gg(T163, T171)) → DELETE1_IN_GAG(T171, T172, T166)
DELETE1_IN_GAG(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_GAG(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
DELETE1_IN_GAG(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → DELETE1_IN_GAG(0, T210, T202)
DELETE1_IN_GAG(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_GAG(T223, T222, T224, T201, T202, p65_in_ggag(T223, T222, T224, T202))
DELETE1_IN_GAG(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → P65_IN_GGAG(T223, T222, T224, T202)
P65_IN_GGAG(T223, T222, T224, T202) → U12_GGAG(T223, T222, T224, T202, less34_in_gg(T223, T222))
P65_IN_GGAG(T223, T222, T224, T202) → LESS34_IN_GG(T223, T222)
P65_IN_GGAG(T227, T222, T228, T202) → U13_GGAG(T227, T222, T228, T202, less34_in_gg(T227, T222))
U13_GGAG(T227, T222, T228, T202, less34_out_gg(T227, T222)) → U14_GGAG(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
U13_GGAG(T227, T222, T228, T202, less34_out_gg(T227, T222)) → DELETE1_IN_GAG(s(T227), T228, T202)
DELETE1_IN_GAG(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_GAG(T250, T246, T247, T251, T249, p44_in_ggag(T246, T250, T251, T249))
DELETE1_IN_GAG(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_GAG(T264, T260, T261, T265, T263, p72_in_ggag(T260, T264, T265, T263))
DELETE1_IN_GAG(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → P72_IN_GGAG(T260, T264, T265, T263)
P72_IN_GGAG(0, s(T272), T271, T263) → U10_GGAG(T272, T271, T263, delete1_in_gag(s(T272), T271, T263))
P72_IN_GGAG(0, s(T272), T271, T263) → DELETE1_IN_GAG(s(T272), T271, T263)
DELETE1_IN_GAG(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_GAG(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
DELETE1_IN_GAG(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_GAG(T376, T372, T377, T374, T375, p32_in_ggag(T376, T372, T377, T375))
DELETE1_IN_GAG(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_GAG(T395, T391, T392, T396, T394, p72_in_ggag(T391, T395, T396, T394))
P72_IN_GGAG(s(T281), s(T283), T284, T263) → U11_GGAG(T281, T283, T284, T263, p79_in_ggag(T281, T283, T284, T263))
P72_IN_GGAG(s(T281), s(T283), T284, T263) → P79_IN_GGAG(T281, T283, T284, T263)
P79_IN_GGAG(T281, T283, T284, T263) → U15_GGAG(T281, T283, T284, T263, less46_in_gg(T281, T283))
P79_IN_GGAG(T281, T283, T284, T263) → LESS46_IN_GG(T281, T283)
P79_IN_GGAG(T281, T287, T288, T263) → U16_GGAG(T281, T287, T288, T263, less46_in_gg(T281, T287))
U16_GGAG(T281, T287, T288, T263, less46_out_gg(T281, T287)) → U17_GGAG(T281, T287, T288, T263, delete1_in_gag(s(T287), T288, T263))
U16_GGAG(T281, T287, T288, T263, less46_out_gg(T281, T287)) → DELETE1_IN_GAG(s(T287), T288, T263)
DELETE1_IN_GAG(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_GAG(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
DELETE1_IN_GAG(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_GAG(T429, T428, T430, T407, T408, p65_in_ggag(T429, T428, T430, T408))
DELETE1_IN_GAG(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_GAG(T448, T444, T445, T449, T447, p72_in_ggag(T444, T448, T449, T447))
DELETE1_IN_GAG(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_GAG(T462, T458, T459, T463, T461, p116_in_ggag(T458, T462, T463, T461))
DELETE1_IN_GAG(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → P116_IN_GGAG(T458, T462, T463, T461)
P116_IN_GGAG(0, s(T470), T469, T461) → U18_GGAG(T470, T469, T461, delete1_in_gag(s(T470), T469, T461))
P116_IN_GGAG(0, s(T470), T469, T461) → DELETE1_IN_GAG(s(T470), T469, T461)
DELETE1_IN_GAG(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_GAG(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
DELETE1_IN_GAG(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_GAG(T570, T566, T571, T568, T569, p32_in_ggag(T570, T566, T571, T569))
DELETE1_IN_GAG(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_GAG(T589, T585, T586, T590, T588, p116_in_ggag(T585, T589, T590, T588))
P116_IN_GGAG(s(T479), s(T481), T482, T461) → U19_GGAG(T479, T481, T482, T461, p79_in_ggag(T479, T481, T482, T461))
P116_IN_GGAG(s(T479), s(T481), T482, T461) → P79_IN_GGAG(T479, T481, T482, T461)
DELETE1_IN_GAG(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_GAG(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
DELETE1_IN_GAG(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_GAG(T623, T622, T624, T601, T602, p65_in_ggag(T623, T622, T624, T602))
DELETE1_IN_GAG(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_GAG(T642, T638, T639, T643, T641, p116_in_ggag(T638, T642, T643, T641))
DELETE1_IN_GAG(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_GAG(T664, T653, T663, T655, delete1_in_gag(s(T664), T663, T655))
DELETE1_IN_GAG(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → DELETE1_IN_GAG(s(T664), T663, T655)
DELETE1_IN_GAG(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_GAG(T675, T673, T653, T676, T655, p79_in_ggag(T673, T675, T676, T655))
DELETE1_IN_GAG(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → P79_IN_GGAG(T673, T675, T676, T655)
DELETE1_IN_GAG(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_GAG(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
DELETE1_IN_GAG(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_GAG(T760, T756, T761, T758, T759, p32_in_ggag(T760, T756, T761, T759))
DELETE1_IN_GAG(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_GAG(T779, T775, T776, T780, T778, p116_in_ggag(T775, T779, T780, T778))
DELETE1_IN_GAG(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_GAG(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
DELETE1_IN_GAG(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_GAG(T813, T812, T814, T791, T792, p65_in_ggag(T813, T812, T814, T792))
DELETE1_IN_GAG(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_GAG(T832, T828, T829, T833, T831, p116_in_ggag(T828, T832, T833, T831))
DELETE1_IN_GAG(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_GAG(T854, T843, T853, T845, delete1_in_gag(s(T854), T853, T845))
DELETE1_IN_GAG(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_GAG(T865, T863, T843, T866, T845, p79_in_ggag(T863, T865, T866, T845))
DELETE1_IN_AAG(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_AAG(T167, T163, T164, T168, T166, p44_in_gaag(T163, T167, T168, T166))
DELETE1_IN_AAG(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → P44_IN_GAAG(T163, T167, T168, T166)
P44_IN_GAAG(T163, T167, T168, T166) → U4_GAAG(T163, T167, T168, T166, less46_in_ga(T163, T167))
P44_IN_GAAG(T163, T167, T168, T166) → LESS46_IN_GA(T163, T167)
LESS46_IN_GA(s(T184), s(T186)) → U3_GA(T184, T186, less46_in_ga(T184, T186))
LESS46_IN_GA(s(T184), s(T186)) → LESS46_IN_GA(T184, T186)
P44_IN_GAAG(T163, T171, T172, T166) → U5_GAAG(T163, T171, T172, T166, less46_in_ga(T163, T171))
U5_GAAG(T163, T171, T172, T166, less46_out_ga(T163, T171)) → U6_GAAG(T163, T171, T172, T166, delete1_in_aag(T171, T172, T166))
U5_GAAG(T163, T171, T172, T166, less46_out_ga(T163, T171)) → DELETE1_IN_AAG(T171, T172, T166)
DELETE1_IN_AAG(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_AAG(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
DELETE1_IN_AAG(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → DELETE1_IN_GAG(0, T210, T202)
DELETE1_IN_AAG(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_AAG(T223, T222, T224, T201, T202, p65_in_agag(T223, T222, T224, T202))
DELETE1_IN_AAG(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → P65_IN_AGAG(T223, T222, T224, T202)
P65_IN_AGAG(T223, T222, T224, T202) → U12_AGAG(T223, T222, T224, T202, less34_in_ag(T223, T222))
P65_IN_AGAG(T223, T222, T224, T202) → LESS34_IN_AG(T223, T222)
P65_IN_AGAG(T227, T222, T228, T202) → U13_AGAG(T227, T222, T228, T202, less34_in_ag(T227, T222))
U13_AGAG(T227, T222, T228, T202, less34_out_ag(T227, T222)) → U14_AGAG(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
U13_AGAG(T227, T222, T228, T202, less34_out_ag(T227, T222)) → DELETE1_IN_GAG(s(T227), T228, T202)
DELETE1_IN_AAG(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_AAG(T250, T246, T247, T251, T249, p44_in_gaag(T246, T250, T251, T249))
DELETE1_IN_AAG(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_AAG(T264, T260, T261, T265, T263, p72_in_gaag(T260, T264, T265, T263))
DELETE1_IN_AAG(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → P72_IN_GAAG(T260, T264, T265, T263)
P72_IN_GAAG(0, s(T272), T271, T263) → U10_GAAG(T272, T271, T263, delete1_in_aag(s(T272), T271, T263))
P72_IN_GAAG(0, s(T272), T271, T263) → DELETE1_IN_AAG(s(T272), T271, T263)
DELETE1_IN_AAG(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_AAG(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
DELETE1_IN_AAG(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_AAG(T376, T372, T377, T374, T375, p32_in_agag(T376, T372, T377, T375))
DELETE1_IN_AAG(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_AAG(T395, T391, T392, T396, T394, p72_in_gaag(T391, T395, T396, T394))
P72_IN_GAAG(s(T281), s(T283), T284, T263) → U11_GAAG(T281, T283, T284, T263, p79_in_gaag(T281, T283, T284, T263))
P72_IN_GAAG(s(T281), s(T283), T284, T263) → P79_IN_GAAG(T281, T283, T284, T263)
P79_IN_GAAG(T281, T283, T284, T263) → U15_GAAG(T281, T283, T284, T263, less46_in_ga(T281, T283))
P79_IN_GAAG(T281, T283, T284, T263) → LESS46_IN_GA(T281, T283)
P79_IN_GAAG(T281, T287, T288, T263) → U16_GAAG(T281, T287, T288, T263, less46_in_ga(T281, T287))
U16_GAAG(T281, T287, T288, T263, less46_out_ga(T281, T287)) → U17_GAAG(T281, T287, T288, T263, delete1_in_aag(s(T287), T288, T263))
U16_GAAG(T281, T287, T288, T263, less46_out_ga(T281, T287)) → DELETE1_IN_AAG(s(T287), T288, T263)
DELETE1_IN_AAG(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_AAG(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
DELETE1_IN_AAG(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_AAG(T429, T428, T430, T407, T408, p65_in_agag(T429, T428, T430, T408))
DELETE1_IN_AAG(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_AAG(T448, T444, T445, T449, T447, p72_in_gaag(T444, T448, T449, T447))
DELETE1_IN_AAG(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_AAG(T462, T458, T459, T463, T461, p116_in_gaag(T458, T462, T463, T461))
DELETE1_IN_AAG(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → P116_IN_GAAG(T458, T462, T463, T461)
P116_IN_GAAG(0, s(T470), T469, T461) → U18_GAAG(T470, T469, T461, delete1_in_aag(s(T470), T469, T461))
P116_IN_GAAG(0, s(T470), T469, T461) → DELETE1_IN_AAG(s(T470), T469, T461)
DELETE1_IN_AAG(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_AAG(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
DELETE1_IN_AAG(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_AAG(T570, T566, T571, T568, T569, p32_in_agag(T570, T566, T571, T569))
DELETE1_IN_AAG(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_AAG(T589, T585, T586, T590, T588, p116_in_gaag(T585, T589, T590, T588))
P116_IN_GAAG(s(T479), s(T481), T482, T461) → U19_GAAG(T479, T481, T482, T461, p79_in_gaag(T479, T481, T482, T461))
P116_IN_GAAG(s(T479), s(T481), T482, T461) → P79_IN_GAAG(T479, T481, T482, T461)
DELETE1_IN_AAG(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_AAG(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
DELETE1_IN_AAG(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_AAG(T623, T622, T624, T601, T602, p65_in_agag(T623, T622, T624, T602))
DELETE1_IN_AAG(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_AAG(T642, T638, T639, T643, T641, p116_in_gaag(T638, T642, T643, T641))
DELETE1_IN_AAG(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_AAG(T664, T653, T663, T655, delete1_in_aag(s(T664), T663, T655))
DELETE1_IN_AAG(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → DELETE1_IN_AAG(s(T664), T663, T655)
DELETE1_IN_AAG(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_AAG(T675, T673, T653, T676, T655, p79_in_gaag(T673, T675, T676, T655))
DELETE1_IN_AAG(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → P79_IN_GAAG(T673, T675, T676, T655)
DELETE1_IN_AAG(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_AAG(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
DELETE1_IN_AAG(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_AAG(T760, T756, T761, T758, T759, p32_in_agag(T760, T756, T761, T759))
DELETE1_IN_AAG(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_AAG(T779, T775, T776, T780, T778, p116_in_gaag(T775, T779, T780, T778))
DELETE1_IN_AAG(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_AAG(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
DELETE1_IN_AAG(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_AAG(T813, T812, T814, T791, T792, p65_in_agag(T813, T812, T814, T792))
DELETE1_IN_AAG(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_AAG(T832, T828, T829, T833, T831, p116_in_gaag(T828, T832, T833, T831))
DELETE1_IN_AAG(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_AAG(T854, T843, T853, T845, delete1_in_aag(s(T854), T853, T845))
DELETE1_IN_AAG(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_AAG(T865, T863, T843, T866, T845, p79_in_gaag(T863, T865, T866, T845))

The TRS R consists of the following rules:

delete1_in_aag(T6, tree(T6, void, T7), T7) → delete1_out_aag(T6, tree(T6, void, T7), T7)
delete1_in_aag(T10, tree(T10, T11, void), T11) → delete1_out_aag(T10, tree(T10, T11, void), T11)
delete1_in_aag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32)) → delete1_out_aag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32))
delete1_in_aag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_aag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
delmin19_in_agg(tree(T76, void, T77), T76, T77) → delmin19_out_agg(tree(T76, void, T77), T76, T77)
delmin19_in_agg(tree(T90, T96, T92), T93, tree(T90, T94, T95)) → U1_agg(T90, T96, T92, T93, T94, T95, delmin19_in_agg(T96, T93, T94))
U1_agg(T90, T96, T92, T93, T94, T95, delmin19_out_agg(T96, T93, T94)) → delmin19_out_agg(tree(T90, T96, T92), T93, tree(T90, T94, T95))
U20_aag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_out_agg(T63, T60, T61)) → delete1_out_aag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62)))
delete1_in_aag(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_aag(T126, T122, T127, T124, T125, p32_in_agag(T126, T122, T127, T125))
p32_in_agag(T126, T122, T127, T125) → U7_agag(T126, T122, T127, T125, less34_in_ag(T126, T122))
less34_in_ag(0, s(T138)) → less34_out_ag(0, s(T138))
less34_in_ag(s(T145), s(T144)) → U2_ag(T145, T144, less34_in_ag(T145, T144))
U2_ag(T145, T144, less34_out_ag(T145, T144)) → less34_out_ag(s(T145), s(T144))
U7_agag(T126, T122, T127, T125, less34_out_ag(T126, T122)) → p32_out_agag(T126, T122, T127, T125)
p32_in_agag(T130, T122, T131, T125) → U8_agag(T130, T122, T131, T125, less34_in_ag(T130, T122))
U8_agag(T130, T122, T131, T125, less34_out_ag(T130, T122)) → U9_agag(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
delete1_in_gag(T6, tree(T6, void, T7), T7) → delete1_out_gag(T6, tree(T6, void, T7), T7)
delete1_in_gag(T10, tree(T10, T11, void), T11) → delete1_out_gag(T10, tree(T10, T11, void), T11)
delete1_in_gag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32)) → delete1_out_gag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32))
delete1_in_gag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_gag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
U20_gag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_out_agg(T63, T60, T61)) → delete1_out_gag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62)))
delete1_in_gag(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_gag(T126, T122, T127, T124, T125, p32_in_ggag(T126, T122, T127, T125))
p32_in_ggag(T126, T122, T127, T125) → U7_ggag(T126, T122, T127, T125, less34_in_gg(T126, T122))
less34_in_gg(0, s(T138)) → less34_out_gg(0, s(T138))
less34_in_gg(s(T145), s(T144)) → U2_gg(T145, T144, less34_in_gg(T145, T144))
U2_gg(T145, T144, less34_out_gg(T145, T144)) → less34_out_gg(s(T145), s(T144))
U7_ggag(T126, T122, T127, T125, less34_out_gg(T126, T122)) → p32_out_ggag(T126, T122, T127, T125)
p32_in_ggag(T130, T122, T131, T125) → U8_ggag(T130, T122, T131, T125, less34_in_gg(T130, T122))
U8_ggag(T130, T122, T131, T125, less34_out_gg(T130, T122)) → U9_ggag(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
delete1_in_gag(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_gag(T167, T163, T164, T168, T166, p44_in_ggag(T163, T167, T168, T166))
p44_in_ggag(T163, T167, T168, T166) → U4_ggag(T163, T167, T168, T166, less46_in_gg(T163, T167))
less46_in_gg(0, s(T179)) → less46_out_gg(0, s(T179))
less46_in_gg(s(T184), s(T186)) → U3_gg(T184, T186, less46_in_gg(T184, T186))
U3_gg(T184, T186, less46_out_gg(T184, T186)) → less46_out_gg(s(T184), s(T186))
U4_ggag(T163, T167, T168, T166, less46_out_gg(T163, T167)) → p44_out_ggag(T163, T167, T168, T166)
p44_in_ggag(T163, T171, T172, T166) → U5_ggag(T163, T171, T172, T166, less46_in_gg(T163, T171))
U5_ggag(T163, T171, T172, T166, less46_out_gg(T163, T171)) → U6_ggag(T163, T171, T172, T166, delete1_in_gag(T171, T172, T166))
delete1_in_gag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_gag(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
delete1_in_gag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_gag(T223, T222, T224, T201, T202, p65_in_ggag(T223, T222, T224, T202))
p65_in_ggag(T223, T222, T224, T202) → U12_ggag(T223, T222, T224, T202, less34_in_gg(T223, T222))
U12_ggag(T223, T222, T224, T202, less34_out_gg(T223, T222)) → p65_out_ggag(T223, T222, T224, T202)
p65_in_ggag(T227, T222, T228, T202) → U13_ggag(T227, T222, T228, T202, less34_in_gg(T227, T222))
U13_ggag(T227, T222, T228, T202, less34_out_gg(T227, T222)) → U14_ggag(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
delete1_in_gag(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_gag(T250, T246, T247, T251, T249, p44_in_ggag(T246, T250, T251, T249))
U25_gag(T250, T246, T247, T251, T249, p44_out_ggag(T246, T250, T251, T249)) → delete1_out_gag(T250, tree(T246, T247, T251), tree(T246, T247, T249))
delete1_in_gag(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_gag(T264, T260, T261, T265, T263, p72_in_ggag(T260, T264, T265, T263))
p72_in_ggag(0, s(T272), T271, T263) → U10_ggag(T272, T271, T263, delete1_in_gag(s(T272), T271, T263))
delete1_in_gag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_gag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
U27_gag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_out_agg(T346, T343, T344)) → delete1_out_gag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345)))
delete1_in_gag(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_gag(T376, T372, T377, T374, T375, p32_in_ggag(T376, T372, T377, T375))
U28_gag(T376, T372, T377, T374, T375, p32_out_ggag(T376, T372, T377, T375)) → delete1_out_gag(T376, tree(T372, T377, T374), tree(T372, T375, T374))
delete1_in_gag(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_gag(T395, T391, T392, T396, T394, p72_in_ggag(T391, T395, T396, T394))
p72_in_ggag(s(T281), s(T283), T284, T263) → U11_ggag(T281, T283, T284, T263, p79_in_ggag(T281, T283, T284, T263))
p79_in_ggag(T281, T283, T284, T263) → U15_ggag(T281, T283, T284, T263, less46_in_gg(T281, T283))
U15_ggag(T281, T283, T284, T263, less46_out_gg(T281, T283)) → p79_out_ggag(T281, T283, T284, T263)
p79_in_ggag(T281, T287, T288, T263) → U16_ggag(T281, T287, T288, T263, less46_in_gg(T281, T287))
U16_ggag(T281, T287, T288, T263, less46_out_gg(T281, T287)) → U17_ggag(T281, T287, T288, T263, delete1_in_gag(s(T287), T288, T263))
delete1_in_gag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_gag(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
delete1_in_gag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_gag(T429, T428, T430, T407, T408, p65_in_ggag(T429, T428, T430, T408))
U31_gag(T429, T428, T430, T407, T408, p65_out_ggag(T429, T428, T430, T408)) → delete1_out_gag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407))
delete1_in_gag(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_gag(T448, T444, T445, T449, T447, p72_in_ggag(T444, T448, T449, T447))
U32_gag(T448, T444, T445, T449, T447, p72_out_ggag(T444, T448, T449, T447)) → delete1_out_gag(T448, tree(T444, T445, T449), tree(T444, T445, T447))
delete1_in_gag(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_gag(T462, T458, T459, T463, T461, p116_in_ggag(T458, T462, T463, T461))
p116_in_ggag(0, s(T470), T469, T461) → U18_ggag(T470, T469, T461, delete1_in_gag(s(T470), T469, T461))
delete1_in_gag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_gag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
U34_gag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_out_agg(T540, T537, T538)) → delete1_out_gag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539)))
delete1_in_gag(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_gag(T570, T566, T571, T568, T569, p32_in_ggag(T570, T566, T571, T569))
U35_gag(T570, T566, T571, T568, T569, p32_out_ggag(T570, T566, T571, T569)) → delete1_out_gag(T570, tree(T566, T571, T568), tree(T566, T569, T568))
delete1_in_gag(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_gag(T589, T585, T586, T590, T588, p116_in_ggag(T585, T589, T590, T588))
p116_in_ggag(s(T479), s(T481), T482, T461) → U19_ggag(T479, T481, T482, T461, p79_in_ggag(T479, T481, T482, T461))
U19_ggag(T479, T481, T482, T461, p79_out_ggag(T479, T481, T482, T461)) → p116_out_ggag(s(T479), s(T481), T482, T461)
U36_gag(T589, T585, T586, T590, T588, p116_out_ggag(T585, T589, T590, T588)) → delete1_out_gag(T589, tree(T585, T586, T590), tree(T585, T586, T588))
delete1_in_gag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_gag(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
delete1_in_gag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_gag(T623, T622, T624, T601, T602, p65_in_ggag(T623, T622, T624, T602))
U38_gag(T623, T622, T624, T601, T602, p65_out_ggag(T623, T622, T624, T602)) → delete1_out_gag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601))
delete1_in_gag(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_gag(T642, T638, T639, T643, T641, p116_in_ggag(T638, T642, T643, T641))
U39_gag(T642, T638, T639, T643, T641, p116_out_ggag(T638, T642, T643, T641)) → delete1_out_gag(T642, tree(T638, T639, T643), tree(T638, T639, T641))
delete1_in_gag(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_gag(T664, T653, T663, T655, delete1_in_gag(s(T664), T663, T655))
delete1_in_gag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_gag(T675, T673, T653, T676, T655, p79_in_ggag(T673, T675, T676, T655))
U41_gag(T675, T673, T653, T676, T655, p79_out_ggag(T673, T675, T676, T655)) → delete1_out_gag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655))
delete1_in_gag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_gag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
U42_gag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_out_agg(T730, T727, T728)) → delete1_out_gag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729)))
delete1_in_gag(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_gag(T760, T756, T761, T758, T759, p32_in_ggag(T760, T756, T761, T759))
U43_gag(T760, T756, T761, T758, T759, p32_out_ggag(T760, T756, T761, T759)) → delete1_out_gag(T760, tree(T756, T761, T758), tree(T756, T759, T758))
delete1_in_gag(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_gag(T779, T775, T776, T780, T778, p116_in_ggag(T775, T779, T780, T778))
U44_gag(T779, T775, T776, T780, T778, p116_out_ggag(T775, T779, T780, T778)) → delete1_out_gag(T779, tree(T775, T776, T780), tree(T775, T776, T778))
delete1_in_gag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_gag(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
delete1_in_gag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_gag(T813, T812, T814, T791, T792, p65_in_ggag(T813, T812, T814, T792))
U46_gag(T813, T812, T814, T791, T792, p65_out_ggag(T813, T812, T814, T792)) → delete1_out_gag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791))
delete1_in_gag(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_gag(T832, T828, T829, T833, T831, p116_in_ggag(T828, T832, T833, T831))
U47_gag(T832, T828, T829, T833, T831, p116_out_ggag(T828, T832, T833, T831)) → delete1_out_gag(T832, tree(T828, T829, T833), tree(T828, T829, T831))
delete1_in_gag(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_gag(T854, T843, T853, T845, delete1_in_gag(s(T854), T853, T845))
delete1_in_gag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_gag(T865, T863, T843, T866, T845, p79_in_ggag(T863, T865, T866, T845))
U49_gag(T865, T863, T843, T866, T845, p79_out_ggag(T863, T865, T866, T845)) → delete1_out_gag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845))
U48_gag(T854, T843, T853, T845, delete1_out_gag(s(T854), T853, T845)) → delete1_out_gag(s(T854), tree(0, T843, T853), tree(0, T843, T845))
U45_gag(T799, T800, T791, T792, delete1_out_gag(0, T800, T792)) → delete1_out_gag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791))
U40_gag(T664, T653, T663, T655, delete1_out_gag(s(T664), T663, T655)) → delete1_out_gag(s(T664), tree(0, T653, T663), tree(0, T653, T655))
U37_gag(T609, T610, T601, T602, delete1_out_gag(0, T610, T602)) → delete1_out_gag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601))
U18_ggag(T470, T469, T461, delete1_out_gag(s(T470), T469, T461)) → p116_out_ggag(0, s(T470), T469, T461)
U33_gag(T462, T458, T459, T463, T461, p116_out_ggag(T458, T462, T463, T461)) → delete1_out_gag(T462, tree(T458, T459, T463), tree(T458, T459, T461))
U30_gag(T415, T416, T407, T408, delete1_out_gag(0, T416, T408)) → delete1_out_gag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407))
U17_ggag(T281, T287, T288, T263, delete1_out_gag(s(T287), T288, T263)) → p79_out_ggag(T281, T287, T288, T263)
U11_ggag(T281, T283, T284, T263, p79_out_ggag(T281, T283, T284, T263)) → p72_out_ggag(s(T281), s(T283), T284, T263)
U29_gag(T395, T391, T392, T396, T394, p72_out_ggag(T391, T395, T396, T394)) → delete1_out_gag(T395, tree(T391, T392, T396), tree(T391, T392, T394))
U10_ggag(T272, T271, T263, delete1_out_gag(s(T272), T271, T263)) → p72_out_ggag(0, s(T272), T271, T263)
U26_gag(T264, T260, T261, T265, T263, p72_out_ggag(T260, T264, T265, T263)) → delete1_out_gag(T264, tree(T260, T261, T265), tree(T260, T261, T263))
U14_ggag(T227, T222, T228, T202, delete1_out_gag(s(T227), T228, T202)) → p65_out_ggag(T227, T222, T228, T202)
U24_gag(T223, T222, T224, T201, T202, p65_out_ggag(T223, T222, T224, T202)) → delete1_out_gag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201))
U23_gag(T209, T210, T201, T202, delete1_out_gag(0, T210, T202)) → delete1_out_gag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201))
U6_ggag(T163, T171, T172, T166, delete1_out_gag(T171, T172, T166)) → p44_out_ggag(T163, T171, T172, T166)
U22_gag(T167, T163, T164, T168, T166, p44_out_ggag(T163, T167, T168, T166)) → delete1_out_gag(T167, tree(T163, T164, T168), tree(T163, T164, T166))
U9_ggag(T130, T122, T131, T125, delete1_out_gag(T130, T131, T125)) → p32_out_ggag(T130, T122, T131, T125)
U21_gag(T126, T122, T127, T124, T125, p32_out_ggag(T126, T122, T127, T125)) → delete1_out_gag(T126, tree(T122, T127, T124), tree(T122, T125, T124))
U9_agag(T130, T122, T131, T125, delete1_out_gag(T130, T131, T125)) → p32_out_agag(T130, T122, T131, T125)
U21_aag(T126, T122, T127, T124, T125, p32_out_agag(T126, T122, T127, T125)) → delete1_out_aag(T126, tree(T122, T127, T124), tree(T122, T125, T124))
delete1_in_aag(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_aag(T167, T163, T164, T168, T166, p44_in_gaag(T163, T167, T168, T166))
p44_in_gaag(T163, T167, T168, T166) → U4_gaag(T163, T167, T168, T166, less46_in_ga(T163, T167))
less46_in_ga(0, s(T179)) → less46_out_ga(0, s(T179))
less46_in_ga(s(T184), s(T186)) → U3_ga(T184, T186, less46_in_ga(T184, T186))
U3_ga(T184, T186, less46_out_ga(T184, T186)) → less46_out_ga(s(T184), s(T186))
U4_gaag(T163, T167, T168, T166, less46_out_ga(T163, T167)) → p44_out_gaag(T163, T167, T168, T166)
p44_in_gaag(T163, T171, T172, T166) → U5_gaag(T163, T171, T172, T166, less46_in_ga(T163, T171))
U5_gaag(T163, T171, T172, T166, less46_out_ga(T163, T171)) → U6_gaag(T163, T171, T172, T166, delete1_in_aag(T171, T172, T166))
delete1_in_aag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_aag(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
U23_aag(T209, T210, T201, T202, delete1_out_gag(0, T210, T202)) → delete1_out_aag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201))
delete1_in_aag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_aag(T223, T222, T224, T201, T202, p65_in_agag(T223, T222, T224, T202))
p65_in_agag(T223, T222, T224, T202) → U12_agag(T223, T222, T224, T202, less34_in_ag(T223, T222))
U12_agag(T223, T222, T224, T202, less34_out_ag(T223, T222)) → p65_out_agag(T223, T222, T224, T202)
p65_in_agag(T227, T222, T228, T202) → U13_agag(T227, T222, T228, T202, less34_in_ag(T227, T222))
U13_agag(T227, T222, T228, T202, less34_out_ag(T227, T222)) → U14_agag(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
U14_agag(T227, T222, T228, T202, delete1_out_gag(s(T227), T228, T202)) → p65_out_agag(T227, T222, T228, T202)
U24_aag(T223, T222, T224, T201, T202, p65_out_agag(T223, T222, T224, T202)) → delete1_out_aag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201))
delete1_in_aag(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_aag(T250, T246, T247, T251, T249, p44_in_gaag(T246, T250, T251, T249))
U25_aag(T250, T246, T247, T251, T249, p44_out_gaag(T246, T250, T251, T249)) → delete1_out_aag(T250, tree(T246, T247, T251), tree(T246, T247, T249))
delete1_in_aag(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_aag(T264, T260, T261, T265, T263, p72_in_gaag(T260, T264, T265, T263))
p72_in_gaag(0, s(T272), T271, T263) → U10_gaag(T272, T271, T263, delete1_in_aag(s(T272), T271, T263))
delete1_in_aag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_aag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
U27_aag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_out_agg(T346, T343, T344)) → delete1_out_aag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345)))
delete1_in_aag(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_aag(T376, T372, T377, T374, T375, p32_in_agag(T376, T372, T377, T375))
U28_aag(T376, T372, T377, T374, T375, p32_out_agag(T376, T372, T377, T375)) → delete1_out_aag(T376, tree(T372, T377, T374), tree(T372, T375, T374))
delete1_in_aag(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_aag(T395, T391, T392, T396, T394, p72_in_gaag(T391, T395, T396, T394))
p72_in_gaag(s(T281), s(T283), T284, T263) → U11_gaag(T281, T283, T284, T263, p79_in_gaag(T281, T283, T284, T263))
p79_in_gaag(T281, T283, T284, T263) → U15_gaag(T281, T283, T284, T263, less46_in_ga(T281, T283))
U15_gaag(T281, T283, T284, T263, less46_out_ga(T281, T283)) → p79_out_gaag(T281, T283, T284, T263)
p79_in_gaag(T281, T287, T288, T263) → U16_gaag(T281, T287, T288, T263, less46_in_ga(T281, T287))
U16_gaag(T281, T287, T288, T263, less46_out_ga(T281, T287)) → U17_gaag(T281, T287, T288, T263, delete1_in_aag(s(T287), T288, T263))
delete1_in_aag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_aag(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
U30_aag(T415, T416, T407, T408, delete1_out_gag(0, T416, T408)) → delete1_out_aag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407))
delete1_in_aag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_aag(T429, T428, T430, T407, T408, p65_in_agag(T429, T428, T430, T408))
U31_aag(T429, T428, T430, T407, T408, p65_out_agag(T429, T428, T430, T408)) → delete1_out_aag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407))
delete1_in_aag(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_aag(T448, T444, T445, T449, T447, p72_in_gaag(T444, T448, T449, T447))
U32_aag(T448, T444, T445, T449, T447, p72_out_gaag(T444, T448, T449, T447)) → delete1_out_aag(T448, tree(T444, T445, T449), tree(T444, T445, T447))
delete1_in_aag(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_aag(T462, T458, T459, T463, T461, p116_in_gaag(T458, T462, T463, T461))
p116_in_gaag(0, s(T470), T469, T461) → U18_gaag(T470, T469, T461, delete1_in_aag(s(T470), T469, T461))
delete1_in_aag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_aag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
U34_aag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_out_agg(T540, T537, T538)) → delete1_out_aag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539)))
delete1_in_aag(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_aag(T570, T566, T571, T568, T569, p32_in_agag(T570, T566, T571, T569))
U35_aag(T570, T566, T571, T568, T569, p32_out_agag(T570, T566, T571, T569)) → delete1_out_aag(T570, tree(T566, T571, T568), tree(T566, T569, T568))
delete1_in_aag(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_aag(T589, T585, T586, T590, T588, p116_in_gaag(T585, T589, T590, T588))
p116_in_gaag(s(T479), s(T481), T482, T461) → U19_gaag(T479, T481, T482, T461, p79_in_gaag(T479, T481, T482, T461))
U19_gaag(T479, T481, T482, T461, p79_out_gaag(T479, T481, T482, T461)) → p116_out_gaag(s(T479), s(T481), T482, T461)
U36_aag(T589, T585, T586, T590, T588, p116_out_gaag(T585, T589, T590, T588)) → delete1_out_aag(T589, tree(T585, T586, T590), tree(T585, T586, T588))
delete1_in_aag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_aag(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
U37_aag(T609, T610, T601, T602, delete1_out_gag(0, T610, T602)) → delete1_out_aag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601))
delete1_in_aag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_aag(T623, T622, T624, T601, T602, p65_in_agag(T623, T622, T624, T602))
U38_aag(T623, T622, T624, T601, T602, p65_out_agag(T623, T622, T624, T602)) → delete1_out_aag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601))
delete1_in_aag(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_aag(T642, T638, T639, T643, T641, p116_in_gaag(T638, T642, T643, T641))
U39_aag(T642, T638, T639, T643, T641, p116_out_gaag(T638, T642, T643, T641)) → delete1_out_aag(T642, tree(T638, T639, T643), tree(T638, T639, T641))
delete1_in_aag(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_aag(T664, T653, T663, T655, delete1_in_aag(s(T664), T663, T655))
delete1_in_aag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_aag(T675, T673, T653, T676, T655, p79_in_gaag(T673, T675, T676, T655))
U41_aag(T675, T673, T653, T676, T655, p79_out_gaag(T673, T675, T676, T655)) → delete1_out_aag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655))
delete1_in_aag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_aag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
U42_aag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_out_agg(T730, T727, T728)) → delete1_out_aag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729)))
delete1_in_aag(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_aag(T760, T756, T761, T758, T759, p32_in_agag(T760, T756, T761, T759))
U43_aag(T760, T756, T761, T758, T759, p32_out_agag(T760, T756, T761, T759)) → delete1_out_aag(T760, tree(T756, T761, T758), tree(T756, T759, T758))
delete1_in_aag(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_aag(T779, T775, T776, T780, T778, p116_in_gaag(T775, T779, T780, T778))
U44_aag(T779, T775, T776, T780, T778, p116_out_gaag(T775, T779, T780, T778)) → delete1_out_aag(T779, tree(T775, T776, T780), tree(T775, T776, T778))
delete1_in_aag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_aag(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
U45_aag(T799, T800, T791, T792, delete1_out_gag(0, T800, T792)) → delete1_out_aag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791))
delete1_in_aag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_aag(T813, T812, T814, T791, T792, p65_in_agag(T813, T812, T814, T792))
U46_aag(T813, T812, T814, T791, T792, p65_out_agag(T813, T812, T814, T792)) → delete1_out_aag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791))
delete1_in_aag(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_aag(T832, T828, T829, T833, T831, p116_in_gaag(T828, T832, T833, T831))
U47_aag(T832, T828, T829, T833, T831, p116_out_gaag(T828, T832, T833, T831)) → delete1_out_aag(T832, tree(T828, T829, T833), tree(T828, T829, T831))
delete1_in_aag(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_aag(T854, T843, T853, T845, delete1_in_aag(s(T854), T853, T845))
delete1_in_aag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_aag(T865, T863, T843, T866, T845, p79_in_gaag(T863, T865, T866, T845))
U49_aag(T865, T863, T843, T866, T845, p79_out_gaag(T863, T865, T866, T845)) → delete1_out_aag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845))
U48_aag(T854, T843, T853, T845, delete1_out_aag(s(T854), T853, T845)) → delete1_out_aag(s(T854), tree(0, T843, T853), tree(0, T843, T845))
U40_aag(T664, T653, T663, T655, delete1_out_aag(s(T664), T663, T655)) → delete1_out_aag(s(T664), tree(0, T653, T663), tree(0, T653, T655))
U18_gaag(T470, T469, T461, delete1_out_aag(s(T470), T469, T461)) → p116_out_gaag(0, s(T470), T469, T461)
U33_aag(T462, T458, T459, T463, T461, p116_out_gaag(T458, T462, T463, T461)) → delete1_out_aag(T462, tree(T458, T459, T463), tree(T458, T459, T461))
U17_gaag(T281, T287, T288, T263, delete1_out_aag(s(T287), T288, T263)) → p79_out_gaag(T281, T287, T288, T263)
U11_gaag(T281, T283, T284, T263, p79_out_gaag(T281, T283, T284, T263)) → p72_out_gaag(s(T281), s(T283), T284, T263)
U29_aag(T395, T391, T392, T396, T394, p72_out_gaag(T391, T395, T396, T394)) → delete1_out_aag(T395, tree(T391, T392, T396), tree(T391, T392, T394))
U10_gaag(T272, T271, T263, delete1_out_aag(s(T272), T271, T263)) → p72_out_gaag(0, s(T272), T271, T263)
U26_aag(T264, T260, T261, T265, T263, p72_out_gaag(T260, T264, T265, T263)) → delete1_out_aag(T264, tree(T260, T261, T265), tree(T260, T261, T263))
U6_gaag(T163, T171, T172, T166, delete1_out_aag(T171, T172, T166)) → p44_out_gaag(T163, T171, T172, T166)
U22_aag(T167, T163, T164, T168, T166, p44_out_gaag(T163, T167, T168, T166)) → delete1_out_aag(T167, tree(T163, T164, T168), tree(T163, T164, T166))

The argument filtering Pi contains the following mapping:
delete1_in_aag(x1, x2, x3)  =  delete1_in_aag(x3)
delete1_out_aag(x1, x2, x3)  =  delete1_out_aag
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U20_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aag(x9)
delmin19_in_agg(x1, x2, x3)  =  delmin19_in_agg(x2, x3)
delmin19_out_agg(x1, x2, x3)  =  delmin19_out_agg
U1_agg(x1, x2, x3, x4, x5, x6, x7)  =  U1_agg(x7)
U21_aag(x1, x2, x3, x4, x5, x6)  =  U21_aag(x6)
p32_in_agag(x1, x2, x3, x4)  =  p32_in_agag(x2, x4)
U7_agag(x1, x2, x3, x4, x5)  =  U7_agag(x5)
less34_in_ag(x1, x2)  =  less34_in_ag(x2)
s(x1)  =  s(x1)
less34_out_ag(x1, x2)  =  less34_out_ag(x1)
U2_ag(x1, x2, x3)  =  U2_ag(x3)
p32_out_agag(x1, x2, x3, x4)  =  p32_out_agag(x1)
U8_agag(x1, x2, x3, x4, x5)  =  U8_agag(x4, x5)
U9_agag(x1, x2, x3, x4, x5)  =  U9_agag(x1, x5)
delete1_in_gag(x1, x2, x3)  =  delete1_in_gag(x1, x3)
delete1_out_gag(x1, x2, x3)  =  delete1_out_gag
U20_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gag(x9)
U21_gag(x1, x2, x3, x4, x5, x6)  =  U21_gag(x6)
p32_in_ggag(x1, x2, x3, x4)  =  p32_in_ggag(x1, x2, x4)
U7_ggag(x1, x2, x3, x4, x5)  =  U7_ggag(x5)
less34_in_gg(x1, x2)  =  less34_in_gg(x1, x2)
0  =  0
less34_out_gg(x1, x2)  =  less34_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
p32_out_ggag(x1, x2, x3, x4)  =  p32_out_ggag
U8_ggag(x1, x2, x3, x4, x5)  =  U8_ggag(x1, x4, x5)
U9_ggag(x1, x2, x3, x4, x5)  =  U9_ggag(x5)
U22_gag(x1, x2, x3, x4, x5, x6)  =  U22_gag(x6)
p44_in_ggag(x1, x2, x3, x4)  =  p44_in_ggag(x1, x2, x4)
U4_ggag(x1, x2, x3, x4, x5)  =  U4_ggag(x5)
less46_in_gg(x1, x2)  =  less46_in_gg(x1, x2)
less46_out_gg(x1, x2)  =  less46_out_gg
U3_gg(x1, x2, x3)  =  U3_gg(x3)
p44_out_ggag(x1, x2, x3, x4)  =  p44_out_ggag
U5_ggag(x1, x2, x3, x4, x5)  =  U5_ggag(x2, x4, x5)
U6_ggag(x1, x2, x3, x4, x5)  =  U6_ggag(x5)
U23_gag(x1, x2, x3, x4, x5)  =  U23_gag(x5)
U24_gag(x1, x2, x3, x4, x5, x6)  =  U24_gag(x6)
p65_in_ggag(x1, x2, x3, x4)  =  p65_in_ggag(x1, x2, x4)
U12_ggag(x1, x2, x3, x4, x5)  =  U12_ggag(x5)
p65_out_ggag(x1, x2, x3, x4)  =  p65_out_ggag
U13_ggag(x1, x2, x3, x4, x5)  =  U13_ggag(x1, x4, x5)
U14_ggag(x1, x2, x3, x4, x5)  =  U14_ggag(x5)
U25_gag(x1, x2, x3, x4, x5, x6)  =  U25_gag(x6)
U26_gag(x1, x2, x3, x4, x5, x6)  =  U26_gag(x6)
p72_in_ggag(x1, x2, x3, x4)  =  p72_in_ggag(x1, x2, x4)
U10_ggag(x1, x2, x3, x4)  =  U10_ggag(x4)
U27_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gag(x9)
U28_gag(x1, x2, x3, x4, x5, x6)  =  U28_gag(x6)
U29_gag(x1, x2, x3, x4, x5, x6)  =  U29_gag(x6)
U11_ggag(x1, x2, x3, x4, x5)  =  U11_ggag(x5)
p79_in_ggag(x1, x2, x3, x4)  =  p79_in_ggag(x1, x2, x4)
U15_ggag(x1, x2, x3, x4, x5)  =  U15_ggag(x5)
p79_out_ggag(x1, x2, x3, x4)  =  p79_out_ggag
U16_ggag(x1, x2, x3, x4, x5)  =  U16_ggag(x2, x4, x5)
U17_ggag(x1, x2, x3, x4, x5)  =  U17_ggag(x5)
U30_gag(x1, x2, x3, x4, x5)  =  U30_gag(x5)
U31_gag(x1, x2, x3, x4, x5, x6)  =  U31_gag(x6)
U32_gag(x1, x2, x3, x4, x5, x6)  =  U32_gag(x6)
p72_out_ggag(x1, x2, x3, x4)  =  p72_out_ggag
U33_gag(x1, x2, x3, x4, x5, x6)  =  U33_gag(x6)
p116_in_ggag(x1, x2, x3, x4)  =  p116_in_ggag(x1, x2, x4)
U18_ggag(x1, x2, x3, x4)  =  U18_ggag(x4)
U34_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_gag(x9)
U35_gag(x1, x2, x3, x4, x5, x6)  =  U35_gag(x6)
U36_gag(x1, x2, x3, x4, x5, x6)  =  U36_gag(x6)
U19_ggag(x1, x2, x3, x4, x5)  =  U19_ggag(x5)
p116_out_ggag(x1, x2, x3, x4)  =  p116_out_ggag
U37_gag(x1, x2, x3, x4, x5)  =  U37_gag(x5)
U38_gag(x1, x2, x3, x4, x5, x6)  =  U38_gag(x6)
U39_gag(x1, x2, x3, x4, x5, x6)  =  U39_gag(x6)
U40_gag(x1, x2, x3, x4, x5)  =  U40_gag(x5)
U41_gag(x1, x2, x3, x4, x5, x6)  =  U41_gag(x6)
U42_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_gag(x9)
U43_gag(x1, x2, x3, x4, x5, x6)  =  U43_gag(x6)
U44_gag(x1, x2, x3, x4, x5, x6)  =  U44_gag(x6)
U45_gag(x1, x2, x3, x4, x5)  =  U45_gag(x5)
U46_gag(x1, x2, x3, x4, x5, x6)  =  U46_gag(x6)
U47_gag(x1, x2, x3, x4, x5, x6)  =  U47_gag(x6)
U48_gag(x1, x2, x3, x4, x5)  =  U48_gag(x5)
U49_gag(x1, x2, x3, x4, x5, x6)  =  U49_gag(x6)
U22_aag(x1, x2, x3, x4, x5, x6)  =  U22_aag(x6)
p44_in_gaag(x1, x2, x3, x4)  =  p44_in_gaag(x1, x4)
U4_gaag(x1, x2, x3, x4, x5)  =  U4_gaag(x5)
less46_in_ga(x1, x2)  =  less46_in_ga(x1)
less46_out_ga(x1, x2)  =  less46_out_ga
U3_ga(x1, x2, x3)  =  U3_ga(x3)
p44_out_gaag(x1, x2, x3, x4)  =  p44_out_gaag
U5_gaag(x1, x2, x3, x4, x5)  =  U5_gaag(x4, x5)
U6_gaag(x1, x2, x3, x4, x5)  =  U6_gaag(x5)
U23_aag(x1, x2, x3, x4, x5)  =  U23_aag(x5)
U24_aag(x1, x2, x3, x4, x5, x6)  =  U24_aag(x6)
p65_in_agag(x1, x2, x3, x4)  =  p65_in_agag(x2, x4)
U12_agag(x1, x2, x3, x4, x5)  =  U12_agag(x5)
p65_out_agag(x1, x2, x3, x4)  =  p65_out_agag(x1)
U13_agag(x1, x2, x3, x4, x5)  =  U13_agag(x4, x5)
U14_agag(x1, x2, x3, x4, x5)  =  U14_agag(x1, x5)
U25_aag(x1, x2, x3, x4, x5, x6)  =  U25_aag(x6)
U26_aag(x1, x2, x3, x4, x5, x6)  =  U26_aag(x6)
p72_in_gaag(x1, x2, x3, x4)  =  p72_in_gaag(x1, x4)
U10_gaag(x1, x2, x3, x4)  =  U10_gaag(x4)
U27_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aag(x9)
U28_aag(x1, x2, x3, x4, x5, x6)  =  U28_aag(x6)
U29_aag(x1, x2, x3, x4, x5, x6)  =  U29_aag(x6)
U11_gaag(x1, x2, x3, x4, x5)  =  U11_gaag(x5)
p79_in_gaag(x1, x2, x3, x4)  =  p79_in_gaag(x1, x4)
U15_gaag(x1, x2, x3, x4, x5)  =  U15_gaag(x5)
p79_out_gaag(x1, x2, x3, x4)  =  p79_out_gaag
U16_gaag(x1, x2, x3, x4, x5)  =  U16_gaag(x4, x5)
U17_gaag(x1, x2, x3, x4, x5)  =  U17_gaag(x5)
U30_aag(x1, x2, x3, x4, x5)  =  U30_aag(x5)
U31_aag(x1, x2, x3, x4, x5, x6)  =  U31_aag(x6)
U32_aag(x1, x2, x3, x4, x5, x6)  =  U32_aag(x6)
p72_out_gaag(x1, x2, x3, x4)  =  p72_out_gaag
U33_aag(x1, x2, x3, x4, x5, x6)  =  U33_aag(x6)
p116_in_gaag(x1, x2, x3, x4)  =  p116_in_gaag(x1, x4)
U18_gaag(x1, x2, x3, x4)  =  U18_gaag(x4)
U34_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_aag(x9)
U35_aag(x1, x2, x3, x4, x5, x6)  =  U35_aag(x6)
U36_aag(x1, x2, x3, x4, x5, x6)  =  U36_aag(x6)
U19_gaag(x1, x2, x3, x4, x5)  =  U19_gaag(x5)
p116_out_gaag(x1, x2, x3, x4)  =  p116_out_gaag
U37_aag(x1, x2, x3, x4, x5)  =  U37_aag(x5)
U38_aag(x1, x2, x3, x4, x5, x6)  =  U38_aag(x6)
U39_aag(x1, x2, x3, x4, x5, x6)  =  U39_aag(x6)
U40_aag(x1, x2, x3, x4, x5)  =  U40_aag(x5)
U41_aag(x1, x2, x3, x4, x5, x6)  =  U41_aag(x6)
U42_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_aag(x9)
U43_aag(x1, x2, x3, x4, x5, x6)  =  U43_aag(x6)
U44_aag(x1, x2, x3, x4, x5, x6)  =  U44_aag(x6)
U45_aag(x1, x2, x3, x4, x5)  =  U45_aag(x5)
U46_aag(x1, x2, x3, x4, x5, x6)  =  U46_aag(x6)
U47_aag(x1, x2, x3, x4, x5, x6)  =  U47_aag(x6)
U48_aag(x1, x2, x3, x4, x5)  =  U48_aag(x5)
U49_aag(x1, x2, x3, x4, x5, x6)  =  U49_aag(x6)
DELETE1_IN_AAG(x1, x2, x3)  =  DELETE1_IN_AAG(x3)
U20_AAG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_AAG(x9)
DELMIN19_IN_AGG(x1, x2, x3)  =  DELMIN19_IN_AGG(x2, x3)
U1_AGG(x1, x2, x3, x4, x5, x6, x7)  =  U1_AGG(x7)
U21_AAG(x1, x2, x3, x4, x5, x6)  =  U21_AAG(x6)
P32_IN_AGAG(x1, x2, x3, x4)  =  P32_IN_AGAG(x2, x4)
U7_AGAG(x1, x2, x3, x4, x5)  =  U7_AGAG(x5)
LESS34_IN_AG(x1, x2)  =  LESS34_IN_AG(x2)
U2_AG(x1, x2, x3)  =  U2_AG(x3)
U8_AGAG(x1, x2, x3, x4, x5)  =  U8_AGAG(x4, x5)
U9_AGAG(x1, x2, x3, x4, x5)  =  U9_AGAG(x1, x5)
DELETE1_IN_GAG(x1, x2, x3)  =  DELETE1_IN_GAG(x1, x3)
U20_GAG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_GAG(x9)
U21_GAG(x1, x2, x3, x4, x5, x6)  =  U21_GAG(x6)
P32_IN_GGAG(x1, x2, x3, x4)  =  P32_IN_GGAG(x1, x2, x4)
U7_GGAG(x1, x2, x3, x4, x5)  =  U7_GGAG(x5)
LESS34_IN_GG(x1, x2)  =  LESS34_IN_GG(x1, x2)
U2_GG(x1, x2, x3)  =  U2_GG(x3)
U8_GGAG(x1, x2, x3, x4, x5)  =  U8_GGAG(x1, x4, x5)
U9_GGAG(x1, x2, x3, x4, x5)  =  U9_GGAG(x5)
U22_GAG(x1, x2, x3, x4, x5, x6)  =  U22_GAG(x6)
P44_IN_GGAG(x1, x2, x3, x4)  =  P44_IN_GGAG(x1, x2, x4)
U4_GGAG(x1, x2, x3, x4, x5)  =  U4_GGAG(x5)
LESS46_IN_GG(x1, x2)  =  LESS46_IN_GG(x1, x2)
U3_GG(x1, x2, x3)  =  U3_GG(x3)
U5_GGAG(x1, x2, x3, x4, x5)  =  U5_GGAG(x2, x4, x5)
U6_GGAG(x1, x2, x3, x4, x5)  =  U6_GGAG(x5)
U23_GAG(x1, x2, x3, x4, x5)  =  U23_GAG(x5)
U24_GAG(x1, x2, x3, x4, x5, x6)  =  U24_GAG(x6)
P65_IN_GGAG(x1, x2, x3, x4)  =  P65_IN_GGAG(x1, x2, x4)
U12_GGAG(x1, x2, x3, x4, x5)  =  U12_GGAG(x5)
U13_GGAG(x1, x2, x3, x4, x5)  =  U13_GGAG(x1, x4, x5)
U14_GGAG(x1, x2, x3, x4, x5)  =  U14_GGAG(x5)
U25_GAG(x1, x2, x3, x4, x5, x6)  =  U25_GAG(x6)
U26_GAG(x1, x2, x3, x4, x5, x6)  =  U26_GAG(x6)
P72_IN_GGAG(x1, x2, x3, x4)  =  P72_IN_GGAG(x1, x2, x4)
U10_GGAG(x1, x2, x3, x4)  =  U10_GGAG(x4)
U27_GAG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_GAG(x9)
U28_GAG(x1, x2, x3, x4, x5, x6)  =  U28_GAG(x6)
U29_GAG(x1, x2, x3, x4, x5, x6)  =  U29_GAG(x6)
U11_GGAG(x1, x2, x3, x4, x5)  =  U11_GGAG(x5)
P79_IN_GGAG(x1, x2, x3, x4)  =  P79_IN_GGAG(x1, x2, x4)
U15_GGAG(x1, x2, x3, x4, x5)  =  U15_GGAG(x5)
U16_GGAG(x1, x2, x3, x4, x5)  =  U16_GGAG(x2, x4, x5)
U17_GGAG(x1, x2, x3, x4, x5)  =  U17_GGAG(x5)
U30_GAG(x1, x2, x3, x4, x5)  =  U30_GAG(x5)
U31_GAG(x1, x2, x3, x4, x5, x6)  =  U31_GAG(x6)
U32_GAG(x1, x2, x3, x4, x5, x6)  =  U32_GAG(x6)
U33_GAG(x1, x2, x3, x4, x5, x6)  =  U33_GAG(x6)
P116_IN_GGAG(x1, x2, x3, x4)  =  P116_IN_GGAG(x1, x2, x4)
U18_GGAG(x1, x2, x3, x4)  =  U18_GGAG(x4)
U34_GAG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_GAG(x9)
U35_GAG(x1, x2, x3, x4, x5, x6)  =  U35_GAG(x6)
U36_GAG(x1, x2, x3, x4, x5, x6)  =  U36_GAG(x6)
U19_GGAG(x1, x2, x3, x4, x5)  =  U19_GGAG(x5)
U37_GAG(x1, x2, x3, x4, x5)  =  U37_GAG(x5)
U38_GAG(x1, x2, x3, x4, x5, x6)  =  U38_GAG(x6)
U39_GAG(x1, x2, x3, x4, x5, x6)  =  U39_GAG(x6)
U40_GAG(x1, x2, x3, x4, x5)  =  U40_GAG(x5)
U41_GAG(x1, x2, x3, x4, x5, x6)  =  U41_GAG(x6)
U42_GAG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_GAG(x9)
U43_GAG(x1, x2, x3, x4, x5, x6)  =  U43_GAG(x6)
U44_GAG(x1, x2, x3, x4, x5, x6)  =  U44_GAG(x6)
U45_GAG(x1, x2, x3, x4, x5)  =  U45_GAG(x5)
U46_GAG(x1, x2, x3, x4, x5, x6)  =  U46_GAG(x6)
U47_GAG(x1, x2, x3, x4, x5, x6)  =  U47_GAG(x6)
U48_GAG(x1, x2, x3, x4, x5)  =  U48_GAG(x5)
U49_GAG(x1, x2, x3, x4, x5, x6)  =  U49_GAG(x6)
U22_AAG(x1, x2, x3, x4, x5, x6)  =  U22_AAG(x6)
P44_IN_GAAG(x1, x2, x3, x4)  =  P44_IN_GAAG(x1, x4)
U4_GAAG(x1, x2, x3, x4, x5)  =  U4_GAAG(x5)
LESS46_IN_GA(x1, x2)  =  LESS46_IN_GA(x1)
U3_GA(x1, x2, x3)  =  U3_GA(x3)
U5_GAAG(x1, x2, x3, x4, x5)  =  U5_GAAG(x4, x5)
U6_GAAG(x1, x2, x3, x4, x5)  =  U6_GAAG(x5)
U23_AAG(x1, x2, x3, x4, x5)  =  U23_AAG(x5)
U24_AAG(x1, x2, x3, x4, x5, x6)  =  U24_AAG(x6)
P65_IN_AGAG(x1, x2, x3, x4)  =  P65_IN_AGAG(x2, x4)
U12_AGAG(x1, x2, x3, x4, x5)  =  U12_AGAG(x5)
U13_AGAG(x1, x2, x3, x4, x5)  =  U13_AGAG(x4, x5)
U14_AGAG(x1, x2, x3, x4, x5)  =  U14_AGAG(x1, x5)
U25_AAG(x1, x2, x3, x4, x5, x6)  =  U25_AAG(x6)
U26_AAG(x1, x2, x3, x4, x5, x6)  =  U26_AAG(x6)
P72_IN_GAAG(x1, x2, x3, x4)  =  P72_IN_GAAG(x1, x4)
U10_GAAG(x1, x2, x3, x4)  =  U10_GAAG(x4)
U27_AAG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_AAG(x9)
U28_AAG(x1, x2, x3, x4, x5, x6)  =  U28_AAG(x6)
U29_AAG(x1, x2, x3, x4, x5, x6)  =  U29_AAG(x6)
U11_GAAG(x1, x2, x3, x4, x5)  =  U11_GAAG(x5)
P79_IN_GAAG(x1, x2, x3, x4)  =  P79_IN_GAAG(x1, x4)
U15_GAAG(x1, x2, x3, x4, x5)  =  U15_GAAG(x5)
U16_GAAG(x1, x2, x3, x4, x5)  =  U16_GAAG(x4, x5)
U17_GAAG(x1, x2, x3, x4, x5)  =  U17_GAAG(x5)
U30_AAG(x1, x2, x3, x4, x5)  =  U30_AAG(x5)
U31_AAG(x1, x2, x3, x4, x5, x6)  =  U31_AAG(x6)
U32_AAG(x1, x2, x3, x4, x5, x6)  =  U32_AAG(x6)
U33_AAG(x1, x2, x3, x4, x5, x6)  =  U33_AAG(x6)
P116_IN_GAAG(x1, x2, x3, x4)  =  P116_IN_GAAG(x1, x4)
U18_GAAG(x1, x2, x3, x4)  =  U18_GAAG(x4)
U34_AAG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_AAG(x9)
U35_AAG(x1, x2, x3, x4, x5, x6)  =  U35_AAG(x6)
U36_AAG(x1, x2, x3, x4, x5, x6)  =  U36_AAG(x6)
U19_GAAG(x1, x2, x3, x4, x5)  =  U19_GAAG(x5)
U37_AAG(x1, x2, x3, x4, x5)  =  U37_AAG(x5)
U38_AAG(x1, x2, x3, x4, x5, x6)  =  U38_AAG(x6)
U39_AAG(x1, x2, x3, x4, x5, x6)  =  U39_AAG(x6)
U40_AAG(x1, x2, x3, x4, x5)  =  U40_AAG(x5)
U41_AAG(x1, x2, x3, x4, x5, x6)  =  U41_AAG(x6)
U42_AAG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_AAG(x9)
U43_AAG(x1, x2, x3, x4, x5, x6)  =  U43_AAG(x6)
U44_AAG(x1, x2, x3, x4, x5, x6)  =  U44_AAG(x6)
U45_AAG(x1, x2, x3, x4, x5)  =  U45_AAG(x5)
U46_AAG(x1, x2, x3, x4, x5, x6)  =  U46_AAG(x6)
U47_AAG(x1, x2, x3, x4, x5, x6)  =  U47_AAG(x6)
U48_AAG(x1, x2, x3, x4, x5)  =  U48_AAG(x5)
U49_AAG(x1, x2, x3, x4, x5, x6)  =  U49_AAG(x6)

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

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 7 SCCs with 106 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

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

LESS46_IN_GA(s(T184), s(T186)) → LESS46_IN_GA(T184, T186)

The TRS R consists of the following rules:

delete1_in_aag(T6, tree(T6, void, T7), T7) → delete1_out_aag(T6, tree(T6, void, T7), T7)
delete1_in_aag(T10, tree(T10, T11, void), T11) → delete1_out_aag(T10, tree(T10, T11, void), T11)
delete1_in_aag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32)) → delete1_out_aag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32))
delete1_in_aag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_aag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
delmin19_in_agg(tree(T76, void, T77), T76, T77) → delmin19_out_agg(tree(T76, void, T77), T76, T77)
delmin19_in_agg(tree(T90, T96, T92), T93, tree(T90, T94, T95)) → U1_agg(T90, T96, T92, T93, T94, T95, delmin19_in_agg(T96, T93, T94))
U1_agg(T90, T96, T92, T93, T94, T95, delmin19_out_agg(T96, T93, T94)) → delmin19_out_agg(tree(T90, T96, T92), T93, tree(T90, T94, T95))
U20_aag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_out_agg(T63, T60, T61)) → delete1_out_aag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62)))
delete1_in_aag(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_aag(T126, T122, T127, T124, T125, p32_in_agag(T126, T122, T127, T125))
p32_in_agag(T126, T122, T127, T125) → U7_agag(T126, T122, T127, T125, less34_in_ag(T126, T122))
less34_in_ag(0, s(T138)) → less34_out_ag(0, s(T138))
less34_in_ag(s(T145), s(T144)) → U2_ag(T145, T144, less34_in_ag(T145, T144))
U2_ag(T145, T144, less34_out_ag(T145, T144)) → less34_out_ag(s(T145), s(T144))
U7_agag(T126, T122, T127, T125, less34_out_ag(T126, T122)) → p32_out_agag(T126, T122, T127, T125)
p32_in_agag(T130, T122, T131, T125) → U8_agag(T130, T122, T131, T125, less34_in_ag(T130, T122))
U8_agag(T130, T122, T131, T125, less34_out_ag(T130, T122)) → U9_agag(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
delete1_in_gag(T6, tree(T6, void, T7), T7) → delete1_out_gag(T6, tree(T6, void, T7), T7)
delete1_in_gag(T10, tree(T10, T11, void), T11) → delete1_out_gag(T10, tree(T10, T11, void), T11)
delete1_in_gag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32)) → delete1_out_gag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32))
delete1_in_gag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_gag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
U20_gag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_out_agg(T63, T60, T61)) → delete1_out_gag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62)))
delete1_in_gag(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_gag(T126, T122, T127, T124, T125, p32_in_ggag(T126, T122, T127, T125))
p32_in_ggag(T126, T122, T127, T125) → U7_ggag(T126, T122, T127, T125, less34_in_gg(T126, T122))
less34_in_gg(0, s(T138)) → less34_out_gg(0, s(T138))
less34_in_gg(s(T145), s(T144)) → U2_gg(T145, T144, less34_in_gg(T145, T144))
U2_gg(T145, T144, less34_out_gg(T145, T144)) → less34_out_gg(s(T145), s(T144))
U7_ggag(T126, T122, T127, T125, less34_out_gg(T126, T122)) → p32_out_ggag(T126, T122, T127, T125)
p32_in_ggag(T130, T122, T131, T125) → U8_ggag(T130, T122, T131, T125, less34_in_gg(T130, T122))
U8_ggag(T130, T122, T131, T125, less34_out_gg(T130, T122)) → U9_ggag(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
delete1_in_gag(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_gag(T167, T163, T164, T168, T166, p44_in_ggag(T163, T167, T168, T166))
p44_in_ggag(T163, T167, T168, T166) → U4_ggag(T163, T167, T168, T166, less46_in_gg(T163, T167))
less46_in_gg(0, s(T179)) → less46_out_gg(0, s(T179))
less46_in_gg(s(T184), s(T186)) → U3_gg(T184, T186, less46_in_gg(T184, T186))
U3_gg(T184, T186, less46_out_gg(T184, T186)) → less46_out_gg(s(T184), s(T186))
U4_ggag(T163, T167, T168, T166, less46_out_gg(T163, T167)) → p44_out_ggag(T163, T167, T168, T166)
p44_in_ggag(T163, T171, T172, T166) → U5_ggag(T163, T171, T172, T166, less46_in_gg(T163, T171))
U5_ggag(T163, T171, T172, T166, less46_out_gg(T163, T171)) → U6_ggag(T163, T171, T172, T166, delete1_in_gag(T171, T172, T166))
delete1_in_gag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_gag(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
delete1_in_gag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_gag(T223, T222, T224, T201, T202, p65_in_ggag(T223, T222, T224, T202))
p65_in_ggag(T223, T222, T224, T202) → U12_ggag(T223, T222, T224, T202, less34_in_gg(T223, T222))
U12_ggag(T223, T222, T224, T202, less34_out_gg(T223, T222)) → p65_out_ggag(T223, T222, T224, T202)
p65_in_ggag(T227, T222, T228, T202) → U13_ggag(T227, T222, T228, T202, less34_in_gg(T227, T222))
U13_ggag(T227, T222, T228, T202, less34_out_gg(T227, T222)) → U14_ggag(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
delete1_in_gag(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_gag(T250, T246, T247, T251, T249, p44_in_ggag(T246, T250, T251, T249))
U25_gag(T250, T246, T247, T251, T249, p44_out_ggag(T246, T250, T251, T249)) → delete1_out_gag(T250, tree(T246, T247, T251), tree(T246, T247, T249))
delete1_in_gag(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_gag(T264, T260, T261, T265, T263, p72_in_ggag(T260, T264, T265, T263))
p72_in_ggag(0, s(T272), T271, T263) → U10_ggag(T272, T271, T263, delete1_in_gag(s(T272), T271, T263))
delete1_in_gag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_gag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
U27_gag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_out_agg(T346, T343, T344)) → delete1_out_gag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345)))
delete1_in_gag(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_gag(T376, T372, T377, T374, T375, p32_in_ggag(T376, T372, T377, T375))
U28_gag(T376, T372, T377, T374, T375, p32_out_ggag(T376, T372, T377, T375)) → delete1_out_gag(T376, tree(T372, T377, T374), tree(T372, T375, T374))
delete1_in_gag(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_gag(T395, T391, T392, T396, T394, p72_in_ggag(T391, T395, T396, T394))
p72_in_ggag(s(T281), s(T283), T284, T263) → U11_ggag(T281, T283, T284, T263, p79_in_ggag(T281, T283, T284, T263))
p79_in_ggag(T281, T283, T284, T263) → U15_ggag(T281, T283, T284, T263, less46_in_gg(T281, T283))
U15_ggag(T281, T283, T284, T263, less46_out_gg(T281, T283)) → p79_out_ggag(T281, T283, T284, T263)
p79_in_ggag(T281, T287, T288, T263) → U16_ggag(T281, T287, T288, T263, less46_in_gg(T281, T287))
U16_ggag(T281, T287, T288, T263, less46_out_gg(T281, T287)) → U17_ggag(T281, T287, T288, T263, delete1_in_gag(s(T287), T288, T263))
delete1_in_gag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_gag(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
delete1_in_gag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_gag(T429, T428, T430, T407, T408, p65_in_ggag(T429, T428, T430, T408))
U31_gag(T429, T428, T430, T407, T408, p65_out_ggag(T429, T428, T430, T408)) → delete1_out_gag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407))
delete1_in_gag(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_gag(T448, T444, T445, T449, T447, p72_in_ggag(T444, T448, T449, T447))
U32_gag(T448, T444, T445, T449, T447, p72_out_ggag(T444, T448, T449, T447)) → delete1_out_gag(T448, tree(T444, T445, T449), tree(T444, T445, T447))
delete1_in_gag(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_gag(T462, T458, T459, T463, T461, p116_in_ggag(T458, T462, T463, T461))
p116_in_ggag(0, s(T470), T469, T461) → U18_ggag(T470, T469, T461, delete1_in_gag(s(T470), T469, T461))
delete1_in_gag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_gag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
U34_gag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_out_agg(T540, T537, T538)) → delete1_out_gag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539)))
delete1_in_gag(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_gag(T570, T566, T571, T568, T569, p32_in_ggag(T570, T566, T571, T569))
U35_gag(T570, T566, T571, T568, T569, p32_out_ggag(T570, T566, T571, T569)) → delete1_out_gag(T570, tree(T566, T571, T568), tree(T566, T569, T568))
delete1_in_gag(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_gag(T589, T585, T586, T590, T588, p116_in_ggag(T585, T589, T590, T588))
p116_in_ggag(s(T479), s(T481), T482, T461) → U19_ggag(T479, T481, T482, T461, p79_in_ggag(T479, T481, T482, T461))
U19_ggag(T479, T481, T482, T461, p79_out_ggag(T479, T481, T482, T461)) → p116_out_ggag(s(T479), s(T481), T482, T461)
U36_gag(T589, T585, T586, T590, T588, p116_out_ggag(T585, T589, T590, T588)) → delete1_out_gag(T589, tree(T585, T586, T590), tree(T585, T586, T588))
delete1_in_gag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_gag(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
delete1_in_gag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_gag(T623, T622, T624, T601, T602, p65_in_ggag(T623, T622, T624, T602))
U38_gag(T623, T622, T624, T601, T602, p65_out_ggag(T623, T622, T624, T602)) → delete1_out_gag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601))
delete1_in_gag(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_gag(T642, T638, T639, T643, T641, p116_in_ggag(T638, T642, T643, T641))
U39_gag(T642, T638, T639, T643, T641, p116_out_ggag(T638, T642, T643, T641)) → delete1_out_gag(T642, tree(T638, T639, T643), tree(T638, T639, T641))
delete1_in_gag(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_gag(T664, T653, T663, T655, delete1_in_gag(s(T664), T663, T655))
delete1_in_gag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_gag(T675, T673, T653, T676, T655, p79_in_ggag(T673, T675, T676, T655))
U41_gag(T675, T673, T653, T676, T655, p79_out_ggag(T673, T675, T676, T655)) → delete1_out_gag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655))
delete1_in_gag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_gag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
U42_gag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_out_agg(T730, T727, T728)) → delete1_out_gag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729)))
delete1_in_gag(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_gag(T760, T756, T761, T758, T759, p32_in_ggag(T760, T756, T761, T759))
U43_gag(T760, T756, T761, T758, T759, p32_out_ggag(T760, T756, T761, T759)) → delete1_out_gag(T760, tree(T756, T761, T758), tree(T756, T759, T758))
delete1_in_gag(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_gag(T779, T775, T776, T780, T778, p116_in_ggag(T775, T779, T780, T778))
U44_gag(T779, T775, T776, T780, T778, p116_out_ggag(T775, T779, T780, T778)) → delete1_out_gag(T779, tree(T775, T776, T780), tree(T775, T776, T778))
delete1_in_gag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_gag(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
delete1_in_gag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_gag(T813, T812, T814, T791, T792, p65_in_ggag(T813, T812, T814, T792))
U46_gag(T813, T812, T814, T791, T792, p65_out_ggag(T813, T812, T814, T792)) → delete1_out_gag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791))
delete1_in_gag(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_gag(T832, T828, T829, T833, T831, p116_in_ggag(T828, T832, T833, T831))
U47_gag(T832, T828, T829, T833, T831, p116_out_ggag(T828, T832, T833, T831)) → delete1_out_gag(T832, tree(T828, T829, T833), tree(T828, T829, T831))
delete1_in_gag(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_gag(T854, T843, T853, T845, delete1_in_gag(s(T854), T853, T845))
delete1_in_gag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_gag(T865, T863, T843, T866, T845, p79_in_ggag(T863, T865, T866, T845))
U49_gag(T865, T863, T843, T866, T845, p79_out_ggag(T863, T865, T866, T845)) → delete1_out_gag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845))
U48_gag(T854, T843, T853, T845, delete1_out_gag(s(T854), T853, T845)) → delete1_out_gag(s(T854), tree(0, T843, T853), tree(0, T843, T845))
U45_gag(T799, T800, T791, T792, delete1_out_gag(0, T800, T792)) → delete1_out_gag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791))
U40_gag(T664, T653, T663, T655, delete1_out_gag(s(T664), T663, T655)) → delete1_out_gag(s(T664), tree(0, T653, T663), tree(0, T653, T655))
U37_gag(T609, T610, T601, T602, delete1_out_gag(0, T610, T602)) → delete1_out_gag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601))
U18_ggag(T470, T469, T461, delete1_out_gag(s(T470), T469, T461)) → p116_out_ggag(0, s(T470), T469, T461)
U33_gag(T462, T458, T459, T463, T461, p116_out_ggag(T458, T462, T463, T461)) → delete1_out_gag(T462, tree(T458, T459, T463), tree(T458, T459, T461))
U30_gag(T415, T416, T407, T408, delete1_out_gag(0, T416, T408)) → delete1_out_gag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407))
U17_ggag(T281, T287, T288, T263, delete1_out_gag(s(T287), T288, T263)) → p79_out_ggag(T281, T287, T288, T263)
U11_ggag(T281, T283, T284, T263, p79_out_ggag(T281, T283, T284, T263)) → p72_out_ggag(s(T281), s(T283), T284, T263)
U29_gag(T395, T391, T392, T396, T394, p72_out_ggag(T391, T395, T396, T394)) → delete1_out_gag(T395, tree(T391, T392, T396), tree(T391, T392, T394))
U10_ggag(T272, T271, T263, delete1_out_gag(s(T272), T271, T263)) → p72_out_ggag(0, s(T272), T271, T263)
U26_gag(T264, T260, T261, T265, T263, p72_out_ggag(T260, T264, T265, T263)) → delete1_out_gag(T264, tree(T260, T261, T265), tree(T260, T261, T263))
U14_ggag(T227, T222, T228, T202, delete1_out_gag(s(T227), T228, T202)) → p65_out_ggag(T227, T222, T228, T202)
U24_gag(T223, T222, T224, T201, T202, p65_out_ggag(T223, T222, T224, T202)) → delete1_out_gag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201))
U23_gag(T209, T210, T201, T202, delete1_out_gag(0, T210, T202)) → delete1_out_gag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201))
U6_ggag(T163, T171, T172, T166, delete1_out_gag(T171, T172, T166)) → p44_out_ggag(T163, T171, T172, T166)
U22_gag(T167, T163, T164, T168, T166, p44_out_ggag(T163, T167, T168, T166)) → delete1_out_gag(T167, tree(T163, T164, T168), tree(T163, T164, T166))
U9_ggag(T130, T122, T131, T125, delete1_out_gag(T130, T131, T125)) → p32_out_ggag(T130, T122, T131, T125)
U21_gag(T126, T122, T127, T124, T125, p32_out_ggag(T126, T122, T127, T125)) → delete1_out_gag(T126, tree(T122, T127, T124), tree(T122, T125, T124))
U9_agag(T130, T122, T131, T125, delete1_out_gag(T130, T131, T125)) → p32_out_agag(T130, T122, T131, T125)
U21_aag(T126, T122, T127, T124, T125, p32_out_agag(T126, T122, T127, T125)) → delete1_out_aag(T126, tree(T122, T127, T124), tree(T122, T125, T124))
delete1_in_aag(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_aag(T167, T163, T164, T168, T166, p44_in_gaag(T163, T167, T168, T166))
p44_in_gaag(T163, T167, T168, T166) → U4_gaag(T163, T167, T168, T166, less46_in_ga(T163, T167))
less46_in_ga(0, s(T179)) → less46_out_ga(0, s(T179))
less46_in_ga(s(T184), s(T186)) → U3_ga(T184, T186, less46_in_ga(T184, T186))
U3_ga(T184, T186, less46_out_ga(T184, T186)) → less46_out_ga(s(T184), s(T186))
U4_gaag(T163, T167, T168, T166, less46_out_ga(T163, T167)) → p44_out_gaag(T163, T167, T168, T166)
p44_in_gaag(T163, T171, T172, T166) → U5_gaag(T163, T171, T172, T166, less46_in_ga(T163, T171))
U5_gaag(T163, T171, T172, T166, less46_out_ga(T163, T171)) → U6_gaag(T163, T171, T172, T166, delete1_in_aag(T171, T172, T166))
delete1_in_aag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_aag(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
U23_aag(T209, T210, T201, T202, delete1_out_gag(0, T210, T202)) → delete1_out_aag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201))
delete1_in_aag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_aag(T223, T222, T224, T201, T202, p65_in_agag(T223, T222, T224, T202))
p65_in_agag(T223, T222, T224, T202) → U12_agag(T223, T222, T224, T202, less34_in_ag(T223, T222))
U12_agag(T223, T222, T224, T202, less34_out_ag(T223, T222)) → p65_out_agag(T223, T222, T224, T202)
p65_in_agag(T227, T222, T228, T202) → U13_agag(T227, T222, T228, T202, less34_in_ag(T227, T222))
U13_agag(T227, T222, T228, T202, less34_out_ag(T227, T222)) → U14_agag(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
U14_agag(T227, T222, T228, T202, delete1_out_gag(s(T227), T228, T202)) → p65_out_agag(T227, T222, T228, T202)
U24_aag(T223, T222, T224, T201, T202, p65_out_agag(T223, T222, T224, T202)) → delete1_out_aag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201))
delete1_in_aag(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_aag(T250, T246, T247, T251, T249, p44_in_gaag(T246, T250, T251, T249))
U25_aag(T250, T246, T247, T251, T249, p44_out_gaag(T246, T250, T251, T249)) → delete1_out_aag(T250, tree(T246, T247, T251), tree(T246, T247, T249))
delete1_in_aag(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_aag(T264, T260, T261, T265, T263, p72_in_gaag(T260, T264, T265, T263))
p72_in_gaag(0, s(T272), T271, T263) → U10_gaag(T272, T271, T263, delete1_in_aag(s(T272), T271, T263))
delete1_in_aag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_aag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
U27_aag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_out_agg(T346, T343, T344)) → delete1_out_aag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345)))
delete1_in_aag(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_aag(T376, T372, T377, T374, T375, p32_in_agag(T376, T372, T377, T375))
U28_aag(T376, T372, T377, T374, T375, p32_out_agag(T376, T372, T377, T375)) → delete1_out_aag(T376, tree(T372, T377, T374), tree(T372, T375, T374))
delete1_in_aag(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_aag(T395, T391, T392, T396, T394, p72_in_gaag(T391, T395, T396, T394))
p72_in_gaag(s(T281), s(T283), T284, T263) → U11_gaag(T281, T283, T284, T263, p79_in_gaag(T281, T283, T284, T263))
p79_in_gaag(T281, T283, T284, T263) → U15_gaag(T281, T283, T284, T263, less46_in_ga(T281, T283))
U15_gaag(T281, T283, T284, T263, less46_out_ga(T281, T283)) → p79_out_gaag(T281, T283, T284, T263)
p79_in_gaag(T281, T287, T288, T263) → U16_gaag(T281, T287, T288, T263, less46_in_ga(T281, T287))
U16_gaag(T281, T287, T288, T263, less46_out_ga(T281, T287)) → U17_gaag(T281, T287, T288, T263, delete1_in_aag(s(T287), T288, T263))
delete1_in_aag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_aag(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
U30_aag(T415, T416, T407, T408, delete1_out_gag(0, T416, T408)) → delete1_out_aag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407))
delete1_in_aag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_aag(T429, T428, T430, T407, T408, p65_in_agag(T429, T428, T430, T408))
U31_aag(T429, T428, T430, T407, T408, p65_out_agag(T429, T428, T430, T408)) → delete1_out_aag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407))
delete1_in_aag(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_aag(T448, T444, T445, T449, T447, p72_in_gaag(T444, T448, T449, T447))
U32_aag(T448, T444, T445, T449, T447, p72_out_gaag(T444, T448, T449, T447)) → delete1_out_aag(T448, tree(T444, T445, T449), tree(T444, T445, T447))
delete1_in_aag(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_aag(T462, T458, T459, T463, T461, p116_in_gaag(T458, T462, T463, T461))
p116_in_gaag(0, s(T470), T469, T461) → U18_gaag(T470, T469, T461, delete1_in_aag(s(T470), T469, T461))
delete1_in_aag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_aag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
U34_aag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_out_agg(T540, T537, T538)) → delete1_out_aag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539)))
delete1_in_aag(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_aag(T570, T566, T571, T568, T569, p32_in_agag(T570, T566, T571, T569))
U35_aag(T570, T566, T571, T568, T569, p32_out_agag(T570, T566, T571, T569)) → delete1_out_aag(T570, tree(T566, T571, T568), tree(T566, T569, T568))
delete1_in_aag(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_aag(T589, T585, T586, T590, T588, p116_in_gaag(T585, T589, T590, T588))
p116_in_gaag(s(T479), s(T481), T482, T461) → U19_gaag(T479, T481, T482, T461, p79_in_gaag(T479, T481, T482, T461))
U19_gaag(T479, T481, T482, T461, p79_out_gaag(T479, T481, T482, T461)) → p116_out_gaag(s(T479), s(T481), T482, T461)
U36_aag(T589, T585, T586, T590, T588, p116_out_gaag(T585, T589, T590, T588)) → delete1_out_aag(T589, tree(T585, T586, T590), tree(T585, T586, T588))
delete1_in_aag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_aag(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
U37_aag(T609, T610, T601, T602, delete1_out_gag(0, T610, T602)) → delete1_out_aag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601))
delete1_in_aag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_aag(T623, T622, T624, T601, T602, p65_in_agag(T623, T622, T624, T602))
U38_aag(T623, T622, T624, T601, T602, p65_out_agag(T623, T622, T624, T602)) → delete1_out_aag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601))
delete1_in_aag(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_aag(T642, T638, T639, T643, T641, p116_in_gaag(T638, T642, T643, T641))
U39_aag(T642, T638, T639, T643, T641, p116_out_gaag(T638, T642, T643, T641)) → delete1_out_aag(T642, tree(T638, T639, T643), tree(T638, T639, T641))
delete1_in_aag(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_aag(T664, T653, T663, T655, delete1_in_aag(s(T664), T663, T655))
delete1_in_aag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_aag(T675, T673, T653, T676, T655, p79_in_gaag(T673, T675, T676, T655))
U41_aag(T675, T673, T653, T676, T655, p79_out_gaag(T673, T675, T676, T655)) → delete1_out_aag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655))
delete1_in_aag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_aag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
U42_aag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_out_agg(T730, T727, T728)) → delete1_out_aag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729)))
delete1_in_aag(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_aag(T760, T756, T761, T758, T759, p32_in_agag(T760, T756, T761, T759))
U43_aag(T760, T756, T761, T758, T759, p32_out_agag(T760, T756, T761, T759)) → delete1_out_aag(T760, tree(T756, T761, T758), tree(T756, T759, T758))
delete1_in_aag(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_aag(T779, T775, T776, T780, T778, p116_in_gaag(T775, T779, T780, T778))
U44_aag(T779, T775, T776, T780, T778, p116_out_gaag(T775, T779, T780, T778)) → delete1_out_aag(T779, tree(T775, T776, T780), tree(T775, T776, T778))
delete1_in_aag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_aag(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
U45_aag(T799, T800, T791, T792, delete1_out_gag(0, T800, T792)) → delete1_out_aag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791))
delete1_in_aag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_aag(T813, T812, T814, T791, T792, p65_in_agag(T813, T812, T814, T792))
U46_aag(T813, T812, T814, T791, T792, p65_out_agag(T813, T812, T814, T792)) → delete1_out_aag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791))
delete1_in_aag(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_aag(T832, T828, T829, T833, T831, p116_in_gaag(T828, T832, T833, T831))
U47_aag(T832, T828, T829, T833, T831, p116_out_gaag(T828, T832, T833, T831)) → delete1_out_aag(T832, tree(T828, T829, T833), tree(T828, T829, T831))
delete1_in_aag(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_aag(T854, T843, T853, T845, delete1_in_aag(s(T854), T853, T845))
delete1_in_aag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_aag(T865, T863, T843, T866, T845, p79_in_gaag(T863, T865, T866, T845))
U49_aag(T865, T863, T843, T866, T845, p79_out_gaag(T863, T865, T866, T845)) → delete1_out_aag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845))
U48_aag(T854, T843, T853, T845, delete1_out_aag(s(T854), T853, T845)) → delete1_out_aag(s(T854), tree(0, T843, T853), tree(0, T843, T845))
U40_aag(T664, T653, T663, T655, delete1_out_aag(s(T664), T663, T655)) → delete1_out_aag(s(T664), tree(0, T653, T663), tree(0, T653, T655))
U18_gaag(T470, T469, T461, delete1_out_aag(s(T470), T469, T461)) → p116_out_gaag(0, s(T470), T469, T461)
U33_aag(T462, T458, T459, T463, T461, p116_out_gaag(T458, T462, T463, T461)) → delete1_out_aag(T462, tree(T458, T459, T463), tree(T458, T459, T461))
U17_gaag(T281, T287, T288, T263, delete1_out_aag(s(T287), T288, T263)) → p79_out_gaag(T281, T287, T288, T263)
U11_gaag(T281, T283, T284, T263, p79_out_gaag(T281, T283, T284, T263)) → p72_out_gaag(s(T281), s(T283), T284, T263)
U29_aag(T395, T391, T392, T396, T394, p72_out_gaag(T391, T395, T396, T394)) → delete1_out_aag(T395, tree(T391, T392, T396), tree(T391, T392, T394))
U10_gaag(T272, T271, T263, delete1_out_aag(s(T272), T271, T263)) → p72_out_gaag(0, s(T272), T271, T263)
U26_aag(T264, T260, T261, T265, T263, p72_out_gaag(T260, T264, T265, T263)) → delete1_out_aag(T264, tree(T260, T261, T265), tree(T260, T261, T263))
U6_gaag(T163, T171, T172, T166, delete1_out_aag(T171, T172, T166)) → p44_out_gaag(T163, T171, T172, T166)
U22_aag(T167, T163, T164, T168, T166, p44_out_gaag(T163, T167, T168, T166)) → delete1_out_aag(T167, tree(T163, T164, T168), tree(T163, T164, T166))

The argument filtering Pi contains the following mapping:
delete1_in_aag(x1, x2, x3)  =  delete1_in_aag(x3)
delete1_out_aag(x1, x2, x3)  =  delete1_out_aag
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U20_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aag(x9)
delmin19_in_agg(x1, x2, x3)  =  delmin19_in_agg(x2, x3)
delmin19_out_agg(x1, x2, x3)  =  delmin19_out_agg
U1_agg(x1, x2, x3, x4, x5, x6, x7)  =  U1_agg(x7)
U21_aag(x1, x2, x3, x4, x5, x6)  =  U21_aag(x6)
p32_in_agag(x1, x2, x3, x4)  =  p32_in_agag(x2, x4)
U7_agag(x1, x2, x3, x4, x5)  =  U7_agag(x5)
less34_in_ag(x1, x2)  =  less34_in_ag(x2)
s(x1)  =  s(x1)
less34_out_ag(x1, x2)  =  less34_out_ag(x1)
U2_ag(x1, x2, x3)  =  U2_ag(x3)
p32_out_agag(x1, x2, x3, x4)  =  p32_out_agag(x1)
U8_agag(x1, x2, x3, x4, x5)  =  U8_agag(x4, x5)
U9_agag(x1, x2, x3, x4, x5)  =  U9_agag(x1, x5)
delete1_in_gag(x1, x2, x3)  =  delete1_in_gag(x1, x3)
delete1_out_gag(x1, x2, x3)  =  delete1_out_gag
U20_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gag(x9)
U21_gag(x1, x2, x3, x4, x5, x6)  =  U21_gag(x6)
p32_in_ggag(x1, x2, x3, x4)  =  p32_in_ggag(x1, x2, x4)
U7_ggag(x1, x2, x3, x4, x5)  =  U7_ggag(x5)
less34_in_gg(x1, x2)  =  less34_in_gg(x1, x2)
0  =  0
less34_out_gg(x1, x2)  =  less34_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
p32_out_ggag(x1, x2, x3, x4)  =  p32_out_ggag
U8_ggag(x1, x2, x3, x4, x5)  =  U8_ggag(x1, x4, x5)
U9_ggag(x1, x2, x3, x4, x5)  =  U9_ggag(x5)
U22_gag(x1, x2, x3, x4, x5, x6)  =  U22_gag(x6)
p44_in_ggag(x1, x2, x3, x4)  =  p44_in_ggag(x1, x2, x4)
U4_ggag(x1, x2, x3, x4, x5)  =  U4_ggag(x5)
less46_in_gg(x1, x2)  =  less46_in_gg(x1, x2)
less46_out_gg(x1, x2)  =  less46_out_gg
U3_gg(x1, x2, x3)  =  U3_gg(x3)
p44_out_ggag(x1, x2, x3, x4)  =  p44_out_ggag
U5_ggag(x1, x2, x3, x4, x5)  =  U5_ggag(x2, x4, x5)
U6_ggag(x1, x2, x3, x4, x5)  =  U6_ggag(x5)
U23_gag(x1, x2, x3, x4, x5)  =  U23_gag(x5)
U24_gag(x1, x2, x3, x4, x5, x6)  =  U24_gag(x6)
p65_in_ggag(x1, x2, x3, x4)  =  p65_in_ggag(x1, x2, x4)
U12_ggag(x1, x2, x3, x4, x5)  =  U12_ggag(x5)
p65_out_ggag(x1, x2, x3, x4)  =  p65_out_ggag
U13_ggag(x1, x2, x3, x4, x5)  =  U13_ggag(x1, x4, x5)
U14_ggag(x1, x2, x3, x4, x5)  =  U14_ggag(x5)
U25_gag(x1, x2, x3, x4, x5, x6)  =  U25_gag(x6)
U26_gag(x1, x2, x3, x4, x5, x6)  =  U26_gag(x6)
p72_in_ggag(x1, x2, x3, x4)  =  p72_in_ggag(x1, x2, x4)
U10_ggag(x1, x2, x3, x4)  =  U10_ggag(x4)
U27_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gag(x9)
U28_gag(x1, x2, x3, x4, x5, x6)  =  U28_gag(x6)
U29_gag(x1, x2, x3, x4, x5, x6)  =  U29_gag(x6)
U11_ggag(x1, x2, x3, x4, x5)  =  U11_ggag(x5)
p79_in_ggag(x1, x2, x3, x4)  =  p79_in_ggag(x1, x2, x4)
U15_ggag(x1, x2, x3, x4, x5)  =  U15_ggag(x5)
p79_out_ggag(x1, x2, x3, x4)  =  p79_out_ggag
U16_ggag(x1, x2, x3, x4, x5)  =  U16_ggag(x2, x4, x5)
U17_ggag(x1, x2, x3, x4, x5)  =  U17_ggag(x5)
U30_gag(x1, x2, x3, x4, x5)  =  U30_gag(x5)
U31_gag(x1, x2, x3, x4, x5, x6)  =  U31_gag(x6)
U32_gag(x1, x2, x3, x4, x5, x6)  =  U32_gag(x6)
p72_out_ggag(x1, x2, x3, x4)  =  p72_out_ggag
U33_gag(x1, x2, x3, x4, x5, x6)  =  U33_gag(x6)
p116_in_ggag(x1, x2, x3, x4)  =  p116_in_ggag(x1, x2, x4)
U18_ggag(x1, x2, x3, x4)  =  U18_ggag(x4)
U34_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_gag(x9)
U35_gag(x1, x2, x3, x4, x5, x6)  =  U35_gag(x6)
U36_gag(x1, x2, x3, x4, x5, x6)  =  U36_gag(x6)
U19_ggag(x1, x2, x3, x4, x5)  =  U19_ggag(x5)
p116_out_ggag(x1, x2, x3, x4)  =  p116_out_ggag
U37_gag(x1, x2, x3, x4, x5)  =  U37_gag(x5)
U38_gag(x1, x2, x3, x4, x5, x6)  =  U38_gag(x6)
U39_gag(x1, x2, x3, x4, x5, x6)  =  U39_gag(x6)
U40_gag(x1, x2, x3, x4, x5)  =  U40_gag(x5)
U41_gag(x1, x2, x3, x4, x5, x6)  =  U41_gag(x6)
U42_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_gag(x9)
U43_gag(x1, x2, x3, x4, x5, x6)  =  U43_gag(x6)
U44_gag(x1, x2, x3, x4, x5, x6)  =  U44_gag(x6)
U45_gag(x1, x2, x3, x4, x5)  =  U45_gag(x5)
U46_gag(x1, x2, x3, x4, x5, x6)  =  U46_gag(x6)
U47_gag(x1, x2, x3, x4, x5, x6)  =  U47_gag(x6)
U48_gag(x1, x2, x3, x4, x5)  =  U48_gag(x5)
U49_gag(x1, x2, x3, x4, x5, x6)  =  U49_gag(x6)
U22_aag(x1, x2, x3, x4, x5, x6)  =  U22_aag(x6)
p44_in_gaag(x1, x2, x3, x4)  =  p44_in_gaag(x1, x4)
U4_gaag(x1, x2, x3, x4, x5)  =  U4_gaag(x5)
less46_in_ga(x1, x2)  =  less46_in_ga(x1)
less46_out_ga(x1, x2)  =  less46_out_ga
U3_ga(x1, x2, x3)  =  U3_ga(x3)
p44_out_gaag(x1, x2, x3, x4)  =  p44_out_gaag
U5_gaag(x1, x2, x3, x4, x5)  =  U5_gaag(x4, x5)
U6_gaag(x1, x2, x3, x4, x5)  =  U6_gaag(x5)
U23_aag(x1, x2, x3, x4, x5)  =  U23_aag(x5)
U24_aag(x1, x2, x3, x4, x5, x6)  =  U24_aag(x6)
p65_in_agag(x1, x2, x3, x4)  =  p65_in_agag(x2, x4)
U12_agag(x1, x2, x3, x4, x5)  =  U12_agag(x5)
p65_out_agag(x1, x2, x3, x4)  =  p65_out_agag(x1)
U13_agag(x1, x2, x3, x4, x5)  =  U13_agag(x4, x5)
U14_agag(x1, x2, x3, x4, x5)  =  U14_agag(x1, x5)
U25_aag(x1, x2, x3, x4, x5, x6)  =  U25_aag(x6)
U26_aag(x1, x2, x3, x4, x5, x6)  =  U26_aag(x6)
p72_in_gaag(x1, x2, x3, x4)  =  p72_in_gaag(x1, x4)
U10_gaag(x1, x2, x3, x4)  =  U10_gaag(x4)
U27_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aag(x9)
U28_aag(x1, x2, x3, x4, x5, x6)  =  U28_aag(x6)
U29_aag(x1, x2, x3, x4, x5, x6)  =  U29_aag(x6)
U11_gaag(x1, x2, x3, x4, x5)  =  U11_gaag(x5)
p79_in_gaag(x1, x2, x3, x4)  =  p79_in_gaag(x1, x4)
U15_gaag(x1, x2, x3, x4, x5)  =  U15_gaag(x5)
p79_out_gaag(x1, x2, x3, x4)  =  p79_out_gaag
U16_gaag(x1, x2, x3, x4, x5)  =  U16_gaag(x4, x5)
U17_gaag(x1, x2, x3, x4, x5)  =  U17_gaag(x5)
U30_aag(x1, x2, x3, x4, x5)  =  U30_aag(x5)
U31_aag(x1, x2, x3, x4, x5, x6)  =  U31_aag(x6)
U32_aag(x1, x2, x3, x4, x5, x6)  =  U32_aag(x6)
p72_out_gaag(x1, x2, x3, x4)  =  p72_out_gaag
U33_aag(x1, x2, x3, x4, x5, x6)  =  U33_aag(x6)
p116_in_gaag(x1, x2, x3, x4)  =  p116_in_gaag(x1, x4)
U18_gaag(x1, x2, x3, x4)  =  U18_gaag(x4)
U34_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_aag(x9)
U35_aag(x1, x2, x3, x4, x5, x6)  =  U35_aag(x6)
U36_aag(x1, x2, x3, x4, x5, x6)  =  U36_aag(x6)
U19_gaag(x1, x2, x3, x4, x5)  =  U19_gaag(x5)
p116_out_gaag(x1, x2, x3, x4)  =  p116_out_gaag
U37_aag(x1, x2, x3, x4, x5)  =  U37_aag(x5)
U38_aag(x1, x2, x3, x4, x5, x6)  =  U38_aag(x6)
U39_aag(x1, x2, x3, x4, x5, x6)  =  U39_aag(x6)
U40_aag(x1, x2, x3, x4, x5)  =  U40_aag(x5)
U41_aag(x1, x2, x3, x4, x5, x6)  =  U41_aag(x6)
U42_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_aag(x9)
U43_aag(x1, x2, x3, x4, x5, x6)  =  U43_aag(x6)
U44_aag(x1, x2, x3, x4, x5, x6)  =  U44_aag(x6)
U45_aag(x1, x2, x3, x4, x5)  =  U45_aag(x5)
U46_aag(x1, x2, x3, x4, x5, x6)  =  U46_aag(x6)
U47_aag(x1, x2, x3, x4, x5, x6)  =  U47_aag(x6)
U48_aag(x1, x2, x3, x4, x5)  =  U48_aag(x5)
U49_aag(x1, x2, x3, x4, x5, x6)  =  U49_aag(x6)
LESS46_IN_GA(x1, x2)  =  LESS46_IN_GA(x1)

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:

LESS46_IN_GA(s(T184), s(T186)) → LESS46_IN_GA(T184, T186)

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

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

(12) PiDPToQDPProof (SOUND 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:

LESS46_IN_GA(s(T184)) → LESS46_IN_GA(T184)

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:

  • LESS46_IN_GA(s(T184)) → LESS46_IN_GA(T184)
    The graph contains the following edges 1 > 1

(15) YES

(16) Obligation:

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

LESS46_IN_GG(s(T184), s(T186)) → LESS46_IN_GG(T184, T186)

The TRS R consists of the following rules:

delete1_in_aag(T6, tree(T6, void, T7), T7) → delete1_out_aag(T6, tree(T6, void, T7), T7)
delete1_in_aag(T10, tree(T10, T11, void), T11) → delete1_out_aag(T10, tree(T10, T11, void), T11)
delete1_in_aag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32)) → delete1_out_aag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32))
delete1_in_aag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_aag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
delmin19_in_agg(tree(T76, void, T77), T76, T77) → delmin19_out_agg(tree(T76, void, T77), T76, T77)
delmin19_in_agg(tree(T90, T96, T92), T93, tree(T90, T94, T95)) → U1_agg(T90, T96, T92, T93, T94, T95, delmin19_in_agg(T96, T93, T94))
U1_agg(T90, T96, T92, T93, T94, T95, delmin19_out_agg(T96, T93, T94)) → delmin19_out_agg(tree(T90, T96, T92), T93, tree(T90, T94, T95))
U20_aag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_out_agg(T63, T60, T61)) → delete1_out_aag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62)))
delete1_in_aag(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_aag(T126, T122, T127, T124, T125, p32_in_agag(T126, T122, T127, T125))
p32_in_agag(T126, T122, T127, T125) → U7_agag(T126, T122, T127, T125, less34_in_ag(T126, T122))
less34_in_ag(0, s(T138)) → less34_out_ag(0, s(T138))
less34_in_ag(s(T145), s(T144)) → U2_ag(T145, T144, less34_in_ag(T145, T144))
U2_ag(T145, T144, less34_out_ag(T145, T144)) → less34_out_ag(s(T145), s(T144))
U7_agag(T126, T122, T127, T125, less34_out_ag(T126, T122)) → p32_out_agag(T126, T122, T127, T125)
p32_in_agag(T130, T122, T131, T125) → U8_agag(T130, T122, T131, T125, less34_in_ag(T130, T122))
U8_agag(T130, T122, T131, T125, less34_out_ag(T130, T122)) → U9_agag(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
delete1_in_gag(T6, tree(T6, void, T7), T7) → delete1_out_gag(T6, tree(T6, void, T7), T7)
delete1_in_gag(T10, tree(T10, T11, void), T11) → delete1_out_gag(T10, tree(T10, T11, void), T11)
delete1_in_gag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32)) → delete1_out_gag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32))
delete1_in_gag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_gag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
U20_gag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_out_agg(T63, T60, T61)) → delete1_out_gag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62)))
delete1_in_gag(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_gag(T126, T122, T127, T124, T125, p32_in_ggag(T126, T122, T127, T125))
p32_in_ggag(T126, T122, T127, T125) → U7_ggag(T126, T122, T127, T125, less34_in_gg(T126, T122))
less34_in_gg(0, s(T138)) → less34_out_gg(0, s(T138))
less34_in_gg(s(T145), s(T144)) → U2_gg(T145, T144, less34_in_gg(T145, T144))
U2_gg(T145, T144, less34_out_gg(T145, T144)) → less34_out_gg(s(T145), s(T144))
U7_ggag(T126, T122, T127, T125, less34_out_gg(T126, T122)) → p32_out_ggag(T126, T122, T127, T125)
p32_in_ggag(T130, T122, T131, T125) → U8_ggag(T130, T122, T131, T125, less34_in_gg(T130, T122))
U8_ggag(T130, T122, T131, T125, less34_out_gg(T130, T122)) → U9_ggag(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
delete1_in_gag(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_gag(T167, T163, T164, T168, T166, p44_in_ggag(T163, T167, T168, T166))
p44_in_ggag(T163, T167, T168, T166) → U4_ggag(T163, T167, T168, T166, less46_in_gg(T163, T167))
less46_in_gg(0, s(T179)) → less46_out_gg(0, s(T179))
less46_in_gg(s(T184), s(T186)) → U3_gg(T184, T186, less46_in_gg(T184, T186))
U3_gg(T184, T186, less46_out_gg(T184, T186)) → less46_out_gg(s(T184), s(T186))
U4_ggag(T163, T167, T168, T166, less46_out_gg(T163, T167)) → p44_out_ggag(T163, T167, T168, T166)
p44_in_ggag(T163, T171, T172, T166) → U5_ggag(T163, T171, T172, T166, less46_in_gg(T163, T171))
U5_ggag(T163, T171, T172, T166, less46_out_gg(T163, T171)) → U6_ggag(T163, T171, T172, T166, delete1_in_gag(T171, T172, T166))
delete1_in_gag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_gag(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
delete1_in_gag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_gag(T223, T222, T224, T201, T202, p65_in_ggag(T223, T222, T224, T202))
p65_in_ggag(T223, T222, T224, T202) → U12_ggag(T223, T222, T224, T202, less34_in_gg(T223, T222))
U12_ggag(T223, T222, T224, T202, less34_out_gg(T223, T222)) → p65_out_ggag(T223, T222, T224, T202)
p65_in_ggag(T227, T222, T228, T202) → U13_ggag(T227, T222, T228, T202, less34_in_gg(T227, T222))
U13_ggag(T227, T222, T228, T202, less34_out_gg(T227, T222)) → U14_ggag(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
delete1_in_gag(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_gag(T250, T246, T247, T251, T249, p44_in_ggag(T246, T250, T251, T249))
U25_gag(T250, T246, T247, T251, T249, p44_out_ggag(T246, T250, T251, T249)) → delete1_out_gag(T250, tree(T246, T247, T251), tree(T246, T247, T249))
delete1_in_gag(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_gag(T264, T260, T261, T265, T263, p72_in_ggag(T260, T264, T265, T263))
p72_in_ggag(0, s(T272), T271, T263) → U10_ggag(T272, T271, T263, delete1_in_gag(s(T272), T271, T263))
delete1_in_gag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_gag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
U27_gag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_out_agg(T346, T343, T344)) → delete1_out_gag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345)))
delete1_in_gag(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_gag(T376, T372, T377, T374, T375, p32_in_ggag(T376, T372, T377, T375))
U28_gag(T376, T372, T377, T374, T375, p32_out_ggag(T376, T372, T377, T375)) → delete1_out_gag(T376, tree(T372, T377, T374), tree(T372, T375, T374))
delete1_in_gag(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_gag(T395, T391, T392, T396, T394, p72_in_ggag(T391, T395, T396, T394))
p72_in_ggag(s(T281), s(T283), T284, T263) → U11_ggag(T281, T283, T284, T263, p79_in_ggag(T281, T283, T284, T263))
p79_in_ggag(T281, T283, T284, T263) → U15_ggag(T281, T283, T284, T263, less46_in_gg(T281, T283))
U15_ggag(T281, T283, T284, T263, less46_out_gg(T281, T283)) → p79_out_ggag(T281, T283, T284, T263)
p79_in_ggag(T281, T287, T288, T263) → U16_ggag(T281, T287, T288, T263, less46_in_gg(T281, T287))
U16_ggag(T281, T287, T288, T263, less46_out_gg(T281, T287)) → U17_ggag(T281, T287, T288, T263, delete1_in_gag(s(T287), T288, T263))
delete1_in_gag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_gag(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
delete1_in_gag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_gag(T429, T428, T430, T407, T408, p65_in_ggag(T429, T428, T430, T408))
U31_gag(T429, T428, T430, T407, T408, p65_out_ggag(T429, T428, T430, T408)) → delete1_out_gag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407))
delete1_in_gag(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_gag(T448, T444, T445, T449, T447, p72_in_ggag(T444, T448, T449, T447))
U32_gag(T448, T444, T445, T449, T447, p72_out_ggag(T444, T448, T449, T447)) → delete1_out_gag(T448, tree(T444, T445, T449), tree(T444, T445, T447))
delete1_in_gag(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_gag(T462, T458, T459, T463, T461, p116_in_ggag(T458, T462, T463, T461))
p116_in_ggag(0, s(T470), T469, T461) → U18_ggag(T470, T469, T461, delete1_in_gag(s(T470), T469, T461))
delete1_in_gag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_gag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
U34_gag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_out_agg(T540, T537, T538)) → delete1_out_gag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539)))
delete1_in_gag(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_gag(T570, T566, T571, T568, T569, p32_in_ggag(T570, T566, T571, T569))
U35_gag(T570, T566, T571, T568, T569, p32_out_ggag(T570, T566, T571, T569)) → delete1_out_gag(T570, tree(T566, T571, T568), tree(T566, T569, T568))
delete1_in_gag(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_gag(T589, T585, T586, T590, T588, p116_in_ggag(T585, T589, T590, T588))
p116_in_ggag(s(T479), s(T481), T482, T461) → U19_ggag(T479, T481, T482, T461, p79_in_ggag(T479, T481, T482, T461))
U19_ggag(T479, T481, T482, T461, p79_out_ggag(T479, T481, T482, T461)) → p116_out_ggag(s(T479), s(T481), T482, T461)
U36_gag(T589, T585, T586, T590, T588, p116_out_ggag(T585, T589, T590, T588)) → delete1_out_gag(T589, tree(T585, T586, T590), tree(T585, T586, T588))
delete1_in_gag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_gag(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
delete1_in_gag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_gag(T623, T622, T624, T601, T602, p65_in_ggag(T623, T622, T624, T602))
U38_gag(T623, T622, T624, T601, T602, p65_out_ggag(T623, T622, T624, T602)) → delete1_out_gag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601))
delete1_in_gag(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_gag(T642, T638, T639, T643, T641, p116_in_ggag(T638, T642, T643, T641))
U39_gag(T642, T638, T639, T643, T641, p116_out_ggag(T638, T642, T643, T641)) → delete1_out_gag(T642, tree(T638, T639, T643), tree(T638, T639, T641))
delete1_in_gag(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_gag(T664, T653, T663, T655, delete1_in_gag(s(T664), T663, T655))
delete1_in_gag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_gag(T675, T673, T653, T676, T655, p79_in_ggag(T673, T675, T676, T655))
U41_gag(T675, T673, T653, T676, T655, p79_out_ggag(T673, T675, T676, T655)) → delete1_out_gag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655))
delete1_in_gag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_gag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
U42_gag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_out_agg(T730, T727, T728)) → delete1_out_gag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729)))
delete1_in_gag(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_gag(T760, T756, T761, T758, T759, p32_in_ggag(T760, T756, T761, T759))
U43_gag(T760, T756, T761, T758, T759, p32_out_ggag(T760, T756, T761, T759)) → delete1_out_gag(T760, tree(T756, T761, T758), tree(T756, T759, T758))
delete1_in_gag(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_gag(T779, T775, T776, T780, T778, p116_in_ggag(T775, T779, T780, T778))
U44_gag(T779, T775, T776, T780, T778, p116_out_ggag(T775, T779, T780, T778)) → delete1_out_gag(T779, tree(T775, T776, T780), tree(T775, T776, T778))
delete1_in_gag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_gag(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
delete1_in_gag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_gag(T813, T812, T814, T791, T792, p65_in_ggag(T813, T812, T814, T792))
U46_gag(T813, T812, T814, T791, T792, p65_out_ggag(T813, T812, T814, T792)) → delete1_out_gag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791))
delete1_in_gag(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_gag(T832, T828, T829, T833, T831, p116_in_ggag(T828, T832, T833, T831))
U47_gag(T832, T828, T829, T833, T831, p116_out_ggag(T828, T832, T833, T831)) → delete1_out_gag(T832, tree(T828, T829, T833), tree(T828, T829, T831))
delete1_in_gag(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_gag(T854, T843, T853, T845, delete1_in_gag(s(T854), T853, T845))
delete1_in_gag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_gag(T865, T863, T843, T866, T845, p79_in_ggag(T863, T865, T866, T845))
U49_gag(T865, T863, T843, T866, T845, p79_out_ggag(T863, T865, T866, T845)) → delete1_out_gag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845))
U48_gag(T854, T843, T853, T845, delete1_out_gag(s(T854), T853, T845)) → delete1_out_gag(s(T854), tree(0, T843, T853), tree(0, T843, T845))
U45_gag(T799, T800, T791, T792, delete1_out_gag(0, T800, T792)) → delete1_out_gag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791))
U40_gag(T664, T653, T663, T655, delete1_out_gag(s(T664), T663, T655)) → delete1_out_gag(s(T664), tree(0, T653, T663), tree(0, T653, T655))
U37_gag(T609, T610, T601, T602, delete1_out_gag(0, T610, T602)) → delete1_out_gag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601))
U18_ggag(T470, T469, T461, delete1_out_gag(s(T470), T469, T461)) → p116_out_ggag(0, s(T470), T469, T461)
U33_gag(T462, T458, T459, T463, T461, p116_out_ggag(T458, T462, T463, T461)) → delete1_out_gag(T462, tree(T458, T459, T463), tree(T458, T459, T461))
U30_gag(T415, T416, T407, T408, delete1_out_gag(0, T416, T408)) → delete1_out_gag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407))
U17_ggag(T281, T287, T288, T263, delete1_out_gag(s(T287), T288, T263)) → p79_out_ggag(T281, T287, T288, T263)
U11_ggag(T281, T283, T284, T263, p79_out_ggag(T281, T283, T284, T263)) → p72_out_ggag(s(T281), s(T283), T284, T263)
U29_gag(T395, T391, T392, T396, T394, p72_out_ggag(T391, T395, T396, T394)) → delete1_out_gag(T395, tree(T391, T392, T396), tree(T391, T392, T394))
U10_ggag(T272, T271, T263, delete1_out_gag(s(T272), T271, T263)) → p72_out_ggag(0, s(T272), T271, T263)
U26_gag(T264, T260, T261, T265, T263, p72_out_ggag(T260, T264, T265, T263)) → delete1_out_gag(T264, tree(T260, T261, T265), tree(T260, T261, T263))
U14_ggag(T227, T222, T228, T202, delete1_out_gag(s(T227), T228, T202)) → p65_out_ggag(T227, T222, T228, T202)
U24_gag(T223, T222, T224, T201, T202, p65_out_ggag(T223, T222, T224, T202)) → delete1_out_gag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201))
U23_gag(T209, T210, T201, T202, delete1_out_gag(0, T210, T202)) → delete1_out_gag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201))
U6_ggag(T163, T171, T172, T166, delete1_out_gag(T171, T172, T166)) → p44_out_ggag(T163, T171, T172, T166)
U22_gag(T167, T163, T164, T168, T166, p44_out_ggag(T163, T167, T168, T166)) → delete1_out_gag(T167, tree(T163, T164, T168), tree(T163, T164, T166))
U9_ggag(T130, T122, T131, T125, delete1_out_gag(T130, T131, T125)) → p32_out_ggag(T130, T122, T131, T125)
U21_gag(T126, T122, T127, T124, T125, p32_out_ggag(T126, T122, T127, T125)) → delete1_out_gag(T126, tree(T122, T127, T124), tree(T122, T125, T124))
U9_agag(T130, T122, T131, T125, delete1_out_gag(T130, T131, T125)) → p32_out_agag(T130, T122, T131, T125)
U21_aag(T126, T122, T127, T124, T125, p32_out_agag(T126, T122, T127, T125)) → delete1_out_aag(T126, tree(T122, T127, T124), tree(T122, T125, T124))
delete1_in_aag(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_aag(T167, T163, T164, T168, T166, p44_in_gaag(T163, T167, T168, T166))
p44_in_gaag(T163, T167, T168, T166) → U4_gaag(T163, T167, T168, T166, less46_in_ga(T163, T167))
less46_in_ga(0, s(T179)) → less46_out_ga(0, s(T179))
less46_in_ga(s(T184), s(T186)) → U3_ga(T184, T186, less46_in_ga(T184, T186))
U3_ga(T184, T186, less46_out_ga(T184, T186)) → less46_out_ga(s(T184), s(T186))
U4_gaag(T163, T167, T168, T166, less46_out_ga(T163, T167)) → p44_out_gaag(T163, T167, T168, T166)
p44_in_gaag(T163, T171, T172, T166) → U5_gaag(T163, T171, T172, T166, less46_in_ga(T163, T171))
U5_gaag(T163, T171, T172, T166, less46_out_ga(T163, T171)) → U6_gaag(T163, T171, T172, T166, delete1_in_aag(T171, T172, T166))
delete1_in_aag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_aag(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
U23_aag(T209, T210, T201, T202, delete1_out_gag(0, T210, T202)) → delete1_out_aag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201))
delete1_in_aag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_aag(T223, T222, T224, T201, T202, p65_in_agag(T223, T222, T224, T202))
p65_in_agag(T223, T222, T224, T202) → U12_agag(T223, T222, T224, T202, less34_in_ag(T223, T222))
U12_agag(T223, T222, T224, T202, less34_out_ag(T223, T222)) → p65_out_agag(T223, T222, T224, T202)
p65_in_agag(T227, T222, T228, T202) → U13_agag(T227, T222, T228, T202, less34_in_ag(T227, T222))
U13_agag(T227, T222, T228, T202, less34_out_ag(T227, T222)) → U14_agag(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
U14_agag(T227, T222, T228, T202, delete1_out_gag(s(T227), T228, T202)) → p65_out_agag(T227, T222, T228, T202)
U24_aag(T223, T222, T224, T201, T202, p65_out_agag(T223, T222, T224, T202)) → delete1_out_aag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201))
delete1_in_aag(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_aag(T250, T246, T247, T251, T249, p44_in_gaag(T246, T250, T251, T249))
U25_aag(T250, T246, T247, T251, T249, p44_out_gaag(T246, T250, T251, T249)) → delete1_out_aag(T250, tree(T246, T247, T251), tree(T246, T247, T249))
delete1_in_aag(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_aag(T264, T260, T261, T265, T263, p72_in_gaag(T260, T264, T265, T263))
p72_in_gaag(0, s(T272), T271, T263) → U10_gaag(T272, T271, T263, delete1_in_aag(s(T272), T271, T263))
delete1_in_aag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_aag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
U27_aag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_out_agg(T346, T343, T344)) → delete1_out_aag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345)))
delete1_in_aag(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_aag(T376, T372, T377, T374, T375, p32_in_agag(T376, T372, T377, T375))
U28_aag(T376, T372, T377, T374, T375, p32_out_agag(T376, T372, T377, T375)) → delete1_out_aag(T376, tree(T372, T377, T374), tree(T372, T375, T374))
delete1_in_aag(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_aag(T395, T391, T392, T396, T394, p72_in_gaag(T391, T395, T396, T394))
p72_in_gaag(s(T281), s(T283), T284, T263) → U11_gaag(T281, T283, T284, T263, p79_in_gaag(T281, T283, T284, T263))
p79_in_gaag(T281, T283, T284, T263) → U15_gaag(T281, T283, T284, T263, less46_in_ga(T281, T283))
U15_gaag(T281, T283, T284, T263, less46_out_ga(T281, T283)) → p79_out_gaag(T281, T283, T284, T263)
p79_in_gaag(T281, T287, T288, T263) → U16_gaag(T281, T287, T288, T263, less46_in_ga(T281, T287))
U16_gaag(T281, T287, T288, T263, less46_out_ga(T281, T287)) → U17_gaag(T281, T287, T288, T263, delete1_in_aag(s(T287), T288, T263))
delete1_in_aag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_aag(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
U30_aag(T415, T416, T407, T408, delete1_out_gag(0, T416, T408)) → delete1_out_aag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407))
delete1_in_aag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_aag(T429, T428, T430, T407, T408, p65_in_agag(T429, T428, T430, T408))
U31_aag(T429, T428, T430, T407, T408, p65_out_agag(T429, T428, T430, T408)) → delete1_out_aag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407))
delete1_in_aag(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_aag(T448, T444, T445, T449, T447, p72_in_gaag(T444, T448, T449, T447))
U32_aag(T448, T444, T445, T449, T447, p72_out_gaag(T444, T448, T449, T447)) → delete1_out_aag(T448, tree(T444, T445, T449), tree(T444, T445, T447))
delete1_in_aag(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_aag(T462, T458, T459, T463, T461, p116_in_gaag(T458, T462, T463, T461))
p116_in_gaag(0, s(T470), T469, T461) → U18_gaag(T470, T469, T461, delete1_in_aag(s(T470), T469, T461))
delete1_in_aag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_aag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
U34_aag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_out_agg(T540, T537, T538)) → delete1_out_aag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539)))
delete1_in_aag(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_aag(T570, T566, T571, T568, T569, p32_in_agag(T570, T566, T571, T569))
U35_aag(T570, T566, T571, T568, T569, p32_out_agag(T570, T566, T571, T569)) → delete1_out_aag(T570, tree(T566, T571, T568), tree(T566, T569, T568))
delete1_in_aag(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_aag(T589, T585, T586, T590, T588, p116_in_gaag(T585, T589, T590, T588))
p116_in_gaag(s(T479), s(T481), T482, T461) → U19_gaag(T479, T481, T482, T461, p79_in_gaag(T479, T481, T482, T461))
U19_gaag(T479, T481, T482, T461, p79_out_gaag(T479, T481, T482, T461)) → p116_out_gaag(s(T479), s(T481), T482, T461)
U36_aag(T589, T585, T586, T590, T588, p116_out_gaag(T585, T589, T590, T588)) → delete1_out_aag(T589, tree(T585, T586, T590), tree(T585, T586, T588))
delete1_in_aag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_aag(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
U37_aag(T609, T610, T601, T602, delete1_out_gag(0, T610, T602)) → delete1_out_aag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601))
delete1_in_aag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_aag(T623, T622, T624, T601, T602, p65_in_agag(T623, T622, T624, T602))
U38_aag(T623, T622, T624, T601, T602, p65_out_agag(T623, T622, T624, T602)) → delete1_out_aag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601))
delete1_in_aag(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_aag(T642, T638, T639, T643, T641, p116_in_gaag(T638, T642, T643, T641))
U39_aag(T642, T638, T639, T643, T641, p116_out_gaag(T638, T642, T643, T641)) → delete1_out_aag(T642, tree(T638, T639, T643), tree(T638, T639, T641))
delete1_in_aag(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_aag(T664, T653, T663, T655, delete1_in_aag(s(T664), T663, T655))
delete1_in_aag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_aag(T675, T673, T653, T676, T655, p79_in_gaag(T673, T675, T676, T655))
U41_aag(T675, T673, T653, T676, T655, p79_out_gaag(T673, T675, T676, T655)) → delete1_out_aag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655))
delete1_in_aag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_aag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
U42_aag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_out_agg(T730, T727, T728)) → delete1_out_aag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729)))
delete1_in_aag(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_aag(T760, T756, T761, T758, T759, p32_in_agag(T760, T756, T761, T759))
U43_aag(T760, T756, T761, T758, T759, p32_out_agag(T760, T756, T761, T759)) → delete1_out_aag(T760, tree(T756, T761, T758), tree(T756, T759, T758))
delete1_in_aag(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_aag(T779, T775, T776, T780, T778, p116_in_gaag(T775, T779, T780, T778))
U44_aag(T779, T775, T776, T780, T778, p116_out_gaag(T775, T779, T780, T778)) → delete1_out_aag(T779, tree(T775, T776, T780), tree(T775, T776, T778))
delete1_in_aag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_aag(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
U45_aag(T799, T800, T791, T792, delete1_out_gag(0, T800, T792)) → delete1_out_aag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791))
delete1_in_aag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_aag(T813, T812, T814, T791, T792, p65_in_agag(T813, T812, T814, T792))
U46_aag(T813, T812, T814, T791, T792, p65_out_agag(T813, T812, T814, T792)) → delete1_out_aag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791))
delete1_in_aag(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_aag(T832, T828, T829, T833, T831, p116_in_gaag(T828, T832, T833, T831))
U47_aag(T832, T828, T829, T833, T831, p116_out_gaag(T828, T832, T833, T831)) → delete1_out_aag(T832, tree(T828, T829, T833), tree(T828, T829, T831))
delete1_in_aag(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_aag(T854, T843, T853, T845, delete1_in_aag(s(T854), T853, T845))
delete1_in_aag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_aag(T865, T863, T843, T866, T845, p79_in_gaag(T863, T865, T866, T845))
U49_aag(T865, T863, T843, T866, T845, p79_out_gaag(T863, T865, T866, T845)) → delete1_out_aag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845))
U48_aag(T854, T843, T853, T845, delete1_out_aag(s(T854), T853, T845)) → delete1_out_aag(s(T854), tree(0, T843, T853), tree(0, T843, T845))
U40_aag(T664, T653, T663, T655, delete1_out_aag(s(T664), T663, T655)) → delete1_out_aag(s(T664), tree(0, T653, T663), tree(0, T653, T655))
U18_gaag(T470, T469, T461, delete1_out_aag(s(T470), T469, T461)) → p116_out_gaag(0, s(T470), T469, T461)
U33_aag(T462, T458, T459, T463, T461, p116_out_gaag(T458, T462, T463, T461)) → delete1_out_aag(T462, tree(T458, T459, T463), tree(T458, T459, T461))
U17_gaag(T281, T287, T288, T263, delete1_out_aag(s(T287), T288, T263)) → p79_out_gaag(T281, T287, T288, T263)
U11_gaag(T281, T283, T284, T263, p79_out_gaag(T281, T283, T284, T263)) → p72_out_gaag(s(T281), s(T283), T284, T263)
U29_aag(T395, T391, T392, T396, T394, p72_out_gaag(T391, T395, T396, T394)) → delete1_out_aag(T395, tree(T391, T392, T396), tree(T391, T392, T394))
U10_gaag(T272, T271, T263, delete1_out_aag(s(T272), T271, T263)) → p72_out_gaag(0, s(T272), T271, T263)
U26_aag(T264, T260, T261, T265, T263, p72_out_gaag(T260, T264, T265, T263)) → delete1_out_aag(T264, tree(T260, T261, T265), tree(T260, T261, T263))
U6_gaag(T163, T171, T172, T166, delete1_out_aag(T171, T172, T166)) → p44_out_gaag(T163, T171, T172, T166)
U22_aag(T167, T163, T164, T168, T166, p44_out_gaag(T163, T167, T168, T166)) → delete1_out_aag(T167, tree(T163, T164, T168), tree(T163, T164, T166))

The argument filtering Pi contains the following mapping:
delete1_in_aag(x1, x2, x3)  =  delete1_in_aag(x3)
delete1_out_aag(x1, x2, x3)  =  delete1_out_aag
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U20_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aag(x9)
delmin19_in_agg(x1, x2, x3)  =  delmin19_in_agg(x2, x3)
delmin19_out_agg(x1, x2, x3)  =  delmin19_out_agg
U1_agg(x1, x2, x3, x4, x5, x6, x7)  =  U1_agg(x7)
U21_aag(x1, x2, x3, x4, x5, x6)  =  U21_aag(x6)
p32_in_agag(x1, x2, x3, x4)  =  p32_in_agag(x2, x4)
U7_agag(x1, x2, x3, x4, x5)  =  U7_agag(x5)
less34_in_ag(x1, x2)  =  less34_in_ag(x2)
s(x1)  =  s(x1)
less34_out_ag(x1, x2)  =  less34_out_ag(x1)
U2_ag(x1, x2, x3)  =  U2_ag(x3)
p32_out_agag(x1, x2, x3, x4)  =  p32_out_agag(x1)
U8_agag(x1, x2, x3, x4, x5)  =  U8_agag(x4, x5)
U9_agag(x1, x2, x3, x4, x5)  =  U9_agag(x1, x5)
delete1_in_gag(x1, x2, x3)  =  delete1_in_gag(x1, x3)
delete1_out_gag(x1, x2, x3)  =  delete1_out_gag
U20_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gag(x9)
U21_gag(x1, x2, x3, x4, x5, x6)  =  U21_gag(x6)
p32_in_ggag(x1, x2, x3, x4)  =  p32_in_ggag(x1, x2, x4)
U7_ggag(x1, x2, x3, x4, x5)  =  U7_ggag(x5)
less34_in_gg(x1, x2)  =  less34_in_gg(x1, x2)
0  =  0
less34_out_gg(x1, x2)  =  less34_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
p32_out_ggag(x1, x2, x3, x4)  =  p32_out_ggag
U8_ggag(x1, x2, x3, x4, x5)  =  U8_ggag(x1, x4, x5)
U9_ggag(x1, x2, x3, x4, x5)  =  U9_ggag(x5)
U22_gag(x1, x2, x3, x4, x5, x6)  =  U22_gag(x6)
p44_in_ggag(x1, x2, x3, x4)  =  p44_in_ggag(x1, x2, x4)
U4_ggag(x1, x2, x3, x4, x5)  =  U4_ggag(x5)
less46_in_gg(x1, x2)  =  less46_in_gg(x1, x2)
less46_out_gg(x1, x2)  =  less46_out_gg
U3_gg(x1, x2, x3)  =  U3_gg(x3)
p44_out_ggag(x1, x2, x3, x4)  =  p44_out_ggag
U5_ggag(x1, x2, x3, x4, x5)  =  U5_ggag(x2, x4, x5)
U6_ggag(x1, x2, x3, x4, x5)  =  U6_ggag(x5)
U23_gag(x1, x2, x3, x4, x5)  =  U23_gag(x5)
U24_gag(x1, x2, x3, x4, x5, x6)  =  U24_gag(x6)
p65_in_ggag(x1, x2, x3, x4)  =  p65_in_ggag(x1, x2, x4)
U12_ggag(x1, x2, x3, x4, x5)  =  U12_ggag(x5)
p65_out_ggag(x1, x2, x3, x4)  =  p65_out_ggag
U13_ggag(x1, x2, x3, x4, x5)  =  U13_ggag(x1, x4, x5)
U14_ggag(x1, x2, x3, x4, x5)  =  U14_ggag(x5)
U25_gag(x1, x2, x3, x4, x5, x6)  =  U25_gag(x6)
U26_gag(x1, x2, x3, x4, x5, x6)  =  U26_gag(x6)
p72_in_ggag(x1, x2, x3, x4)  =  p72_in_ggag(x1, x2, x4)
U10_ggag(x1, x2, x3, x4)  =  U10_ggag(x4)
U27_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gag(x9)
U28_gag(x1, x2, x3, x4, x5, x6)  =  U28_gag(x6)
U29_gag(x1, x2, x3, x4, x5, x6)  =  U29_gag(x6)
U11_ggag(x1, x2, x3, x4, x5)  =  U11_ggag(x5)
p79_in_ggag(x1, x2, x3, x4)  =  p79_in_ggag(x1, x2, x4)
U15_ggag(x1, x2, x3, x4, x5)  =  U15_ggag(x5)
p79_out_ggag(x1, x2, x3, x4)  =  p79_out_ggag
U16_ggag(x1, x2, x3, x4, x5)  =  U16_ggag(x2, x4, x5)
U17_ggag(x1, x2, x3, x4, x5)  =  U17_ggag(x5)
U30_gag(x1, x2, x3, x4, x5)  =  U30_gag(x5)
U31_gag(x1, x2, x3, x4, x5, x6)  =  U31_gag(x6)
U32_gag(x1, x2, x3, x4, x5, x6)  =  U32_gag(x6)
p72_out_ggag(x1, x2, x3, x4)  =  p72_out_ggag
U33_gag(x1, x2, x3, x4, x5, x6)  =  U33_gag(x6)
p116_in_ggag(x1, x2, x3, x4)  =  p116_in_ggag(x1, x2, x4)
U18_ggag(x1, x2, x3, x4)  =  U18_ggag(x4)
U34_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_gag(x9)
U35_gag(x1, x2, x3, x4, x5, x6)  =  U35_gag(x6)
U36_gag(x1, x2, x3, x4, x5, x6)  =  U36_gag(x6)
U19_ggag(x1, x2, x3, x4, x5)  =  U19_ggag(x5)
p116_out_ggag(x1, x2, x3, x4)  =  p116_out_ggag
U37_gag(x1, x2, x3, x4, x5)  =  U37_gag(x5)
U38_gag(x1, x2, x3, x4, x5, x6)  =  U38_gag(x6)
U39_gag(x1, x2, x3, x4, x5, x6)  =  U39_gag(x6)
U40_gag(x1, x2, x3, x4, x5)  =  U40_gag(x5)
U41_gag(x1, x2, x3, x4, x5, x6)  =  U41_gag(x6)
U42_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_gag(x9)
U43_gag(x1, x2, x3, x4, x5, x6)  =  U43_gag(x6)
U44_gag(x1, x2, x3, x4, x5, x6)  =  U44_gag(x6)
U45_gag(x1, x2, x3, x4, x5)  =  U45_gag(x5)
U46_gag(x1, x2, x3, x4, x5, x6)  =  U46_gag(x6)
U47_gag(x1, x2, x3, x4, x5, x6)  =  U47_gag(x6)
U48_gag(x1, x2, x3, x4, x5)  =  U48_gag(x5)
U49_gag(x1, x2, x3, x4, x5, x6)  =  U49_gag(x6)
U22_aag(x1, x2, x3, x4, x5, x6)  =  U22_aag(x6)
p44_in_gaag(x1, x2, x3, x4)  =  p44_in_gaag(x1, x4)
U4_gaag(x1, x2, x3, x4, x5)  =  U4_gaag(x5)
less46_in_ga(x1, x2)  =  less46_in_ga(x1)
less46_out_ga(x1, x2)  =  less46_out_ga
U3_ga(x1, x2, x3)  =  U3_ga(x3)
p44_out_gaag(x1, x2, x3, x4)  =  p44_out_gaag
U5_gaag(x1, x2, x3, x4, x5)  =  U5_gaag(x4, x5)
U6_gaag(x1, x2, x3, x4, x5)  =  U6_gaag(x5)
U23_aag(x1, x2, x3, x4, x5)  =  U23_aag(x5)
U24_aag(x1, x2, x3, x4, x5, x6)  =  U24_aag(x6)
p65_in_agag(x1, x2, x3, x4)  =  p65_in_agag(x2, x4)
U12_agag(x1, x2, x3, x4, x5)  =  U12_agag(x5)
p65_out_agag(x1, x2, x3, x4)  =  p65_out_agag(x1)
U13_agag(x1, x2, x3, x4, x5)  =  U13_agag(x4, x5)
U14_agag(x1, x2, x3, x4, x5)  =  U14_agag(x1, x5)
U25_aag(x1, x2, x3, x4, x5, x6)  =  U25_aag(x6)
U26_aag(x1, x2, x3, x4, x5, x6)  =  U26_aag(x6)
p72_in_gaag(x1, x2, x3, x4)  =  p72_in_gaag(x1, x4)
U10_gaag(x1, x2, x3, x4)  =  U10_gaag(x4)
U27_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aag(x9)
U28_aag(x1, x2, x3, x4, x5, x6)  =  U28_aag(x6)
U29_aag(x1, x2, x3, x4, x5, x6)  =  U29_aag(x6)
U11_gaag(x1, x2, x3, x4, x5)  =  U11_gaag(x5)
p79_in_gaag(x1, x2, x3, x4)  =  p79_in_gaag(x1, x4)
U15_gaag(x1, x2, x3, x4, x5)  =  U15_gaag(x5)
p79_out_gaag(x1, x2, x3, x4)  =  p79_out_gaag
U16_gaag(x1, x2, x3, x4, x5)  =  U16_gaag(x4, x5)
U17_gaag(x1, x2, x3, x4, x5)  =  U17_gaag(x5)
U30_aag(x1, x2, x3, x4, x5)  =  U30_aag(x5)
U31_aag(x1, x2, x3, x4, x5, x6)  =  U31_aag(x6)
U32_aag(x1, x2, x3, x4, x5, x6)  =  U32_aag(x6)
p72_out_gaag(x1, x2, x3, x4)  =  p72_out_gaag
U33_aag(x1, x2, x3, x4, x5, x6)  =  U33_aag(x6)
p116_in_gaag(x1, x2, x3, x4)  =  p116_in_gaag(x1, x4)
U18_gaag(x1, x2, x3, x4)  =  U18_gaag(x4)
U34_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_aag(x9)
U35_aag(x1, x2, x3, x4, x5, x6)  =  U35_aag(x6)
U36_aag(x1, x2, x3, x4, x5, x6)  =  U36_aag(x6)
U19_gaag(x1, x2, x3, x4, x5)  =  U19_gaag(x5)
p116_out_gaag(x1, x2, x3, x4)  =  p116_out_gaag
U37_aag(x1, x2, x3, x4, x5)  =  U37_aag(x5)
U38_aag(x1, x2, x3, x4, x5, x6)  =  U38_aag(x6)
U39_aag(x1, x2, x3, x4, x5, x6)  =  U39_aag(x6)
U40_aag(x1, x2, x3, x4, x5)  =  U40_aag(x5)
U41_aag(x1, x2, x3, x4, x5, x6)  =  U41_aag(x6)
U42_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_aag(x9)
U43_aag(x1, x2, x3, x4, x5, x6)  =  U43_aag(x6)
U44_aag(x1, x2, x3, x4, x5, x6)  =  U44_aag(x6)
U45_aag(x1, x2, x3, x4, x5)  =  U45_aag(x5)
U46_aag(x1, x2, x3, x4, x5, x6)  =  U46_aag(x6)
U47_aag(x1, x2, x3, x4, x5, x6)  =  U47_aag(x6)
U48_aag(x1, x2, x3, x4, x5)  =  U48_aag(x5)
U49_aag(x1, x2, x3, x4, x5, x6)  =  U49_aag(x6)
LESS46_IN_GG(x1, x2)  =  LESS46_IN_GG(x1, x2)

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:

LESS46_IN_GG(s(T184), s(T186)) → LESS46_IN_GG(T184, T186)

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

(19) PiDPToQDPProof (EQUIVALENT 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:

LESS46_IN_GG(s(T184), s(T186)) → LESS46_IN_GG(T184, T186)

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:

  • LESS46_IN_GG(s(T184), s(T186)) → LESS46_IN_GG(T184, T186)
    The graph contains the following edges 1 > 1, 2 > 2

(22) YES

(23) Obligation:

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

LESS34_IN_GG(s(T145), s(T144)) → LESS34_IN_GG(T145, T144)

The TRS R consists of the following rules:

delete1_in_aag(T6, tree(T6, void, T7), T7) → delete1_out_aag(T6, tree(T6, void, T7), T7)
delete1_in_aag(T10, tree(T10, T11, void), T11) → delete1_out_aag(T10, tree(T10, T11, void), T11)
delete1_in_aag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32)) → delete1_out_aag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32))
delete1_in_aag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_aag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
delmin19_in_agg(tree(T76, void, T77), T76, T77) → delmin19_out_agg(tree(T76, void, T77), T76, T77)
delmin19_in_agg(tree(T90, T96, T92), T93, tree(T90, T94, T95)) → U1_agg(T90, T96, T92, T93, T94, T95, delmin19_in_agg(T96, T93, T94))
U1_agg(T90, T96, T92, T93, T94, T95, delmin19_out_agg(T96, T93, T94)) → delmin19_out_agg(tree(T90, T96, T92), T93, tree(T90, T94, T95))
U20_aag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_out_agg(T63, T60, T61)) → delete1_out_aag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62)))
delete1_in_aag(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_aag(T126, T122, T127, T124, T125, p32_in_agag(T126, T122, T127, T125))
p32_in_agag(T126, T122, T127, T125) → U7_agag(T126, T122, T127, T125, less34_in_ag(T126, T122))
less34_in_ag(0, s(T138)) → less34_out_ag(0, s(T138))
less34_in_ag(s(T145), s(T144)) → U2_ag(T145, T144, less34_in_ag(T145, T144))
U2_ag(T145, T144, less34_out_ag(T145, T144)) → less34_out_ag(s(T145), s(T144))
U7_agag(T126, T122, T127, T125, less34_out_ag(T126, T122)) → p32_out_agag(T126, T122, T127, T125)
p32_in_agag(T130, T122, T131, T125) → U8_agag(T130, T122, T131, T125, less34_in_ag(T130, T122))
U8_agag(T130, T122, T131, T125, less34_out_ag(T130, T122)) → U9_agag(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
delete1_in_gag(T6, tree(T6, void, T7), T7) → delete1_out_gag(T6, tree(T6, void, T7), T7)
delete1_in_gag(T10, tree(T10, T11, void), T11) → delete1_out_gag(T10, tree(T10, T11, void), T11)
delete1_in_gag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32)) → delete1_out_gag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32))
delete1_in_gag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_gag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
U20_gag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_out_agg(T63, T60, T61)) → delete1_out_gag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62)))
delete1_in_gag(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_gag(T126, T122, T127, T124, T125, p32_in_ggag(T126, T122, T127, T125))
p32_in_ggag(T126, T122, T127, T125) → U7_ggag(T126, T122, T127, T125, less34_in_gg(T126, T122))
less34_in_gg(0, s(T138)) → less34_out_gg(0, s(T138))
less34_in_gg(s(T145), s(T144)) → U2_gg(T145, T144, less34_in_gg(T145, T144))
U2_gg(T145, T144, less34_out_gg(T145, T144)) → less34_out_gg(s(T145), s(T144))
U7_ggag(T126, T122, T127, T125, less34_out_gg(T126, T122)) → p32_out_ggag(T126, T122, T127, T125)
p32_in_ggag(T130, T122, T131, T125) → U8_ggag(T130, T122, T131, T125, less34_in_gg(T130, T122))
U8_ggag(T130, T122, T131, T125, less34_out_gg(T130, T122)) → U9_ggag(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
delete1_in_gag(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_gag(T167, T163, T164, T168, T166, p44_in_ggag(T163, T167, T168, T166))
p44_in_ggag(T163, T167, T168, T166) → U4_ggag(T163, T167, T168, T166, less46_in_gg(T163, T167))
less46_in_gg(0, s(T179)) → less46_out_gg(0, s(T179))
less46_in_gg(s(T184), s(T186)) → U3_gg(T184, T186, less46_in_gg(T184, T186))
U3_gg(T184, T186, less46_out_gg(T184, T186)) → less46_out_gg(s(T184), s(T186))
U4_ggag(T163, T167, T168, T166, less46_out_gg(T163, T167)) → p44_out_ggag(T163, T167, T168, T166)
p44_in_ggag(T163, T171, T172, T166) → U5_ggag(T163, T171, T172, T166, less46_in_gg(T163, T171))
U5_ggag(T163, T171, T172, T166, less46_out_gg(T163, T171)) → U6_ggag(T163, T171, T172, T166, delete1_in_gag(T171, T172, T166))
delete1_in_gag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_gag(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
delete1_in_gag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_gag(T223, T222, T224, T201, T202, p65_in_ggag(T223, T222, T224, T202))
p65_in_ggag(T223, T222, T224, T202) → U12_ggag(T223, T222, T224, T202, less34_in_gg(T223, T222))
U12_ggag(T223, T222, T224, T202, less34_out_gg(T223, T222)) → p65_out_ggag(T223, T222, T224, T202)
p65_in_ggag(T227, T222, T228, T202) → U13_ggag(T227, T222, T228, T202, less34_in_gg(T227, T222))
U13_ggag(T227, T222, T228, T202, less34_out_gg(T227, T222)) → U14_ggag(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
delete1_in_gag(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_gag(T250, T246, T247, T251, T249, p44_in_ggag(T246, T250, T251, T249))
U25_gag(T250, T246, T247, T251, T249, p44_out_ggag(T246, T250, T251, T249)) → delete1_out_gag(T250, tree(T246, T247, T251), tree(T246, T247, T249))
delete1_in_gag(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_gag(T264, T260, T261, T265, T263, p72_in_ggag(T260, T264, T265, T263))
p72_in_ggag(0, s(T272), T271, T263) → U10_ggag(T272, T271, T263, delete1_in_gag(s(T272), T271, T263))
delete1_in_gag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_gag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
U27_gag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_out_agg(T346, T343, T344)) → delete1_out_gag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345)))
delete1_in_gag(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_gag(T376, T372, T377, T374, T375, p32_in_ggag(T376, T372, T377, T375))
U28_gag(T376, T372, T377, T374, T375, p32_out_ggag(T376, T372, T377, T375)) → delete1_out_gag(T376, tree(T372, T377, T374), tree(T372, T375, T374))
delete1_in_gag(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_gag(T395, T391, T392, T396, T394, p72_in_ggag(T391, T395, T396, T394))
p72_in_ggag(s(T281), s(T283), T284, T263) → U11_ggag(T281, T283, T284, T263, p79_in_ggag(T281, T283, T284, T263))
p79_in_ggag(T281, T283, T284, T263) → U15_ggag(T281, T283, T284, T263, less46_in_gg(T281, T283))
U15_ggag(T281, T283, T284, T263, less46_out_gg(T281, T283)) → p79_out_ggag(T281, T283, T284, T263)
p79_in_ggag(T281, T287, T288, T263) → U16_ggag(T281, T287, T288, T263, less46_in_gg(T281, T287))
U16_ggag(T281, T287, T288, T263, less46_out_gg(T281, T287)) → U17_ggag(T281, T287, T288, T263, delete1_in_gag(s(T287), T288, T263))
delete1_in_gag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_gag(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
delete1_in_gag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_gag(T429, T428, T430, T407, T408, p65_in_ggag(T429, T428, T430, T408))
U31_gag(T429, T428, T430, T407, T408, p65_out_ggag(T429, T428, T430, T408)) → delete1_out_gag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407))
delete1_in_gag(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_gag(T448, T444, T445, T449, T447, p72_in_ggag(T444, T448, T449, T447))
U32_gag(T448, T444, T445, T449, T447, p72_out_ggag(T444, T448, T449, T447)) → delete1_out_gag(T448, tree(T444, T445, T449), tree(T444, T445, T447))
delete1_in_gag(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_gag(T462, T458, T459, T463, T461, p116_in_ggag(T458, T462, T463, T461))
p116_in_ggag(0, s(T470), T469, T461) → U18_ggag(T470, T469, T461, delete1_in_gag(s(T470), T469, T461))
delete1_in_gag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_gag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
U34_gag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_out_agg(T540, T537, T538)) → delete1_out_gag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539)))
delete1_in_gag(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_gag(T570, T566, T571, T568, T569, p32_in_ggag(T570, T566, T571, T569))
U35_gag(T570, T566, T571, T568, T569, p32_out_ggag(T570, T566, T571, T569)) → delete1_out_gag(T570, tree(T566, T571, T568), tree(T566, T569, T568))
delete1_in_gag(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_gag(T589, T585, T586, T590, T588, p116_in_ggag(T585, T589, T590, T588))
p116_in_ggag(s(T479), s(T481), T482, T461) → U19_ggag(T479, T481, T482, T461, p79_in_ggag(T479, T481, T482, T461))
U19_ggag(T479, T481, T482, T461, p79_out_ggag(T479, T481, T482, T461)) → p116_out_ggag(s(T479), s(T481), T482, T461)
U36_gag(T589, T585, T586, T590, T588, p116_out_ggag(T585, T589, T590, T588)) → delete1_out_gag(T589, tree(T585, T586, T590), tree(T585, T586, T588))
delete1_in_gag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_gag(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
delete1_in_gag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_gag(T623, T622, T624, T601, T602, p65_in_ggag(T623, T622, T624, T602))
U38_gag(T623, T622, T624, T601, T602, p65_out_ggag(T623, T622, T624, T602)) → delete1_out_gag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601))
delete1_in_gag(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_gag(T642, T638, T639, T643, T641, p116_in_ggag(T638, T642, T643, T641))
U39_gag(T642, T638, T639, T643, T641, p116_out_ggag(T638, T642, T643, T641)) → delete1_out_gag(T642, tree(T638, T639, T643), tree(T638, T639, T641))
delete1_in_gag(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_gag(T664, T653, T663, T655, delete1_in_gag(s(T664), T663, T655))
delete1_in_gag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_gag(T675, T673, T653, T676, T655, p79_in_ggag(T673, T675, T676, T655))
U41_gag(T675, T673, T653, T676, T655, p79_out_ggag(T673, T675, T676, T655)) → delete1_out_gag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655))
delete1_in_gag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_gag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
U42_gag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_out_agg(T730, T727, T728)) → delete1_out_gag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729)))
delete1_in_gag(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_gag(T760, T756, T761, T758, T759, p32_in_ggag(T760, T756, T761, T759))
U43_gag(T760, T756, T761, T758, T759, p32_out_ggag(T760, T756, T761, T759)) → delete1_out_gag(T760, tree(T756, T761, T758), tree(T756, T759, T758))
delete1_in_gag(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_gag(T779, T775, T776, T780, T778, p116_in_ggag(T775, T779, T780, T778))
U44_gag(T779, T775, T776, T780, T778, p116_out_ggag(T775, T779, T780, T778)) → delete1_out_gag(T779, tree(T775, T776, T780), tree(T775, T776, T778))
delete1_in_gag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_gag(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
delete1_in_gag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_gag(T813, T812, T814, T791, T792, p65_in_ggag(T813, T812, T814, T792))
U46_gag(T813, T812, T814, T791, T792, p65_out_ggag(T813, T812, T814, T792)) → delete1_out_gag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791))
delete1_in_gag(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_gag(T832, T828, T829, T833, T831, p116_in_ggag(T828, T832, T833, T831))
U47_gag(T832, T828, T829, T833, T831, p116_out_ggag(T828, T832, T833, T831)) → delete1_out_gag(T832, tree(T828, T829, T833), tree(T828, T829, T831))
delete1_in_gag(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_gag(T854, T843, T853, T845, delete1_in_gag(s(T854), T853, T845))
delete1_in_gag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_gag(T865, T863, T843, T866, T845, p79_in_ggag(T863, T865, T866, T845))
U49_gag(T865, T863, T843, T866, T845, p79_out_ggag(T863, T865, T866, T845)) → delete1_out_gag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845))
U48_gag(T854, T843, T853, T845, delete1_out_gag(s(T854), T853, T845)) → delete1_out_gag(s(T854), tree(0, T843, T853), tree(0, T843, T845))
U45_gag(T799, T800, T791, T792, delete1_out_gag(0, T800, T792)) → delete1_out_gag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791))
U40_gag(T664, T653, T663, T655, delete1_out_gag(s(T664), T663, T655)) → delete1_out_gag(s(T664), tree(0, T653, T663), tree(0, T653, T655))
U37_gag(T609, T610, T601, T602, delete1_out_gag(0, T610, T602)) → delete1_out_gag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601))
U18_ggag(T470, T469, T461, delete1_out_gag(s(T470), T469, T461)) → p116_out_ggag(0, s(T470), T469, T461)
U33_gag(T462, T458, T459, T463, T461, p116_out_ggag(T458, T462, T463, T461)) → delete1_out_gag(T462, tree(T458, T459, T463), tree(T458, T459, T461))
U30_gag(T415, T416, T407, T408, delete1_out_gag(0, T416, T408)) → delete1_out_gag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407))
U17_ggag(T281, T287, T288, T263, delete1_out_gag(s(T287), T288, T263)) → p79_out_ggag(T281, T287, T288, T263)
U11_ggag(T281, T283, T284, T263, p79_out_ggag(T281, T283, T284, T263)) → p72_out_ggag(s(T281), s(T283), T284, T263)
U29_gag(T395, T391, T392, T396, T394, p72_out_ggag(T391, T395, T396, T394)) → delete1_out_gag(T395, tree(T391, T392, T396), tree(T391, T392, T394))
U10_ggag(T272, T271, T263, delete1_out_gag(s(T272), T271, T263)) → p72_out_ggag(0, s(T272), T271, T263)
U26_gag(T264, T260, T261, T265, T263, p72_out_ggag(T260, T264, T265, T263)) → delete1_out_gag(T264, tree(T260, T261, T265), tree(T260, T261, T263))
U14_ggag(T227, T222, T228, T202, delete1_out_gag(s(T227), T228, T202)) → p65_out_ggag(T227, T222, T228, T202)
U24_gag(T223, T222, T224, T201, T202, p65_out_ggag(T223, T222, T224, T202)) → delete1_out_gag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201))
U23_gag(T209, T210, T201, T202, delete1_out_gag(0, T210, T202)) → delete1_out_gag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201))
U6_ggag(T163, T171, T172, T166, delete1_out_gag(T171, T172, T166)) → p44_out_ggag(T163, T171, T172, T166)
U22_gag(T167, T163, T164, T168, T166, p44_out_ggag(T163, T167, T168, T166)) → delete1_out_gag(T167, tree(T163, T164, T168), tree(T163, T164, T166))
U9_ggag(T130, T122, T131, T125, delete1_out_gag(T130, T131, T125)) → p32_out_ggag(T130, T122, T131, T125)
U21_gag(T126, T122, T127, T124, T125, p32_out_ggag(T126, T122, T127, T125)) → delete1_out_gag(T126, tree(T122, T127, T124), tree(T122, T125, T124))
U9_agag(T130, T122, T131, T125, delete1_out_gag(T130, T131, T125)) → p32_out_agag(T130, T122, T131, T125)
U21_aag(T126, T122, T127, T124, T125, p32_out_agag(T126, T122, T127, T125)) → delete1_out_aag(T126, tree(T122, T127, T124), tree(T122, T125, T124))
delete1_in_aag(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_aag(T167, T163, T164, T168, T166, p44_in_gaag(T163, T167, T168, T166))
p44_in_gaag(T163, T167, T168, T166) → U4_gaag(T163, T167, T168, T166, less46_in_ga(T163, T167))
less46_in_ga(0, s(T179)) → less46_out_ga(0, s(T179))
less46_in_ga(s(T184), s(T186)) → U3_ga(T184, T186, less46_in_ga(T184, T186))
U3_ga(T184, T186, less46_out_ga(T184, T186)) → less46_out_ga(s(T184), s(T186))
U4_gaag(T163, T167, T168, T166, less46_out_ga(T163, T167)) → p44_out_gaag(T163, T167, T168, T166)
p44_in_gaag(T163, T171, T172, T166) → U5_gaag(T163, T171, T172, T166, less46_in_ga(T163, T171))
U5_gaag(T163, T171, T172, T166, less46_out_ga(T163, T171)) → U6_gaag(T163, T171, T172, T166, delete1_in_aag(T171, T172, T166))
delete1_in_aag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_aag(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
U23_aag(T209, T210, T201, T202, delete1_out_gag(0, T210, T202)) → delete1_out_aag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201))
delete1_in_aag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_aag(T223, T222, T224, T201, T202, p65_in_agag(T223, T222, T224, T202))
p65_in_agag(T223, T222, T224, T202) → U12_agag(T223, T222, T224, T202, less34_in_ag(T223, T222))
U12_agag(T223, T222, T224, T202, less34_out_ag(T223, T222)) → p65_out_agag(T223, T222, T224, T202)
p65_in_agag(T227, T222, T228, T202) → U13_agag(T227, T222, T228, T202, less34_in_ag(T227, T222))
U13_agag(T227, T222, T228, T202, less34_out_ag(T227, T222)) → U14_agag(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
U14_agag(T227, T222, T228, T202, delete1_out_gag(s(T227), T228, T202)) → p65_out_agag(T227, T222, T228, T202)
U24_aag(T223, T222, T224, T201, T202, p65_out_agag(T223, T222, T224, T202)) → delete1_out_aag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201))
delete1_in_aag(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_aag(T250, T246, T247, T251, T249, p44_in_gaag(T246, T250, T251, T249))
U25_aag(T250, T246, T247, T251, T249, p44_out_gaag(T246, T250, T251, T249)) → delete1_out_aag(T250, tree(T246, T247, T251), tree(T246, T247, T249))
delete1_in_aag(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_aag(T264, T260, T261, T265, T263, p72_in_gaag(T260, T264, T265, T263))
p72_in_gaag(0, s(T272), T271, T263) → U10_gaag(T272, T271, T263, delete1_in_aag(s(T272), T271, T263))
delete1_in_aag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_aag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
U27_aag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_out_agg(T346, T343, T344)) → delete1_out_aag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345)))
delete1_in_aag(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_aag(T376, T372, T377, T374, T375, p32_in_agag(T376, T372, T377, T375))
U28_aag(T376, T372, T377, T374, T375, p32_out_agag(T376, T372, T377, T375)) → delete1_out_aag(T376, tree(T372, T377, T374), tree(T372, T375, T374))
delete1_in_aag(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_aag(T395, T391, T392, T396, T394, p72_in_gaag(T391, T395, T396, T394))
p72_in_gaag(s(T281), s(T283), T284, T263) → U11_gaag(T281, T283, T284, T263, p79_in_gaag(T281, T283, T284, T263))
p79_in_gaag(T281, T283, T284, T263) → U15_gaag(T281, T283, T284, T263, less46_in_ga(T281, T283))
U15_gaag(T281, T283, T284, T263, less46_out_ga(T281, T283)) → p79_out_gaag(T281, T283, T284, T263)
p79_in_gaag(T281, T287, T288, T263) → U16_gaag(T281, T287, T288, T263, less46_in_ga(T281, T287))
U16_gaag(T281, T287, T288, T263, less46_out_ga(T281, T287)) → U17_gaag(T281, T287, T288, T263, delete1_in_aag(s(T287), T288, T263))
delete1_in_aag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_aag(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
U30_aag(T415, T416, T407, T408, delete1_out_gag(0, T416, T408)) → delete1_out_aag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407))
delete1_in_aag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_aag(T429, T428, T430, T407, T408, p65_in_agag(T429, T428, T430, T408))
U31_aag(T429, T428, T430, T407, T408, p65_out_agag(T429, T428, T430, T408)) → delete1_out_aag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407))
delete1_in_aag(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_aag(T448, T444, T445, T449, T447, p72_in_gaag(T444, T448, T449, T447))
U32_aag(T448, T444, T445, T449, T447, p72_out_gaag(T444, T448, T449, T447)) → delete1_out_aag(T448, tree(T444, T445, T449), tree(T444, T445, T447))
delete1_in_aag(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_aag(T462, T458, T459, T463, T461, p116_in_gaag(T458, T462, T463, T461))
p116_in_gaag(0, s(T470), T469, T461) → U18_gaag(T470, T469, T461, delete1_in_aag(s(T470), T469, T461))
delete1_in_aag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_aag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
U34_aag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_out_agg(T540, T537, T538)) → delete1_out_aag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539)))
delete1_in_aag(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_aag(T570, T566, T571, T568, T569, p32_in_agag(T570, T566, T571, T569))
U35_aag(T570, T566, T571, T568, T569, p32_out_agag(T570, T566, T571, T569)) → delete1_out_aag(T570, tree(T566, T571, T568), tree(T566, T569, T568))
delete1_in_aag(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_aag(T589, T585, T586, T590, T588, p116_in_gaag(T585, T589, T590, T588))
p116_in_gaag(s(T479), s(T481), T482, T461) → U19_gaag(T479, T481, T482, T461, p79_in_gaag(T479, T481, T482, T461))
U19_gaag(T479, T481, T482, T461, p79_out_gaag(T479, T481, T482, T461)) → p116_out_gaag(s(T479), s(T481), T482, T461)
U36_aag(T589, T585, T586, T590, T588, p116_out_gaag(T585, T589, T590, T588)) → delete1_out_aag(T589, tree(T585, T586, T590), tree(T585, T586, T588))
delete1_in_aag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_aag(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
U37_aag(T609, T610, T601, T602, delete1_out_gag(0, T610, T602)) → delete1_out_aag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601))
delete1_in_aag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_aag(T623, T622, T624, T601, T602, p65_in_agag(T623, T622, T624, T602))
U38_aag(T623, T622, T624, T601, T602, p65_out_agag(T623, T622, T624, T602)) → delete1_out_aag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601))
delete1_in_aag(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_aag(T642, T638, T639, T643, T641, p116_in_gaag(T638, T642, T643, T641))
U39_aag(T642, T638, T639, T643, T641, p116_out_gaag(T638, T642, T643, T641)) → delete1_out_aag(T642, tree(T638, T639, T643), tree(T638, T639, T641))
delete1_in_aag(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_aag(T664, T653, T663, T655, delete1_in_aag(s(T664), T663, T655))
delete1_in_aag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_aag(T675, T673, T653, T676, T655, p79_in_gaag(T673, T675, T676, T655))
U41_aag(T675, T673, T653, T676, T655, p79_out_gaag(T673, T675, T676, T655)) → delete1_out_aag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655))
delete1_in_aag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_aag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
U42_aag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_out_agg(T730, T727, T728)) → delete1_out_aag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729)))
delete1_in_aag(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_aag(T760, T756, T761, T758, T759, p32_in_agag(T760, T756, T761, T759))
U43_aag(T760, T756, T761, T758, T759, p32_out_agag(T760, T756, T761, T759)) → delete1_out_aag(T760, tree(T756, T761, T758), tree(T756, T759, T758))
delete1_in_aag(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_aag(T779, T775, T776, T780, T778, p116_in_gaag(T775, T779, T780, T778))
U44_aag(T779, T775, T776, T780, T778, p116_out_gaag(T775, T779, T780, T778)) → delete1_out_aag(T779, tree(T775, T776, T780), tree(T775, T776, T778))
delete1_in_aag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_aag(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
U45_aag(T799, T800, T791, T792, delete1_out_gag(0, T800, T792)) → delete1_out_aag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791))
delete1_in_aag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_aag(T813, T812, T814, T791, T792, p65_in_agag(T813, T812, T814, T792))
U46_aag(T813, T812, T814, T791, T792, p65_out_agag(T813, T812, T814, T792)) → delete1_out_aag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791))
delete1_in_aag(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_aag(T832, T828, T829, T833, T831, p116_in_gaag(T828, T832, T833, T831))
U47_aag(T832, T828, T829, T833, T831, p116_out_gaag(T828, T832, T833, T831)) → delete1_out_aag(T832, tree(T828, T829, T833), tree(T828, T829, T831))
delete1_in_aag(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_aag(T854, T843, T853, T845, delete1_in_aag(s(T854), T853, T845))
delete1_in_aag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_aag(T865, T863, T843, T866, T845, p79_in_gaag(T863, T865, T866, T845))
U49_aag(T865, T863, T843, T866, T845, p79_out_gaag(T863, T865, T866, T845)) → delete1_out_aag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845))
U48_aag(T854, T843, T853, T845, delete1_out_aag(s(T854), T853, T845)) → delete1_out_aag(s(T854), tree(0, T843, T853), tree(0, T843, T845))
U40_aag(T664, T653, T663, T655, delete1_out_aag(s(T664), T663, T655)) → delete1_out_aag(s(T664), tree(0, T653, T663), tree(0, T653, T655))
U18_gaag(T470, T469, T461, delete1_out_aag(s(T470), T469, T461)) → p116_out_gaag(0, s(T470), T469, T461)
U33_aag(T462, T458, T459, T463, T461, p116_out_gaag(T458, T462, T463, T461)) → delete1_out_aag(T462, tree(T458, T459, T463), tree(T458, T459, T461))
U17_gaag(T281, T287, T288, T263, delete1_out_aag(s(T287), T288, T263)) → p79_out_gaag(T281, T287, T288, T263)
U11_gaag(T281, T283, T284, T263, p79_out_gaag(T281, T283, T284, T263)) → p72_out_gaag(s(T281), s(T283), T284, T263)
U29_aag(T395, T391, T392, T396, T394, p72_out_gaag(T391, T395, T396, T394)) → delete1_out_aag(T395, tree(T391, T392, T396), tree(T391, T392, T394))
U10_gaag(T272, T271, T263, delete1_out_aag(s(T272), T271, T263)) → p72_out_gaag(0, s(T272), T271, T263)
U26_aag(T264, T260, T261, T265, T263, p72_out_gaag(T260, T264, T265, T263)) → delete1_out_aag(T264, tree(T260, T261, T265), tree(T260, T261, T263))
U6_gaag(T163, T171, T172, T166, delete1_out_aag(T171, T172, T166)) → p44_out_gaag(T163, T171, T172, T166)
U22_aag(T167, T163, T164, T168, T166, p44_out_gaag(T163, T167, T168, T166)) → delete1_out_aag(T167, tree(T163, T164, T168), tree(T163, T164, T166))

The argument filtering Pi contains the following mapping:
delete1_in_aag(x1, x2, x3)  =  delete1_in_aag(x3)
delete1_out_aag(x1, x2, x3)  =  delete1_out_aag
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U20_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aag(x9)
delmin19_in_agg(x1, x2, x3)  =  delmin19_in_agg(x2, x3)
delmin19_out_agg(x1, x2, x3)  =  delmin19_out_agg
U1_agg(x1, x2, x3, x4, x5, x6, x7)  =  U1_agg(x7)
U21_aag(x1, x2, x3, x4, x5, x6)  =  U21_aag(x6)
p32_in_agag(x1, x2, x3, x4)  =  p32_in_agag(x2, x4)
U7_agag(x1, x2, x3, x4, x5)  =  U7_agag(x5)
less34_in_ag(x1, x2)  =  less34_in_ag(x2)
s(x1)  =  s(x1)
less34_out_ag(x1, x2)  =  less34_out_ag(x1)
U2_ag(x1, x2, x3)  =  U2_ag(x3)
p32_out_agag(x1, x2, x3, x4)  =  p32_out_agag(x1)
U8_agag(x1, x2, x3, x4, x5)  =  U8_agag(x4, x5)
U9_agag(x1, x2, x3, x4, x5)  =  U9_agag(x1, x5)
delete1_in_gag(x1, x2, x3)  =  delete1_in_gag(x1, x3)
delete1_out_gag(x1, x2, x3)  =  delete1_out_gag
U20_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gag(x9)
U21_gag(x1, x2, x3, x4, x5, x6)  =  U21_gag(x6)
p32_in_ggag(x1, x2, x3, x4)  =  p32_in_ggag(x1, x2, x4)
U7_ggag(x1, x2, x3, x4, x5)  =  U7_ggag(x5)
less34_in_gg(x1, x2)  =  less34_in_gg(x1, x2)
0  =  0
less34_out_gg(x1, x2)  =  less34_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
p32_out_ggag(x1, x2, x3, x4)  =  p32_out_ggag
U8_ggag(x1, x2, x3, x4, x5)  =  U8_ggag(x1, x4, x5)
U9_ggag(x1, x2, x3, x4, x5)  =  U9_ggag(x5)
U22_gag(x1, x2, x3, x4, x5, x6)  =  U22_gag(x6)
p44_in_ggag(x1, x2, x3, x4)  =  p44_in_ggag(x1, x2, x4)
U4_ggag(x1, x2, x3, x4, x5)  =  U4_ggag(x5)
less46_in_gg(x1, x2)  =  less46_in_gg(x1, x2)
less46_out_gg(x1, x2)  =  less46_out_gg
U3_gg(x1, x2, x3)  =  U3_gg(x3)
p44_out_ggag(x1, x2, x3, x4)  =  p44_out_ggag
U5_ggag(x1, x2, x3, x4, x5)  =  U5_ggag(x2, x4, x5)
U6_ggag(x1, x2, x3, x4, x5)  =  U6_ggag(x5)
U23_gag(x1, x2, x3, x4, x5)  =  U23_gag(x5)
U24_gag(x1, x2, x3, x4, x5, x6)  =  U24_gag(x6)
p65_in_ggag(x1, x2, x3, x4)  =  p65_in_ggag(x1, x2, x4)
U12_ggag(x1, x2, x3, x4, x5)  =  U12_ggag(x5)
p65_out_ggag(x1, x2, x3, x4)  =  p65_out_ggag
U13_ggag(x1, x2, x3, x4, x5)  =  U13_ggag(x1, x4, x5)
U14_ggag(x1, x2, x3, x4, x5)  =  U14_ggag(x5)
U25_gag(x1, x2, x3, x4, x5, x6)  =  U25_gag(x6)
U26_gag(x1, x2, x3, x4, x5, x6)  =  U26_gag(x6)
p72_in_ggag(x1, x2, x3, x4)  =  p72_in_ggag(x1, x2, x4)
U10_ggag(x1, x2, x3, x4)  =  U10_ggag(x4)
U27_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gag(x9)
U28_gag(x1, x2, x3, x4, x5, x6)  =  U28_gag(x6)
U29_gag(x1, x2, x3, x4, x5, x6)  =  U29_gag(x6)
U11_ggag(x1, x2, x3, x4, x5)  =  U11_ggag(x5)
p79_in_ggag(x1, x2, x3, x4)  =  p79_in_ggag(x1, x2, x4)
U15_ggag(x1, x2, x3, x4, x5)  =  U15_ggag(x5)
p79_out_ggag(x1, x2, x3, x4)  =  p79_out_ggag
U16_ggag(x1, x2, x3, x4, x5)  =  U16_ggag(x2, x4, x5)
U17_ggag(x1, x2, x3, x4, x5)  =  U17_ggag(x5)
U30_gag(x1, x2, x3, x4, x5)  =  U30_gag(x5)
U31_gag(x1, x2, x3, x4, x5, x6)  =  U31_gag(x6)
U32_gag(x1, x2, x3, x4, x5, x6)  =  U32_gag(x6)
p72_out_ggag(x1, x2, x3, x4)  =  p72_out_ggag
U33_gag(x1, x2, x3, x4, x5, x6)  =  U33_gag(x6)
p116_in_ggag(x1, x2, x3, x4)  =  p116_in_ggag(x1, x2, x4)
U18_ggag(x1, x2, x3, x4)  =  U18_ggag(x4)
U34_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_gag(x9)
U35_gag(x1, x2, x3, x4, x5, x6)  =  U35_gag(x6)
U36_gag(x1, x2, x3, x4, x5, x6)  =  U36_gag(x6)
U19_ggag(x1, x2, x3, x4, x5)  =  U19_ggag(x5)
p116_out_ggag(x1, x2, x3, x4)  =  p116_out_ggag
U37_gag(x1, x2, x3, x4, x5)  =  U37_gag(x5)
U38_gag(x1, x2, x3, x4, x5, x6)  =  U38_gag(x6)
U39_gag(x1, x2, x3, x4, x5, x6)  =  U39_gag(x6)
U40_gag(x1, x2, x3, x4, x5)  =  U40_gag(x5)
U41_gag(x1, x2, x3, x4, x5, x6)  =  U41_gag(x6)
U42_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_gag(x9)
U43_gag(x1, x2, x3, x4, x5, x6)  =  U43_gag(x6)
U44_gag(x1, x2, x3, x4, x5, x6)  =  U44_gag(x6)
U45_gag(x1, x2, x3, x4, x5)  =  U45_gag(x5)
U46_gag(x1, x2, x3, x4, x5, x6)  =  U46_gag(x6)
U47_gag(x1, x2, x3, x4, x5, x6)  =  U47_gag(x6)
U48_gag(x1, x2, x3, x4, x5)  =  U48_gag(x5)
U49_gag(x1, x2, x3, x4, x5, x6)  =  U49_gag(x6)
U22_aag(x1, x2, x3, x4, x5, x6)  =  U22_aag(x6)
p44_in_gaag(x1, x2, x3, x4)  =  p44_in_gaag(x1, x4)
U4_gaag(x1, x2, x3, x4, x5)  =  U4_gaag(x5)
less46_in_ga(x1, x2)  =  less46_in_ga(x1)
less46_out_ga(x1, x2)  =  less46_out_ga
U3_ga(x1, x2, x3)  =  U3_ga(x3)
p44_out_gaag(x1, x2, x3, x4)  =  p44_out_gaag
U5_gaag(x1, x2, x3, x4, x5)  =  U5_gaag(x4, x5)
U6_gaag(x1, x2, x3, x4, x5)  =  U6_gaag(x5)
U23_aag(x1, x2, x3, x4, x5)  =  U23_aag(x5)
U24_aag(x1, x2, x3, x4, x5, x6)  =  U24_aag(x6)
p65_in_agag(x1, x2, x3, x4)  =  p65_in_agag(x2, x4)
U12_agag(x1, x2, x3, x4, x5)  =  U12_agag(x5)
p65_out_agag(x1, x2, x3, x4)  =  p65_out_agag(x1)
U13_agag(x1, x2, x3, x4, x5)  =  U13_agag(x4, x5)
U14_agag(x1, x2, x3, x4, x5)  =  U14_agag(x1, x5)
U25_aag(x1, x2, x3, x4, x5, x6)  =  U25_aag(x6)
U26_aag(x1, x2, x3, x4, x5, x6)  =  U26_aag(x6)
p72_in_gaag(x1, x2, x3, x4)  =  p72_in_gaag(x1, x4)
U10_gaag(x1, x2, x3, x4)  =  U10_gaag(x4)
U27_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aag(x9)
U28_aag(x1, x2, x3, x4, x5, x6)  =  U28_aag(x6)
U29_aag(x1, x2, x3, x4, x5, x6)  =  U29_aag(x6)
U11_gaag(x1, x2, x3, x4, x5)  =  U11_gaag(x5)
p79_in_gaag(x1, x2, x3, x4)  =  p79_in_gaag(x1, x4)
U15_gaag(x1, x2, x3, x4, x5)  =  U15_gaag(x5)
p79_out_gaag(x1, x2, x3, x4)  =  p79_out_gaag
U16_gaag(x1, x2, x3, x4, x5)  =  U16_gaag(x4, x5)
U17_gaag(x1, x2, x3, x4, x5)  =  U17_gaag(x5)
U30_aag(x1, x2, x3, x4, x5)  =  U30_aag(x5)
U31_aag(x1, x2, x3, x4, x5, x6)  =  U31_aag(x6)
U32_aag(x1, x2, x3, x4, x5, x6)  =  U32_aag(x6)
p72_out_gaag(x1, x2, x3, x4)  =  p72_out_gaag
U33_aag(x1, x2, x3, x4, x5, x6)  =  U33_aag(x6)
p116_in_gaag(x1, x2, x3, x4)  =  p116_in_gaag(x1, x4)
U18_gaag(x1, x2, x3, x4)  =  U18_gaag(x4)
U34_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_aag(x9)
U35_aag(x1, x2, x3, x4, x5, x6)  =  U35_aag(x6)
U36_aag(x1, x2, x3, x4, x5, x6)  =  U36_aag(x6)
U19_gaag(x1, x2, x3, x4, x5)  =  U19_gaag(x5)
p116_out_gaag(x1, x2, x3, x4)  =  p116_out_gaag
U37_aag(x1, x2, x3, x4, x5)  =  U37_aag(x5)
U38_aag(x1, x2, x3, x4, x5, x6)  =  U38_aag(x6)
U39_aag(x1, x2, x3, x4, x5, x6)  =  U39_aag(x6)
U40_aag(x1, x2, x3, x4, x5)  =  U40_aag(x5)
U41_aag(x1, x2, x3, x4, x5, x6)  =  U41_aag(x6)
U42_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_aag(x9)
U43_aag(x1, x2, x3, x4, x5, x6)  =  U43_aag(x6)
U44_aag(x1, x2, x3, x4, x5, x6)  =  U44_aag(x6)
U45_aag(x1, x2, x3, x4, x5)  =  U45_aag(x5)
U46_aag(x1, x2, x3, x4, x5, x6)  =  U46_aag(x6)
U47_aag(x1, x2, x3, x4, x5, x6)  =  U47_aag(x6)
U48_aag(x1, x2, x3, x4, x5)  =  U48_aag(x5)
U49_aag(x1, x2, x3, x4, x5, x6)  =  U49_aag(x6)
LESS34_IN_GG(x1, x2)  =  LESS34_IN_GG(x1, x2)

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:

LESS34_IN_GG(s(T145), s(T144)) → LESS34_IN_GG(T145, T144)

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

(26) PiDPToQDPProof (EQUIVALENT 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:

LESS34_IN_GG(s(T145), s(T144)) → LESS34_IN_GG(T145, T144)

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

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

  • LESS34_IN_GG(s(T145), s(T144)) → LESS34_IN_GG(T145, T144)
    The graph contains the following edges 1 > 1, 2 > 2

(29) YES

(30) Obligation:

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

LESS34_IN_AG(s(T145), s(T144)) → LESS34_IN_AG(T145, T144)

The TRS R consists of the following rules:

delete1_in_aag(T6, tree(T6, void, T7), T7) → delete1_out_aag(T6, tree(T6, void, T7), T7)
delete1_in_aag(T10, tree(T10, T11, void), T11) → delete1_out_aag(T10, tree(T10, T11, void), T11)
delete1_in_aag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32)) → delete1_out_aag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32))
delete1_in_aag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_aag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
delmin19_in_agg(tree(T76, void, T77), T76, T77) → delmin19_out_agg(tree(T76, void, T77), T76, T77)
delmin19_in_agg(tree(T90, T96, T92), T93, tree(T90, T94, T95)) → U1_agg(T90, T96, T92, T93, T94, T95, delmin19_in_agg(T96, T93, T94))
U1_agg(T90, T96, T92, T93, T94, T95, delmin19_out_agg(T96, T93, T94)) → delmin19_out_agg(tree(T90, T96, T92), T93, tree(T90, T94, T95))
U20_aag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_out_agg(T63, T60, T61)) → delete1_out_aag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62)))
delete1_in_aag(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_aag(T126, T122, T127, T124, T125, p32_in_agag(T126, T122, T127, T125))
p32_in_agag(T126, T122, T127, T125) → U7_agag(T126, T122, T127, T125, less34_in_ag(T126, T122))
less34_in_ag(0, s(T138)) → less34_out_ag(0, s(T138))
less34_in_ag(s(T145), s(T144)) → U2_ag(T145, T144, less34_in_ag(T145, T144))
U2_ag(T145, T144, less34_out_ag(T145, T144)) → less34_out_ag(s(T145), s(T144))
U7_agag(T126, T122, T127, T125, less34_out_ag(T126, T122)) → p32_out_agag(T126, T122, T127, T125)
p32_in_agag(T130, T122, T131, T125) → U8_agag(T130, T122, T131, T125, less34_in_ag(T130, T122))
U8_agag(T130, T122, T131, T125, less34_out_ag(T130, T122)) → U9_agag(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
delete1_in_gag(T6, tree(T6, void, T7), T7) → delete1_out_gag(T6, tree(T6, void, T7), T7)
delete1_in_gag(T10, tree(T10, T11, void), T11) → delete1_out_gag(T10, tree(T10, T11, void), T11)
delete1_in_gag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32)) → delete1_out_gag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32))
delete1_in_gag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_gag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
U20_gag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_out_agg(T63, T60, T61)) → delete1_out_gag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62)))
delete1_in_gag(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_gag(T126, T122, T127, T124, T125, p32_in_ggag(T126, T122, T127, T125))
p32_in_ggag(T126, T122, T127, T125) → U7_ggag(T126, T122, T127, T125, less34_in_gg(T126, T122))
less34_in_gg(0, s(T138)) → less34_out_gg(0, s(T138))
less34_in_gg(s(T145), s(T144)) → U2_gg(T145, T144, less34_in_gg(T145, T144))
U2_gg(T145, T144, less34_out_gg(T145, T144)) → less34_out_gg(s(T145), s(T144))
U7_ggag(T126, T122, T127, T125, less34_out_gg(T126, T122)) → p32_out_ggag(T126, T122, T127, T125)
p32_in_ggag(T130, T122, T131, T125) → U8_ggag(T130, T122, T131, T125, less34_in_gg(T130, T122))
U8_ggag(T130, T122, T131, T125, less34_out_gg(T130, T122)) → U9_ggag(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
delete1_in_gag(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_gag(T167, T163, T164, T168, T166, p44_in_ggag(T163, T167, T168, T166))
p44_in_ggag(T163, T167, T168, T166) → U4_ggag(T163, T167, T168, T166, less46_in_gg(T163, T167))
less46_in_gg(0, s(T179)) → less46_out_gg(0, s(T179))
less46_in_gg(s(T184), s(T186)) → U3_gg(T184, T186, less46_in_gg(T184, T186))
U3_gg(T184, T186, less46_out_gg(T184, T186)) → less46_out_gg(s(T184), s(T186))
U4_ggag(T163, T167, T168, T166, less46_out_gg(T163, T167)) → p44_out_ggag(T163, T167, T168, T166)
p44_in_ggag(T163, T171, T172, T166) → U5_ggag(T163, T171, T172, T166, less46_in_gg(T163, T171))
U5_ggag(T163, T171, T172, T166, less46_out_gg(T163, T171)) → U6_ggag(T163, T171, T172, T166, delete1_in_gag(T171, T172, T166))
delete1_in_gag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_gag(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
delete1_in_gag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_gag(T223, T222, T224, T201, T202, p65_in_ggag(T223, T222, T224, T202))
p65_in_ggag(T223, T222, T224, T202) → U12_ggag(T223, T222, T224, T202, less34_in_gg(T223, T222))
U12_ggag(T223, T222, T224, T202, less34_out_gg(T223, T222)) → p65_out_ggag(T223, T222, T224, T202)
p65_in_ggag(T227, T222, T228, T202) → U13_ggag(T227, T222, T228, T202, less34_in_gg(T227, T222))
U13_ggag(T227, T222, T228, T202, less34_out_gg(T227, T222)) → U14_ggag(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
delete1_in_gag(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_gag(T250, T246, T247, T251, T249, p44_in_ggag(T246, T250, T251, T249))
U25_gag(T250, T246, T247, T251, T249, p44_out_ggag(T246, T250, T251, T249)) → delete1_out_gag(T250, tree(T246, T247, T251), tree(T246, T247, T249))
delete1_in_gag(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_gag(T264, T260, T261, T265, T263, p72_in_ggag(T260, T264, T265, T263))
p72_in_ggag(0, s(T272), T271, T263) → U10_ggag(T272, T271, T263, delete1_in_gag(s(T272), T271, T263))
delete1_in_gag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_gag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
U27_gag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_out_agg(T346, T343, T344)) → delete1_out_gag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345)))
delete1_in_gag(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_gag(T376, T372, T377, T374, T375, p32_in_ggag(T376, T372, T377, T375))
U28_gag(T376, T372, T377, T374, T375, p32_out_ggag(T376, T372, T377, T375)) → delete1_out_gag(T376, tree(T372, T377, T374), tree(T372, T375, T374))
delete1_in_gag(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_gag(T395, T391, T392, T396, T394, p72_in_ggag(T391, T395, T396, T394))
p72_in_ggag(s(T281), s(T283), T284, T263) → U11_ggag(T281, T283, T284, T263, p79_in_ggag(T281, T283, T284, T263))
p79_in_ggag(T281, T283, T284, T263) → U15_ggag(T281, T283, T284, T263, less46_in_gg(T281, T283))
U15_ggag(T281, T283, T284, T263, less46_out_gg(T281, T283)) → p79_out_ggag(T281, T283, T284, T263)
p79_in_ggag(T281, T287, T288, T263) → U16_ggag(T281, T287, T288, T263, less46_in_gg(T281, T287))
U16_ggag(T281, T287, T288, T263, less46_out_gg(T281, T287)) → U17_ggag(T281, T287, T288, T263, delete1_in_gag(s(T287), T288, T263))
delete1_in_gag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_gag(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
delete1_in_gag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_gag(T429, T428, T430, T407, T408, p65_in_ggag(T429, T428, T430, T408))
U31_gag(T429, T428, T430, T407, T408, p65_out_ggag(T429, T428, T430, T408)) → delete1_out_gag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407))
delete1_in_gag(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_gag(T448, T444, T445, T449, T447, p72_in_ggag(T444, T448, T449, T447))
U32_gag(T448, T444, T445, T449, T447, p72_out_ggag(T444, T448, T449, T447)) → delete1_out_gag(T448, tree(T444, T445, T449), tree(T444, T445, T447))
delete1_in_gag(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_gag(T462, T458, T459, T463, T461, p116_in_ggag(T458, T462, T463, T461))
p116_in_ggag(0, s(T470), T469, T461) → U18_ggag(T470, T469, T461, delete1_in_gag(s(T470), T469, T461))
delete1_in_gag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_gag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
U34_gag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_out_agg(T540, T537, T538)) → delete1_out_gag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539)))
delete1_in_gag(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_gag(T570, T566, T571, T568, T569, p32_in_ggag(T570, T566, T571, T569))
U35_gag(T570, T566, T571, T568, T569, p32_out_ggag(T570, T566, T571, T569)) → delete1_out_gag(T570, tree(T566, T571, T568), tree(T566, T569, T568))
delete1_in_gag(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_gag(T589, T585, T586, T590, T588, p116_in_ggag(T585, T589, T590, T588))
p116_in_ggag(s(T479), s(T481), T482, T461) → U19_ggag(T479, T481, T482, T461, p79_in_ggag(T479, T481, T482, T461))
U19_ggag(T479, T481, T482, T461, p79_out_ggag(T479, T481, T482, T461)) → p116_out_ggag(s(T479), s(T481), T482, T461)
U36_gag(T589, T585, T586, T590, T588, p116_out_ggag(T585, T589, T590, T588)) → delete1_out_gag(T589, tree(T585, T586, T590), tree(T585, T586, T588))
delete1_in_gag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_gag(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
delete1_in_gag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_gag(T623, T622, T624, T601, T602, p65_in_ggag(T623, T622, T624, T602))
U38_gag(T623, T622, T624, T601, T602, p65_out_ggag(T623, T622, T624, T602)) → delete1_out_gag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601))
delete1_in_gag(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_gag(T642, T638, T639, T643, T641, p116_in_ggag(T638, T642, T643, T641))
U39_gag(T642, T638, T639, T643, T641, p116_out_ggag(T638, T642, T643, T641)) → delete1_out_gag(T642, tree(T638, T639, T643), tree(T638, T639, T641))
delete1_in_gag(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_gag(T664, T653, T663, T655, delete1_in_gag(s(T664), T663, T655))
delete1_in_gag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_gag(T675, T673, T653, T676, T655, p79_in_ggag(T673, T675, T676, T655))
U41_gag(T675, T673, T653, T676, T655, p79_out_ggag(T673, T675, T676, T655)) → delete1_out_gag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655))
delete1_in_gag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_gag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
U42_gag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_out_agg(T730, T727, T728)) → delete1_out_gag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729)))
delete1_in_gag(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_gag(T760, T756, T761, T758, T759, p32_in_ggag(T760, T756, T761, T759))
U43_gag(T760, T756, T761, T758, T759, p32_out_ggag(T760, T756, T761, T759)) → delete1_out_gag(T760, tree(T756, T761, T758), tree(T756, T759, T758))
delete1_in_gag(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_gag(T779, T775, T776, T780, T778, p116_in_ggag(T775, T779, T780, T778))
U44_gag(T779, T775, T776, T780, T778, p116_out_ggag(T775, T779, T780, T778)) → delete1_out_gag(T779, tree(T775, T776, T780), tree(T775, T776, T778))
delete1_in_gag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_gag(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
delete1_in_gag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_gag(T813, T812, T814, T791, T792, p65_in_ggag(T813, T812, T814, T792))
U46_gag(T813, T812, T814, T791, T792, p65_out_ggag(T813, T812, T814, T792)) → delete1_out_gag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791))
delete1_in_gag(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_gag(T832, T828, T829, T833, T831, p116_in_ggag(T828, T832, T833, T831))
U47_gag(T832, T828, T829, T833, T831, p116_out_ggag(T828, T832, T833, T831)) → delete1_out_gag(T832, tree(T828, T829, T833), tree(T828, T829, T831))
delete1_in_gag(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_gag(T854, T843, T853, T845, delete1_in_gag(s(T854), T853, T845))
delete1_in_gag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_gag(T865, T863, T843, T866, T845, p79_in_ggag(T863, T865, T866, T845))
U49_gag(T865, T863, T843, T866, T845, p79_out_ggag(T863, T865, T866, T845)) → delete1_out_gag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845))
U48_gag(T854, T843, T853, T845, delete1_out_gag(s(T854), T853, T845)) → delete1_out_gag(s(T854), tree(0, T843, T853), tree(0, T843, T845))
U45_gag(T799, T800, T791, T792, delete1_out_gag(0, T800, T792)) → delete1_out_gag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791))
U40_gag(T664, T653, T663, T655, delete1_out_gag(s(T664), T663, T655)) → delete1_out_gag(s(T664), tree(0, T653, T663), tree(0, T653, T655))
U37_gag(T609, T610, T601, T602, delete1_out_gag(0, T610, T602)) → delete1_out_gag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601))
U18_ggag(T470, T469, T461, delete1_out_gag(s(T470), T469, T461)) → p116_out_ggag(0, s(T470), T469, T461)
U33_gag(T462, T458, T459, T463, T461, p116_out_ggag(T458, T462, T463, T461)) → delete1_out_gag(T462, tree(T458, T459, T463), tree(T458, T459, T461))
U30_gag(T415, T416, T407, T408, delete1_out_gag(0, T416, T408)) → delete1_out_gag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407))
U17_ggag(T281, T287, T288, T263, delete1_out_gag(s(T287), T288, T263)) → p79_out_ggag(T281, T287, T288, T263)
U11_ggag(T281, T283, T284, T263, p79_out_ggag(T281, T283, T284, T263)) → p72_out_ggag(s(T281), s(T283), T284, T263)
U29_gag(T395, T391, T392, T396, T394, p72_out_ggag(T391, T395, T396, T394)) → delete1_out_gag(T395, tree(T391, T392, T396), tree(T391, T392, T394))
U10_ggag(T272, T271, T263, delete1_out_gag(s(T272), T271, T263)) → p72_out_ggag(0, s(T272), T271, T263)
U26_gag(T264, T260, T261, T265, T263, p72_out_ggag(T260, T264, T265, T263)) → delete1_out_gag(T264, tree(T260, T261, T265), tree(T260, T261, T263))
U14_ggag(T227, T222, T228, T202, delete1_out_gag(s(T227), T228, T202)) → p65_out_ggag(T227, T222, T228, T202)
U24_gag(T223, T222, T224, T201, T202, p65_out_ggag(T223, T222, T224, T202)) → delete1_out_gag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201))
U23_gag(T209, T210, T201, T202, delete1_out_gag(0, T210, T202)) → delete1_out_gag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201))
U6_ggag(T163, T171, T172, T166, delete1_out_gag(T171, T172, T166)) → p44_out_ggag(T163, T171, T172, T166)
U22_gag(T167, T163, T164, T168, T166, p44_out_ggag(T163, T167, T168, T166)) → delete1_out_gag(T167, tree(T163, T164, T168), tree(T163, T164, T166))
U9_ggag(T130, T122, T131, T125, delete1_out_gag(T130, T131, T125)) → p32_out_ggag(T130, T122, T131, T125)
U21_gag(T126, T122, T127, T124, T125, p32_out_ggag(T126, T122, T127, T125)) → delete1_out_gag(T126, tree(T122, T127, T124), tree(T122, T125, T124))
U9_agag(T130, T122, T131, T125, delete1_out_gag(T130, T131, T125)) → p32_out_agag(T130, T122, T131, T125)
U21_aag(T126, T122, T127, T124, T125, p32_out_agag(T126, T122, T127, T125)) → delete1_out_aag(T126, tree(T122, T127, T124), tree(T122, T125, T124))
delete1_in_aag(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_aag(T167, T163, T164, T168, T166, p44_in_gaag(T163, T167, T168, T166))
p44_in_gaag(T163, T167, T168, T166) → U4_gaag(T163, T167, T168, T166, less46_in_ga(T163, T167))
less46_in_ga(0, s(T179)) → less46_out_ga(0, s(T179))
less46_in_ga(s(T184), s(T186)) → U3_ga(T184, T186, less46_in_ga(T184, T186))
U3_ga(T184, T186, less46_out_ga(T184, T186)) → less46_out_ga(s(T184), s(T186))
U4_gaag(T163, T167, T168, T166, less46_out_ga(T163, T167)) → p44_out_gaag(T163, T167, T168, T166)
p44_in_gaag(T163, T171, T172, T166) → U5_gaag(T163, T171, T172, T166, less46_in_ga(T163, T171))
U5_gaag(T163, T171, T172, T166, less46_out_ga(T163, T171)) → U6_gaag(T163, T171, T172, T166, delete1_in_aag(T171, T172, T166))
delete1_in_aag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_aag(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
U23_aag(T209, T210, T201, T202, delete1_out_gag(0, T210, T202)) → delete1_out_aag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201))
delete1_in_aag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_aag(T223, T222, T224, T201, T202, p65_in_agag(T223, T222, T224, T202))
p65_in_agag(T223, T222, T224, T202) → U12_agag(T223, T222, T224, T202, less34_in_ag(T223, T222))
U12_agag(T223, T222, T224, T202, less34_out_ag(T223, T222)) → p65_out_agag(T223, T222, T224, T202)
p65_in_agag(T227, T222, T228, T202) → U13_agag(T227, T222, T228, T202, less34_in_ag(T227, T222))
U13_agag(T227, T222, T228, T202, less34_out_ag(T227, T222)) → U14_agag(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
U14_agag(T227, T222, T228, T202, delete1_out_gag(s(T227), T228, T202)) → p65_out_agag(T227, T222, T228, T202)
U24_aag(T223, T222, T224, T201, T202, p65_out_agag(T223, T222, T224, T202)) → delete1_out_aag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201))
delete1_in_aag(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_aag(T250, T246, T247, T251, T249, p44_in_gaag(T246, T250, T251, T249))
U25_aag(T250, T246, T247, T251, T249, p44_out_gaag(T246, T250, T251, T249)) → delete1_out_aag(T250, tree(T246, T247, T251), tree(T246, T247, T249))
delete1_in_aag(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_aag(T264, T260, T261, T265, T263, p72_in_gaag(T260, T264, T265, T263))
p72_in_gaag(0, s(T272), T271, T263) → U10_gaag(T272, T271, T263, delete1_in_aag(s(T272), T271, T263))
delete1_in_aag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_aag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
U27_aag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_out_agg(T346, T343, T344)) → delete1_out_aag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345)))
delete1_in_aag(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_aag(T376, T372, T377, T374, T375, p32_in_agag(T376, T372, T377, T375))
U28_aag(T376, T372, T377, T374, T375, p32_out_agag(T376, T372, T377, T375)) → delete1_out_aag(T376, tree(T372, T377, T374), tree(T372, T375, T374))
delete1_in_aag(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_aag(T395, T391, T392, T396, T394, p72_in_gaag(T391, T395, T396, T394))
p72_in_gaag(s(T281), s(T283), T284, T263) → U11_gaag(T281, T283, T284, T263, p79_in_gaag(T281, T283, T284, T263))
p79_in_gaag(T281, T283, T284, T263) → U15_gaag(T281, T283, T284, T263, less46_in_ga(T281, T283))
U15_gaag(T281, T283, T284, T263, less46_out_ga(T281, T283)) → p79_out_gaag(T281, T283, T284, T263)
p79_in_gaag(T281, T287, T288, T263) → U16_gaag(T281, T287, T288, T263, less46_in_ga(T281, T287))
U16_gaag(T281, T287, T288, T263, less46_out_ga(T281, T287)) → U17_gaag(T281, T287, T288, T263, delete1_in_aag(s(T287), T288, T263))
delete1_in_aag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_aag(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
U30_aag(T415, T416, T407, T408, delete1_out_gag(0, T416, T408)) → delete1_out_aag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407))
delete1_in_aag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_aag(T429, T428, T430, T407, T408, p65_in_agag(T429, T428, T430, T408))
U31_aag(T429, T428, T430, T407, T408, p65_out_agag(T429, T428, T430, T408)) → delete1_out_aag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407))
delete1_in_aag(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_aag(T448, T444, T445, T449, T447, p72_in_gaag(T444, T448, T449, T447))
U32_aag(T448, T444, T445, T449, T447, p72_out_gaag(T444, T448, T449, T447)) → delete1_out_aag(T448, tree(T444, T445, T449), tree(T444, T445, T447))
delete1_in_aag(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_aag(T462, T458, T459, T463, T461, p116_in_gaag(T458, T462, T463, T461))
p116_in_gaag(0, s(T470), T469, T461) → U18_gaag(T470, T469, T461, delete1_in_aag(s(T470), T469, T461))
delete1_in_aag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_aag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
U34_aag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_out_agg(T540, T537, T538)) → delete1_out_aag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539)))
delete1_in_aag(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_aag(T570, T566, T571, T568, T569, p32_in_agag(T570, T566, T571, T569))
U35_aag(T570, T566, T571, T568, T569, p32_out_agag(T570, T566, T571, T569)) → delete1_out_aag(T570, tree(T566, T571, T568), tree(T566, T569, T568))
delete1_in_aag(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_aag(T589, T585, T586, T590, T588, p116_in_gaag(T585, T589, T590, T588))
p116_in_gaag(s(T479), s(T481), T482, T461) → U19_gaag(T479, T481, T482, T461, p79_in_gaag(T479, T481, T482, T461))
U19_gaag(T479, T481, T482, T461, p79_out_gaag(T479, T481, T482, T461)) → p116_out_gaag(s(T479), s(T481), T482, T461)
U36_aag(T589, T585, T586, T590, T588, p116_out_gaag(T585, T589, T590, T588)) → delete1_out_aag(T589, tree(T585, T586, T590), tree(T585, T586, T588))
delete1_in_aag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_aag(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
U37_aag(T609, T610, T601, T602, delete1_out_gag(0, T610, T602)) → delete1_out_aag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601))
delete1_in_aag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_aag(T623, T622, T624, T601, T602, p65_in_agag(T623, T622, T624, T602))
U38_aag(T623, T622, T624, T601, T602, p65_out_agag(T623, T622, T624, T602)) → delete1_out_aag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601))
delete1_in_aag(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_aag(T642, T638, T639, T643, T641, p116_in_gaag(T638, T642, T643, T641))
U39_aag(T642, T638, T639, T643, T641, p116_out_gaag(T638, T642, T643, T641)) → delete1_out_aag(T642, tree(T638, T639, T643), tree(T638, T639, T641))
delete1_in_aag(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_aag(T664, T653, T663, T655, delete1_in_aag(s(T664), T663, T655))
delete1_in_aag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_aag(T675, T673, T653, T676, T655, p79_in_gaag(T673, T675, T676, T655))
U41_aag(T675, T673, T653, T676, T655, p79_out_gaag(T673, T675, T676, T655)) → delete1_out_aag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655))
delete1_in_aag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_aag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
U42_aag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_out_agg(T730, T727, T728)) → delete1_out_aag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729)))
delete1_in_aag(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_aag(T760, T756, T761, T758, T759, p32_in_agag(T760, T756, T761, T759))
U43_aag(T760, T756, T761, T758, T759, p32_out_agag(T760, T756, T761, T759)) → delete1_out_aag(T760, tree(T756, T761, T758), tree(T756, T759, T758))
delete1_in_aag(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_aag(T779, T775, T776, T780, T778, p116_in_gaag(T775, T779, T780, T778))
U44_aag(T779, T775, T776, T780, T778, p116_out_gaag(T775, T779, T780, T778)) → delete1_out_aag(T779, tree(T775, T776, T780), tree(T775, T776, T778))
delete1_in_aag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_aag(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
U45_aag(T799, T800, T791, T792, delete1_out_gag(0, T800, T792)) → delete1_out_aag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791))
delete1_in_aag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_aag(T813, T812, T814, T791, T792, p65_in_agag(T813, T812, T814, T792))
U46_aag(T813, T812, T814, T791, T792, p65_out_agag(T813, T812, T814, T792)) → delete1_out_aag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791))
delete1_in_aag(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_aag(T832, T828, T829, T833, T831, p116_in_gaag(T828, T832, T833, T831))
U47_aag(T832, T828, T829, T833, T831, p116_out_gaag(T828, T832, T833, T831)) → delete1_out_aag(T832, tree(T828, T829, T833), tree(T828, T829, T831))
delete1_in_aag(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_aag(T854, T843, T853, T845, delete1_in_aag(s(T854), T853, T845))
delete1_in_aag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_aag(T865, T863, T843, T866, T845, p79_in_gaag(T863, T865, T866, T845))
U49_aag(T865, T863, T843, T866, T845, p79_out_gaag(T863, T865, T866, T845)) → delete1_out_aag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845))
U48_aag(T854, T843, T853, T845, delete1_out_aag(s(T854), T853, T845)) → delete1_out_aag(s(T854), tree(0, T843, T853), tree(0, T843, T845))
U40_aag(T664, T653, T663, T655, delete1_out_aag(s(T664), T663, T655)) → delete1_out_aag(s(T664), tree(0, T653, T663), tree(0, T653, T655))
U18_gaag(T470, T469, T461, delete1_out_aag(s(T470), T469, T461)) → p116_out_gaag(0, s(T470), T469, T461)
U33_aag(T462, T458, T459, T463, T461, p116_out_gaag(T458, T462, T463, T461)) → delete1_out_aag(T462, tree(T458, T459, T463), tree(T458, T459, T461))
U17_gaag(T281, T287, T288, T263, delete1_out_aag(s(T287), T288, T263)) → p79_out_gaag(T281, T287, T288, T263)
U11_gaag(T281, T283, T284, T263, p79_out_gaag(T281, T283, T284, T263)) → p72_out_gaag(s(T281), s(T283), T284, T263)
U29_aag(T395, T391, T392, T396, T394, p72_out_gaag(T391, T395, T396, T394)) → delete1_out_aag(T395, tree(T391, T392, T396), tree(T391, T392, T394))
U10_gaag(T272, T271, T263, delete1_out_aag(s(T272), T271, T263)) → p72_out_gaag(0, s(T272), T271, T263)
U26_aag(T264, T260, T261, T265, T263, p72_out_gaag(T260, T264, T265, T263)) → delete1_out_aag(T264, tree(T260, T261, T265), tree(T260, T261, T263))
U6_gaag(T163, T171, T172, T166, delete1_out_aag(T171, T172, T166)) → p44_out_gaag(T163, T171, T172, T166)
U22_aag(T167, T163, T164, T168, T166, p44_out_gaag(T163, T167, T168, T166)) → delete1_out_aag(T167, tree(T163, T164, T168), tree(T163, T164, T166))

The argument filtering Pi contains the following mapping:
delete1_in_aag(x1, x2, x3)  =  delete1_in_aag(x3)
delete1_out_aag(x1, x2, x3)  =  delete1_out_aag
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U20_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aag(x9)
delmin19_in_agg(x1, x2, x3)  =  delmin19_in_agg(x2, x3)
delmin19_out_agg(x1, x2, x3)  =  delmin19_out_agg
U1_agg(x1, x2, x3, x4, x5, x6, x7)  =  U1_agg(x7)
U21_aag(x1, x2, x3, x4, x5, x6)  =  U21_aag(x6)
p32_in_agag(x1, x2, x3, x4)  =  p32_in_agag(x2, x4)
U7_agag(x1, x2, x3, x4, x5)  =  U7_agag(x5)
less34_in_ag(x1, x2)  =  less34_in_ag(x2)
s(x1)  =  s(x1)
less34_out_ag(x1, x2)  =  less34_out_ag(x1)
U2_ag(x1, x2, x3)  =  U2_ag(x3)
p32_out_agag(x1, x2, x3, x4)  =  p32_out_agag(x1)
U8_agag(x1, x2, x3, x4, x5)  =  U8_agag(x4, x5)
U9_agag(x1, x2, x3, x4, x5)  =  U9_agag(x1, x5)
delete1_in_gag(x1, x2, x3)  =  delete1_in_gag(x1, x3)
delete1_out_gag(x1, x2, x3)  =  delete1_out_gag
U20_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gag(x9)
U21_gag(x1, x2, x3, x4, x5, x6)  =  U21_gag(x6)
p32_in_ggag(x1, x2, x3, x4)  =  p32_in_ggag(x1, x2, x4)
U7_ggag(x1, x2, x3, x4, x5)  =  U7_ggag(x5)
less34_in_gg(x1, x2)  =  less34_in_gg(x1, x2)
0  =  0
less34_out_gg(x1, x2)  =  less34_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
p32_out_ggag(x1, x2, x3, x4)  =  p32_out_ggag
U8_ggag(x1, x2, x3, x4, x5)  =  U8_ggag(x1, x4, x5)
U9_ggag(x1, x2, x3, x4, x5)  =  U9_ggag(x5)
U22_gag(x1, x2, x3, x4, x5, x6)  =  U22_gag(x6)
p44_in_ggag(x1, x2, x3, x4)  =  p44_in_ggag(x1, x2, x4)
U4_ggag(x1, x2, x3, x4, x5)  =  U4_ggag(x5)
less46_in_gg(x1, x2)  =  less46_in_gg(x1, x2)
less46_out_gg(x1, x2)  =  less46_out_gg
U3_gg(x1, x2, x3)  =  U3_gg(x3)
p44_out_ggag(x1, x2, x3, x4)  =  p44_out_ggag
U5_ggag(x1, x2, x3, x4, x5)  =  U5_ggag(x2, x4, x5)
U6_ggag(x1, x2, x3, x4, x5)  =  U6_ggag(x5)
U23_gag(x1, x2, x3, x4, x5)  =  U23_gag(x5)
U24_gag(x1, x2, x3, x4, x5, x6)  =  U24_gag(x6)
p65_in_ggag(x1, x2, x3, x4)  =  p65_in_ggag(x1, x2, x4)
U12_ggag(x1, x2, x3, x4, x5)  =  U12_ggag(x5)
p65_out_ggag(x1, x2, x3, x4)  =  p65_out_ggag
U13_ggag(x1, x2, x3, x4, x5)  =  U13_ggag(x1, x4, x5)
U14_ggag(x1, x2, x3, x4, x5)  =  U14_ggag(x5)
U25_gag(x1, x2, x3, x4, x5, x6)  =  U25_gag(x6)
U26_gag(x1, x2, x3, x4, x5, x6)  =  U26_gag(x6)
p72_in_ggag(x1, x2, x3, x4)  =  p72_in_ggag(x1, x2, x4)
U10_ggag(x1, x2, x3, x4)  =  U10_ggag(x4)
U27_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gag(x9)
U28_gag(x1, x2, x3, x4, x5, x6)  =  U28_gag(x6)
U29_gag(x1, x2, x3, x4, x5, x6)  =  U29_gag(x6)
U11_ggag(x1, x2, x3, x4, x5)  =  U11_ggag(x5)
p79_in_ggag(x1, x2, x3, x4)  =  p79_in_ggag(x1, x2, x4)
U15_ggag(x1, x2, x3, x4, x5)  =  U15_ggag(x5)
p79_out_ggag(x1, x2, x3, x4)  =  p79_out_ggag
U16_ggag(x1, x2, x3, x4, x5)  =  U16_ggag(x2, x4, x5)
U17_ggag(x1, x2, x3, x4, x5)  =  U17_ggag(x5)
U30_gag(x1, x2, x3, x4, x5)  =  U30_gag(x5)
U31_gag(x1, x2, x3, x4, x5, x6)  =  U31_gag(x6)
U32_gag(x1, x2, x3, x4, x5, x6)  =  U32_gag(x6)
p72_out_ggag(x1, x2, x3, x4)  =  p72_out_ggag
U33_gag(x1, x2, x3, x4, x5, x6)  =  U33_gag(x6)
p116_in_ggag(x1, x2, x3, x4)  =  p116_in_ggag(x1, x2, x4)
U18_ggag(x1, x2, x3, x4)  =  U18_ggag(x4)
U34_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_gag(x9)
U35_gag(x1, x2, x3, x4, x5, x6)  =  U35_gag(x6)
U36_gag(x1, x2, x3, x4, x5, x6)  =  U36_gag(x6)
U19_ggag(x1, x2, x3, x4, x5)  =  U19_ggag(x5)
p116_out_ggag(x1, x2, x3, x4)  =  p116_out_ggag
U37_gag(x1, x2, x3, x4, x5)  =  U37_gag(x5)
U38_gag(x1, x2, x3, x4, x5, x6)  =  U38_gag(x6)
U39_gag(x1, x2, x3, x4, x5, x6)  =  U39_gag(x6)
U40_gag(x1, x2, x3, x4, x5)  =  U40_gag(x5)
U41_gag(x1, x2, x3, x4, x5, x6)  =  U41_gag(x6)
U42_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_gag(x9)
U43_gag(x1, x2, x3, x4, x5, x6)  =  U43_gag(x6)
U44_gag(x1, x2, x3, x4, x5, x6)  =  U44_gag(x6)
U45_gag(x1, x2, x3, x4, x5)  =  U45_gag(x5)
U46_gag(x1, x2, x3, x4, x5, x6)  =  U46_gag(x6)
U47_gag(x1, x2, x3, x4, x5, x6)  =  U47_gag(x6)
U48_gag(x1, x2, x3, x4, x5)  =  U48_gag(x5)
U49_gag(x1, x2, x3, x4, x5, x6)  =  U49_gag(x6)
U22_aag(x1, x2, x3, x4, x5, x6)  =  U22_aag(x6)
p44_in_gaag(x1, x2, x3, x4)  =  p44_in_gaag(x1, x4)
U4_gaag(x1, x2, x3, x4, x5)  =  U4_gaag(x5)
less46_in_ga(x1, x2)  =  less46_in_ga(x1)
less46_out_ga(x1, x2)  =  less46_out_ga
U3_ga(x1, x2, x3)  =  U3_ga(x3)
p44_out_gaag(x1, x2, x3, x4)  =  p44_out_gaag
U5_gaag(x1, x2, x3, x4, x5)  =  U5_gaag(x4, x5)
U6_gaag(x1, x2, x3, x4, x5)  =  U6_gaag(x5)
U23_aag(x1, x2, x3, x4, x5)  =  U23_aag(x5)
U24_aag(x1, x2, x3, x4, x5, x6)  =  U24_aag(x6)
p65_in_agag(x1, x2, x3, x4)  =  p65_in_agag(x2, x4)
U12_agag(x1, x2, x3, x4, x5)  =  U12_agag(x5)
p65_out_agag(x1, x2, x3, x4)  =  p65_out_agag(x1)
U13_agag(x1, x2, x3, x4, x5)  =  U13_agag(x4, x5)
U14_agag(x1, x2, x3, x4, x5)  =  U14_agag(x1, x5)
U25_aag(x1, x2, x3, x4, x5, x6)  =  U25_aag(x6)
U26_aag(x1, x2, x3, x4, x5, x6)  =  U26_aag(x6)
p72_in_gaag(x1, x2, x3, x4)  =  p72_in_gaag(x1, x4)
U10_gaag(x1, x2, x3, x4)  =  U10_gaag(x4)
U27_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aag(x9)
U28_aag(x1, x2, x3, x4, x5, x6)  =  U28_aag(x6)
U29_aag(x1, x2, x3, x4, x5, x6)  =  U29_aag(x6)
U11_gaag(x1, x2, x3, x4, x5)  =  U11_gaag(x5)
p79_in_gaag(x1, x2, x3, x4)  =  p79_in_gaag(x1, x4)
U15_gaag(x1, x2, x3, x4, x5)  =  U15_gaag(x5)
p79_out_gaag(x1, x2, x3, x4)  =  p79_out_gaag
U16_gaag(x1, x2, x3, x4, x5)  =  U16_gaag(x4, x5)
U17_gaag(x1, x2, x3, x4, x5)  =  U17_gaag(x5)
U30_aag(x1, x2, x3, x4, x5)  =  U30_aag(x5)
U31_aag(x1, x2, x3, x4, x5, x6)  =  U31_aag(x6)
U32_aag(x1, x2, x3, x4, x5, x6)  =  U32_aag(x6)
p72_out_gaag(x1, x2, x3, x4)  =  p72_out_gaag
U33_aag(x1, x2, x3, x4, x5, x6)  =  U33_aag(x6)
p116_in_gaag(x1, x2, x3, x4)  =  p116_in_gaag(x1, x4)
U18_gaag(x1, x2, x3, x4)  =  U18_gaag(x4)
U34_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_aag(x9)
U35_aag(x1, x2, x3, x4, x5, x6)  =  U35_aag(x6)
U36_aag(x1, x2, x3, x4, x5, x6)  =  U36_aag(x6)
U19_gaag(x1, x2, x3, x4, x5)  =  U19_gaag(x5)
p116_out_gaag(x1, x2, x3, x4)  =  p116_out_gaag
U37_aag(x1, x2, x3, x4, x5)  =  U37_aag(x5)
U38_aag(x1, x2, x3, x4, x5, x6)  =  U38_aag(x6)
U39_aag(x1, x2, x3, x4, x5, x6)  =  U39_aag(x6)
U40_aag(x1, x2, x3, x4, x5)  =  U40_aag(x5)
U41_aag(x1, x2, x3, x4, x5, x6)  =  U41_aag(x6)
U42_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_aag(x9)
U43_aag(x1, x2, x3, x4, x5, x6)  =  U43_aag(x6)
U44_aag(x1, x2, x3, x4, x5, x6)  =  U44_aag(x6)
U45_aag(x1, x2, x3, x4, x5)  =  U45_aag(x5)
U46_aag(x1, x2, x3, x4, x5, x6)  =  U46_aag(x6)
U47_aag(x1, x2, x3, x4, x5, x6)  =  U47_aag(x6)
U48_aag(x1, x2, x3, x4, x5)  =  U48_aag(x5)
U49_aag(x1, x2, x3, x4, x5, x6)  =  U49_aag(x6)
LESS34_IN_AG(x1, x2)  =  LESS34_IN_AG(x2)

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

(31) UsableRulesProof (EQUIVALENT transformation)

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

(32) Obligation:

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

LESS34_IN_AG(s(T145), s(T144)) → LESS34_IN_AG(T145, T144)

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

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

(33) PiDPToQDPProof (SOUND transformation)

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

(34) Obligation:

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

LESS34_IN_AG(s(T144)) → LESS34_IN_AG(T144)

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

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

  • LESS34_IN_AG(s(T144)) → LESS34_IN_AG(T144)
    The graph contains the following edges 1 > 1

(36) YES

(37) Obligation:

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

DELMIN19_IN_AGG(tree(T90, T96, T92), T93, tree(T90, T94, T95)) → DELMIN19_IN_AGG(T96, T93, T94)

The TRS R consists of the following rules:

delete1_in_aag(T6, tree(T6, void, T7), T7) → delete1_out_aag(T6, tree(T6, void, T7), T7)
delete1_in_aag(T10, tree(T10, T11, void), T11) → delete1_out_aag(T10, tree(T10, T11, void), T11)
delete1_in_aag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32)) → delete1_out_aag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32))
delete1_in_aag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_aag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
delmin19_in_agg(tree(T76, void, T77), T76, T77) → delmin19_out_agg(tree(T76, void, T77), T76, T77)
delmin19_in_agg(tree(T90, T96, T92), T93, tree(T90, T94, T95)) → U1_agg(T90, T96, T92, T93, T94, T95, delmin19_in_agg(T96, T93, T94))
U1_agg(T90, T96, T92, T93, T94, T95, delmin19_out_agg(T96, T93, T94)) → delmin19_out_agg(tree(T90, T96, T92), T93, tree(T90, T94, T95))
U20_aag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_out_agg(T63, T60, T61)) → delete1_out_aag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62)))
delete1_in_aag(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_aag(T126, T122, T127, T124, T125, p32_in_agag(T126, T122, T127, T125))
p32_in_agag(T126, T122, T127, T125) → U7_agag(T126, T122, T127, T125, less34_in_ag(T126, T122))
less34_in_ag(0, s(T138)) → less34_out_ag(0, s(T138))
less34_in_ag(s(T145), s(T144)) → U2_ag(T145, T144, less34_in_ag(T145, T144))
U2_ag(T145, T144, less34_out_ag(T145, T144)) → less34_out_ag(s(T145), s(T144))
U7_agag(T126, T122, T127, T125, less34_out_ag(T126, T122)) → p32_out_agag(T126, T122, T127, T125)
p32_in_agag(T130, T122, T131, T125) → U8_agag(T130, T122, T131, T125, less34_in_ag(T130, T122))
U8_agag(T130, T122, T131, T125, less34_out_ag(T130, T122)) → U9_agag(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
delete1_in_gag(T6, tree(T6, void, T7), T7) → delete1_out_gag(T6, tree(T6, void, T7), T7)
delete1_in_gag(T10, tree(T10, T11, void), T11) → delete1_out_gag(T10, tree(T10, T11, void), T11)
delete1_in_gag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32)) → delete1_out_gag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32))
delete1_in_gag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_gag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
U20_gag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_out_agg(T63, T60, T61)) → delete1_out_gag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62)))
delete1_in_gag(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_gag(T126, T122, T127, T124, T125, p32_in_ggag(T126, T122, T127, T125))
p32_in_ggag(T126, T122, T127, T125) → U7_ggag(T126, T122, T127, T125, less34_in_gg(T126, T122))
less34_in_gg(0, s(T138)) → less34_out_gg(0, s(T138))
less34_in_gg(s(T145), s(T144)) → U2_gg(T145, T144, less34_in_gg(T145, T144))
U2_gg(T145, T144, less34_out_gg(T145, T144)) → less34_out_gg(s(T145), s(T144))
U7_ggag(T126, T122, T127, T125, less34_out_gg(T126, T122)) → p32_out_ggag(T126, T122, T127, T125)
p32_in_ggag(T130, T122, T131, T125) → U8_ggag(T130, T122, T131, T125, less34_in_gg(T130, T122))
U8_ggag(T130, T122, T131, T125, less34_out_gg(T130, T122)) → U9_ggag(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
delete1_in_gag(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_gag(T167, T163, T164, T168, T166, p44_in_ggag(T163, T167, T168, T166))
p44_in_ggag(T163, T167, T168, T166) → U4_ggag(T163, T167, T168, T166, less46_in_gg(T163, T167))
less46_in_gg(0, s(T179)) → less46_out_gg(0, s(T179))
less46_in_gg(s(T184), s(T186)) → U3_gg(T184, T186, less46_in_gg(T184, T186))
U3_gg(T184, T186, less46_out_gg(T184, T186)) → less46_out_gg(s(T184), s(T186))
U4_ggag(T163, T167, T168, T166, less46_out_gg(T163, T167)) → p44_out_ggag(T163, T167, T168, T166)
p44_in_ggag(T163, T171, T172, T166) → U5_ggag(T163, T171, T172, T166, less46_in_gg(T163, T171))
U5_ggag(T163, T171, T172, T166, less46_out_gg(T163, T171)) → U6_ggag(T163, T171, T172, T166, delete1_in_gag(T171, T172, T166))
delete1_in_gag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_gag(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
delete1_in_gag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_gag(T223, T222, T224, T201, T202, p65_in_ggag(T223, T222, T224, T202))
p65_in_ggag(T223, T222, T224, T202) → U12_ggag(T223, T222, T224, T202, less34_in_gg(T223, T222))
U12_ggag(T223, T222, T224, T202, less34_out_gg(T223, T222)) → p65_out_ggag(T223, T222, T224, T202)
p65_in_ggag(T227, T222, T228, T202) → U13_ggag(T227, T222, T228, T202, less34_in_gg(T227, T222))
U13_ggag(T227, T222, T228, T202, less34_out_gg(T227, T222)) → U14_ggag(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
delete1_in_gag(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_gag(T250, T246, T247, T251, T249, p44_in_ggag(T246, T250, T251, T249))
U25_gag(T250, T246, T247, T251, T249, p44_out_ggag(T246, T250, T251, T249)) → delete1_out_gag(T250, tree(T246, T247, T251), tree(T246, T247, T249))
delete1_in_gag(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_gag(T264, T260, T261, T265, T263, p72_in_ggag(T260, T264, T265, T263))
p72_in_ggag(0, s(T272), T271, T263) → U10_ggag(T272, T271, T263, delete1_in_gag(s(T272), T271, T263))
delete1_in_gag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_gag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
U27_gag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_out_agg(T346, T343, T344)) → delete1_out_gag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345)))
delete1_in_gag(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_gag(T376, T372, T377, T374, T375, p32_in_ggag(T376, T372, T377, T375))
U28_gag(T376, T372, T377, T374, T375, p32_out_ggag(T376, T372, T377, T375)) → delete1_out_gag(T376, tree(T372, T377, T374), tree(T372, T375, T374))
delete1_in_gag(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_gag(T395, T391, T392, T396, T394, p72_in_ggag(T391, T395, T396, T394))
p72_in_ggag(s(T281), s(T283), T284, T263) → U11_ggag(T281, T283, T284, T263, p79_in_ggag(T281, T283, T284, T263))
p79_in_ggag(T281, T283, T284, T263) → U15_ggag(T281, T283, T284, T263, less46_in_gg(T281, T283))
U15_ggag(T281, T283, T284, T263, less46_out_gg(T281, T283)) → p79_out_ggag(T281, T283, T284, T263)
p79_in_ggag(T281, T287, T288, T263) → U16_ggag(T281, T287, T288, T263, less46_in_gg(T281, T287))
U16_ggag(T281, T287, T288, T263, less46_out_gg(T281, T287)) → U17_ggag(T281, T287, T288, T263, delete1_in_gag(s(T287), T288, T263))
delete1_in_gag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_gag(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
delete1_in_gag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_gag(T429, T428, T430, T407, T408, p65_in_ggag(T429, T428, T430, T408))
U31_gag(T429, T428, T430, T407, T408, p65_out_ggag(T429, T428, T430, T408)) → delete1_out_gag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407))
delete1_in_gag(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_gag(T448, T444, T445, T449, T447, p72_in_ggag(T444, T448, T449, T447))
U32_gag(T448, T444, T445, T449, T447, p72_out_ggag(T444, T448, T449, T447)) → delete1_out_gag(T448, tree(T444, T445, T449), tree(T444, T445, T447))
delete1_in_gag(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_gag(T462, T458, T459, T463, T461, p116_in_ggag(T458, T462, T463, T461))
p116_in_ggag(0, s(T470), T469, T461) → U18_ggag(T470, T469, T461, delete1_in_gag(s(T470), T469, T461))
delete1_in_gag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_gag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
U34_gag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_out_agg(T540, T537, T538)) → delete1_out_gag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539)))
delete1_in_gag(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_gag(T570, T566, T571, T568, T569, p32_in_ggag(T570, T566, T571, T569))
U35_gag(T570, T566, T571, T568, T569, p32_out_ggag(T570, T566, T571, T569)) → delete1_out_gag(T570, tree(T566, T571, T568), tree(T566, T569, T568))
delete1_in_gag(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_gag(T589, T585, T586, T590, T588, p116_in_ggag(T585, T589, T590, T588))
p116_in_ggag(s(T479), s(T481), T482, T461) → U19_ggag(T479, T481, T482, T461, p79_in_ggag(T479, T481, T482, T461))
U19_ggag(T479, T481, T482, T461, p79_out_ggag(T479, T481, T482, T461)) → p116_out_ggag(s(T479), s(T481), T482, T461)
U36_gag(T589, T585, T586, T590, T588, p116_out_ggag(T585, T589, T590, T588)) → delete1_out_gag(T589, tree(T585, T586, T590), tree(T585, T586, T588))
delete1_in_gag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_gag(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
delete1_in_gag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_gag(T623, T622, T624, T601, T602, p65_in_ggag(T623, T622, T624, T602))
U38_gag(T623, T622, T624, T601, T602, p65_out_ggag(T623, T622, T624, T602)) → delete1_out_gag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601))
delete1_in_gag(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_gag(T642, T638, T639, T643, T641, p116_in_ggag(T638, T642, T643, T641))
U39_gag(T642, T638, T639, T643, T641, p116_out_ggag(T638, T642, T643, T641)) → delete1_out_gag(T642, tree(T638, T639, T643), tree(T638, T639, T641))
delete1_in_gag(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_gag(T664, T653, T663, T655, delete1_in_gag(s(T664), T663, T655))
delete1_in_gag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_gag(T675, T673, T653, T676, T655, p79_in_ggag(T673, T675, T676, T655))
U41_gag(T675, T673, T653, T676, T655, p79_out_ggag(T673, T675, T676, T655)) → delete1_out_gag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655))
delete1_in_gag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_gag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
U42_gag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_out_agg(T730, T727, T728)) → delete1_out_gag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729)))
delete1_in_gag(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_gag(T760, T756, T761, T758, T759, p32_in_ggag(T760, T756, T761, T759))
U43_gag(T760, T756, T761, T758, T759, p32_out_ggag(T760, T756, T761, T759)) → delete1_out_gag(T760, tree(T756, T761, T758), tree(T756, T759, T758))
delete1_in_gag(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_gag(T779, T775, T776, T780, T778, p116_in_ggag(T775, T779, T780, T778))
U44_gag(T779, T775, T776, T780, T778, p116_out_ggag(T775, T779, T780, T778)) → delete1_out_gag(T779, tree(T775, T776, T780), tree(T775, T776, T778))
delete1_in_gag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_gag(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
delete1_in_gag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_gag(T813, T812, T814, T791, T792, p65_in_ggag(T813, T812, T814, T792))
U46_gag(T813, T812, T814, T791, T792, p65_out_ggag(T813, T812, T814, T792)) → delete1_out_gag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791))
delete1_in_gag(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_gag(T832, T828, T829, T833, T831, p116_in_ggag(T828, T832, T833, T831))
U47_gag(T832, T828, T829, T833, T831, p116_out_ggag(T828, T832, T833, T831)) → delete1_out_gag(T832, tree(T828, T829, T833), tree(T828, T829, T831))
delete1_in_gag(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_gag(T854, T843, T853, T845, delete1_in_gag(s(T854), T853, T845))
delete1_in_gag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_gag(T865, T863, T843, T866, T845, p79_in_ggag(T863, T865, T866, T845))
U49_gag(T865, T863, T843, T866, T845, p79_out_ggag(T863, T865, T866, T845)) → delete1_out_gag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845))
U48_gag(T854, T843, T853, T845, delete1_out_gag(s(T854), T853, T845)) → delete1_out_gag(s(T854), tree(0, T843, T853), tree(0, T843, T845))
U45_gag(T799, T800, T791, T792, delete1_out_gag(0, T800, T792)) → delete1_out_gag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791))
U40_gag(T664, T653, T663, T655, delete1_out_gag(s(T664), T663, T655)) → delete1_out_gag(s(T664), tree(0, T653, T663), tree(0, T653, T655))
U37_gag(T609, T610, T601, T602, delete1_out_gag(0, T610, T602)) → delete1_out_gag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601))
U18_ggag(T470, T469, T461, delete1_out_gag(s(T470), T469, T461)) → p116_out_ggag(0, s(T470), T469, T461)
U33_gag(T462, T458, T459, T463, T461, p116_out_ggag(T458, T462, T463, T461)) → delete1_out_gag(T462, tree(T458, T459, T463), tree(T458, T459, T461))
U30_gag(T415, T416, T407, T408, delete1_out_gag(0, T416, T408)) → delete1_out_gag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407))
U17_ggag(T281, T287, T288, T263, delete1_out_gag(s(T287), T288, T263)) → p79_out_ggag(T281, T287, T288, T263)
U11_ggag(T281, T283, T284, T263, p79_out_ggag(T281, T283, T284, T263)) → p72_out_ggag(s(T281), s(T283), T284, T263)
U29_gag(T395, T391, T392, T396, T394, p72_out_ggag(T391, T395, T396, T394)) → delete1_out_gag(T395, tree(T391, T392, T396), tree(T391, T392, T394))
U10_ggag(T272, T271, T263, delete1_out_gag(s(T272), T271, T263)) → p72_out_ggag(0, s(T272), T271, T263)
U26_gag(T264, T260, T261, T265, T263, p72_out_ggag(T260, T264, T265, T263)) → delete1_out_gag(T264, tree(T260, T261, T265), tree(T260, T261, T263))
U14_ggag(T227, T222, T228, T202, delete1_out_gag(s(T227), T228, T202)) → p65_out_ggag(T227, T222, T228, T202)
U24_gag(T223, T222, T224, T201, T202, p65_out_ggag(T223, T222, T224, T202)) → delete1_out_gag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201))
U23_gag(T209, T210, T201, T202, delete1_out_gag(0, T210, T202)) → delete1_out_gag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201))
U6_ggag(T163, T171, T172, T166, delete1_out_gag(T171, T172, T166)) → p44_out_ggag(T163, T171, T172, T166)
U22_gag(T167, T163, T164, T168, T166, p44_out_ggag(T163, T167, T168, T166)) → delete1_out_gag(T167, tree(T163, T164, T168), tree(T163, T164, T166))
U9_ggag(T130, T122, T131, T125, delete1_out_gag(T130, T131, T125)) → p32_out_ggag(T130, T122, T131, T125)
U21_gag(T126, T122, T127, T124, T125, p32_out_ggag(T126, T122, T127, T125)) → delete1_out_gag(T126, tree(T122, T127, T124), tree(T122, T125, T124))
U9_agag(T130, T122, T131, T125, delete1_out_gag(T130, T131, T125)) → p32_out_agag(T130, T122, T131, T125)
U21_aag(T126, T122, T127, T124, T125, p32_out_agag(T126, T122, T127, T125)) → delete1_out_aag(T126, tree(T122, T127, T124), tree(T122, T125, T124))
delete1_in_aag(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_aag(T167, T163, T164, T168, T166, p44_in_gaag(T163, T167, T168, T166))
p44_in_gaag(T163, T167, T168, T166) → U4_gaag(T163, T167, T168, T166, less46_in_ga(T163, T167))
less46_in_ga(0, s(T179)) → less46_out_ga(0, s(T179))
less46_in_ga(s(T184), s(T186)) → U3_ga(T184, T186, less46_in_ga(T184, T186))
U3_ga(T184, T186, less46_out_ga(T184, T186)) → less46_out_ga(s(T184), s(T186))
U4_gaag(T163, T167, T168, T166, less46_out_ga(T163, T167)) → p44_out_gaag(T163, T167, T168, T166)
p44_in_gaag(T163, T171, T172, T166) → U5_gaag(T163, T171, T172, T166, less46_in_ga(T163, T171))
U5_gaag(T163, T171, T172, T166, less46_out_ga(T163, T171)) → U6_gaag(T163, T171, T172, T166, delete1_in_aag(T171, T172, T166))
delete1_in_aag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_aag(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
U23_aag(T209, T210, T201, T202, delete1_out_gag(0, T210, T202)) → delete1_out_aag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201))
delete1_in_aag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_aag(T223, T222, T224, T201, T202, p65_in_agag(T223, T222, T224, T202))
p65_in_agag(T223, T222, T224, T202) → U12_agag(T223, T222, T224, T202, less34_in_ag(T223, T222))
U12_agag(T223, T222, T224, T202, less34_out_ag(T223, T222)) → p65_out_agag(T223, T222, T224, T202)
p65_in_agag(T227, T222, T228, T202) → U13_agag(T227, T222, T228, T202, less34_in_ag(T227, T222))
U13_agag(T227, T222, T228, T202, less34_out_ag(T227, T222)) → U14_agag(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
U14_agag(T227, T222, T228, T202, delete1_out_gag(s(T227), T228, T202)) → p65_out_agag(T227, T222, T228, T202)
U24_aag(T223, T222, T224, T201, T202, p65_out_agag(T223, T222, T224, T202)) → delete1_out_aag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201))
delete1_in_aag(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_aag(T250, T246, T247, T251, T249, p44_in_gaag(T246, T250, T251, T249))
U25_aag(T250, T246, T247, T251, T249, p44_out_gaag(T246, T250, T251, T249)) → delete1_out_aag(T250, tree(T246, T247, T251), tree(T246, T247, T249))
delete1_in_aag(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_aag(T264, T260, T261, T265, T263, p72_in_gaag(T260, T264, T265, T263))
p72_in_gaag(0, s(T272), T271, T263) → U10_gaag(T272, T271, T263, delete1_in_aag(s(T272), T271, T263))
delete1_in_aag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_aag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
U27_aag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_out_agg(T346, T343, T344)) → delete1_out_aag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345)))
delete1_in_aag(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_aag(T376, T372, T377, T374, T375, p32_in_agag(T376, T372, T377, T375))
U28_aag(T376, T372, T377, T374, T375, p32_out_agag(T376, T372, T377, T375)) → delete1_out_aag(T376, tree(T372, T377, T374), tree(T372, T375, T374))
delete1_in_aag(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_aag(T395, T391, T392, T396, T394, p72_in_gaag(T391, T395, T396, T394))
p72_in_gaag(s(T281), s(T283), T284, T263) → U11_gaag(T281, T283, T284, T263, p79_in_gaag(T281, T283, T284, T263))
p79_in_gaag(T281, T283, T284, T263) → U15_gaag(T281, T283, T284, T263, less46_in_ga(T281, T283))
U15_gaag(T281, T283, T284, T263, less46_out_ga(T281, T283)) → p79_out_gaag(T281, T283, T284, T263)
p79_in_gaag(T281, T287, T288, T263) → U16_gaag(T281, T287, T288, T263, less46_in_ga(T281, T287))
U16_gaag(T281, T287, T288, T263, less46_out_ga(T281, T287)) → U17_gaag(T281, T287, T288, T263, delete1_in_aag(s(T287), T288, T263))
delete1_in_aag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_aag(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
U30_aag(T415, T416, T407, T408, delete1_out_gag(0, T416, T408)) → delete1_out_aag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407))
delete1_in_aag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_aag(T429, T428, T430, T407, T408, p65_in_agag(T429, T428, T430, T408))
U31_aag(T429, T428, T430, T407, T408, p65_out_agag(T429, T428, T430, T408)) → delete1_out_aag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407))
delete1_in_aag(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_aag(T448, T444, T445, T449, T447, p72_in_gaag(T444, T448, T449, T447))
U32_aag(T448, T444, T445, T449, T447, p72_out_gaag(T444, T448, T449, T447)) → delete1_out_aag(T448, tree(T444, T445, T449), tree(T444, T445, T447))
delete1_in_aag(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_aag(T462, T458, T459, T463, T461, p116_in_gaag(T458, T462, T463, T461))
p116_in_gaag(0, s(T470), T469, T461) → U18_gaag(T470, T469, T461, delete1_in_aag(s(T470), T469, T461))
delete1_in_aag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_aag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
U34_aag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_out_agg(T540, T537, T538)) → delete1_out_aag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539)))
delete1_in_aag(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_aag(T570, T566, T571, T568, T569, p32_in_agag(T570, T566, T571, T569))
U35_aag(T570, T566, T571, T568, T569, p32_out_agag(T570, T566, T571, T569)) → delete1_out_aag(T570, tree(T566, T571, T568), tree(T566, T569, T568))
delete1_in_aag(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_aag(T589, T585, T586, T590, T588, p116_in_gaag(T585, T589, T590, T588))
p116_in_gaag(s(T479), s(T481), T482, T461) → U19_gaag(T479, T481, T482, T461, p79_in_gaag(T479, T481, T482, T461))
U19_gaag(T479, T481, T482, T461, p79_out_gaag(T479, T481, T482, T461)) → p116_out_gaag(s(T479), s(T481), T482, T461)
U36_aag(T589, T585, T586, T590, T588, p116_out_gaag(T585, T589, T590, T588)) → delete1_out_aag(T589, tree(T585, T586, T590), tree(T585, T586, T588))
delete1_in_aag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_aag(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
U37_aag(T609, T610, T601, T602, delete1_out_gag(0, T610, T602)) → delete1_out_aag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601))
delete1_in_aag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_aag(T623, T622, T624, T601, T602, p65_in_agag(T623, T622, T624, T602))
U38_aag(T623, T622, T624, T601, T602, p65_out_agag(T623, T622, T624, T602)) → delete1_out_aag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601))
delete1_in_aag(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_aag(T642, T638, T639, T643, T641, p116_in_gaag(T638, T642, T643, T641))
U39_aag(T642, T638, T639, T643, T641, p116_out_gaag(T638, T642, T643, T641)) → delete1_out_aag(T642, tree(T638, T639, T643), tree(T638, T639, T641))
delete1_in_aag(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_aag(T664, T653, T663, T655, delete1_in_aag(s(T664), T663, T655))
delete1_in_aag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_aag(T675, T673, T653, T676, T655, p79_in_gaag(T673, T675, T676, T655))
U41_aag(T675, T673, T653, T676, T655, p79_out_gaag(T673, T675, T676, T655)) → delete1_out_aag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655))
delete1_in_aag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_aag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
U42_aag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_out_agg(T730, T727, T728)) → delete1_out_aag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729)))
delete1_in_aag(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_aag(T760, T756, T761, T758, T759, p32_in_agag(T760, T756, T761, T759))
U43_aag(T760, T756, T761, T758, T759, p32_out_agag(T760, T756, T761, T759)) → delete1_out_aag(T760, tree(T756, T761, T758), tree(T756, T759, T758))
delete1_in_aag(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_aag(T779, T775, T776, T780, T778, p116_in_gaag(T775, T779, T780, T778))
U44_aag(T779, T775, T776, T780, T778, p116_out_gaag(T775, T779, T780, T778)) → delete1_out_aag(T779, tree(T775, T776, T780), tree(T775, T776, T778))
delete1_in_aag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_aag(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
U45_aag(T799, T800, T791, T792, delete1_out_gag(0, T800, T792)) → delete1_out_aag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791))
delete1_in_aag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_aag(T813, T812, T814, T791, T792, p65_in_agag(T813, T812, T814, T792))
U46_aag(T813, T812, T814, T791, T792, p65_out_agag(T813, T812, T814, T792)) → delete1_out_aag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791))
delete1_in_aag(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_aag(T832, T828, T829, T833, T831, p116_in_gaag(T828, T832, T833, T831))
U47_aag(T832, T828, T829, T833, T831, p116_out_gaag(T828, T832, T833, T831)) → delete1_out_aag(T832, tree(T828, T829, T833), tree(T828, T829, T831))
delete1_in_aag(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_aag(T854, T843, T853, T845, delete1_in_aag(s(T854), T853, T845))
delete1_in_aag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_aag(T865, T863, T843, T866, T845, p79_in_gaag(T863, T865, T866, T845))
U49_aag(T865, T863, T843, T866, T845, p79_out_gaag(T863, T865, T866, T845)) → delete1_out_aag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845))
U48_aag(T854, T843, T853, T845, delete1_out_aag(s(T854), T853, T845)) → delete1_out_aag(s(T854), tree(0, T843, T853), tree(0, T843, T845))
U40_aag(T664, T653, T663, T655, delete1_out_aag(s(T664), T663, T655)) → delete1_out_aag(s(T664), tree(0, T653, T663), tree(0, T653, T655))
U18_gaag(T470, T469, T461, delete1_out_aag(s(T470), T469, T461)) → p116_out_gaag(0, s(T470), T469, T461)
U33_aag(T462, T458, T459, T463, T461, p116_out_gaag(T458, T462, T463, T461)) → delete1_out_aag(T462, tree(T458, T459, T463), tree(T458, T459, T461))
U17_gaag(T281, T287, T288, T263, delete1_out_aag(s(T287), T288, T263)) → p79_out_gaag(T281, T287, T288, T263)
U11_gaag(T281, T283, T284, T263, p79_out_gaag(T281, T283, T284, T263)) → p72_out_gaag(s(T281), s(T283), T284, T263)
U29_aag(T395, T391, T392, T396, T394, p72_out_gaag(T391, T395, T396, T394)) → delete1_out_aag(T395, tree(T391, T392, T396), tree(T391, T392, T394))
U10_gaag(T272, T271, T263, delete1_out_aag(s(T272), T271, T263)) → p72_out_gaag(0, s(T272), T271, T263)
U26_aag(T264, T260, T261, T265, T263, p72_out_gaag(T260, T264, T265, T263)) → delete1_out_aag(T264, tree(T260, T261, T265), tree(T260, T261, T263))
U6_gaag(T163, T171, T172, T166, delete1_out_aag(T171, T172, T166)) → p44_out_gaag(T163, T171, T172, T166)
U22_aag(T167, T163, T164, T168, T166, p44_out_gaag(T163, T167, T168, T166)) → delete1_out_aag(T167, tree(T163, T164, T168), tree(T163, T164, T166))

The argument filtering Pi contains the following mapping:
delete1_in_aag(x1, x2, x3)  =  delete1_in_aag(x3)
delete1_out_aag(x1, x2, x3)  =  delete1_out_aag
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U20_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aag(x9)
delmin19_in_agg(x1, x2, x3)  =  delmin19_in_agg(x2, x3)
delmin19_out_agg(x1, x2, x3)  =  delmin19_out_agg
U1_agg(x1, x2, x3, x4, x5, x6, x7)  =  U1_agg(x7)
U21_aag(x1, x2, x3, x4, x5, x6)  =  U21_aag(x6)
p32_in_agag(x1, x2, x3, x4)  =  p32_in_agag(x2, x4)
U7_agag(x1, x2, x3, x4, x5)  =  U7_agag(x5)
less34_in_ag(x1, x2)  =  less34_in_ag(x2)
s(x1)  =  s(x1)
less34_out_ag(x1, x2)  =  less34_out_ag(x1)
U2_ag(x1, x2, x3)  =  U2_ag(x3)
p32_out_agag(x1, x2, x3, x4)  =  p32_out_agag(x1)
U8_agag(x1, x2, x3, x4, x5)  =  U8_agag(x4, x5)
U9_agag(x1, x2, x3, x4, x5)  =  U9_agag(x1, x5)
delete1_in_gag(x1, x2, x3)  =  delete1_in_gag(x1, x3)
delete1_out_gag(x1, x2, x3)  =  delete1_out_gag
U20_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gag(x9)
U21_gag(x1, x2, x3, x4, x5, x6)  =  U21_gag(x6)
p32_in_ggag(x1, x2, x3, x4)  =  p32_in_ggag(x1, x2, x4)
U7_ggag(x1, x2, x3, x4, x5)  =  U7_ggag(x5)
less34_in_gg(x1, x2)  =  less34_in_gg(x1, x2)
0  =  0
less34_out_gg(x1, x2)  =  less34_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
p32_out_ggag(x1, x2, x3, x4)  =  p32_out_ggag
U8_ggag(x1, x2, x3, x4, x5)  =  U8_ggag(x1, x4, x5)
U9_ggag(x1, x2, x3, x4, x5)  =  U9_ggag(x5)
U22_gag(x1, x2, x3, x4, x5, x6)  =  U22_gag(x6)
p44_in_ggag(x1, x2, x3, x4)  =  p44_in_ggag(x1, x2, x4)
U4_ggag(x1, x2, x3, x4, x5)  =  U4_ggag(x5)
less46_in_gg(x1, x2)  =  less46_in_gg(x1, x2)
less46_out_gg(x1, x2)  =  less46_out_gg
U3_gg(x1, x2, x3)  =  U3_gg(x3)
p44_out_ggag(x1, x2, x3, x4)  =  p44_out_ggag
U5_ggag(x1, x2, x3, x4, x5)  =  U5_ggag(x2, x4, x5)
U6_ggag(x1, x2, x3, x4, x5)  =  U6_ggag(x5)
U23_gag(x1, x2, x3, x4, x5)  =  U23_gag(x5)
U24_gag(x1, x2, x3, x4, x5, x6)  =  U24_gag(x6)
p65_in_ggag(x1, x2, x3, x4)  =  p65_in_ggag(x1, x2, x4)
U12_ggag(x1, x2, x3, x4, x5)  =  U12_ggag(x5)
p65_out_ggag(x1, x2, x3, x4)  =  p65_out_ggag
U13_ggag(x1, x2, x3, x4, x5)  =  U13_ggag(x1, x4, x5)
U14_ggag(x1, x2, x3, x4, x5)  =  U14_ggag(x5)
U25_gag(x1, x2, x3, x4, x5, x6)  =  U25_gag(x6)
U26_gag(x1, x2, x3, x4, x5, x6)  =  U26_gag(x6)
p72_in_ggag(x1, x2, x3, x4)  =  p72_in_ggag(x1, x2, x4)
U10_ggag(x1, x2, x3, x4)  =  U10_ggag(x4)
U27_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gag(x9)
U28_gag(x1, x2, x3, x4, x5, x6)  =  U28_gag(x6)
U29_gag(x1, x2, x3, x4, x5, x6)  =  U29_gag(x6)
U11_ggag(x1, x2, x3, x4, x5)  =  U11_ggag(x5)
p79_in_ggag(x1, x2, x3, x4)  =  p79_in_ggag(x1, x2, x4)
U15_ggag(x1, x2, x3, x4, x5)  =  U15_ggag(x5)
p79_out_ggag(x1, x2, x3, x4)  =  p79_out_ggag
U16_ggag(x1, x2, x3, x4, x5)  =  U16_ggag(x2, x4, x5)
U17_ggag(x1, x2, x3, x4, x5)  =  U17_ggag(x5)
U30_gag(x1, x2, x3, x4, x5)  =  U30_gag(x5)
U31_gag(x1, x2, x3, x4, x5, x6)  =  U31_gag(x6)
U32_gag(x1, x2, x3, x4, x5, x6)  =  U32_gag(x6)
p72_out_ggag(x1, x2, x3, x4)  =  p72_out_ggag
U33_gag(x1, x2, x3, x4, x5, x6)  =  U33_gag(x6)
p116_in_ggag(x1, x2, x3, x4)  =  p116_in_ggag(x1, x2, x4)
U18_ggag(x1, x2, x3, x4)  =  U18_ggag(x4)
U34_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_gag(x9)
U35_gag(x1, x2, x3, x4, x5, x6)  =  U35_gag(x6)
U36_gag(x1, x2, x3, x4, x5, x6)  =  U36_gag(x6)
U19_ggag(x1, x2, x3, x4, x5)  =  U19_ggag(x5)
p116_out_ggag(x1, x2, x3, x4)  =  p116_out_ggag
U37_gag(x1, x2, x3, x4, x5)  =  U37_gag(x5)
U38_gag(x1, x2, x3, x4, x5, x6)  =  U38_gag(x6)
U39_gag(x1, x2, x3, x4, x5, x6)  =  U39_gag(x6)
U40_gag(x1, x2, x3, x4, x5)  =  U40_gag(x5)
U41_gag(x1, x2, x3, x4, x5, x6)  =  U41_gag(x6)
U42_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_gag(x9)
U43_gag(x1, x2, x3, x4, x5, x6)  =  U43_gag(x6)
U44_gag(x1, x2, x3, x4, x5, x6)  =  U44_gag(x6)
U45_gag(x1, x2, x3, x4, x5)  =  U45_gag(x5)
U46_gag(x1, x2, x3, x4, x5, x6)  =  U46_gag(x6)
U47_gag(x1, x2, x3, x4, x5, x6)  =  U47_gag(x6)
U48_gag(x1, x2, x3, x4, x5)  =  U48_gag(x5)
U49_gag(x1, x2, x3, x4, x5, x6)  =  U49_gag(x6)
U22_aag(x1, x2, x3, x4, x5, x6)  =  U22_aag(x6)
p44_in_gaag(x1, x2, x3, x4)  =  p44_in_gaag(x1, x4)
U4_gaag(x1, x2, x3, x4, x5)  =  U4_gaag(x5)
less46_in_ga(x1, x2)  =  less46_in_ga(x1)
less46_out_ga(x1, x2)  =  less46_out_ga
U3_ga(x1, x2, x3)  =  U3_ga(x3)
p44_out_gaag(x1, x2, x3, x4)  =  p44_out_gaag
U5_gaag(x1, x2, x3, x4, x5)  =  U5_gaag(x4, x5)
U6_gaag(x1, x2, x3, x4, x5)  =  U6_gaag(x5)
U23_aag(x1, x2, x3, x4, x5)  =  U23_aag(x5)
U24_aag(x1, x2, x3, x4, x5, x6)  =  U24_aag(x6)
p65_in_agag(x1, x2, x3, x4)  =  p65_in_agag(x2, x4)
U12_agag(x1, x2, x3, x4, x5)  =  U12_agag(x5)
p65_out_agag(x1, x2, x3, x4)  =  p65_out_agag(x1)
U13_agag(x1, x2, x3, x4, x5)  =  U13_agag(x4, x5)
U14_agag(x1, x2, x3, x4, x5)  =  U14_agag(x1, x5)
U25_aag(x1, x2, x3, x4, x5, x6)  =  U25_aag(x6)
U26_aag(x1, x2, x3, x4, x5, x6)  =  U26_aag(x6)
p72_in_gaag(x1, x2, x3, x4)  =  p72_in_gaag(x1, x4)
U10_gaag(x1, x2, x3, x4)  =  U10_gaag(x4)
U27_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aag(x9)
U28_aag(x1, x2, x3, x4, x5, x6)  =  U28_aag(x6)
U29_aag(x1, x2, x3, x4, x5, x6)  =  U29_aag(x6)
U11_gaag(x1, x2, x3, x4, x5)  =  U11_gaag(x5)
p79_in_gaag(x1, x2, x3, x4)  =  p79_in_gaag(x1, x4)
U15_gaag(x1, x2, x3, x4, x5)  =  U15_gaag(x5)
p79_out_gaag(x1, x2, x3, x4)  =  p79_out_gaag
U16_gaag(x1, x2, x3, x4, x5)  =  U16_gaag(x4, x5)
U17_gaag(x1, x2, x3, x4, x5)  =  U17_gaag(x5)
U30_aag(x1, x2, x3, x4, x5)  =  U30_aag(x5)
U31_aag(x1, x2, x3, x4, x5, x6)  =  U31_aag(x6)
U32_aag(x1, x2, x3, x4, x5, x6)  =  U32_aag(x6)
p72_out_gaag(x1, x2, x3, x4)  =  p72_out_gaag
U33_aag(x1, x2, x3, x4, x5, x6)  =  U33_aag(x6)
p116_in_gaag(x1, x2, x3, x4)  =  p116_in_gaag(x1, x4)
U18_gaag(x1, x2, x3, x4)  =  U18_gaag(x4)
U34_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_aag(x9)
U35_aag(x1, x2, x3, x4, x5, x6)  =  U35_aag(x6)
U36_aag(x1, x2, x3, x4, x5, x6)  =  U36_aag(x6)
U19_gaag(x1, x2, x3, x4, x5)  =  U19_gaag(x5)
p116_out_gaag(x1, x2, x3, x4)  =  p116_out_gaag
U37_aag(x1, x2, x3, x4, x5)  =  U37_aag(x5)
U38_aag(x1, x2, x3, x4, x5, x6)  =  U38_aag(x6)
U39_aag(x1, x2, x3, x4, x5, x6)  =  U39_aag(x6)
U40_aag(x1, x2, x3, x4, x5)  =  U40_aag(x5)
U41_aag(x1, x2, x3, x4, x5, x6)  =  U41_aag(x6)
U42_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_aag(x9)
U43_aag(x1, x2, x3, x4, x5, x6)  =  U43_aag(x6)
U44_aag(x1, x2, x3, x4, x5, x6)  =  U44_aag(x6)
U45_aag(x1, x2, x3, x4, x5)  =  U45_aag(x5)
U46_aag(x1, x2, x3, x4, x5, x6)  =  U46_aag(x6)
U47_aag(x1, x2, x3, x4, x5, x6)  =  U47_aag(x6)
U48_aag(x1, x2, x3, x4, x5)  =  U48_aag(x5)
U49_aag(x1, x2, x3, x4, x5, x6)  =  U49_aag(x6)
DELMIN19_IN_AGG(x1, x2, x3)  =  DELMIN19_IN_AGG(x2, x3)

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

(38) UsableRulesProof (EQUIVALENT transformation)

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

(39) Obligation:

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

DELMIN19_IN_AGG(tree(T90, T96, T92), T93, tree(T90, T94, T95)) → DELMIN19_IN_AGG(T96, T93, T94)

R is empty.
The argument filtering Pi contains the following mapping:
tree(x1, x2, x3)  =  tree(x1, x2, x3)
DELMIN19_IN_AGG(x1, x2, x3)  =  DELMIN19_IN_AGG(x2, x3)

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

(40) PiDPToQDPProof (SOUND transformation)

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

(41) Obligation:

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

DELMIN19_IN_AGG(T93, tree(T90, T94, T95)) → DELMIN19_IN_AGG(T93, T94)

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

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

  • DELMIN19_IN_AGG(T93, tree(T90, T94, T95)) → DELMIN19_IN_AGG(T93, T94)
    The graph contains the following edges 1 >= 1, 2 > 2

(43) YES

(44) Obligation:

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

DELETE1_IN_GAG(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → P32_IN_GGAG(T126, T122, T127, T125)
P32_IN_GGAG(T130, T122, T131, T125) → U8_GGAG(T130, T122, T131, T125, less34_in_gg(T130, T122))
U8_GGAG(T130, T122, T131, T125, less34_out_gg(T130, T122)) → DELETE1_IN_GAG(T130, T131, T125)
DELETE1_IN_GAG(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → P44_IN_GGAG(T163, T167, T168, T166)
P44_IN_GGAG(T163, T171, T172, T166) → U5_GGAG(T163, T171, T172, T166, less46_in_gg(T163, T171))
U5_GGAG(T163, T171, T172, T166, less46_out_gg(T163, T171)) → DELETE1_IN_GAG(T171, T172, T166)
DELETE1_IN_GAG(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → DELETE1_IN_GAG(0, T210, T202)
DELETE1_IN_GAG(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → P72_IN_GGAG(T260, T264, T265, T263)
P72_IN_GGAG(0, s(T272), T271, T263) → DELETE1_IN_GAG(s(T272), T271, T263)
DELETE1_IN_GAG(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → P65_IN_GGAG(T223, T222, T224, T202)
P65_IN_GGAG(T227, T222, T228, T202) → U13_GGAG(T227, T222, T228, T202, less34_in_gg(T227, T222))
U13_GGAG(T227, T222, T228, T202, less34_out_gg(T227, T222)) → DELETE1_IN_GAG(s(T227), T228, T202)
DELETE1_IN_GAG(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → P116_IN_GGAG(T458, T462, T463, T461)
P116_IN_GGAG(0, s(T470), T469, T461) → DELETE1_IN_GAG(s(T470), T469, T461)
DELETE1_IN_GAG(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → DELETE1_IN_GAG(s(T664), T663, T655)
DELETE1_IN_GAG(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → P79_IN_GGAG(T673, T675, T676, T655)
P79_IN_GGAG(T281, T287, T288, T263) → U16_GGAG(T281, T287, T288, T263, less46_in_gg(T281, T287))
U16_GGAG(T281, T287, T288, T263, less46_out_gg(T281, T287)) → DELETE1_IN_GAG(s(T287), T288, T263)
P116_IN_GGAG(s(T479), s(T481), T482, T461) → P79_IN_GGAG(T479, T481, T482, T461)
P72_IN_GGAG(s(T281), s(T283), T284, T263) → P79_IN_GGAG(T281, T283, T284, T263)

The TRS R consists of the following rules:

delete1_in_aag(T6, tree(T6, void, T7), T7) → delete1_out_aag(T6, tree(T6, void, T7), T7)
delete1_in_aag(T10, tree(T10, T11, void), T11) → delete1_out_aag(T10, tree(T10, T11, void), T11)
delete1_in_aag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32)) → delete1_out_aag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32))
delete1_in_aag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_aag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
delmin19_in_agg(tree(T76, void, T77), T76, T77) → delmin19_out_agg(tree(T76, void, T77), T76, T77)
delmin19_in_agg(tree(T90, T96, T92), T93, tree(T90, T94, T95)) → U1_agg(T90, T96, T92, T93, T94, T95, delmin19_in_agg(T96, T93, T94))
U1_agg(T90, T96, T92, T93, T94, T95, delmin19_out_agg(T96, T93, T94)) → delmin19_out_agg(tree(T90, T96, T92), T93, tree(T90, T94, T95))
U20_aag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_out_agg(T63, T60, T61)) → delete1_out_aag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62)))
delete1_in_aag(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_aag(T126, T122, T127, T124, T125, p32_in_agag(T126, T122, T127, T125))
p32_in_agag(T126, T122, T127, T125) → U7_agag(T126, T122, T127, T125, less34_in_ag(T126, T122))
less34_in_ag(0, s(T138)) → less34_out_ag(0, s(T138))
less34_in_ag(s(T145), s(T144)) → U2_ag(T145, T144, less34_in_ag(T145, T144))
U2_ag(T145, T144, less34_out_ag(T145, T144)) → less34_out_ag(s(T145), s(T144))
U7_agag(T126, T122, T127, T125, less34_out_ag(T126, T122)) → p32_out_agag(T126, T122, T127, T125)
p32_in_agag(T130, T122, T131, T125) → U8_agag(T130, T122, T131, T125, less34_in_ag(T130, T122))
U8_agag(T130, T122, T131, T125, less34_out_ag(T130, T122)) → U9_agag(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
delete1_in_gag(T6, tree(T6, void, T7), T7) → delete1_out_gag(T6, tree(T6, void, T7), T7)
delete1_in_gag(T10, tree(T10, T11, void), T11) → delete1_out_gag(T10, tree(T10, T11, void), T11)
delete1_in_gag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32)) → delete1_out_gag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32))
delete1_in_gag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_gag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
U20_gag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_out_agg(T63, T60, T61)) → delete1_out_gag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62)))
delete1_in_gag(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_gag(T126, T122, T127, T124, T125, p32_in_ggag(T126, T122, T127, T125))
p32_in_ggag(T126, T122, T127, T125) → U7_ggag(T126, T122, T127, T125, less34_in_gg(T126, T122))
less34_in_gg(0, s(T138)) → less34_out_gg(0, s(T138))
less34_in_gg(s(T145), s(T144)) → U2_gg(T145, T144, less34_in_gg(T145, T144))
U2_gg(T145, T144, less34_out_gg(T145, T144)) → less34_out_gg(s(T145), s(T144))
U7_ggag(T126, T122, T127, T125, less34_out_gg(T126, T122)) → p32_out_ggag(T126, T122, T127, T125)
p32_in_ggag(T130, T122, T131, T125) → U8_ggag(T130, T122, T131, T125, less34_in_gg(T130, T122))
U8_ggag(T130, T122, T131, T125, less34_out_gg(T130, T122)) → U9_ggag(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
delete1_in_gag(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_gag(T167, T163, T164, T168, T166, p44_in_ggag(T163, T167, T168, T166))
p44_in_ggag(T163, T167, T168, T166) → U4_ggag(T163, T167, T168, T166, less46_in_gg(T163, T167))
less46_in_gg(0, s(T179)) → less46_out_gg(0, s(T179))
less46_in_gg(s(T184), s(T186)) → U3_gg(T184, T186, less46_in_gg(T184, T186))
U3_gg(T184, T186, less46_out_gg(T184, T186)) → less46_out_gg(s(T184), s(T186))
U4_ggag(T163, T167, T168, T166, less46_out_gg(T163, T167)) → p44_out_ggag(T163, T167, T168, T166)
p44_in_ggag(T163, T171, T172, T166) → U5_ggag(T163, T171, T172, T166, less46_in_gg(T163, T171))
U5_ggag(T163, T171, T172, T166, less46_out_gg(T163, T171)) → U6_ggag(T163, T171, T172, T166, delete1_in_gag(T171, T172, T166))
delete1_in_gag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_gag(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
delete1_in_gag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_gag(T223, T222, T224, T201, T202, p65_in_ggag(T223, T222, T224, T202))
p65_in_ggag(T223, T222, T224, T202) → U12_ggag(T223, T222, T224, T202, less34_in_gg(T223, T222))
U12_ggag(T223, T222, T224, T202, less34_out_gg(T223, T222)) → p65_out_ggag(T223, T222, T224, T202)
p65_in_ggag(T227, T222, T228, T202) → U13_ggag(T227, T222, T228, T202, less34_in_gg(T227, T222))
U13_ggag(T227, T222, T228, T202, less34_out_gg(T227, T222)) → U14_ggag(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
delete1_in_gag(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_gag(T250, T246, T247, T251, T249, p44_in_ggag(T246, T250, T251, T249))
U25_gag(T250, T246, T247, T251, T249, p44_out_ggag(T246, T250, T251, T249)) → delete1_out_gag(T250, tree(T246, T247, T251), tree(T246, T247, T249))
delete1_in_gag(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_gag(T264, T260, T261, T265, T263, p72_in_ggag(T260, T264, T265, T263))
p72_in_ggag(0, s(T272), T271, T263) → U10_ggag(T272, T271, T263, delete1_in_gag(s(T272), T271, T263))
delete1_in_gag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_gag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
U27_gag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_out_agg(T346, T343, T344)) → delete1_out_gag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345)))
delete1_in_gag(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_gag(T376, T372, T377, T374, T375, p32_in_ggag(T376, T372, T377, T375))
U28_gag(T376, T372, T377, T374, T375, p32_out_ggag(T376, T372, T377, T375)) → delete1_out_gag(T376, tree(T372, T377, T374), tree(T372, T375, T374))
delete1_in_gag(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_gag(T395, T391, T392, T396, T394, p72_in_ggag(T391, T395, T396, T394))
p72_in_ggag(s(T281), s(T283), T284, T263) → U11_ggag(T281, T283, T284, T263, p79_in_ggag(T281, T283, T284, T263))
p79_in_ggag(T281, T283, T284, T263) → U15_ggag(T281, T283, T284, T263, less46_in_gg(T281, T283))
U15_ggag(T281, T283, T284, T263, less46_out_gg(T281, T283)) → p79_out_ggag(T281, T283, T284, T263)
p79_in_ggag(T281, T287, T288, T263) → U16_ggag(T281, T287, T288, T263, less46_in_gg(T281, T287))
U16_ggag(T281, T287, T288, T263, less46_out_gg(T281, T287)) → U17_ggag(T281, T287, T288, T263, delete1_in_gag(s(T287), T288, T263))
delete1_in_gag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_gag(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
delete1_in_gag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_gag(T429, T428, T430, T407, T408, p65_in_ggag(T429, T428, T430, T408))
U31_gag(T429, T428, T430, T407, T408, p65_out_ggag(T429, T428, T430, T408)) → delete1_out_gag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407))
delete1_in_gag(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_gag(T448, T444, T445, T449, T447, p72_in_ggag(T444, T448, T449, T447))
U32_gag(T448, T444, T445, T449, T447, p72_out_ggag(T444, T448, T449, T447)) → delete1_out_gag(T448, tree(T444, T445, T449), tree(T444, T445, T447))
delete1_in_gag(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_gag(T462, T458, T459, T463, T461, p116_in_ggag(T458, T462, T463, T461))
p116_in_ggag(0, s(T470), T469, T461) → U18_ggag(T470, T469, T461, delete1_in_gag(s(T470), T469, T461))
delete1_in_gag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_gag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
U34_gag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_out_agg(T540, T537, T538)) → delete1_out_gag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539)))
delete1_in_gag(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_gag(T570, T566, T571, T568, T569, p32_in_ggag(T570, T566, T571, T569))
U35_gag(T570, T566, T571, T568, T569, p32_out_ggag(T570, T566, T571, T569)) → delete1_out_gag(T570, tree(T566, T571, T568), tree(T566, T569, T568))
delete1_in_gag(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_gag(T589, T585, T586, T590, T588, p116_in_ggag(T585, T589, T590, T588))
p116_in_ggag(s(T479), s(T481), T482, T461) → U19_ggag(T479, T481, T482, T461, p79_in_ggag(T479, T481, T482, T461))
U19_ggag(T479, T481, T482, T461, p79_out_ggag(T479, T481, T482, T461)) → p116_out_ggag(s(T479), s(T481), T482, T461)
U36_gag(T589, T585, T586, T590, T588, p116_out_ggag(T585, T589, T590, T588)) → delete1_out_gag(T589, tree(T585, T586, T590), tree(T585, T586, T588))
delete1_in_gag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_gag(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
delete1_in_gag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_gag(T623, T622, T624, T601, T602, p65_in_ggag(T623, T622, T624, T602))
U38_gag(T623, T622, T624, T601, T602, p65_out_ggag(T623, T622, T624, T602)) → delete1_out_gag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601))
delete1_in_gag(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_gag(T642, T638, T639, T643, T641, p116_in_ggag(T638, T642, T643, T641))
U39_gag(T642, T638, T639, T643, T641, p116_out_ggag(T638, T642, T643, T641)) → delete1_out_gag(T642, tree(T638, T639, T643), tree(T638, T639, T641))
delete1_in_gag(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_gag(T664, T653, T663, T655, delete1_in_gag(s(T664), T663, T655))
delete1_in_gag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_gag(T675, T673, T653, T676, T655, p79_in_ggag(T673, T675, T676, T655))
U41_gag(T675, T673, T653, T676, T655, p79_out_ggag(T673, T675, T676, T655)) → delete1_out_gag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655))
delete1_in_gag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_gag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
U42_gag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_out_agg(T730, T727, T728)) → delete1_out_gag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729)))
delete1_in_gag(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_gag(T760, T756, T761, T758, T759, p32_in_ggag(T760, T756, T761, T759))
U43_gag(T760, T756, T761, T758, T759, p32_out_ggag(T760, T756, T761, T759)) → delete1_out_gag(T760, tree(T756, T761, T758), tree(T756, T759, T758))
delete1_in_gag(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_gag(T779, T775, T776, T780, T778, p116_in_ggag(T775, T779, T780, T778))
U44_gag(T779, T775, T776, T780, T778, p116_out_ggag(T775, T779, T780, T778)) → delete1_out_gag(T779, tree(T775, T776, T780), tree(T775, T776, T778))
delete1_in_gag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_gag(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
delete1_in_gag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_gag(T813, T812, T814, T791, T792, p65_in_ggag(T813, T812, T814, T792))
U46_gag(T813, T812, T814, T791, T792, p65_out_ggag(T813, T812, T814, T792)) → delete1_out_gag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791))
delete1_in_gag(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_gag(T832, T828, T829, T833, T831, p116_in_ggag(T828, T832, T833, T831))
U47_gag(T832, T828, T829, T833, T831, p116_out_ggag(T828, T832, T833, T831)) → delete1_out_gag(T832, tree(T828, T829, T833), tree(T828, T829, T831))
delete1_in_gag(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_gag(T854, T843, T853, T845, delete1_in_gag(s(T854), T853, T845))
delete1_in_gag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_gag(T865, T863, T843, T866, T845, p79_in_ggag(T863, T865, T866, T845))
U49_gag(T865, T863, T843, T866, T845, p79_out_ggag(T863, T865, T866, T845)) → delete1_out_gag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845))
U48_gag(T854, T843, T853, T845, delete1_out_gag(s(T854), T853, T845)) → delete1_out_gag(s(T854), tree(0, T843, T853), tree(0, T843, T845))
U45_gag(T799, T800, T791, T792, delete1_out_gag(0, T800, T792)) → delete1_out_gag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791))
U40_gag(T664, T653, T663, T655, delete1_out_gag(s(T664), T663, T655)) → delete1_out_gag(s(T664), tree(0, T653, T663), tree(0, T653, T655))
U37_gag(T609, T610, T601, T602, delete1_out_gag(0, T610, T602)) → delete1_out_gag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601))
U18_ggag(T470, T469, T461, delete1_out_gag(s(T470), T469, T461)) → p116_out_ggag(0, s(T470), T469, T461)
U33_gag(T462, T458, T459, T463, T461, p116_out_ggag(T458, T462, T463, T461)) → delete1_out_gag(T462, tree(T458, T459, T463), tree(T458, T459, T461))
U30_gag(T415, T416, T407, T408, delete1_out_gag(0, T416, T408)) → delete1_out_gag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407))
U17_ggag(T281, T287, T288, T263, delete1_out_gag(s(T287), T288, T263)) → p79_out_ggag(T281, T287, T288, T263)
U11_ggag(T281, T283, T284, T263, p79_out_ggag(T281, T283, T284, T263)) → p72_out_ggag(s(T281), s(T283), T284, T263)
U29_gag(T395, T391, T392, T396, T394, p72_out_ggag(T391, T395, T396, T394)) → delete1_out_gag(T395, tree(T391, T392, T396), tree(T391, T392, T394))
U10_ggag(T272, T271, T263, delete1_out_gag(s(T272), T271, T263)) → p72_out_ggag(0, s(T272), T271, T263)
U26_gag(T264, T260, T261, T265, T263, p72_out_ggag(T260, T264, T265, T263)) → delete1_out_gag(T264, tree(T260, T261, T265), tree(T260, T261, T263))
U14_ggag(T227, T222, T228, T202, delete1_out_gag(s(T227), T228, T202)) → p65_out_ggag(T227, T222, T228, T202)
U24_gag(T223, T222, T224, T201, T202, p65_out_ggag(T223, T222, T224, T202)) → delete1_out_gag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201))
U23_gag(T209, T210, T201, T202, delete1_out_gag(0, T210, T202)) → delete1_out_gag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201))
U6_ggag(T163, T171, T172, T166, delete1_out_gag(T171, T172, T166)) → p44_out_ggag(T163, T171, T172, T166)
U22_gag(T167, T163, T164, T168, T166, p44_out_ggag(T163, T167, T168, T166)) → delete1_out_gag(T167, tree(T163, T164, T168), tree(T163, T164, T166))
U9_ggag(T130, T122, T131, T125, delete1_out_gag(T130, T131, T125)) → p32_out_ggag(T130, T122, T131, T125)
U21_gag(T126, T122, T127, T124, T125, p32_out_ggag(T126, T122, T127, T125)) → delete1_out_gag(T126, tree(T122, T127, T124), tree(T122, T125, T124))
U9_agag(T130, T122, T131, T125, delete1_out_gag(T130, T131, T125)) → p32_out_agag(T130, T122, T131, T125)
U21_aag(T126, T122, T127, T124, T125, p32_out_agag(T126, T122, T127, T125)) → delete1_out_aag(T126, tree(T122, T127, T124), tree(T122, T125, T124))
delete1_in_aag(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_aag(T167, T163, T164, T168, T166, p44_in_gaag(T163, T167, T168, T166))
p44_in_gaag(T163, T167, T168, T166) → U4_gaag(T163, T167, T168, T166, less46_in_ga(T163, T167))
less46_in_ga(0, s(T179)) → less46_out_ga(0, s(T179))
less46_in_ga(s(T184), s(T186)) → U3_ga(T184, T186, less46_in_ga(T184, T186))
U3_ga(T184, T186, less46_out_ga(T184, T186)) → less46_out_ga(s(T184), s(T186))
U4_gaag(T163, T167, T168, T166, less46_out_ga(T163, T167)) → p44_out_gaag(T163, T167, T168, T166)
p44_in_gaag(T163, T171, T172, T166) → U5_gaag(T163, T171, T172, T166, less46_in_ga(T163, T171))
U5_gaag(T163, T171, T172, T166, less46_out_ga(T163, T171)) → U6_gaag(T163, T171, T172, T166, delete1_in_aag(T171, T172, T166))
delete1_in_aag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_aag(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
U23_aag(T209, T210, T201, T202, delete1_out_gag(0, T210, T202)) → delete1_out_aag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201))
delete1_in_aag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_aag(T223, T222, T224, T201, T202, p65_in_agag(T223, T222, T224, T202))
p65_in_agag(T223, T222, T224, T202) → U12_agag(T223, T222, T224, T202, less34_in_ag(T223, T222))
U12_agag(T223, T222, T224, T202, less34_out_ag(T223, T222)) → p65_out_agag(T223, T222, T224, T202)
p65_in_agag(T227, T222, T228, T202) → U13_agag(T227, T222, T228, T202, less34_in_ag(T227, T222))
U13_agag(T227, T222, T228, T202, less34_out_ag(T227, T222)) → U14_agag(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
U14_agag(T227, T222, T228, T202, delete1_out_gag(s(T227), T228, T202)) → p65_out_agag(T227, T222, T228, T202)
U24_aag(T223, T222, T224, T201, T202, p65_out_agag(T223, T222, T224, T202)) → delete1_out_aag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201))
delete1_in_aag(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_aag(T250, T246, T247, T251, T249, p44_in_gaag(T246, T250, T251, T249))
U25_aag(T250, T246, T247, T251, T249, p44_out_gaag(T246, T250, T251, T249)) → delete1_out_aag(T250, tree(T246, T247, T251), tree(T246, T247, T249))
delete1_in_aag(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_aag(T264, T260, T261, T265, T263, p72_in_gaag(T260, T264, T265, T263))
p72_in_gaag(0, s(T272), T271, T263) → U10_gaag(T272, T271, T263, delete1_in_aag(s(T272), T271, T263))
delete1_in_aag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_aag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
U27_aag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_out_agg(T346, T343, T344)) → delete1_out_aag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345)))
delete1_in_aag(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_aag(T376, T372, T377, T374, T375, p32_in_agag(T376, T372, T377, T375))
U28_aag(T376, T372, T377, T374, T375, p32_out_agag(T376, T372, T377, T375)) → delete1_out_aag(T376, tree(T372, T377, T374), tree(T372, T375, T374))
delete1_in_aag(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_aag(T395, T391, T392, T396, T394, p72_in_gaag(T391, T395, T396, T394))
p72_in_gaag(s(T281), s(T283), T284, T263) → U11_gaag(T281, T283, T284, T263, p79_in_gaag(T281, T283, T284, T263))
p79_in_gaag(T281, T283, T284, T263) → U15_gaag(T281, T283, T284, T263, less46_in_ga(T281, T283))
U15_gaag(T281, T283, T284, T263, less46_out_ga(T281, T283)) → p79_out_gaag(T281, T283, T284, T263)
p79_in_gaag(T281, T287, T288, T263) → U16_gaag(T281, T287, T288, T263, less46_in_ga(T281, T287))
U16_gaag(T281, T287, T288, T263, less46_out_ga(T281, T287)) → U17_gaag(T281, T287, T288, T263, delete1_in_aag(s(T287), T288, T263))
delete1_in_aag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_aag(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
U30_aag(T415, T416, T407, T408, delete1_out_gag(0, T416, T408)) → delete1_out_aag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407))
delete1_in_aag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_aag(T429, T428, T430, T407, T408, p65_in_agag(T429, T428, T430, T408))
U31_aag(T429, T428, T430, T407, T408, p65_out_agag(T429, T428, T430, T408)) → delete1_out_aag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407))
delete1_in_aag(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_aag(T448, T444, T445, T449, T447, p72_in_gaag(T444, T448, T449, T447))
U32_aag(T448, T444, T445, T449, T447, p72_out_gaag(T444, T448, T449, T447)) → delete1_out_aag(T448, tree(T444, T445, T449), tree(T444, T445, T447))
delete1_in_aag(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_aag(T462, T458, T459, T463, T461, p116_in_gaag(T458, T462, T463, T461))
p116_in_gaag(0, s(T470), T469, T461) → U18_gaag(T470, T469, T461, delete1_in_aag(s(T470), T469, T461))
delete1_in_aag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_aag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
U34_aag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_out_agg(T540, T537, T538)) → delete1_out_aag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539)))
delete1_in_aag(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_aag(T570, T566, T571, T568, T569, p32_in_agag(T570, T566, T571, T569))
U35_aag(T570, T566, T571, T568, T569, p32_out_agag(T570, T566, T571, T569)) → delete1_out_aag(T570, tree(T566, T571, T568), tree(T566, T569, T568))
delete1_in_aag(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_aag(T589, T585, T586, T590, T588, p116_in_gaag(T585, T589, T590, T588))
p116_in_gaag(s(T479), s(T481), T482, T461) → U19_gaag(T479, T481, T482, T461, p79_in_gaag(T479, T481, T482, T461))
U19_gaag(T479, T481, T482, T461, p79_out_gaag(T479, T481, T482, T461)) → p116_out_gaag(s(T479), s(T481), T482, T461)
U36_aag(T589, T585, T586, T590, T588, p116_out_gaag(T585, T589, T590, T588)) → delete1_out_aag(T589, tree(T585, T586, T590), tree(T585, T586, T588))
delete1_in_aag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_aag(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
U37_aag(T609, T610, T601, T602, delete1_out_gag(0, T610, T602)) → delete1_out_aag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601))
delete1_in_aag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_aag(T623, T622, T624, T601, T602, p65_in_agag(T623, T622, T624, T602))
U38_aag(T623, T622, T624, T601, T602, p65_out_agag(T623, T622, T624, T602)) → delete1_out_aag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601))
delete1_in_aag(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_aag(T642, T638, T639, T643, T641, p116_in_gaag(T638, T642, T643, T641))
U39_aag(T642, T638, T639, T643, T641, p116_out_gaag(T638, T642, T643, T641)) → delete1_out_aag(T642, tree(T638, T639, T643), tree(T638, T639, T641))
delete1_in_aag(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_aag(T664, T653, T663, T655, delete1_in_aag(s(T664), T663, T655))
delete1_in_aag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_aag(T675, T673, T653, T676, T655, p79_in_gaag(T673, T675, T676, T655))
U41_aag(T675, T673, T653, T676, T655, p79_out_gaag(T673, T675, T676, T655)) → delete1_out_aag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655))
delete1_in_aag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_aag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
U42_aag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_out_agg(T730, T727, T728)) → delete1_out_aag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729)))
delete1_in_aag(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_aag(T760, T756, T761, T758, T759, p32_in_agag(T760, T756, T761, T759))
U43_aag(T760, T756, T761, T758, T759, p32_out_agag(T760, T756, T761, T759)) → delete1_out_aag(T760, tree(T756, T761, T758), tree(T756, T759, T758))
delete1_in_aag(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_aag(T779, T775, T776, T780, T778, p116_in_gaag(T775, T779, T780, T778))
U44_aag(T779, T775, T776, T780, T778, p116_out_gaag(T775, T779, T780, T778)) → delete1_out_aag(T779, tree(T775, T776, T780), tree(T775, T776, T778))
delete1_in_aag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_aag(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
U45_aag(T799, T800, T791, T792, delete1_out_gag(0, T800, T792)) → delete1_out_aag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791))
delete1_in_aag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_aag(T813, T812, T814, T791, T792, p65_in_agag(T813, T812, T814, T792))
U46_aag(T813, T812, T814, T791, T792, p65_out_agag(T813, T812, T814, T792)) → delete1_out_aag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791))
delete1_in_aag(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_aag(T832, T828, T829, T833, T831, p116_in_gaag(T828, T832, T833, T831))
U47_aag(T832, T828, T829, T833, T831, p116_out_gaag(T828, T832, T833, T831)) → delete1_out_aag(T832, tree(T828, T829, T833), tree(T828, T829, T831))
delete1_in_aag(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_aag(T854, T843, T853, T845, delete1_in_aag(s(T854), T853, T845))
delete1_in_aag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_aag(T865, T863, T843, T866, T845, p79_in_gaag(T863, T865, T866, T845))
U49_aag(T865, T863, T843, T866, T845, p79_out_gaag(T863, T865, T866, T845)) → delete1_out_aag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845))
U48_aag(T854, T843, T853, T845, delete1_out_aag(s(T854), T853, T845)) → delete1_out_aag(s(T854), tree(0, T843, T853), tree(0, T843, T845))
U40_aag(T664, T653, T663, T655, delete1_out_aag(s(T664), T663, T655)) → delete1_out_aag(s(T664), tree(0, T653, T663), tree(0, T653, T655))
U18_gaag(T470, T469, T461, delete1_out_aag(s(T470), T469, T461)) → p116_out_gaag(0, s(T470), T469, T461)
U33_aag(T462, T458, T459, T463, T461, p116_out_gaag(T458, T462, T463, T461)) → delete1_out_aag(T462, tree(T458, T459, T463), tree(T458, T459, T461))
U17_gaag(T281, T287, T288, T263, delete1_out_aag(s(T287), T288, T263)) → p79_out_gaag(T281, T287, T288, T263)
U11_gaag(T281, T283, T284, T263, p79_out_gaag(T281, T283, T284, T263)) → p72_out_gaag(s(T281), s(T283), T284, T263)
U29_aag(T395, T391, T392, T396, T394, p72_out_gaag(T391, T395, T396, T394)) → delete1_out_aag(T395, tree(T391, T392, T396), tree(T391, T392, T394))
U10_gaag(T272, T271, T263, delete1_out_aag(s(T272), T271, T263)) → p72_out_gaag(0, s(T272), T271, T263)
U26_aag(T264, T260, T261, T265, T263, p72_out_gaag(T260, T264, T265, T263)) → delete1_out_aag(T264, tree(T260, T261, T265), tree(T260, T261, T263))
U6_gaag(T163, T171, T172, T166, delete1_out_aag(T171, T172, T166)) → p44_out_gaag(T163, T171, T172, T166)
U22_aag(T167, T163, T164, T168, T166, p44_out_gaag(T163, T167, T168, T166)) → delete1_out_aag(T167, tree(T163, T164, T168), tree(T163, T164, T166))

The argument filtering Pi contains the following mapping:
delete1_in_aag(x1, x2, x3)  =  delete1_in_aag(x3)
delete1_out_aag(x1, x2, x3)  =  delete1_out_aag
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U20_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aag(x9)
delmin19_in_agg(x1, x2, x3)  =  delmin19_in_agg(x2, x3)
delmin19_out_agg(x1, x2, x3)  =  delmin19_out_agg
U1_agg(x1, x2, x3, x4, x5, x6, x7)  =  U1_agg(x7)
U21_aag(x1, x2, x3, x4, x5, x6)  =  U21_aag(x6)
p32_in_agag(x1, x2, x3, x4)  =  p32_in_agag(x2, x4)
U7_agag(x1, x2, x3, x4, x5)  =  U7_agag(x5)
less34_in_ag(x1, x2)  =  less34_in_ag(x2)
s(x1)  =  s(x1)
less34_out_ag(x1, x2)  =  less34_out_ag(x1)
U2_ag(x1, x2, x3)  =  U2_ag(x3)
p32_out_agag(x1, x2, x3, x4)  =  p32_out_agag(x1)
U8_agag(x1, x2, x3, x4, x5)  =  U8_agag(x4, x5)
U9_agag(x1, x2, x3, x4, x5)  =  U9_agag(x1, x5)
delete1_in_gag(x1, x2, x3)  =  delete1_in_gag(x1, x3)
delete1_out_gag(x1, x2, x3)  =  delete1_out_gag
U20_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gag(x9)
U21_gag(x1, x2, x3, x4, x5, x6)  =  U21_gag(x6)
p32_in_ggag(x1, x2, x3, x4)  =  p32_in_ggag(x1, x2, x4)
U7_ggag(x1, x2, x3, x4, x5)  =  U7_ggag(x5)
less34_in_gg(x1, x2)  =  less34_in_gg(x1, x2)
0  =  0
less34_out_gg(x1, x2)  =  less34_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
p32_out_ggag(x1, x2, x3, x4)  =  p32_out_ggag
U8_ggag(x1, x2, x3, x4, x5)  =  U8_ggag(x1, x4, x5)
U9_ggag(x1, x2, x3, x4, x5)  =  U9_ggag(x5)
U22_gag(x1, x2, x3, x4, x5, x6)  =  U22_gag(x6)
p44_in_ggag(x1, x2, x3, x4)  =  p44_in_ggag(x1, x2, x4)
U4_ggag(x1, x2, x3, x4, x5)  =  U4_ggag(x5)
less46_in_gg(x1, x2)  =  less46_in_gg(x1, x2)
less46_out_gg(x1, x2)  =  less46_out_gg
U3_gg(x1, x2, x3)  =  U3_gg(x3)
p44_out_ggag(x1, x2, x3, x4)  =  p44_out_ggag
U5_ggag(x1, x2, x3, x4, x5)  =  U5_ggag(x2, x4, x5)
U6_ggag(x1, x2, x3, x4, x5)  =  U6_ggag(x5)
U23_gag(x1, x2, x3, x4, x5)  =  U23_gag(x5)
U24_gag(x1, x2, x3, x4, x5, x6)  =  U24_gag(x6)
p65_in_ggag(x1, x2, x3, x4)  =  p65_in_ggag(x1, x2, x4)
U12_ggag(x1, x2, x3, x4, x5)  =  U12_ggag(x5)
p65_out_ggag(x1, x2, x3, x4)  =  p65_out_ggag
U13_ggag(x1, x2, x3, x4, x5)  =  U13_ggag(x1, x4, x5)
U14_ggag(x1, x2, x3, x4, x5)  =  U14_ggag(x5)
U25_gag(x1, x2, x3, x4, x5, x6)  =  U25_gag(x6)
U26_gag(x1, x2, x3, x4, x5, x6)  =  U26_gag(x6)
p72_in_ggag(x1, x2, x3, x4)  =  p72_in_ggag(x1, x2, x4)
U10_ggag(x1, x2, x3, x4)  =  U10_ggag(x4)
U27_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gag(x9)
U28_gag(x1, x2, x3, x4, x5, x6)  =  U28_gag(x6)
U29_gag(x1, x2, x3, x4, x5, x6)  =  U29_gag(x6)
U11_ggag(x1, x2, x3, x4, x5)  =  U11_ggag(x5)
p79_in_ggag(x1, x2, x3, x4)  =  p79_in_ggag(x1, x2, x4)
U15_ggag(x1, x2, x3, x4, x5)  =  U15_ggag(x5)
p79_out_ggag(x1, x2, x3, x4)  =  p79_out_ggag
U16_ggag(x1, x2, x3, x4, x5)  =  U16_ggag(x2, x4, x5)
U17_ggag(x1, x2, x3, x4, x5)  =  U17_ggag(x5)
U30_gag(x1, x2, x3, x4, x5)  =  U30_gag(x5)
U31_gag(x1, x2, x3, x4, x5, x6)  =  U31_gag(x6)
U32_gag(x1, x2, x3, x4, x5, x6)  =  U32_gag(x6)
p72_out_ggag(x1, x2, x3, x4)  =  p72_out_ggag
U33_gag(x1, x2, x3, x4, x5, x6)  =  U33_gag(x6)
p116_in_ggag(x1, x2, x3, x4)  =  p116_in_ggag(x1, x2, x4)
U18_ggag(x1, x2, x3, x4)  =  U18_ggag(x4)
U34_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_gag(x9)
U35_gag(x1, x2, x3, x4, x5, x6)  =  U35_gag(x6)
U36_gag(x1, x2, x3, x4, x5, x6)  =  U36_gag(x6)
U19_ggag(x1, x2, x3, x4, x5)  =  U19_ggag(x5)
p116_out_ggag(x1, x2, x3, x4)  =  p116_out_ggag
U37_gag(x1, x2, x3, x4, x5)  =  U37_gag(x5)
U38_gag(x1, x2, x3, x4, x5, x6)  =  U38_gag(x6)
U39_gag(x1, x2, x3, x4, x5, x6)  =  U39_gag(x6)
U40_gag(x1, x2, x3, x4, x5)  =  U40_gag(x5)
U41_gag(x1, x2, x3, x4, x5, x6)  =  U41_gag(x6)
U42_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_gag(x9)
U43_gag(x1, x2, x3, x4, x5, x6)  =  U43_gag(x6)
U44_gag(x1, x2, x3, x4, x5, x6)  =  U44_gag(x6)
U45_gag(x1, x2, x3, x4, x5)  =  U45_gag(x5)
U46_gag(x1, x2, x3, x4, x5, x6)  =  U46_gag(x6)
U47_gag(x1, x2, x3, x4, x5, x6)  =  U47_gag(x6)
U48_gag(x1, x2, x3, x4, x5)  =  U48_gag(x5)
U49_gag(x1, x2, x3, x4, x5, x6)  =  U49_gag(x6)
U22_aag(x1, x2, x3, x4, x5, x6)  =  U22_aag(x6)
p44_in_gaag(x1, x2, x3, x4)  =  p44_in_gaag(x1, x4)
U4_gaag(x1, x2, x3, x4, x5)  =  U4_gaag(x5)
less46_in_ga(x1, x2)  =  less46_in_ga(x1)
less46_out_ga(x1, x2)  =  less46_out_ga
U3_ga(x1, x2, x3)  =  U3_ga(x3)
p44_out_gaag(x1, x2, x3, x4)  =  p44_out_gaag
U5_gaag(x1, x2, x3, x4, x5)  =  U5_gaag(x4, x5)
U6_gaag(x1, x2, x3, x4, x5)  =  U6_gaag(x5)
U23_aag(x1, x2, x3, x4, x5)  =  U23_aag(x5)
U24_aag(x1, x2, x3, x4, x5, x6)  =  U24_aag(x6)
p65_in_agag(x1, x2, x3, x4)  =  p65_in_agag(x2, x4)
U12_agag(x1, x2, x3, x4, x5)  =  U12_agag(x5)
p65_out_agag(x1, x2, x3, x4)  =  p65_out_agag(x1)
U13_agag(x1, x2, x3, x4, x5)  =  U13_agag(x4, x5)
U14_agag(x1, x2, x3, x4, x5)  =  U14_agag(x1, x5)
U25_aag(x1, x2, x3, x4, x5, x6)  =  U25_aag(x6)
U26_aag(x1, x2, x3, x4, x5, x6)  =  U26_aag(x6)
p72_in_gaag(x1, x2, x3, x4)  =  p72_in_gaag(x1, x4)
U10_gaag(x1, x2, x3, x4)  =  U10_gaag(x4)
U27_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aag(x9)
U28_aag(x1, x2, x3, x4, x5, x6)  =  U28_aag(x6)
U29_aag(x1, x2, x3, x4, x5, x6)  =  U29_aag(x6)
U11_gaag(x1, x2, x3, x4, x5)  =  U11_gaag(x5)
p79_in_gaag(x1, x2, x3, x4)  =  p79_in_gaag(x1, x4)
U15_gaag(x1, x2, x3, x4, x5)  =  U15_gaag(x5)
p79_out_gaag(x1, x2, x3, x4)  =  p79_out_gaag
U16_gaag(x1, x2, x3, x4, x5)  =  U16_gaag(x4, x5)
U17_gaag(x1, x2, x3, x4, x5)  =  U17_gaag(x5)
U30_aag(x1, x2, x3, x4, x5)  =  U30_aag(x5)
U31_aag(x1, x2, x3, x4, x5, x6)  =  U31_aag(x6)
U32_aag(x1, x2, x3, x4, x5, x6)  =  U32_aag(x6)
p72_out_gaag(x1, x2, x3, x4)  =  p72_out_gaag
U33_aag(x1, x2, x3, x4, x5, x6)  =  U33_aag(x6)
p116_in_gaag(x1, x2, x3, x4)  =  p116_in_gaag(x1, x4)
U18_gaag(x1, x2, x3, x4)  =  U18_gaag(x4)
U34_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_aag(x9)
U35_aag(x1, x2, x3, x4, x5, x6)  =  U35_aag(x6)
U36_aag(x1, x2, x3, x4, x5, x6)  =  U36_aag(x6)
U19_gaag(x1, x2, x3, x4, x5)  =  U19_gaag(x5)
p116_out_gaag(x1, x2, x3, x4)  =  p116_out_gaag
U37_aag(x1, x2, x3, x4, x5)  =  U37_aag(x5)
U38_aag(x1, x2, x3, x4, x5, x6)  =  U38_aag(x6)
U39_aag(x1, x2, x3, x4, x5, x6)  =  U39_aag(x6)
U40_aag(x1, x2, x3, x4, x5)  =  U40_aag(x5)
U41_aag(x1, x2, x3, x4, x5, x6)  =  U41_aag(x6)
U42_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_aag(x9)
U43_aag(x1, x2, x3, x4, x5, x6)  =  U43_aag(x6)
U44_aag(x1, x2, x3, x4, x5, x6)  =  U44_aag(x6)
U45_aag(x1, x2, x3, x4, x5)  =  U45_aag(x5)
U46_aag(x1, x2, x3, x4, x5, x6)  =  U46_aag(x6)
U47_aag(x1, x2, x3, x4, x5, x6)  =  U47_aag(x6)
U48_aag(x1, x2, x3, x4, x5)  =  U48_aag(x5)
U49_aag(x1, x2, x3, x4, x5, x6)  =  U49_aag(x6)
DELETE1_IN_GAG(x1, x2, x3)  =  DELETE1_IN_GAG(x1, x3)
P32_IN_GGAG(x1, x2, x3, x4)  =  P32_IN_GGAG(x1, x2, x4)
U8_GGAG(x1, x2, x3, x4, x5)  =  U8_GGAG(x1, x4, x5)
P44_IN_GGAG(x1, x2, x3, x4)  =  P44_IN_GGAG(x1, x2, x4)
U5_GGAG(x1, x2, x3, x4, x5)  =  U5_GGAG(x2, x4, x5)
P65_IN_GGAG(x1, x2, x3, x4)  =  P65_IN_GGAG(x1, x2, x4)
U13_GGAG(x1, x2, x3, x4, x5)  =  U13_GGAG(x1, x4, x5)
P72_IN_GGAG(x1, x2, x3, x4)  =  P72_IN_GGAG(x1, x2, x4)
P79_IN_GGAG(x1, x2, x3, x4)  =  P79_IN_GGAG(x1, x2, x4)
U16_GGAG(x1, x2, x3, x4, x5)  =  U16_GGAG(x2, x4, x5)
P116_IN_GGAG(x1, x2, x3, x4)  =  P116_IN_GGAG(x1, x2, x4)

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

(45) UsableRulesProof (EQUIVALENT transformation)

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

(46) Obligation:

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

DELETE1_IN_GAG(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → P32_IN_GGAG(T126, T122, T127, T125)
P32_IN_GGAG(T130, T122, T131, T125) → U8_GGAG(T130, T122, T131, T125, less34_in_gg(T130, T122))
U8_GGAG(T130, T122, T131, T125, less34_out_gg(T130, T122)) → DELETE1_IN_GAG(T130, T131, T125)
DELETE1_IN_GAG(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → P44_IN_GGAG(T163, T167, T168, T166)
P44_IN_GGAG(T163, T171, T172, T166) → U5_GGAG(T163, T171, T172, T166, less46_in_gg(T163, T171))
U5_GGAG(T163, T171, T172, T166, less46_out_gg(T163, T171)) → DELETE1_IN_GAG(T171, T172, T166)
DELETE1_IN_GAG(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → DELETE1_IN_GAG(0, T210, T202)
DELETE1_IN_GAG(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → P72_IN_GGAG(T260, T264, T265, T263)
P72_IN_GGAG(0, s(T272), T271, T263) → DELETE1_IN_GAG(s(T272), T271, T263)
DELETE1_IN_GAG(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → P65_IN_GGAG(T223, T222, T224, T202)
P65_IN_GGAG(T227, T222, T228, T202) → U13_GGAG(T227, T222, T228, T202, less34_in_gg(T227, T222))
U13_GGAG(T227, T222, T228, T202, less34_out_gg(T227, T222)) → DELETE1_IN_GAG(s(T227), T228, T202)
DELETE1_IN_GAG(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → P116_IN_GGAG(T458, T462, T463, T461)
P116_IN_GGAG(0, s(T470), T469, T461) → DELETE1_IN_GAG(s(T470), T469, T461)
DELETE1_IN_GAG(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → DELETE1_IN_GAG(s(T664), T663, T655)
DELETE1_IN_GAG(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → P79_IN_GGAG(T673, T675, T676, T655)
P79_IN_GGAG(T281, T287, T288, T263) → U16_GGAG(T281, T287, T288, T263, less46_in_gg(T281, T287))
U16_GGAG(T281, T287, T288, T263, less46_out_gg(T281, T287)) → DELETE1_IN_GAG(s(T287), T288, T263)
P116_IN_GGAG(s(T479), s(T481), T482, T461) → P79_IN_GGAG(T479, T481, T482, T461)
P72_IN_GGAG(s(T281), s(T283), T284, T263) → P79_IN_GGAG(T281, T283, T284, T263)

The TRS R consists of the following rules:

less34_in_gg(0, s(T138)) → less34_out_gg(0, s(T138))
less34_in_gg(s(T145), s(T144)) → U2_gg(T145, T144, less34_in_gg(T145, T144))
less46_in_gg(0, s(T179)) → less46_out_gg(0, s(T179))
less46_in_gg(s(T184), s(T186)) → U3_gg(T184, T186, less46_in_gg(T184, T186))
U2_gg(T145, T144, less34_out_gg(T145, T144)) → less34_out_gg(s(T145), s(T144))
U3_gg(T184, T186, less46_out_gg(T184, T186)) → less46_out_gg(s(T184), s(T186))

The argument filtering Pi contains the following mapping:
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
less34_in_gg(x1, x2)  =  less34_in_gg(x1, x2)
0  =  0
less34_out_gg(x1, x2)  =  less34_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
less46_in_gg(x1, x2)  =  less46_in_gg(x1, x2)
less46_out_gg(x1, x2)  =  less46_out_gg
U3_gg(x1, x2, x3)  =  U3_gg(x3)
DELETE1_IN_GAG(x1, x2, x3)  =  DELETE1_IN_GAG(x1, x3)
P32_IN_GGAG(x1, x2, x3, x4)  =  P32_IN_GGAG(x1, x2, x4)
U8_GGAG(x1, x2, x3, x4, x5)  =  U8_GGAG(x1, x4, x5)
P44_IN_GGAG(x1, x2, x3, x4)  =  P44_IN_GGAG(x1, x2, x4)
U5_GGAG(x1, x2, x3, x4, x5)  =  U5_GGAG(x2, x4, x5)
P65_IN_GGAG(x1, x2, x3, x4)  =  P65_IN_GGAG(x1, x2, x4)
U13_GGAG(x1, x2, x3, x4, x5)  =  U13_GGAG(x1, x4, x5)
P72_IN_GGAG(x1, x2, x3, x4)  =  P72_IN_GGAG(x1, x2, x4)
P79_IN_GGAG(x1, x2, x3, x4)  =  P79_IN_GGAG(x1, x2, x4)
U16_GGAG(x1, x2, x3, x4, x5)  =  U16_GGAG(x2, x4, x5)
P116_IN_GGAG(x1, x2, x3, x4)  =  P116_IN_GGAG(x1, x2, x4)

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

(47) PiDPToQDPProof (SOUND transformation)

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

(48) Obligation:

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

DELETE1_IN_GAG(T126, tree(T122, T125, T124)) → P32_IN_GGAG(T126, T122, T125)
P32_IN_GGAG(T130, T122, T125) → U8_GGAG(T130, T125, less34_in_gg(T130, T122))
U8_GGAG(T130, T125, less34_out_gg) → DELETE1_IN_GAG(T130, T125)
DELETE1_IN_GAG(T167, tree(T163, T164, T166)) → P44_IN_GGAG(T163, T167, T166)
P44_IN_GGAG(T163, T171, T166) → U5_GGAG(T171, T166, less46_in_gg(T163, T171))
U5_GGAG(T171, T166, less46_out_gg) → DELETE1_IN_GAG(T171, T166)
DELETE1_IN_GAG(0, tree(s(T209), T202, T201)) → DELETE1_IN_GAG(0, T202)
DELETE1_IN_GAG(T264, tree(T260, T261, T263)) → P72_IN_GGAG(T260, T264, T263)
P72_IN_GGAG(0, s(T272), T263) → DELETE1_IN_GAG(s(T272), T263)
DELETE1_IN_GAG(s(T223), tree(s(T222), T202, T201)) → P65_IN_GGAG(T223, T222, T202)
P65_IN_GGAG(T227, T222, T202) → U13_GGAG(T227, T202, less34_in_gg(T227, T222))
U13_GGAG(T227, T202, less34_out_gg) → DELETE1_IN_GAG(s(T227), T202)
DELETE1_IN_GAG(T462, tree(T458, T459, T461)) → P116_IN_GGAG(T458, T462, T461)
P116_IN_GGAG(0, s(T470), T461) → DELETE1_IN_GAG(s(T470), T461)
DELETE1_IN_GAG(s(T664), tree(0, T653, T655)) → DELETE1_IN_GAG(s(T664), T655)
DELETE1_IN_GAG(s(T675), tree(s(T673), T653, T655)) → P79_IN_GGAG(T673, T675, T655)
P79_IN_GGAG(T281, T287, T263) → U16_GGAG(T287, T263, less46_in_gg(T281, T287))
U16_GGAG(T287, T263, less46_out_gg) → DELETE1_IN_GAG(s(T287), T263)
P116_IN_GGAG(s(T479), s(T481), T461) → P79_IN_GGAG(T479, T481, T461)
P72_IN_GGAG(s(T281), s(T283), T263) → P79_IN_GGAG(T281, T283, T263)

The TRS R consists of the following rules:

less34_in_gg(0, s(T138)) → less34_out_gg
less34_in_gg(s(T145), s(T144)) → U2_gg(less34_in_gg(T145, T144))
less46_in_gg(0, s(T179)) → less46_out_gg
less46_in_gg(s(T184), s(T186)) → U3_gg(less46_in_gg(T184, T186))
U2_gg(less34_out_gg) → less34_out_gg
U3_gg(less46_out_gg) → less46_out_gg

The set Q consists of the following terms:

less34_in_gg(x0, x1)
less46_in_gg(x0, x1)
U2_gg(x0)
U3_gg(x0)

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

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

  • P32_IN_GGAG(T130, T122, T125) → U8_GGAG(T130, T125, less34_in_gg(T130, T122))
    The graph contains the following edges 1 >= 1, 3 >= 2

  • U8_GGAG(T130, T125, less34_out_gg) → DELETE1_IN_GAG(T130, T125)
    The graph contains the following edges 1 >= 1, 2 >= 2

  • DELETE1_IN_GAG(T126, tree(T122, T125, T124)) → P32_IN_GGAG(T126, T122, T125)
    The graph contains the following edges 1 >= 1, 2 > 2, 2 > 3

  • P44_IN_GGAG(T163, T171, T166) → U5_GGAG(T171, T166, less46_in_gg(T163, T171))
    The graph contains the following edges 2 >= 1, 3 >= 2

  • U5_GGAG(T171, T166, less46_out_gg) → DELETE1_IN_GAG(T171, T166)
    The graph contains the following edges 1 >= 1, 2 >= 2

  • DELETE1_IN_GAG(T167, tree(T163, T164, T166)) → P44_IN_GGAG(T163, T167, T166)
    The graph contains the following edges 2 > 1, 1 >= 2, 2 > 3

  • DELETE1_IN_GAG(0, tree(s(T209), T202, T201)) → DELETE1_IN_GAG(0, T202)
    The graph contains the following edges 1 >= 1, 2 > 2

  • DELETE1_IN_GAG(s(T664), tree(0, T653, T655)) → DELETE1_IN_GAG(s(T664), T655)
    The graph contains the following edges 1 >= 1, 2 > 2

  • P72_IN_GGAG(0, s(T272), T263) → DELETE1_IN_GAG(s(T272), T263)
    The graph contains the following edges 2 >= 1, 3 >= 2

  • P72_IN_GGAG(s(T281), s(T283), T263) → P79_IN_GGAG(T281, T283, T263)
    The graph contains the following edges 1 > 1, 2 > 2, 3 >= 3

  • DELETE1_IN_GAG(T264, tree(T260, T261, T263)) → P72_IN_GGAG(T260, T264, T263)
    The graph contains the following edges 2 > 1, 1 >= 2, 2 > 3

  • DELETE1_IN_GAG(T462, tree(T458, T459, T461)) → P116_IN_GGAG(T458, T462, T461)
    The graph contains the following edges 2 > 1, 1 >= 2, 2 > 3

  • P65_IN_GGAG(T227, T222, T202) → U13_GGAG(T227, T202, less34_in_gg(T227, T222))
    The graph contains the following edges 1 >= 1, 3 >= 2

  • U13_GGAG(T227, T202, less34_out_gg) → DELETE1_IN_GAG(s(T227), T202)
    The graph contains the following edges 2 >= 2

  • DELETE1_IN_GAG(s(T223), tree(s(T222), T202, T201)) → P65_IN_GGAG(T223, T222, T202)
    The graph contains the following edges 1 > 1, 2 > 2, 2 > 3

  • DELETE1_IN_GAG(s(T675), tree(s(T673), T653, T655)) → P79_IN_GGAG(T673, T675, T655)
    The graph contains the following edges 2 > 1, 1 > 2, 2 > 3

  • P116_IN_GGAG(0, s(T470), T461) → DELETE1_IN_GAG(s(T470), T461)
    The graph contains the following edges 2 >= 1, 3 >= 2

  • U16_GGAG(T287, T263, less46_out_gg) → DELETE1_IN_GAG(s(T287), T263)
    The graph contains the following edges 2 >= 2

  • P116_IN_GGAG(s(T479), s(T481), T461) → P79_IN_GGAG(T479, T481, T461)
    The graph contains the following edges 1 > 1, 2 > 2, 3 >= 3

  • P79_IN_GGAG(T281, T287, T263) → U16_GGAG(T287, T263, less46_in_gg(T281, T287))
    The graph contains the following edges 2 >= 1, 3 >= 2

(50) YES

(51) Obligation:

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

DELETE1_IN_AAG(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → P44_IN_GAAG(T163, T167, T168, T166)
P44_IN_GAAG(T163, T171, T172, T166) → U5_GAAG(T163, T171, T172, T166, less46_in_ga(T163, T171))
U5_GAAG(T163, T171, T172, T166, less46_out_ga(T163, T171)) → DELETE1_IN_AAG(T171, T172, T166)
DELETE1_IN_AAG(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → P72_IN_GAAG(T260, T264, T265, T263)
P72_IN_GAAG(0, s(T272), T271, T263) → DELETE1_IN_AAG(s(T272), T271, T263)
DELETE1_IN_AAG(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → P116_IN_GAAG(T458, T462, T463, T461)
P116_IN_GAAG(0, s(T470), T469, T461) → DELETE1_IN_AAG(s(T470), T469, T461)
DELETE1_IN_AAG(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → DELETE1_IN_AAG(s(T664), T663, T655)
DELETE1_IN_AAG(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → P79_IN_GAAG(T673, T675, T676, T655)
P79_IN_GAAG(T281, T287, T288, T263) → U16_GAAG(T281, T287, T288, T263, less46_in_ga(T281, T287))
U16_GAAG(T281, T287, T288, T263, less46_out_ga(T281, T287)) → DELETE1_IN_AAG(s(T287), T288, T263)
P116_IN_GAAG(s(T479), s(T481), T482, T461) → P79_IN_GAAG(T479, T481, T482, T461)
P72_IN_GAAG(s(T281), s(T283), T284, T263) → P79_IN_GAAG(T281, T283, T284, T263)

The TRS R consists of the following rules:

delete1_in_aag(T6, tree(T6, void, T7), T7) → delete1_out_aag(T6, tree(T6, void, T7), T7)
delete1_in_aag(T10, tree(T10, T11, void), T11) → delete1_out_aag(T10, tree(T10, T11, void), T11)
delete1_in_aag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32)) → delete1_out_aag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32))
delete1_in_aag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_aag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
delmin19_in_agg(tree(T76, void, T77), T76, T77) → delmin19_out_agg(tree(T76, void, T77), T76, T77)
delmin19_in_agg(tree(T90, T96, T92), T93, tree(T90, T94, T95)) → U1_agg(T90, T96, T92, T93, T94, T95, delmin19_in_agg(T96, T93, T94))
U1_agg(T90, T96, T92, T93, T94, T95, delmin19_out_agg(T96, T93, T94)) → delmin19_out_agg(tree(T90, T96, T92), T93, tree(T90, T94, T95))
U20_aag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_out_agg(T63, T60, T61)) → delete1_out_aag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62)))
delete1_in_aag(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_aag(T126, T122, T127, T124, T125, p32_in_agag(T126, T122, T127, T125))
p32_in_agag(T126, T122, T127, T125) → U7_agag(T126, T122, T127, T125, less34_in_ag(T126, T122))
less34_in_ag(0, s(T138)) → less34_out_ag(0, s(T138))
less34_in_ag(s(T145), s(T144)) → U2_ag(T145, T144, less34_in_ag(T145, T144))
U2_ag(T145, T144, less34_out_ag(T145, T144)) → less34_out_ag(s(T145), s(T144))
U7_agag(T126, T122, T127, T125, less34_out_ag(T126, T122)) → p32_out_agag(T126, T122, T127, T125)
p32_in_agag(T130, T122, T131, T125) → U8_agag(T130, T122, T131, T125, less34_in_ag(T130, T122))
U8_agag(T130, T122, T131, T125, less34_out_ag(T130, T122)) → U9_agag(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
delete1_in_gag(T6, tree(T6, void, T7), T7) → delete1_out_gag(T6, tree(T6, void, T7), T7)
delete1_in_gag(T10, tree(T10, T11, void), T11) → delete1_out_gag(T10, tree(T10, T11, void), T11)
delete1_in_gag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32)) → delete1_out_gag(T17, tree(T17, T18, tree(T31, void, T32)), tree(T31, T18, T32))
delete1_in_gag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62))) → U20_gag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_in_agg(T63, T60, T61))
U20_gag(T17, T18, T57, T63, T59, T60, T61, T62, delmin19_out_agg(T63, T60, T61)) → delete1_out_gag(T17, tree(T17, T18, tree(T57, T63, T59)), tree(T60, T18, tree(T57, T61, T62)))
delete1_in_gag(T126, tree(T122, T127, T124), tree(T122, T125, T124)) → U21_gag(T126, T122, T127, T124, T125, p32_in_ggag(T126, T122, T127, T125))
p32_in_ggag(T126, T122, T127, T125) → U7_ggag(T126, T122, T127, T125, less34_in_gg(T126, T122))
less34_in_gg(0, s(T138)) → less34_out_gg(0, s(T138))
less34_in_gg(s(T145), s(T144)) → U2_gg(T145, T144, less34_in_gg(T145, T144))
U2_gg(T145, T144, less34_out_gg(T145, T144)) → less34_out_gg(s(T145), s(T144))
U7_ggag(T126, T122, T127, T125, less34_out_gg(T126, T122)) → p32_out_ggag(T126, T122, T127, T125)
p32_in_ggag(T130, T122, T131, T125) → U8_ggag(T130, T122, T131, T125, less34_in_gg(T130, T122))
U8_ggag(T130, T122, T131, T125, less34_out_gg(T130, T122)) → U9_ggag(T130, T122, T131, T125, delete1_in_gag(T130, T131, T125))
delete1_in_gag(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_gag(T167, T163, T164, T168, T166, p44_in_ggag(T163, T167, T168, T166))
p44_in_ggag(T163, T167, T168, T166) → U4_ggag(T163, T167, T168, T166, less46_in_gg(T163, T167))
less46_in_gg(0, s(T179)) → less46_out_gg(0, s(T179))
less46_in_gg(s(T184), s(T186)) → U3_gg(T184, T186, less46_in_gg(T184, T186))
U3_gg(T184, T186, less46_out_gg(T184, T186)) → less46_out_gg(s(T184), s(T186))
U4_ggag(T163, T167, T168, T166, less46_out_gg(T163, T167)) → p44_out_ggag(T163, T167, T168, T166)
p44_in_ggag(T163, T171, T172, T166) → U5_ggag(T163, T171, T172, T166, less46_in_gg(T163, T171))
U5_ggag(T163, T171, T172, T166, less46_out_gg(T163, T171)) → U6_ggag(T163, T171, T172, T166, delete1_in_gag(T171, T172, T166))
delete1_in_gag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_gag(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
delete1_in_gag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_gag(T223, T222, T224, T201, T202, p65_in_ggag(T223, T222, T224, T202))
p65_in_ggag(T223, T222, T224, T202) → U12_ggag(T223, T222, T224, T202, less34_in_gg(T223, T222))
U12_ggag(T223, T222, T224, T202, less34_out_gg(T223, T222)) → p65_out_ggag(T223, T222, T224, T202)
p65_in_ggag(T227, T222, T228, T202) → U13_ggag(T227, T222, T228, T202, less34_in_gg(T227, T222))
U13_ggag(T227, T222, T228, T202, less34_out_gg(T227, T222)) → U14_ggag(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
delete1_in_gag(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_gag(T250, T246, T247, T251, T249, p44_in_ggag(T246, T250, T251, T249))
U25_gag(T250, T246, T247, T251, T249, p44_out_ggag(T246, T250, T251, T249)) → delete1_out_gag(T250, tree(T246, T247, T251), tree(T246, T247, T249))
delete1_in_gag(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_gag(T264, T260, T261, T265, T263, p72_in_ggag(T260, T264, T265, T263))
p72_in_ggag(0, s(T272), T271, T263) → U10_ggag(T272, T271, T263, delete1_in_gag(s(T272), T271, T263))
delete1_in_gag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_gag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
U27_gag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_out_agg(T346, T343, T344)) → delete1_out_gag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345)))
delete1_in_gag(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_gag(T376, T372, T377, T374, T375, p32_in_ggag(T376, T372, T377, T375))
U28_gag(T376, T372, T377, T374, T375, p32_out_ggag(T376, T372, T377, T375)) → delete1_out_gag(T376, tree(T372, T377, T374), tree(T372, T375, T374))
delete1_in_gag(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_gag(T395, T391, T392, T396, T394, p72_in_ggag(T391, T395, T396, T394))
p72_in_ggag(s(T281), s(T283), T284, T263) → U11_ggag(T281, T283, T284, T263, p79_in_ggag(T281, T283, T284, T263))
p79_in_ggag(T281, T283, T284, T263) → U15_ggag(T281, T283, T284, T263, less46_in_gg(T281, T283))
U15_ggag(T281, T283, T284, T263, less46_out_gg(T281, T283)) → p79_out_ggag(T281, T283, T284, T263)
p79_in_ggag(T281, T287, T288, T263) → U16_ggag(T281, T287, T288, T263, less46_in_gg(T281, T287))
U16_ggag(T281, T287, T288, T263, less46_out_gg(T281, T287)) → U17_ggag(T281, T287, T288, T263, delete1_in_gag(s(T287), T288, T263))
delete1_in_gag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_gag(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
delete1_in_gag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_gag(T429, T428, T430, T407, T408, p65_in_ggag(T429, T428, T430, T408))
U31_gag(T429, T428, T430, T407, T408, p65_out_ggag(T429, T428, T430, T408)) → delete1_out_gag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407))
delete1_in_gag(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_gag(T448, T444, T445, T449, T447, p72_in_ggag(T444, T448, T449, T447))
U32_gag(T448, T444, T445, T449, T447, p72_out_ggag(T444, T448, T449, T447)) → delete1_out_gag(T448, tree(T444, T445, T449), tree(T444, T445, T447))
delete1_in_gag(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_gag(T462, T458, T459, T463, T461, p116_in_ggag(T458, T462, T463, T461))
p116_in_ggag(0, s(T470), T469, T461) → U18_ggag(T470, T469, T461, delete1_in_gag(s(T470), T469, T461))
delete1_in_gag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_gag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
U34_gag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_out_agg(T540, T537, T538)) → delete1_out_gag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539)))
delete1_in_gag(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_gag(T570, T566, T571, T568, T569, p32_in_ggag(T570, T566, T571, T569))
U35_gag(T570, T566, T571, T568, T569, p32_out_ggag(T570, T566, T571, T569)) → delete1_out_gag(T570, tree(T566, T571, T568), tree(T566, T569, T568))
delete1_in_gag(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_gag(T589, T585, T586, T590, T588, p116_in_ggag(T585, T589, T590, T588))
p116_in_ggag(s(T479), s(T481), T482, T461) → U19_ggag(T479, T481, T482, T461, p79_in_ggag(T479, T481, T482, T461))
U19_ggag(T479, T481, T482, T461, p79_out_ggag(T479, T481, T482, T461)) → p116_out_ggag(s(T479), s(T481), T482, T461)
U36_gag(T589, T585, T586, T590, T588, p116_out_ggag(T585, T589, T590, T588)) → delete1_out_gag(T589, tree(T585, T586, T590), tree(T585, T586, T588))
delete1_in_gag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_gag(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
delete1_in_gag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_gag(T623, T622, T624, T601, T602, p65_in_ggag(T623, T622, T624, T602))
U38_gag(T623, T622, T624, T601, T602, p65_out_ggag(T623, T622, T624, T602)) → delete1_out_gag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601))
delete1_in_gag(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_gag(T642, T638, T639, T643, T641, p116_in_ggag(T638, T642, T643, T641))
U39_gag(T642, T638, T639, T643, T641, p116_out_ggag(T638, T642, T643, T641)) → delete1_out_gag(T642, tree(T638, T639, T643), tree(T638, T639, T641))
delete1_in_gag(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_gag(T664, T653, T663, T655, delete1_in_gag(s(T664), T663, T655))
delete1_in_gag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_gag(T675, T673, T653, T676, T655, p79_in_ggag(T673, T675, T676, T655))
U41_gag(T675, T673, T653, T676, T655, p79_out_ggag(T673, T675, T676, T655)) → delete1_out_gag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655))
delete1_in_gag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_gag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
U42_gag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_out_agg(T730, T727, T728)) → delete1_out_gag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729)))
delete1_in_gag(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_gag(T760, T756, T761, T758, T759, p32_in_ggag(T760, T756, T761, T759))
U43_gag(T760, T756, T761, T758, T759, p32_out_ggag(T760, T756, T761, T759)) → delete1_out_gag(T760, tree(T756, T761, T758), tree(T756, T759, T758))
delete1_in_gag(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_gag(T779, T775, T776, T780, T778, p116_in_ggag(T775, T779, T780, T778))
U44_gag(T779, T775, T776, T780, T778, p116_out_ggag(T775, T779, T780, T778)) → delete1_out_gag(T779, tree(T775, T776, T780), tree(T775, T776, T778))
delete1_in_gag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_gag(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
delete1_in_gag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_gag(T813, T812, T814, T791, T792, p65_in_ggag(T813, T812, T814, T792))
U46_gag(T813, T812, T814, T791, T792, p65_out_ggag(T813, T812, T814, T792)) → delete1_out_gag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791))
delete1_in_gag(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_gag(T832, T828, T829, T833, T831, p116_in_ggag(T828, T832, T833, T831))
U47_gag(T832, T828, T829, T833, T831, p116_out_ggag(T828, T832, T833, T831)) → delete1_out_gag(T832, tree(T828, T829, T833), tree(T828, T829, T831))
delete1_in_gag(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_gag(T854, T843, T853, T845, delete1_in_gag(s(T854), T853, T845))
delete1_in_gag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_gag(T865, T863, T843, T866, T845, p79_in_ggag(T863, T865, T866, T845))
U49_gag(T865, T863, T843, T866, T845, p79_out_ggag(T863, T865, T866, T845)) → delete1_out_gag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845))
U48_gag(T854, T843, T853, T845, delete1_out_gag(s(T854), T853, T845)) → delete1_out_gag(s(T854), tree(0, T843, T853), tree(0, T843, T845))
U45_gag(T799, T800, T791, T792, delete1_out_gag(0, T800, T792)) → delete1_out_gag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791))
U40_gag(T664, T653, T663, T655, delete1_out_gag(s(T664), T663, T655)) → delete1_out_gag(s(T664), tree(0, T653, T663), tree(0, T653, T655))
U37_gag(T609, T610, T601, T602, delete1_out_gag(0, T610, T602)) → delete1_out_gag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601))
U18_ggag(T470, T469, T461, delete1_out_gag(s(T470), T469, T461)) → p116_out_ggag(0, s(T470), T469, T461)
U33_gag(T462, T458, T459, T463, T461, p116_out_ggag(T458, T462, T463, T461)) → delete1_out_gag(T462, tree(T458, T459, T463), tree(T458, T459, T461))
U30_gag(T415, T416, T407, T408, delete1_out_gag(0, T416, T408)) → delete1_out_gag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407))
U17_ggag(T281, T287, T288, T263, delete1_out_gag(s(T287), T288, T263)) → p79_out_ggag(T281, T287, T288, T263)
U11_ggag(T281, T283, T284, T263, p79_out_ggag(T281, T283, T284, T263)) → p72_out_ggag(s(T281), s(T283), T284, T263)
U29_gag(T395, T391, T392, T396, T394, p72_out_ggag(T391, T395, T396, T394)) → delete1_out_gag(T395, tree(T391, T392, T396), tree(T391, T392, T394))
U10_ggag(T272, T271, T263, delete1_out_gag(s(T272), T271, T263)) → p72_out_ggag(0, s(T272), T271, T263)
U26_gag(T264, T260, T261, T265, T263, p72_out_ggag(T260, T264, T265, T263)) → delete1_out_gag(T264, tree(T260, T261, T265), tree(T260, T261, T263))
U14_ggag(T227, T222, T228, T202, delete1_out_gag(s(T227), T228, T202)) → p65_out_ggag(T227, T222, T228, T202)
U24_gag(T223, T222, T224, T201, T202, p65_out_ggag(T223, T222, T224, T202)) → delete1_out_gag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201))
U23_gag(T209, T210, T201, T202, delete1_out_gag(0, T210, T202)) → delete1_out_gag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201))
U6_ggag(T163, T171, T172, T166, delete1_out_gag(T171, T172, T166)) → p44_out_ggag(T163, T171, T172, T166)
U22_gag(T167, T163, T164, T168, T166, p44_out_ggag(T163, T167, T168, T166)) → delete1_out_gag(T167, tree(T163, T164, T168), tree(T163, T164, T166))
U9_ggag(T130, T122, T131, T125, delete1_out_gag(T130, T131, T125)) → p32_out_ggag(T130, T122, T131, T125)
U21_gag(T126, T122, T127, T124, T125, p32_out_ggag(T126, T122, T127, T125)) → delete1_out_gag(T126, tree(T122, T127, T124), tree(T122, T125, T124))
U9_agag(T130, T122, T131, T125, delete1_out_gag(T130, T131, T125)) → p32_out_agag(T130, T122, T131, T125)
U21_aag(T126, T122, T127, T124, T125, p32_out_agag(T126, T122, T127, T125)) → delete1_out_aag(T126, tree(T122, T127, T124), tree(T122, T125, T124))
delete1_in_aag(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → U22_aag(T167, T163, T164, T168, T166, p44_in_gaag(T163, T167, T168, T166))
p44_in_gaag(T163, T167, T168, T166) → U4_gaag(T163, T167, T168, T166, less46_in_ga(T163, T167))
less46_in_ga(0, s(T179)) → less46_out_ga(0, s(T179))
less46_in_ga(s(T184), s(T186)) → U3_ga(T184, T186, less46_in_ga(T184, T186))
U3_ga(T184, T186, less46_out_ga(T184, T186)) → less46_out_ga(s(T184), s(T186))
U4_gaag(T163, T167, T168, T166, less46_out_ga(T163, T167)) → p44_out_gaag(T163, T167, T168, T166)
p44_in_gaag(T163, T171, T172, T166) → U5_gaag(T163, T171, T172, T166, less46_in_ga(T163, T171))
U5_gaag(T163, T171, T172, T166, less46_out_ga(T163, T171)) → U6_gaag(T163, T171, T172, T166, delete1_in_aag(T171, T172, T166))
delete1_in_aag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201)) → U23_aag(T209, T210, T201, T202, delete1_in_gag(0, T210, T202))
U23_aag(T209, T210, T201, T202, delete1_out_gag(0, T210, T202)) → delete1_out_aag(0, tree(s(T209), T210, T201), tree(s(T209), T202, T201))
delete1_in_aag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201)) → U24_aag(T223, T222, T224, T201, T202, p65_in_agag(T223, T222, T224, T202))
p65_in_agag(T223, T222, T224, T202) → U12_agag(T223, T222, T224, T202, less34_in_ag(T223, T222))
U12_agag(T223, T222, T224, T202, less34_out_ag(T223, T222)) → p65_out_agag(T223, T222, T224, T202)
p65_in_agag(T227, T222, T228, T202) → U13_agag(T227, T222, T228, T202, less34_in_ag(T227, T222))
U13_agag(T227, T222, T228, T202, less34_out_ag(T227, T222)) → U14_agag(T227, T222, T228, T202, delete1_in_gag(s(T227), T228, T202))
U14_agag(T227, T222, T228, T202, delete1_out_gag(s(T227), T228, T202)) → p65_out_agag(T227, T222, T228, T202)
U24_aag(T223, T222, T224, T201, T202, p65_out_agag(T223, T222, T224, T202)) → delete1_out_aag(s(T223), tree(s(T222), T224, T201), tree(s(T222), T202, T201))
delete1_in_aag(T250, tree(T246, T247, T251), tree(T246, T247, T249)) → U25_aag(T250, T246, T247, T251, T249, p44_in_gaag(T246, T250, T251, T249))
U25_aag(T250, T246, T247, T251, T249, p44_out_gaag(T246, T250, T251, T249)) → delete1_out_aag(T250, tree(T246, T247, T251), tree(T246, T247, T249))
delete1_in_aag(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → U26_aag(T264, T260, T261, T265, T263, p72_in_gaag(T260, T264, T265, T263))
p72_in_gaag(0, s(T272), T271, T263) → U10_gaag(T272, T271, T263, delete1_in_aag(s(T272), T271, T263))
delete1_in_aag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345))) → U27_aag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_in_agg(T346, T343, T344))
U27_aag(T300, T301, T340, T346, T342, T343, T344, T345, delmin19_out_agg(T346, T343, T344)) → delete1_out_aag(T300, tree(T300, T301, tree(T340, T346, T342)), tree(T343, T301, tree(T340, T344, T345)))
delete1_in_aag(T376, tree(T372, T377, T374), tree(T372, T375, T374)) → U28_aag(T376, T372, T377, T374, T375, p32_in_agag(T376, T372, T377, T375))
U28_aag(T376, T372, T377, T374, T375, p32_out_agag(T376, T372, T377, T375)) → delete1_out_aag(T376, tree(T372, T377, T374), tree(T372, T375, T374))
delete1_in_aag(T395, tree(T391, T392, T396), tree(T391, T392, T394)) → U29_aag(T395, T391, T392, T396, T394, p72_in_gaag(T391, T395, T396, T394))
p72_in_gaag(s(T281), s(T283), T284, T263) → U11_gaag(T281, T283, T284, T263, p79_in_gaag(T281, T283, T284, T263))
p79_in_gaag(T281, T283, T284, T263) → U15_gaag(T281, T283, T284, T263, less46_in_ga(T281, T283))
U15_gaag(T281, T283, T284, T263, less46_out_ga(T281, T283)) → p79_out_gaag(T281, T283, T284, T263)
p79_in_gaag(T281, T287, T288, T263) → U16_gaag(T281, T287, T288, T263, less46_in_ga(T281, T287))
U16_gaag(T281, T287, T288, T263, less46_out_ga(T281, T287)) → U17_gaag(T281, T287, T288, T263, delete1_in_aag(s(T287), T288, T263))
delete1_in_aag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407)) → U30_aag(T415, T416, T407, T408, delete1_in_gag(0, T416, T408))
U30_aag(T415, T416, T407, T408, delete1_out_gag(0, T416, T408)) → delete1_out_aag(0, tree(s(T415), T416, T407), tree(s(T415), T408, T407))
delete1_in_aag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407)) → U31_aag(T429, T428, T430, T407, T408, p65_in_agag(T429, T428, T430, T408))
U31_aag(T429, T428, T430, T407, T408, p65_out_agag(T429, T428, T430, T408)) → delete1_out_aag(s(T429), tree(s(T428), T430, T407), tree(s(T428), T408, T407))
delete1_in_aag(T448, tree(T444, T445, T449), tree(T444, T445, T447)) → U32_aag(T448, T444, T445, T449, T447, p72_in_gaag(T444, T448, T449, T447))
U32_aag(T448, T444, T445, T449, T447, p72_out_gaag(T444, T448, T449, T447)) → delete1_out_aag(T448, tree(T444, T445, T449), tree(T444, T445, T447))
delete1_in_aag(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → U33_aag(T462, T458, T459, T463, T461, p116_in_gaag(T458, T462, T463, T461))
p116_in_gaag(0, s(T470), T469, T461) → U18_gaag(T470, T469, T461, delete1_in_aag(s(T470), T469, T461))
delete1_in_aag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539))) → U34_aag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_in_agg(T540, T537, T538))
U34_aag(T494, T495, T534, T540, T536, T537, T538, T539, delmin19_out_agg(T540, T537, T538)) → delete1_out_aag(T494, tree(T494, T495, tree(T534, T540, T536)), tree(T537, T495, tree(T534, T538, T539)))
delete1_in_aag(T570, tree(T566, T571, T568), tree(T566, T569, T568)) → U35_aag(T570, T566, T571, T568, T569, p32_in_agag(T570, T566, T571, T569))
U35_aag(T570, T566, T571, T568, T569, p32_out_agag(T570, T566, T571, T569)) → delete1_out_aag(T570, tree(T566, T571, T568), tree(T566, T569, T568))
delete1_in_aag(T589, tree(T585, T586, T590), tree(T585, T586, T588)) → U36_aag(T589, T585, T586, T590, T588, p116_in_gaag(T585, T589, T590, T588))
p116_in_gaag(s(T479), s(T481), T482, T461) → U19_gaag(T479, T481, T482, T461, p79_in_gaag(T479, T481, T482, T461))
U19_gaag(T479, T481, T482, T461, p79_out_gaag(T479, T481, T482, T461)) → p116_out_gaag(s(T479), s(T481), T482, T461)
U36_aag(T589, T585, T586, T590, T588, p116_out_gaag(T585, T589, T590, T588)) → delete1_out_aag(T589, tree(T585, T586, T590), tree(T585, T586, T588))
delete1_in_aag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601)) → U37_aag(T609, T610, T601, T602, delete1_in_gag(0, T610, T602))
U37_aag(T609, T610, T601, T602, delete1_out_gag(0, T610, T602)) → delete1_out_aag(0, tree(s(T609), T610, T601), tree(s(T609), T602, T601))
delete1_in_aag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601)) → U38_aag(T623, T622, T624, T601, T602, p65_in_agag(T623, T622, T624, T602))
U38_aag(T623, T622, T624, T601, T602, p65_out_agag(T623, T622, T624, T602)) → delete1_out_aag(s(T623), tree(s(T622), T624, T601), tree(s(T622), T602, T601))
delete1_in_aag(T642, tree(T638, T639, T643), tree(T638, T639, T641)) → U39_aag(T642, T638, T639, T643, T641, p116_in_gaag(T638, T642, T643, T641))
U39_aag(T642, T638, T639, T643, T641, p116_out_gaag(T638, T642, T643, T641)) → delete1_out_aag(T642, tree(T638, T639, T643), tree(T638, T639, T641))
delete1_in_aag(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → U40_aag(T664, T653, T663, T655, delete1_in_aag(s(T664), T663, T655))
delete1_in_aag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → U41_aag(T675, T673, T653, T676, T655, p79_in_gaag(T673, T675, T676, T655))
U41_aag(T675, T673, T653, T676, T655, p79_out_gaag(T673, T675, T676, T655)) → delete1_out_aag(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655))
delete1_in_aag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729))) → U42_aag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_in_agg(T730, T727, T728))
U42_aag(T684, T685, T724, T730, T726, T727, T728, T729, delmin19_out_agg(T730, T727, T728)) → delete1_out_aag(T684, tree(T684, T685, tree(T724, T730, T726)), tree(T727, T685, tree(T724, T728, T729)))
delete1_in_aag(T760, tree(T756, T761, T758), tree(T756, T759, T758)) → U43_aag(T760, T756, T761, T758, T759, p32_in_agag(T760, T756, T761, T759))
U43_aag(T760, T756, T761, T758, T759, p32_out_agag(T760, T756, T761, T759)) → delete1_out_aag(T760, tree(T756, T761, T758), tree(T756, T759, T758))
delete1_in_aag(T779, tree(T775, T776, T780), tree(T775, T776, T778)) → U44_aag(T779, T775, T776, T780, T778, p116_in_gaag(T775, T779, T780, T778))
U44_aag(T779, T775, T776, T780, T778, p116_out_gaag(T775, T779, T780, T778)) → delete1_out_aag(T779, tree(T775, T776, T780), tree(T775, T776, T778))
delete1_in_aag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791)) → U45_aag(T799, T800, T791, T792, delete1_in_gag(0, T800, T792))
U45_aag(T799, T800, T791, T792, delete1_out_gag(0, T800, T792)) → delete1_out_aag(0, tree(s(T799), T800, T791), tree(s(T799), T792, T791))
delete1_in_aag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791)) → U46_aag(T813, T812, T814, T791, T792, p65_in_agag(T813, T812, T814, T792))
U46_aag(T813, T812, T814, T791, T792, p65_out_agag(T813, T812, T814, T792)) → delete1_out_aag(s(T813), tree(s(T812), T814, T791), tree(s(T812), T792, T791))
delete1_in_aag(T832, tree(T828, T829, T833), tree(T828, T829, T831)) → U47_aag(T832, T828, T829, T833, T831, p116_in_gaag(T828, T832, T833, T831))
U47_aag(T832, T828, T829, T833, T831, p116_out_gaag(T828, T832, T833, T831)) → delete1_out_aag(T832, tree(T828, T829, T833), tree(T828, T829, T831))
delete1_in_aag(s(T854), tree(0, T843, T853), tree(0, T843, T845)) → U48_aag(T854, T843, T853, T845, delete1_in_aag(s(T854), T853, T845))
delete1_in_aag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845)) → U49_aag(T865, T863, T843, T866, T845, p79_in_gaag(T863, T865, T866, T845))
U49_aag(T865, T863, T843, T866, T845, p79_out_gaag(T863, T865, T866, T845)) → delete1_out_aag(s(T865), tree(s(T863), T843, T866), tree(s(T863), T843, T845))
U48_aag(T854, T843, T853, T845, delete1_out_aag(s(T854), T853, T845)) → delete1_out_aag(s(T854), tree(0, T843, T853), tree(0, T843, T845))
U40_aag(T664, T653, T663, T655, delete1_out_aag(s(T664), T663, T655)) → delete1_out_aag(s(T664), tree(0, T653, T663), tree(0, T653, T655))
U18_gaag(T470, T469, T461, delete1_out_aag(s(T470), T469, T461)) → p116_out_gaag(0, s(T470), T469, T461)
U33_aag(T462, T458, T459, T463, T461, p116_out_gaag(T458, T462, T463, T461)) → delete1_out_aag(T462, tree(T458, T459, T463), tree(T458, T459, T461))
U17_gaag(T281, T287, T288, T263, delete1_out_aag(s(T287), T288, T263)) → p79_out_gaag(T281, T287, T288, T263)
U11_gaag(T281, T283, T284, T263, p79_out_gaag(T281, T283, T284, T263)) → p72_out_gaag(s(T281), s(T283), T284, T263)
U29_aag(T395, T391, T392, T396, T394, p72_out_gaag(T391, T395, T396, T394)) → delete1_out_aag(T395, tree(T391, T392, T396), tree(T391, T392, T394))
U10_gaag(T272, T271, T263, delete1_out_aag(s(T272), T271, T263)) → p72_out_gaag(0, s(T272), T271, T263)
U26_aag(T264, T260, T261, T265, T263, p72_out_gaag(T260, T264, T265, T263)) → delete1_out_aag(T264, tree(T260, T261, T265), tree(T260, T261, T263))
U6_gaag(T163, T171, T172, T166, delete1_out_aag(T171, T172, T166)) → p44_out_gaag(T163, T171, T172, T166)
U22_aag(T167, T163, T164, T168, T166, p44_out_gaag(T163, T167, T168, T166)) → delete1_out_aag(T167, tree(T163, T164, T168), tree(T163, T164, T166))

The argument filtering Pi contains the following mapping:
delete1_in_aag(x1, x2, x3)  =  delete1_in_aag(x3)
delete1_out_aag(x1, x2, x3)  =  delete1_out_aag
tree(x1, x2, x3)  =  tree(x1, x2, x3)
U20_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aag(x9)
delmin19_in_agg(x1, x2, x3)  =  delmin19_in_agg(x2, x3)
delmin19_out_agg(x1, x2, x3)  =  delmin19_out_agg
U1_agg(x1, x2, x3, x4, x5, x6, x7)  =  U1_agg(x7)
U21_aag(x1, x2, x3, x4, x5, x6)  =  U21_aag(x6)
p32_in_agag(x1, x2, x3, x4)  =  p32_in_agag(x2, x4)
U7_agag(x1, x2, x3, x4, x5)  =  U7_agag(x5)
less34_in_ag(x1, x2)  =  less34_in_ag(x2)
s(x1)  =  s(x1)
less34_out_ag(x1, x2)  =  less34_out_ag(x1)
U2_ag(x1, x2, x3)  =  U2_ag(x3)
p32_out_agag(x1, x2, x3, x4)  =  p32_out_agag(x1)
U8_agag(x1, x2, x3, x4, x5)  =  U8_agag(x4, x5)
U9_agag(x1, x2, x3, x4, x5)  =  U9_agag(x1, x5)
delete1_in_gag(x1, x2, x3)  =  delete1_in_gag(x1, x3)
delete1_out_gag(x1, x2, x3)  =  delete1_out_gag
U20_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gag(x9)
U21_gag(x1, x2, x3, x4, x5, x6)  =  U21_gag(x6)
p32_in_ggag(x1, x2, x3, x4)  =  p32_in_ggag(x1, x2, x4)
U7_ggag(x1, x2, x3, x4, x5)  =  U7_ggag(x5)
less34_in_gg(x1, x2)  =  less34_in_gg(x1, x2)
0  =  0
less34_out_gg(x1, x2)  =  less34_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
p32_out_ggag(x1, x2, x3, x4)  =  p32_out_ggag
U8_ggag(x1, x2, x3, x4, x5)  =  U8_ggag(x1, x4, x5)
U9_ggag(x1, x2, x3, x4, x5)  =  U9_ggag(x5)
U22_gag(x1, x2, x3, x4, x5, x6)  =  U22_gag(x6)
p44_in_ggag(x1, x2, x3, x4)  =  p44_in_ggag(x1, x2, x4)
U4_ggag(x1, x2, x3, x4, x5)  =  U4_ggag(x5)
less46_in_gg(x1, x2)  =  less46_in_gg(x1, x2)
less46_out_gg(x1, x2)  =  less46_out_gg
U3_gg(x1, x2, x3)  =  U3_gg(x3)
p44_out_ggag(x1, x2, x3, x4)  =  p44_out_ggag
U5_ggag(x1, x2, x3, x4, x5)  =  U5_ggag(x2, x4, x5)
U6_ggag(x1, x2, x3, x4, x5)  =  U6_ggag(x5)
U23_gag(x1, x2, x3, x4, x5)  =  U23_gag(x5)
U24_gag(x1, x2, x3, x4, x5, x6)  =  U24_gag(x6)
p65_in_ggag(x1, x2, x3, x4)  =  p65_in_ggag(x1, x2, x4)
U12_ggag(x1, x2, x3, x4, x5)  =  U12_ggag(x5)
p65_out_ggag(x1, x2, x3, x4)  =  p65_out_ggag
U13_ggag(x1, x2, x3, x4, x5)  =  U13_ggag(x1, x4, x5)
U14_ggag(x1, x2, x3, x4, x5)  =  U14_ggag(x5)
U25_gag(x1, x2, x3, x4, x5, x6)  =  U25_gag(x6)
U26_gag(x1, x2, x3, x4, x5, x6)  =  U26_gag(x6)
p72_in_ggag(x1, x2, x3, x4)  =  p72_in_ggag(x1, x2, x4)
U10_ggag(x1, x2, x3, x4)  =  U10_ggag(x4)
U27_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gag(x9)
U28_gag(x1, x2, x3, x4, x5, x6)  =  U28_gag(x6)
U29_gag(x1, x2, x3, x4, x5, x6)  =  U29_gag(x6)
U11_ggag(x1, x2, x3, x4, x5)  =  U11_ggag(x5)
p79_in_ggag(x1, x2, x3, x4)  =  p79_in_ggag(x1, x2, x4)
U15_ggag(x1, x2, x3, x4, x5)  =  U15_ggag(x5)
p79_out_ggag(x1, x2, x3, x4)  =  p79_out_ggag
U16_ggag(x1, x2, x3, x4, x5)  =  U16_ggag(x2, x4, x5)
U17_ggag(x1, x2, x3, x4, x5)  =  U17_ggag(x5)
U30_gag(x1, x2, x3, x4, x5)  =  U30_gag(x5)
U31_gag(x1, x2, x3, x4, x5, x6)  =  U31_gag(x6)
U32_gag(x1, x2, x3, x4, x5, x6)  =  U32_gag(x6)
p72_out_ggag(x1, x2, x3, x4)  =  p72_out_ggag
U33_gag(x1, x2, x3, x4, x5, x6)  =  U33_gag(x6)
p116_in_ggag(x1, x2, x3, x4)  =  p116_in_ggag(x1, x2, x4)
U18_ggag(x1, x2, x3, x4)  =  U18_ggag(x4)
U34_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_gag(x9)
U35_gag(x1, x2, x3, x4, x5, x6)  =  U35_gag(x6)
U36_gag(x1, x2, x3, x4, x5, x6)  =  U36_gag(x6)
U19_ggag(x1, x2, x3, x4, x5)  =  U19_ggag(x5)
p116_out_ggag(x1, x2, x3, x4)  =  p116_out_ggag
U37_gag(x1, x2, x3, x4, x5)  =  U37_gag(x5)
U38_gag(x1, x2, x3, x4, x5, x6)  =  U38_gag(x6)
U39_gag(x1, x2, x3, x4, x5, x6)  =  U39_gag(x6)
U40_gag(x1, x2, x3, x4, x5)  =  U40_gag(x5)
U41_gag(x1, x2, x3, x4, x5, x6)  =  U41_gag(x6)
U42_gag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_gag(x9)
U43_gag(x1, x2, x3, x4, x5, x6)  =  U43_gag(x6)
U44_gag(x1, x2, x3, x4, x5, x6)  =  U44_gag(x6)
U45_gag(x1, x2, x3, x4, x5)  =  U45_gag(x5)
U46_gag(x1, x2, x3, x4, x5, x6)  =  U46_gag(x6)
U47_gag(x1, x2, x3, x4, x5, x6)  =  U47_gag(x6)
U48_gag(x1, x2, x3, x4, x5)  =  U48_gag(x5)
U49_gag(x1, x2, x3, x4, x5, x6)  =  U49_gag(x6)
U22_aag(x1, x2, x3, x4, x5, x6)  =  U22_aag(x6)
p44_in_gaag(x1, x2, x3, x4)  =  p44_in_gaag(x1, x4)
U4_gaag(x1, x2, x3, x4, x5)  =  U4_gaag(x5)
less46_in_ga(x1, x2)  =  less46_in_ga(x1)
less46_out_ga(x1, x2)  =  less46_out_ga
U3_ga(x1, x2, x3)  =  U3_ga(x3)
p44_out_gaag(x1, x2, x3, x4)  =  p44_out_gaag
U5_gaag(x1, x2, x3, x4, x5)  =  U5_gaag(x4, x5)
U6_gaag(x1, x2, x3, x4, x5)  =  U6_gaag(x5)
U23_aag(x1, x2, x3, x4, x5)  =  U23_aag(x5)
U24_aag(x1, x2, x3, x4, x5, x6)  =  U24_aag(x6)
p65_in_agag(x1, x2, x3, x4)  =  p65_in_agag(x2, x4)
U12_agag(x1, x2, x3, x4, x5)  =  U12_agag(x5)
p65_out_agag(x1, x2, x3, x4)  =  p65_out_agag(x1)
U13_agag(x1, x2, x3, x4, x5)  =  U13_agag(x4, x5)
U14_agag(x1, x2, x3, x4, x5)  =  U14_agag(x1, x5)
U25_aag(x1, x2, x3, x4, x5, x6)  =  U25_aag(x6)
U26_aag(x1, x2, x3, x4, x5, x6)  =  U26_aag(x6)
p72_in_gaag(x1, x2, x3, x4)  =  p72_in_gaag(x1, x4)
U10_gaag(x1, x2, x3, x4)  =  U10_gaag(x4)
U27_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aag(x9)
U28_aag(x1, x2, x3, x4, x5, x6)  =  U28_aag(x6)
U29_aag(x1, x2, x3, x4, x5, x6)  =  U29_aag(x6)
U11_gaag(x1, x2, x3, x4, x5)  =  U11_gaag(x5)
p79_in_gaag(x1, x2, x3, x4)  =  p79_in_gaag(x1, x4)
U15_gaag(x1, x2, x3, x4, x5)  =  U15_gaag(x5)
p79_out_gaag(x1, x2, x3, x4)  =  p79_out_gaag
U16_gaag(x1, x2, x3, x4, x5)  =  U16_gaag(x4, x5)
U17_gaag(x1, x2, x3, x4, x5)  =  U17_gaag(x5)
U30_aag(x1, x2, x3, x4, x5)  =  U30_aag(x5)
U31_aag(x1, x2, x3, x4, x5, x6)  =  U31_aag(x6)
U32_aag(x1, x2, x3, x4, x5, x6)  =  U32_aag(x6)
p72_out_gaag(x1, x2, x3, x4)  =  p72_out_gaag
U33_aag(x1, x2, x3, x4, x5, x6)  =  U33_aag(x6)
p116_in_gaag(x1, x2, x3, x4)  =  p116_in_gaag(x1, x4)
U18_gaag(x1, x2, x3, x4)  =  U18_gaag(x4)
U34_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U34_aag(x9)
U35_aag(x1, x2, x3, x4, x5, x6)  =  U35_aag(x6)
U36_aag(x1, x2, x3, x4, x5, x6)  =  U36_aag(x6)
U19_gaag(x1, x2, x3, x4, x5)  =  U19_gaag(x5)
p116_out_gaag(x1, x2, x3, x4)  =  p116_out_gaag
U37_aag(x1, x2, x3, x4, x5)  =  U37_aag(x5)
U38_aag(x1, x2, x3, x4, x5, x6)  =  U38_aag(x6)
U39_aag(x1, x2, x3, x4, x5, x6)  =  U39_aag(x6)
U40_aag(x1, x2, x3, x4, x5)  =  U40_aag(x5)
U41_aag(x1, x2, x3, x4, x5, x6)  =  U41_aag(x6)
U42_aag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U42_aag(x9)
U43_aag(x1, x2, x3, x4, x5, x6)  =  U43_aag(x6)
U44_aag(x1, x2, x3, x4, x5, x6)  =  U44_aag(x6)
U45_aag(x1, x2, x3, x4, x5)  =  U45_aag(x5)
U46_aag(x1, x2, x3, x4, x5, x6)  =  U46_aag(x6)
U47_aag(x1, x2, x3, x4, x5, x6)  =  U47_aag(x6)
U48_aag(x1, x2, x3, x4, x5)  =  U48_aag(x5)
U49_aag(x1, x2, x3, x4, x5, x6)  =  U49_aag(x6)
DELETE1_IN_AAG(x1, x2, x3)  =  DELETE1_IN_AAG(x3)
P44_IN_GAAG(x1, x2, x3, x4)  =  P44_IN_GAAG(x1, x4)
U5_GAAG(x1, x2, x3, x4, x5)  =  U5_GAAG(x4, x5)
P72_IN_GAAG(x1, x2, x3, x4)  =  P72_IN_GAAG(x1, x4)
P79_IN_GAAG(x1, x2, x3, x4)  =  P79_IN_GAAG(x1, x4)
U16_GAAG(x1, x2, x3, x4, x5)  =  U16_GAAG(x4, x5)
P116_IN_GAAG(x1, x2, x3, x4)  =  P116_IN_GAAG(x1, x4)

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

(52) UsableRulesProof (EQUIVALENT transformation)

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

(53) Obligation:

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

DELETE1_IN_AAG(T167, tree(T163, T164, T168), tree(T163, T164, T166)) → P44_IN_GAAG(T163, T167, T168, T166)
P44_IN_GAAG(T163, T171, T172, T166) → U5_GAAG(T163, T171, T172, T166, less46_in_ga(T163, T171))
U5_GAAG(T163, T171, T172, T166, less46_out_ga(T163, T171)) → DELETE1_IN_AAG(T171, T172, T166)
DELETE1_IN_AAG(T264, tree(T260, T261, T265), tree(T260, T261, T263)) → P72_IN_GAAG(T260, T264, T265, T263)
P72_IN_GAAG(0, s(T272), T271, T263) → DELETE1_IN_AAG(s(T272), T271, T263)
DELETE1_IN_AAG(T462, tree(T458, T459, T463), tree(T458, T459, T461)) → P116_IN_GAAG(T458, T462, T463, T461)
P116_IN_GAAG(0, s(T470), T469, T461) → DELETE1_IN_AAG(s(T470), T469, T461)
DELETE1_IN_AAG(s(T664), tree(0, T653, T663), tree(0, T653, T655)) → DELETE1_IN_AAG(s(T664), T663, T655)
DELETE1_IN_AAG(s(T675), tree(s(T673), T653, T676), tree(s(T673), T653, T655)) → P79_IN_GAAG(T673, T675, T676, T655)
P79_IN_GAAG(T281, T287, T288, T263) → U16_GAAG(T281, T287, T288, T263, less46_in_ga(T281, T287))
U16_GAAG(T281, T287, T288, T263, less46_out_ga(T281, T287)) → DELETE1_IN_AAG(s(T287), T288, T263)
P116_IN_GAAG(s(T479), s(T481), T482, T461) → P79_IN_GAAG(T479, T481, T482, T461)
P72_IN_GAAG(s(T281), s(T283), T284, T263) → P79_IN_GAAG(T281, T283, T284, T263)

The TRS R consists of the following rules:

less46_in_ga(0, s(T179)) → less46_out_ga(0, s(T179))
less46_in_ga(s(T184), s(T186)) → U3_ga(T184, T186, less46_in_ga(T184, T186))
U3_ga(T184, T186, less46_out_ga(T184, T186)) → less46_out_ga(s(T184), s(T186))

The argument filtering Pi contains the following mapping:
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
0  =  0
less46_in_ga(x1, x2)  =  less46_in_ga(x1)
less46_out_ga(x1, x2)  =  less46_out_ga
U3_ga(x1, x2, x3)  =  U3_ga(x3)
DELETE1_IN_AAG(x1, x2, x3)  =  DELETE1_IN_AAG(x3)
P44_IN_GAAG(x1, x2, x3, x4)  =  P44_IN_GAAG(x1, x4)
U5_GAAG(x1, x2, x3, x4, x5)  =  U5_GAAG(x4, x5)
P72_IN_GAAG(x1, x2, x3, x4)  =  P72_IN_GAAG(x1, x4)
P79_IN_GAAG(x1, x2, x3, x4)  =  P79_IN_GAAG(x1, x4)
U16_GAAG(x1, x2, x3, x4, x5)  =  U16_GAAG(x4, x5)
P116_IN_GAAG(x1, x2, x3, x4)  =  P116_IN_GAAG(x1, x4)

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

(54) PiDPToQDPProof (SOUND transformation)

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

(55) Obligation:

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

DELETE1_IN_AAG(tree(T163, T164, T166)) → P44_IN_GAAG(T163, T166)
P44_IN_GAAG(T163, T166) → U5_GAAG(T166, less46_in_ga(T163))
U5_GAAG(T166, less46_out_ga) → DELETE1_IN_AAG(T166)
DELETE1_IN_AAG(tree(T260, T261, T263)) → P72_IN_GAAG(T260, T263)
P72_IN_GAAG(0, T263) → DELETE1_IN_AAG(T263)
DELETE1_IN_AAG(tree(T458, T459, T461)) → P116_IN_GAAG(T458, T461)
P116_IN_GAAG(0, T461) → DELETE1_IN_AAG(T461)
DELETE1_IN_AAG(tree(0, T653, T655)) → DELETE1_IN_AAG(T655)
DELETE1_IN_AAG(tree(s(T673), T653, T655)) → P79_IN_GAAG(T673, T655)
P79_IN_GAAG(T281, T263) → U16_GAAG(T263, less46_in_ga(T281))
U16_GAAG(T263, less46_out_ga) → DELETE1_IN_AAG(T263)
P116_IN_GAAG(s(T479), T461) → P79_IN_GAAG(T479, T461)
P72_IN_GAAG(s(T281), T263) → P79_IN_GAAG(T281, T263)

The TRS R consists of the following rules:

less46_in_ga(0) → less46_out_ga
less46_in_ga(s(T184)) → U3_ga(less46_in_ga(T184))
U3_ga(less46_out_ga) → less46_out_ga

The set Q consists of the following terms:

less46_in_ga(x0)
U3_ga(x0)

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

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

  • P44_IN_GAAG(T163, T166) → U5_GAAG(T166, less46_in_ga(T163))
    The graph contains the following edges 2 >= 1

  • U5_GAAG(T166, less46_out_ga) → DELETE1_IN_AAG(T166)
    The graph contains the following edges 1 >= 1

  • DELETE1_IN_AAG(tree(T163, T164, T166)) → P44_IN_GAAG(T163, T166)
    The graph contains the following edges 1 > 1, 1 > 2

  • DELETE1_IN_AAG(tree(0, T653, T655)) → DELETE1_IN_AAG(T655)
    The graph contains the following edges 1 > 1

  • P72_IN_GAAG(0, T263) → DELETE1_IN_AAG(T263)
    The graph contains the following edges 2 >= 1

  • P72_IN_GAAG(s(T281), T263) → P79_IN_GAAG(T281, T263)
    The graph contains the following edges 1 > 1, 2 >= 2

  • DELETE1_IN_AAG(tree(T260, T261, T263)) → P72_IN_GAAG(T260, T263)
    The graph contains the following edges 1 > 1, 1 > 2

  • P116_IN_GAAG(0, T461) → DELETE1_IN_AAG(T461)
    The graph contains the following edges 2 >= 1

  • U16_GAAG(T263, less46_out_ga) → DELETE1_IN_AAG(T263)
    The graph contains the following edges 1 >= 1

  • P116_IN_GAAG(s(T479), T461) → P79_IN_GAAG(T479, T461)
    The graph contains the following edges 1 > 1, 2 >= 2

  • P79_IN_GAAG(T281, T263) → U16_GAAG(T263, less46_in_ga(T281))
    The graph contains the following edges 2 >= 1

  • DELETE1_IN_AAG(tree(T458, T459, T461)) → P116_IN_GAAG(T458, T461)
    The graph contains the following edges 1 > 1, 1 > 2

  • DELETE1_IN_AAG(tree(s(T673), T653, T655)) → P79_IN_GAAG(T673, T655)
    The graph contains the following edges 1 > 1, 1 > 2

(57) YES