0 Prolog
↳1 PrologToPrologProblemTransformerProof (⇐)
↳2 Prolog
↳3 PrologToPiTRSProof (⇐)
↳4 PiTRS
↳5 DependencyPairsProof (⇔)
↳6 PiDP
↳7 DependencyGraphProof (⇔)
↳8 AND
↳9 PiDP
↳10 UsableRulesProof (⇔)
↳11 PiDP
↳12 PiDPToQDPProof (⇐)
↳13 QDP
↳14 QDPSizeChangeProof (⇔)
↳15 YES
↳16 PiDP
↳17 UsableRulesProof (⇔)
↳18 PiDP
↳19 PiDPToQDPProof (⇔)
↳20 QDP
↳21 QDPSizeChangeProof (⇔)
↳22 YES
↳23 PiDP
↳24 UsableRulesProof (⇔)
↳25 PiDP
↳26 PiDPToQDPProof (⇔)
↳27 QDP
↳28 QDPSizeChangeProof (⇔)
↳29 YES
↳30 PiDP
↳31 UsableRulesProof (⇔)
↳32 PiDP
↳33 PiDPToQDPProof (⇐)
↳34 QDP
↳35 QDPSizeChangeProof (⇔)
↳36 YES
↳37 PiDP
↳38 UsableRulesProof (⇔)
↳39 PiDP
↳40 PiDPToQDPProof (⇐)
↳41 QDP
↳42 QDPSizeChangeProof (⇔)
↳43 YES
↳44 PiDP
↳45 UsableRulesProof (⇔)
↳46 PiDP
↳47 PiDPToQDPProof (⇐)
↳48 QDP
↳49 QDPSizeChangeProof (⇔)
↳50 YES
↳51 PiDP
↳52 UsableRulesProof (⇔)
↳53 PiDP
↳54 PiDPToQDPProof (⇐)
↳55 QDP
↳56 QDPSizeChangeProof (⇔)
↳57 YES
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))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
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))
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))
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))
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))
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))
LESS46_IN_GA(s(T184), s(T186)) → LESS46_IN_GA(T184, T186)
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))
LESS46_IN_GA(s(T184), s(T186)) → LESS46_IN_GA(T184, T186)
LESS46_IN_GA(s(T184)) → LESS46_IN_GA(T184)
From the DPs we obtained the following set of size-change graphs:
LESS46_IN_GG(s(T184), s(T186)) → LESS46_IN_GG(T184, T186)
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))
LESS46_IN_GG(s(T184), s(T186)) → LESS46_IN_GG(T184, T186)
LESS46_IN_GG(s(T184), s(T186)) → LESS46_IN_GG(T184, T186)
From the DPs we obtained the following set of size-change graphs:
LESS34_IN_GG(s(T145), s(T144)) → LESS34_IN_GG(T145, T144)
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))
LESS34_IN_GG(s(T145), s(T144)) → LESS34_IN_GG(T145, T144)
LESS34_IN_GG(s(T145), s(T144)) → LESS34_IN_GG(T145, T144)
From the DPs we obtained the following set of size-change graphs:
LESS34_IN_AG(s(T145), s(T144)) → LESS34_IN_AG(T145, T144)
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))
LESS34_IN_AG(s(T145), s(T144)) → LESS34_IN_AG(T145, T144)
LESS34_IN_AG(s(T144)) → LESS34_IN_AG(T144)
From the DPs we obtained the following set of size-change graphs:
DELMIN19_IN_AGG(tree(T90, T96, T92), T93, tree(T90, T94, T95)) → DELMIN19_IN_AGG(T96, T93, T94)
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))
DELMIN19_IN_AGG(tree(T90, T96, T92), T93, tree(T90, T94, T95)) → DELMIN19_IN_AGG(T96, T93, T94)
DELMIN19_IN_AGG(T93, tree(T90, T94, T95)) → DELMIN19_IN_AGG(T93, T94)
From the DPs we obtained the following set of size-change graphs:
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)
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))
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)
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))
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)
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
less34_in_gg(x0, x1)
less46_in_gg(x0, x1)
U2_gg(x0)
U3_gg(x0)
From the DPs we obtained the following set of size-change graphs:
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)
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))
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)
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))
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)
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
less46_in_ga(x0)
U3_ga(x0)
From the DPs we obtained the following set of size-change graphs: