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
insert1_in_aga(T5, void, tree(T5, void, void)) → insert1_out_aga(T5, void, tree(T5, void, void))
insert1_in_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insert1_out_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insert1_in_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U11_aga(T31, T22, T23, T32, insert1_in_gga(0, T22, T32))
insert1_in_gga(T5, void, tree(T5, void, void)) → insert1_out_gga(T5, void, tree(T5, void, void))
insert1_in_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insert1_out_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insert1_in_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U11_gga(T31, T22, T23, T32, insert1_in_gga(0, T22, T32))
insert1_in_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U12_gga(T43, T42, T22, T23, T44, p21_in_ggga(T43, T42, T22, T44))
p21_in_ggga(T43, T42, T22, T44) → U3_ggga(T43, T42, T22, T44, less23_in_gg(T43, T42))
less23_in_gg(0, s(T55)) → less23_out_gg(0, s(T55))
less23_in_gg(s(T62), s(T61)) → U1_gg(T62, T61, less23_in_gg(T62, T61))
U1_gg(T62, T61, less23_out_gg(T62, T61)) → less23_out_gg(s(T62), s(T61))
U3_ggga(T43, T42, T22, T44, less23_out_gg(T43, T42)) → p21_out_ggga(T43, T42, T22, T44)
p21_in_ggga(T47, T42, T22, T48) → U4_ggga(T47, T42, T22, T48, less23_in_gg(T47, T42))
U4_ggga(T47, T42, T22, T48, less23_out_gg(T47, T42)) → U5_ggga(T47, T42, T22, T48, insert1_in_gga(s(T47), T22, T48))
insert1_in_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U13_gga(T82, T78, T79, T80, T83, less36_in_gg(T78, T82))
less36_in_gg(0, s(T94)) → less36_out_gg(0, s(T94))
less36_in_gg(s(T99), s(T101)) → U2_gg(T99, T101, less36_in_gg(T99, T101))
U2_gg(T99, T101, less36_out_gg(T99, T101)) → less36_out_gg(s(T99), s(T101))
U13_gga(T82, T78, T79, T80, T83, less36_out_gg(T78, T82)) → insert1_out_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
insert1_in_gga(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_gga(T86, T78, T79, T80, T87, less36_in_gg(T78, T86))
U14_gga(T86, T78, T79, T80, T87, less36_out_gg(T78, T86)) → U15_gga(T86, T78, T79, T80, T87, insert1_in_gga(T86, T80, T87))
insert1_in_gga(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → U16_gga(T116, T112, T113, T114, T117, p46_in_ggga(T112, T116, T114, T117))
p46_in_ggga(0, s(T124), T114, T123) → U6_ggga(T124, T114, T123, insert1_in_gga(s(T124), T114, T123))
insert1_in_gga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) → U17_gga(T159, T150, T151, T160, insert1_in_gga(0, T150, T160))
insert1_in_gga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) → U18_gga(T171, T170, T150, T151, T172, p21_in_ggga(T171, T170, T150, T172))
U18_gga(T171, T170, T150, T151, T172, p21_out_ggga(T171, T170, T150, T172)) → insert1_out_gga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151))
insert1_in_gga(T190, tree(T186, T187, T188), tree(T186, T187, T191)) → U19_gga(T190, T186, T187, T188, T191, p46_in_ggga(T186, T190, T188, T191))
p46_in_ggga(s(T131), s(T133), T114, T134) → U7_ggga(T131, T133, T114, T134, p53_in_ggga(T131, T133, T114, T134))
p53_in_ggga(T131, T133, T114, T134) → U8_ggga(T131, T133, T114, T134, less36_in_gg(T131, T133))
U8_ggga(T131, T133, T114, T134, less36_out_gg(T131, T133)) → p53_out_ggga(T131, T133, T114, T134)
p53_in_ggga(T131, T137, T114, T138) → U9_ggga(T131, T137, T114, T138, less36_in_gg(T131, T137))
U9_ggga(T131, T137, T114, T138, less36_out_gg(T131, T137)) → U10_ggga(T131, T137, T114, T138, insert1_in_gga(s(T137), T114, T138))
insert1_in_gga(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → U20_gga(T212, T201, T202, T211, insert1_in_gga(s(T212), T202, T211))
insert1_in_gga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → U21_gga(T221, T219, T201, T202, T222, p53_in_ggga(T219, T221, T202, T222))
U21_gga(T221, T219, T201, T202, T222, p53_out_ggga(T219, T221, T202, T222)) → insert1_out_gga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222))
U20_gga(T212, T201, T202, T211, insert1_out_gga(s(T212), T202, T211)) → insert1_out_gga(s(T212), tree(0, T201, T202), tree(0, T201, T211))
U10_ggga(T131, T137, T114, T138, insert1_out_gga(s(T137), T114, T138)) → p53_out_ggga(T131, T137, T114, T138)
U7_ggga(T131, T133, T114, T134, p53_out_ggga(T131, T133, T114, T134)) → p46_out_ggga(s(T131), s(T133), T114, T134)
U19_gga(T190, T186, T187, T188, T191, p46_out_ggga(T186, T190, T188, T191)) → insert1_out_gga(T190, tree(T186, T187, T188), tree(T186, T187, T191))
U17_gga(T159, T150, T151, T160, insert1_out_gga(0, T150, T160)) → insert1_out_gga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151))
U6_ggga(T124, T114, T123, insert1_out_gga(s(T124), T114, T123)) → p46_out_ggga(0, s(T124), T114, T123)
U16_gga(T116, T112, T113, T114, T117, p46_out_ggga(T112, T116, T114, T117)) → insert1_out_gga(T116, tree(T112, T113, T114), tree(T112, T113, T117))
U15_gga(T86, T78, T79, T80, T87, insert1_out_gga(T86, T80, T87)) → insert1_out_gga(T86, tree(T78, T79, T80), tree(T78, T79, T87))
U5_ggga(T47, T42, T22, T48, insert1_out_gga(s(T47), T22, T48)) → p21_out_ggga(T47, T42, T22, T48)
U12_gga(T43, T42, T22, T23, T44, p21_out_ggga(T43, T42, T22, T44)) → insert1_out_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
U11_gga(T31, T22, T23, T32, insert1_out_gga(0, T22, T32)) → insert1_out_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
U11_aga(T31, T22, T23, T32, insert1_out_gga(0, T22, T32)) → insert1_out_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
insert1_in_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U12_aga(T43, T42, T22, T23, T44, p21_in_agga(T43, T42, T22, T44))
p21_in_agga(T43, T42, T22, T44) → U3_agga(T43, T42, T22, T44, less23_in_ag(T43, T42))
less23_in_ag(0, s(T55)) → less23_out_ag(0, s(T55))
less23_in_ag(s(T62), s(T61)) → U1_ag(T62, T61, less23_in_ag(T62, T61))
U1_ag(T62, T61, less23_out_ag(T62, T61)) → less23_out_ag(s(T62), s(T61))
U3_agga(T43, T42, T22, T44, less23_out_ag(T43, T42)) → p21_out_agga(T43, T42, T22, T44)
p21_in_agga(T47, T42, T22, T48) → U4_agga(T47, T42, T22, T48, less23_in_ag(T47, T42))
U4_agga(T47, T42, T22, T48, less23_out_ag(T47, T42)) → U5_agga(T47, T42, T22, T48, insert1_in_gga(s(T47), T22, T48))
U5_agga(T47, T42, T22, T48, insert1_out_gga(s(T47), T22, T48)) → p21_out_agga(T47, T42, T22, T48)
U12_aga(T43, T42, T22, T23, T44, p21_out_agga(T43, T42, T22, T44)) → insert1_out_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
insert1_in_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U13_aga(T82, T78, T79, T80, T83, less36_in_ga(T78, T82))
less36_in_ga(0, s(T94)) → less36_out_ga(0, s(T94))
less36_in_ga(s(T99), s(T101)) → U2_ga(T99, T101, less36_in_ga(T99, T101))
U2_ga(T99, T101, less36_out_ga(T99, T101)) → less36_out_ga(s(T99), s(T101))
U13_aga(T82, T78, T79, T80, T83, less36_out_ga(T78, T82)) → insert1_out_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
insert1_in_aga(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_aga(T86, T78, T79, T80, T87, less36_in_ga(T78, T86))
U14_aga(T86, T78, T79, T80, T87, less36_out_ga(T78, T86)) → U15_aga(T86, T78, T79, T80, T87, insert1_in_aga(T86, T80, T87))
insert1_in_aga(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → U16_aga(T116, T112, T113, T114, T117, p46_in_gaga(T112, T116, T114, T117))
p46_in_gaga(0, s(T124), T114, T123) → U6_gaga(T124, T114, T123, insert1_in_aga(s(T124), T114, T123))
insert1_in_aga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) → U17_aga(T159, T150, T151, T160, insert1_in_gga(0, T150, T160))
U17_aga(T159, T150, T151, T160, insert1_out_gga(0, T150, T160)) → insert1_out_aga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151))
insert1_in_aga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) → U18_aga(T171, T170, T150, T151, T172, p21_in_agga(T171, T170, T150, T172))
U18_aga(T171, T170, T150, T151, T172, p21_out_agga(T171, T170, T150, T172)) → insert1_out_aga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151))
insert1_in_aga(T190, tree(T186, T187, T188), tree(T186, T187, T191)) → U19_aga(T190, T186, T187, T188, T191, p46_in_gaga(T186, T190, T188, T191))
p46_in_gaga(s(T131), s(T133), T114, T134) → U7_gaga(T131, T133, T114, T134, p53_in_gaga(T131, T133, T114, T134))
p53_in_gaga(T131, T133, T114, T134) → U8_gaga(T131, T133, T114, T134, less36_in_ga(T131, T133))
U8_gaga(T131, T133, T114, T134, less36_out_ga(T131, T133)) → p53_out_gaga(T131, T133, T114, T134)
p53_in_gaga(T131, T137, T114, T138) → U9_gaga(T131, T137, T114, T138, less36_in_ga(T131, T137))
U9_gaga(T131, T137, T114, T138, less36_out_ga(T131, T137)) → U10_gaga(T131, T137, T114, T138, insert1_in_aga(s(T137), T114, T138))
insert1_in_aga(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → U20_aga(T212, T201, T202, T211, insert1_in_aga(s(T212), T202, T211))
insert1_in_aga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → U21_aga(T221, T219, T201, T202, T222, p53_in_gaga(T219, T221, T202, T222))
U21_aga(T221, T219, T201, T202, T222, p53_out_gaga(T219, T221, T202, T222)) → insert1_out_aga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222))
U20_aga(T212, T201, T202, T211, insert1_out_aga(s(T212), T202, T211)) → insert1_out_aga(s(T212), tree(0, T201, T202), tree(0, T201, T211))
U10_gaga(T131, T137, T114, T138, insert1_out_aga(s(T137), T114, T138)) → p53_out_gaga(T131, T137, T114, T138)
U7_gaga(T131, T133, T114, T134, p53_out_gaga(T131, T133, T114, T134)) → p46_out_gaga(s(T131), s(T133), T114, T134)
U19_aga(T190, T186, T187, T188, T191, p46_out_gaga(T186, T190, T188, T191)) → insert1_out_aga(T190, tree(T186, T187, T188), tree(T186, T187, T191))
U6_gaga(T124, T114, T123, insert1_out_aga(s(T124), T114, T123)) → p46_out_gaga(0, s(T124), T114, T123)
U16_aga(T116, T112, T113, T114, T117, p46_out_gaga(T112, T116, T114, T117)) → insert1_out_aga(T116, tree(T112, T113, T114), tree(T112, T113, T117))
U15_aga(T86, T78, T79, T80, T87, insert1_out_aga(T86, T80, T87)) → insert1_out_aga(T86, tree(T78, T79, T80), tree(T78, T79, T87))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
insert1_in_aga(T5, void, tree(T5, void, void)) → insert1_out_aga(T5, void, tree(T5, void, void))
insert1_in_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insert1_out_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insert1_in_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U11_aga(T31, T22, T23, T32, insert1_in_gga(0, T22, T32))
insert1_in_gga(T5, void, tree(T5, void, void)) → insert1_out_gga(T5, void, tree(T5, void, void))
insert1_in_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insert1_out_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insert1_in_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U11_gga(T31, T22, T23, T32, insert1_in_gga(0, T22, T32))
insert1_in_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U12_gga(T43, T42, T22, T23, T44, p21_in_ggga(T43, T42, T22, T44))
p21_in_ggga(T43, T42, T22, T44) → U3_ggga(T43, T42, T22, T44, less23_in_gg(T43, T42))
less23_in_gg(0, s(T55)) → less23_out_gg(0, s(T55))
less23_in_gg(s(T62), s(T61)) → U1_gg(T62, T61, less23_in_gg(T62, T61))
U1_gg(T62, T61, less23_out_gg(T62, T61)) → less23_out_gg(s(T62), s(T61))
U3_ggga(T43, T42, T22, T44, less23_out_gg(T43, T42)) → p21_out_ggga(T43, T42, T22, T44)
p21_in_ggga(T47, T42, T22, T48) → U4_ggga(T47, T42, T22, T48, less23_in_gg(T47, T42))
U4_ggga(T47, T42, T22, T48, less23_out_gg(T47, T42)) → U5_ggga(T47, T42, T22, T48, insert1_in_gga(s(T47), T22, T48))
insert1_in_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U13_gga(T82, T78, T79, T80, T83, less36_in_gg(T78, T82))
less36_in_gg(0, s(T94)) → less36_out_gg(0, s(T94))
less36_in_gg(s(T99), s(T101)) → U2_gg(T99, T101, less36_in_gg(T99, T101))
U2_gg(T99, T101, less36_out_gg(T99, T101)) → less36_out_gg(s(T99), s(T101))
U13_gga(T82, T78, T79, T80, T83, less36_out_gg(T78, T82)) → insert1_out_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
insert1_in_gga(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_gga(T86, T78, T79, T80, T87, less36_in_gg(T78, T86))
U14_gga(T86, T78, T79, T80, T87, less36_out_gg(T78, T86)) → U15_gga(T86, T78, T79, T80, T87, insert1_in_gga(T86, T80, T87))
insert1_in_gga(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → U16_gga(T116, T112, T113, T114, T117, p46_in_ggga(T112, T116, T114, T117))
p46_in_ggga(0, s(T124), T114, T123) → U6_ggga(T124, T114, T123, insert1_in_gga(s(T124), T114, T123))
insert1_in_gga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) → U17_gga(T159, T150, T151, T160, insert1_in_gga(0, T150, T160))
insert1_in_gga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) → U18_gga(T171, T170, T150, T151, T172, p21_in_ggga(T171, T170, T150, T172))
U18_gga(T171, T170, T150, T151, T172, p21_out_ggga(T171, T170, T150, T172)) → insert1_out_gga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151))
insert1_in_gga(T190, tree(T186, T187, T188), tree(T186, T187, T191)) → U19_gga(T190, T186, T187, T188, T191, p46_in_ggga(T186, T190, T188, T191))
p46_in_ggga(s(T131), s(T133), T114, T134) → U7_ggga(T131, T133, T114, T134, p53_in_ggga(T131, T133, T114, T134))
p53_in_ggga(T131, T133, T114, T134) → U8_ggga(T131, T133, T114, T134, less36_in_gg(T131, T133))
U8_ggga(T131, T133, T114, T134, less36_out_gg(T131, T133)) → p53_out_ggga(T131, T133, T114, T134)
p53_in_ggga(T131, T137, T114, T138) → U9_ggga(T131, T137, T114, T138, less36_in_gg(T131, T137))
U9_ggga(T131, T137, T114, T138, less36_out_gg(T131, T137)) → U10_ggga(T131, T137, T114, T138, insert1_in_gga(s(T137), T114, T138))
insert1_in_gga(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → U20_gga(T212, T201, T202, T211, insert1_in_gga(s(T212), T202, T211))
insert1_in_gga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → U21_gga(T221, T219, T201, T202, T222, p53_in_ggga(T219, T221, T202, T222))
U21_gga(T221, T219, T201, T202, T222, p53_out_ggga(T219, T221, T202, T222)) → insert1_out_gga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222))
U20_gga(T212, T201, T202, T211, insert1_out_gga(s(T212), T202, T211)) → insert1_out_gga(s(T212), tree(0, T201, T202), tree(0, T201, T211))
U10_ggga(T131, T137, T114, T138, insert1_out_gga(s(T137), T114, T138)) → p53_out_ggga(T131, T137, T114, T138)
U7_ggga(T131, T133, T114, T134, p53_out_ggga(T131, T133, T114, T134)) → p46_out_ggga(s(T131), s(T133), T114, T134)
U19_gga(T190, T186, T187, T188, T191, p46_out_ggga(T186, T190, T188, T191)) → insert1_out_gga(T190, tree(T186, T187, T188), tree(T186, T187, T191))
U17_gga(T159, T150, T151, T160, insert1_out_gga(0, T150, T160)) → insert1_out_gga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151))
U6_ggga(T124, T114, T123, insert1_out_gga(s(T124), T114, T123)) → p46_out_ggga(0, s(T124), T114, T123)
U16_gga(T116, T112, T113, T114, T117, p46_out_ggga(T112, T116, T114, T117)) → insert1_out_gga(T116, tree(T112, T113, T114), tree(T112, T113, T117))
U15_gga(T86, T78, T79, T80, T87, insert1_out_gga(T86, T80, T87)) → insert1_out_gga(T86, tree(T78, T79, T80), tree(T78, T79, T87))
U5_ggga(T47, T42, T22, T48, insert1_out_gga(s(T47), T22, T48)) → p21_out_ggga(T47, T42, T22, T48)
U12_gga(T43, T42, T22, T23, T44, p21_out_ggga(T43, T42, T22, T44)) → insert1_out_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
U11_gga(T31, T22, T23, T32, insert1_out_gga(0, T22, T32)) → insert1_out_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
U11_aga(T31, T22, T23, T32, insert1_out_gga(0, T22, T32)) → insert1_out_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
insert1_in_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U12_aga(T43, T42, T22, T23, T44, p21_in_agga(T43, T42, T22, T44))
p21_in_agga(T43, T42, T22, T44) → U3_agga(T43, T42, T22, T44, less23_in_ag(T43, T42))
less23_in_ag(0, s(T55)) → less23_out_ag(0, s(T55))
less23_in_ag(s(T62), s(T61)) → U1_ag(T62, T61, less23_in_ag(T62, T61))
U1_ag(T62, T61, less23_out_ag(T62, T61)) → less23_out_ag(s(T62), s(T61))
U3_agga(T43, T42, T22, T44, less23_out_ag(T43, T42)) → p21_out_agga(T43, T42, T22, T44)
p21_in_agga(T47, T42, T22, T48) → U4_agga(T47, T42, T22, T48, less23_in_ag(T47, T42))
U4_agga(T47, T42, T22, T48, less23_out_ag(T47, T42)) → U5_agga(T47, T42, T22, T48, insert1_in_gga(s(T47), T22, T48))
U5_agga(T47, T42, T22, T48, insert1_out_gga(s(T47), T22, T48)) → p21_out_agga(T47, T42, T22, T48)
U12_aga(T43, T42, T22, T23, T44, p21_out_agga(T43, T42, T22, T44)) → insert1_out_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
insert1_in_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U13_aga(T82, T78, T79, T80, T83, less36_in_ga(T78, T82))
less36_in_ga(0, s(T94)) → less36_out_ga(0, s(T94))
less36_in_ga(s(T99), s(T101)) → U2_ga(T99, T101, less36_in_ga(T99, T101))
U2_ga(T99, T101, less36_out_ga(T99, T101)) → less36_out_ga(s(T99), s(T101))
U13_aga(T82, T78, T79, T80, T83, less36_out_ga(T78, T82)) → insert1_out_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
insert1_in_aga(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_aga(T86, T78, T79, T80, T87, less36_in_ga(T78, T86))
U14_aga(T86, T78, T79, T80, T87, less36_out_ga(T78, T86)) → U15_aga(T86, T78, T79, T80, T87, insert1_in_aga(T86, T80, T87))
insert1_in_aga(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → U16_aga(T116, T112, T113, T114, T117, p46_in_gaga(T112, T116, T114, T117))
p46_in_gaga(0, s(T124), T114, T123) → U6_gaga(T124, T114, T123, insert1_in_aga(s(T124), T114, T123))
insert1_in_aga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) → U17_aga(T159, T150, T151, T160, insert1_in_gga(0, T150, T160))
U17_aga(T159, T150, T151, T160, insert1_out_gga(0, T150, T160)) → insert1_out_aga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151))
insert1_in_aga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) → U18_aga(T171, T170, T150, T151, T172, p21_in_agga(T171, T170, T150, T172))
U18_aga(T171, T170, T150, T151, T172, p21_out_agga(T171, T170, T150, T172)) → insert1_out_aga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151))
insert1_in_aga(T190, tree(T186, T187, T188), tree(T186, T187, T191)) → U19_aga(T190, T186, T187, T188, T191, p46_in_gaga(T186, T190, T188, T191))
p46_in_gaga(s(T131), s(T133), T114, T134) → U7_gaga(T131, T133, T114, T134, p53_in_gaga(T131, T133, T114, T134))
p53_in_gaga(T131, T133, T114, T134) → U8_gaga(T131, T133, T114, T134, less36_in_ga(T131, T133))
U8_gaga(T131, T133, T114, T134, less36_out_ga(T131, T133)) → p53_out_gaga(T131, T133, T114, T134)
p53_in_gaga(T131, T137, T114, T138) → U9_gaga(T131, T137, T114, T138, less36_in_ga(T131, T137))
U9_gaga(T131, T137, T114, T138, less36_out_ga(T131, T137)) → U10_gaga(T131, T137, T114, T138, insert1_in_aga(s(T137), T114, T138))
insert1_in_aga(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → U20_aga(T212, T201, T202, T211, insert1_in_aga(s(T212), T202, T211))
insert1_in_aga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → U21_aga(T221, T219, T201, T202, T222, p53_in_gaga(T219, T221, T202, T222))
U21_aga(T221, T219, T201, T202, T222, p53_out_gaga(T219, T221, T202, T222)) → insert1_out_aga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222))
U20_aga(T212, T201, T202, T211, insert1_out_aga(s(T212), T202, T211)) → insert1_out_aga(s(T212), tree(0, T201, T202), tree(0, T201, T211))
U10_gaga(T131, T137, T114, T138, insert1_out_aga(s(T137), T114, T138)) → p53_out_gaga(T131, T137, T114, T138)
U7_gaga(T131, T133, T114, T134, p53_out_gaga(T131, T133, T114, T134)) → p46_out_gaga(s(T131), s(T133), T114, T134)
U19_aga(T190, T186, T187, T188, T191, p46_out_gaga(T186, T190, T188, T191)) → insert1_out_aga(T190, tree(T186, T187, T188), tree(T186, T187, T191))
U6_gaga(T124, T114, T123, insert1_out_aga(s(T124), T114, T123)) → p46_out_gaga(0, s(T124), T114, T123)
U16_aga(T116, T112, T113, T114, T117, p46_out_gaga(T112, T116, T114, T117)) → insert1_out_aga(T116, tree(T112, T113, T114), tree(T112, T113, T117))
U15_aga(T86, T78, T79, T80, T87, insert1_out_aga(T86, T80, T87)) → insert1_out_aga(T86, tree(T78, T79, T80), tree(T78, T79, T87))
INSERT1_IN_AGA(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U11_AGA(T31, T22, T23, T32, insert1_in_gga(0, T22, T32))
INSERT1_IN_AGA(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → INSERT1_IN_GGA(0, T22, T32)
INSERT1_IN_GGA(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U11_GGA(T31, T22, T23, T32, insert1_in_gga(0, T22, T32))
INSERT1_IN_GGA(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → INSERT1_IN_GGA(0, T22, T32)
INSERT1_IN_GGA(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U12_GGA(T43, T42, T22, T23, T44, p21_in_ggga(T43, T42, T22, T44))
INSERT1_IN_GGA(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → P21_IN_GGGA(T43, T42, T22, T44)
P21_IN_GGGA(T43, T42, T22, T44) → U3_GGGA(T43, T42, T22, T44, less23_in_gg(T43, T42))
P21_IN_GGGA(T43, T42, T22, T44) → LESS23_IN_GG(T43, T42)
LESS23_IN_GG(s(T62), s(T61)) → U1_GG(T62, T61, less23_in_gg(T62, T61))
LESS23_IN_GG(s(T62), s(T61)) → LESS23_IN_GG(T62, T61)
P21_IN_GGGA(T47, T42, T22, T48) → U4_GGGA(T47, T42, T22, T48, less23_in_gg(T47, T42))
U4_GGGA(T47, T42, T22, T48, less23_out_gg(T47, T42)) → U5_GGGA(T47, T42, T22, T48, insert1_in_gga(s(T47), T22, T48))
U4_GGGA(T47, T42, T22, T48, less23_out_gg(T47, T42)) → INSERT1_IN_GGA(s(T47), T22, T48)
INSERT1_IN_GGA(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U13_GGA(T82, T78, T79, T80, T83, less36_in_gg(T78, T82))
INSERT1_IN_GGA(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → LESS36_IN_GG(T78, T82)
LESS36_IN_GG(s(T99), s(T101)) → U2_GG(T99, T101, less36_in_gg(T99, T101))
LESS36_IN_GG(s(T99), s(T101)) → LESS36_IN_GG(T99, T101)
INSERT1_IN_GGA(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_GGA(T86, T78, T79, T80, T87, less36_in_gg(T78, T86))
U14_GGA(T86, T78, T79, T80, T87, less36_out_gg(T78, T86)) → U15_GGA(T86, T78, T79, T80, T87, insert1_in_gga(T86, T80, T87))
U14_GGA(T86, T78, T79, T80, T87, less36_out_gg(T78, T86)) → INSERT1_IN_GGA(T86, T80, T87)
INSERT1_IN_GGA(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → U16_GGA(T116, T112, T113, T114, T117, p46_in_ggga(T112, T116, T114, T117))
INSERT1_IN_GGA(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → P46_IN_GGGA(T112, T116, T114, T117)
P46_IN_GGGA(0, s(T124), T114, T123) → U6_GGGA(T124, T114, T123, insert1_in_gga(s(T124), T114, T123))
P46_IN_GGGA(0, s(T124), T114, T123) → INSERT1_IN_GGA(s(T124), T114, T123)
INSERT1_IN_GGA(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) → U17_GGA(T159, T150, T151, T160, insert1_in_gga(0, T150, T160))
INSERT1_IN_GGA(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) → U18_GGA(T171, T170, T150, T151, T172, p21_in_ggga(T171, T170, T150, T172))
INSERT1_IN_GGA(T190, tree(T186, T187, T188), tree(T186, T187, T191)) → U19_GGA(T190, T186, T187, T188, T191, p46_in_ggga(T186, T190, T188, T191))
P46_IN_GGGA(s(T131), s(T133), T114, T134) → U7_GGGA(T131, T133, T114, T134, p53_in_ggga(T131, T133, T114, T134))
P46_IN_GGGA(s(T131), s(T133), T114, T134) → P53_IN_GGGA(T131, T133, T114, T134)
P53_IN_GGGA(T131, T133, T114, T134) → U8_GGGA(T131, T133, T114, T134, less36_in_gg(T131, T133))
P53_IN_GGGA(T131, T133, T114, T134) → LESS36_IN_GG(T131, T133)
P53_IN_GGGA(T131, T137, T114, T138) → U9_GGGA(T131, T137, T114, T138, less36_in_gg(T131, T137))
U9_GGGA(T131, T137, T114, T138, less36_out_gg(T131, T137)) → U10_GGGA(T131, T137, T114, T138, insert1_in_gga(s(T137), T114, T138))
U9_GGGA(T131, T137, T114, T138, less36_out_gg(T131, T137)) → INSERT1_IN_GGA(s(T137), T114, T138)
INSERT1_IN_GGA(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → U20_GGA(T212, T201, T202, T211, insert1_in_gga(s(T212), T202, T211))
INSERT1_IN_GGA(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → INSERT1_IN_GGA(s(T212), T202, T211)
INSERT1_IN_GGA(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → U21_GGA(T221, T219, T201, T202, T222, p53_in_ggga(T219, T221, T202, T222))
INSERT1_IN_GGA(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → P53_IN_GGGA(T219, T221, T202, T222)
INSERT1_IN_AGA(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U12_AGA(T43, T42, T22, T23, T44, p21_in_agga(T43, T42, T22, T44))
INSERT1_IN_AGA(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → P21_IN_AGGA(T43, T42, T22, T44)
P21_IN_AGGA(T43, T42, T22, T44) → U3_AGGA(T43, T42, T22, T44, less23_in_ag(T43, T42))
P21_IN_AGGA(T43, T42, T22, T44) → LESS23_IN_AG(T43, T42)
LESS23_IN_AG(s(T62), s(T61)) → U1_AG(T62, T61, less23_in_ag(T62, T61))
LESS23_IN_AG(s(T62), s(T61)) → LESS23_IN_AG(T62, T61)
P21_IN_AGGA(T47, T42, T22, T48) → U4_AGGA(T47, T42, T22, T48, less23_in_ag(T47, T42))
U4_AGGA(T47, T42, T22, T48, less23_out_ag(T47, T42)) → U5_AGGA(T47, T42, T22, T48, insert1_in_gga(s(T47), T22, T48))
U4_AGGA(T47, T42, T22, T48, less23_out_ag(T47, T42)) → INSERT1_IN_GGA(s(T47), T22, T48)
INSERT1_IN_AGA(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U13_AGA(T82, T78, T79, T80, T83, less36_in_ga(T78, T82))
INSERT1_IN_AGA(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → LESS36_IN_GA(T78, T82)
LESS36_IN_GA(s(T99), s(T101)) → U2_GA(T99, T101, less36_in_ga(T99, T101))
LESS36_IN_GA(s(T99), s(T101)) → LESS36_IN_GA(T99, T101)
INSERT1_IN_AGA(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_AGA(T86, T78, T79, T80, T87, less36_in_ga(T78, T86))
U14_AGA(T86, T78, T79, T80, T87, less36_out_ga(T78, T86)) → U15_AGA(T86, T78, T79, T80, T87, insert1_in_aga(T86, T80, T87))
U14_AGA(T86, T78, T79, T80, T87, less36_out_ga(T78, T86)) → INSERT1_IN_AGA(T86, T80, T87)
INSERT1_IN_AGA(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → U16_AGA(T116, T112, T113, T114, T117, p46_in_gaga(T112, T116, T114, T117))
INSERT1_IN_AGA(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → P46_IN_GAGA(T112, T116, T114, T117)
P46_IN_GAGA(0, s(T124), T114, T123) → U6_GAGA(T124, T114, T123, insert1_in_aga(s(T124), T114, T123))
P46_IN_GAGA(0, s(T124), T114, T123) → INSERT1_IN_AGA(s(T124), T114, T123)
INSERT1_IN_AGA(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) → U17_AGA(T159, T150, T151, T160, insert1_in_gga(0, T150, T160))
INSERT1_IN_AGA(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) → U18_AGA(T171, T170, T150, T151, T172, p21_in_agga(T171, T170, T150, T172))
INSERT1_IN_AGA(T190, tree(T186, T187, T188), tree(T186, T187, T191)) → U19_AGA(T190, T186, T187, T188, T191, p46_in_gaga(T186, T190, T188, T191))
P46_IN_GAGA(s(T131), s(T133), T114, T134) → U7_GAGA(T131, T133, T114, T134, p53_in_gaga(T131, T133, T114, T134))
P46_IN_GAGA(s(T131), s(T133), T114, T134) → P53_IN_GAGA(T131, T133, T114, T134)
P53_IN_GAGA(T131, T133, T114, T134) → U8_GAGA(T131, T133, T114, T134, less36_in_ga(T131, T133))
P53_IN_GAGA(T131, T133, T114, T134) → LESS36_IN_GA(T131, T133)
P53_IN_GAGA(T131, T137, T114, T138) → U9_GAGA(T131, T137, T114, T138, less36_in_ga(T131, T137))
U9_GAGA(T131, T137, T114, T138, less36_out_ga(T131, T137)) → U10_GAGA(T131, T137, T114, T138, insert1_in_aga(s(T137), T114, T138))
U9_GAGA(T131, T137, T114, T138, less36_out_ga(T131, T137)) → INSERT1_IN_AGA(s(T137), T114, T138)
INSERT1_IN_AGA(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → U20_AGA(T212, T201, T202, T211, insert1_in_aga(s(T212), T202, T211))
INSERT1_IN_AGA(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → INSERT1_IN_AGA(s(T212), T202, T211)
INSERT1_IN_AGA(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → U21_AGA(T221, T219, T201, T202, T222, p53_in_gaga(T219, T221, T202, T222))
INSERT1_IN_AGA(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → P53_IN_GAGA(T219, T221, T202, T222)
insert1_in_aga(T5, void, tree(T5, void, void)) → insert1_out_aga(T5, void, tree(T5, void, void))
insert1_in_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insert1_out_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insert1_in_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U11_aga(T31, T22, T23, T32, insert1_in_gga(0, T22, T32))
insert1_in_gga(T5, void, tree(T5, void, void)) → insert1_out_gga(T5, void, tree(T5, void, void))
insert1_in_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insert1_out_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insert1_in_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U11_gga(T31, T22, T23, T32, insert1_in_gga(0, T22, T32))
insert1_in_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U12_gga(T43, T42, T22, T23, T44, p21_in_ggga(T43, T42, T22, T44))
p21_in_ggga(T43, T42, T22, T44) → U3_ggga(T43, T42, T22, T44, less23_in_gg(T43, T42))
less23_in_gg(0, s(T55)) → less23_out_gg(0, s(T55))
less23_in_gg(s(T62), s(T61)) → U1_gg(T62, T61, less23_in_gg(T62, T61))
U1_gg(T62, T61, less23_out_gg(T62, T61)) → less23_out_gg(s(T62), s(T61))
U3_ggga(T43, T42, T22, T44, less23_out_gg(T43, T42)) → p21_out_ggga(T43, T42, T22, T44)
p21_in_ggga(T47, T42, T22, T48) → U4_ggga(T47, T42, T22, T48, less23_in_gg(T47, T42))
U4_ggga(T47, T42, T22, T48, less23_out_gg(T47, T42)) → U5_ggga(T47, T42, T22, T48, insert1_in_gga(s(T47), T22, T48))
insert1_in_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U13_gga(T82, T78, T79, T80, T83, less36_in_gg(T78, T82))
less36_in_gg(0, s(T94)) → less36_out_gg(0, s(T94))
less36_in_gg(s(T99), s(T101)) → U2_gg(T99, T101, less36_in_gg(T99, T101))
U2_gg(T99, T101, less36_out_gg(T99, T101)) → less36_out_gg(s(T99), s(T101))
U13_gga(T82, T78, T79, T80, T83, less36_out_gg(T78, T82)) → insert1_out_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
insert1_in_gga(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_gga(T86, T78, T79, T80, T87, less36_in_gg(T78, T86))
U14_gga(T86, T78, T79, T80, T87, less36_out_gg(T78, T86)) → U15_gga(T86, T78, T79, T80, T87, insert1_in_gga(T86, T80, T87))
insert1_in_gga(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → U16_gga(T116, T112, T113, T114, T117, p46_in_ggga(T112, T116, T114, T117))
p46_in_ggga(0, s(T124), T114, T123) → U6_ggga(T124, T114, T123, insert1_in_gga(s(T124), T114, T123))
insert1_in_gga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) → U17_gga(T159, T150, T151, T160, insert1_in_gga(0, T150, T160))
insert1_in_gga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) → U18_gga(T171, T170, T150, T151, T172, p21_in_ggga(T171, T170, T150, T172))
U18_gga(T171, T170, T150, T151, T172, p21_out_ggga(T171, T170, T150, T172)) → insert1_out_gga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151))
insert1_in_gga(T190, tree(T186, T187, T188), tree(T186, T187, T191)) → U19_gga(T190, T186, T187, T188, T191, p46_in_ggga(T186, T190, T188, T191))
p46_in_ggga(s(T131), s(T133), T114, T134) → U7_ggga(T131, T133, T114, T134, p53_in_ggga(T131, T133, T114, T134))
p53_in_ggga(T131, T133, T114, T134) → U8_ggga(T131, T133, T114, T134, less36_in_gg(T131, T133))
U8_ggga(T131, T133, T114, T134, less36_out_gg(T131, T133)) → p53_out_ggga(T131, T133, T114, T134)
p53_in_ggga(T131, T137, T114, T138) → U9_ggga(T131, T137, T114, T138, less36_in_gg(T131, T137))
U9_ggga(T131, T137, T114, T138, less36_out_gg(T131, T137)) → U10_ggga(T131, T137, T114, T138, insert1_in_gga(s(T137), T114, T138))
insert1_in_gga(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → U20_gga(T212, T201, T202, T211, insert1_in_gga(s(T212), T202, T211))
insert1_in_gga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → U21_gga(T221, T219, T201, T202, T222, p53_in_ggga(T219, T221, T202, T222))
U21_gga(T221, T219, T201, T202, T222, p53_out_ggga(T219, T221, T202, T222)) → insert1_out_gga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222))
U20_gga(T212, T201, T202, T211, insert1_out_gga(s(T212), T202, T211)) → insert1_out_gga(s(T212), tree(0, T201, T202), tree(0, T201, T211))
U10_ggga(T131, T137, T114, T138, insert1_out_gga(s(T137), T114, T138)) → p53_out_ggga(T131, T137, T114, T138)
U7_ggga(T131, T133, T114, T134, p53_out_ggga(T131, T133, T114, T134)) → p46_out_ggga(s(T131), s(T133), T114, T134)
U19_gga(T190, T186, T187, T188, T191, p46_out_ggga(T186, T190, T188, T191)) → insert1_out_gga(T190, tree(T186, T187, T188), tree(T186, T187, T191))
U17_gga(T159, T150, T151, T160, insert1_out_gga(0, T150, T160)) → insert1_out_gga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151))
U6_ggga(T124, T114, T123, insert1_out_gga(s(T124), T114, T123)) → p46_out_ggga(0, s(T124), T114, T123)
U16_gga(T116, T112, T113, T114, T117, p46_out_ggga(T112, T116, T114, T117)) → insert1_out_gga(T116, tree(T112, T113, T114), tree(T112, T113, T117))
U15_gga(T86, T78, T79, T80, T87, insert1_out_gga(T86, T80, T87)) → insert1_out_gga(T86, tree(T78, T79, T80), tree(T78, T79, T87))
U5_ggga(T47, T42, T22, T48, insert1_out_gga(s(T47), T22, T48)) → p21_out_ggga(T47, T42, T22, T48)
U12_gga(T43, T42, T22, T23, T44, p21_out_ggga(T43, T42, T22, T44)) → insert1_out_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
U11_gga(T31, T22, T23, T32, insert1_out_gga(0, T22, T32)) → insert1_out_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
U11_aga(T31, T22, T23, T32, insert1_out_gga(0, T22, T32)) → insert1_out_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
insert1_in_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U12_aga(T43, T42, T22, T23, T44, p21_in_agga(T43, T42, T22, T44))
p21_in_agga(T43, T42, T22, T44) → U3_agga(T43, T42, T22, T44, less23_in_ag(T43, T42))
less23_in_ag(0, s(T55)) → less23_out_ag(0, s(T55))
less23_in_ag(s(T62), s(T61)) → U1_ag(T62, T61, less23_in_ag(T62, T61))
U1_ag(T62, T61, less23_out_ag(T62, T61)) → less23_out_ag(s(T62), s(T61))
U3_agga(T43, T42, T22, T44, less23_out_ag(T43, T42)) → p21_out_agga(T43, T42, T22, T44)
p21_in_agga(T47, T42, T22, T48) → U4_agga(T47, T42, T22, T48, less23_in_ag(T47, T42))
U4_agga(T47, T42, T22, T48, less23_out_ag(T47, T42)) → U5_agga(T47, T42, T22, T48, insert1_in_gga(s(T47), T22, T48))
U5_agga(T47, T42, T22, T48, insert1_out_gga(s(T47), T22, T48)) → p21_out_agga(T47, T42, T22, T48)
U12_aga(T43, T42, T22, T23, T44, p21_out_agga(T43, T42, T22, T44)) → insert1_out_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
insert1_in_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U13_aga(T82, T78, T79, T80, T83, less36_in_ga(T78, T82))
less36_in_ga(0, s(T94)) → less36_out_ga(0, s(T94))
less36_in_ga(s(T99), s(T101)) → U2_ga(T99, T101, less36_in_ga(T99, T101))
U2_ga(T99, T101, less36_out_ga(T99, T101)) → less36_out_ga(s(T99), s(T101))
U13_aga(T82, T78, T79, T80, T83, less36_out_ga(T78, T82)) → insert1_out_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
insert1_in_aga(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_aga(T86, T78, T79, T80, T87, less36_in_ga(T78, T86))
U14_aga(T86, T78, T79, T80, T87, less36_out_ga(T78, T86)) → U15_aga(T86, T78, T79, T80, T87, insert1_in_aga(T86, T80, T87))
insert1_in_aga(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → U16_aga(T116, T112, T113, T114, T117, p46_in_gaga(T112, T116, T114, T117))
p46_in_gaga(0, s(T124), T114, T123) → U6_gaga(T124, T114, T123, insert1_in_aga(s(T124), T114, T123))
insert1_in_aga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) → U17_aga(T159, T150, T151, T160, insert1_in_gga(0, T150, T160))
U17_aga(T159, T150, T151, T160, insert1_out_gga(0, T150, T160)) → insert1_out_aga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151))
insert1_in_aga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) → U18_aga(T171, T170, T150, T151, T172, p21_in_agga(T171, T170, T150, T172))
U18_aga(T171, T170, T150, T151, T172, p21_out_agga(T171, T170, T150, T172)) → insert1_out_aga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151))
insert1_in_aga(T190, tree(T186, T187, T188), tree(T186, T187, T191)) → U19_aga(T190, T186, T187, T188, T191, p46_in_gaga(T186, T190, T188, T191))
p46_in_gaga(s(T131), s(T133), T114, T134) → U7_gaga(T131, T133, T114, T134, p53_in_gaga(T131, T133, T114, T134))
p53_in_gaga(T131, T133, T114, T134) → U8_gaga(T131, T133, T114, T134, less36_in_ga(T131, T133))
U8_gaga(T131, T133, T114, T134, less36_out_ga(T131, T133)) → p53_out_gaga(T131, T133, T114, T134)
p53_in_gaga(T131, T137, T114, T138) → U9_gaga(T131, T137, T114, T138, less36_in_ga(T131, T137))
U9_gaga(T131, T137, T114, T138, less36_out_ga(T131, T137)) → U10_gaga(T131, T137, T114, T138, insert1_in_aga(s(T137), T114, T138))
insert1_in_aga(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → U20_aga(T212, T201, T202, T211, insert1_in_aga(s(T212), T202, T211))
insert1_in_aga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → U21_aga(T221, T219, T201, T202, T222, p53_in_gaga(T219, T221, T202, T222))
U21_aga(T221, T219, T201, T202, T222, p53_out_gaga(T219, T221, T202, T222)) → insert1_out_aga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222))
U20_aga(T212, T201, T202, T211, insert1_out_aga(s(T212), T202, T211)) → insert1_out_aga(s(T212), tree(0, T201, T202), tree(0, T201, T211))
U10_gaga(T131, T137, T114, T138, insert1_out_aga(s(T137), T114, T138)) → p53_out_gaga(T131, T137, T114, T138)
U7_gaga(T131, T133, T114, T134, p53_out_gaga(T131, T133, T114, T134)) → p46_out_gaga(s(T131), s(T133), T114, T134)
U19_aga(T190, T186, T187, T188, T191, p46_out_gaga(T186, T190, T188, T191)) → insert1_out_aga(T190, tree(T186, T187, T188), tree(T186, T187, T191))
U6_gaga(T124, T114, T123, insert1_out_aga(s(T124), T114, T123)) → p46_out_gaga(0, s(T124), T114, T123)
U16_aga(T116, T112, T113, T114, T117, p46_out_gaga(T112, T116, T114, T117)) → insert1_out_aga(T116, tree(T112, T113, T114), tree(T112, T113, T117))
U15_aga(T86, T78, T79, T80, T87, insert1_out_aga(T86, T80, T87)) → insert1_out_aga(T86, tree(T78, T79, T80), tree(T78, T79, T87))
INSERT1_IN_AGA(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U11_AGA(T31, T22, T23, T32, insert1_in_gga(0, T22, T32))
INSERT1_IN_AGA(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → INSERT1_IN_GGA(0, T22, T32)
INSERT1_IN_GGA(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U11_GGA(T31, T22, T23, T32, insert1_in_gga(0, T22, T32))
INSERT1_IN_GGA(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → INSERT1_IN_GGA(0, T22, T32)
INSERT1_IN_GGA(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U12_GGA(T43, T42, T22, T23, T44, p21_in_ggga(T43, T42, T22, T44))
INSERT1_IN_GGA(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → P21_IN_GGGA(T43, T42, T22, T44)
P21_IN_GGGA(T43, T42, T22, T44) → U3_GGGA(T43, T42, T22, T44, less23_in_gg(T43, T42))
P21_IN_GGGA(T43, T42, T22, T44) → LESS23_IN_GG(T43, T42)
LESS23_IN_GG(s(T62), s(T61)) → U1_GG(T62, T61, less23_in_gg(T62, T61))
LESS23_IN_GG(s(T62), s(T61)) → LESS23_IN_GG(T62, T61)
P21_IN_GGGA(T47, T42, T22, T48) → U4_GGGA(T47, T42, T22, T48, less23_in_gg(T47, T42))
U4_GGGA(T47, T42, T22, T48, less23_out_gg(T47, T42)) → U5_GGGA(T47, T42, T22, T48, insert1_in_gga(s(T47), T22, T48))
U4_GGGA(T47, T42, T22, T48, less23_out_gg(T47, T42)) → INSERT1_IN_GGA(s(T47), T22, T48)
INSERT1_IN_GGA(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U13_GGA(T82, T78, T79, T80, T83, less36_in_gg(T78, T82))
INSERT1_IN_GGA(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → LESS36_IN_GG(T78, T82)
LESS36_IN_GG(s(T99), s(T101)) → U2_GG(T99, T101, less36_in_gg(T99, T101))
LESS36_IN_GG(s(T99), s(T101)) → LESS36_IN_GG(T99, T101)
INSERT1_IN_GGA(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_GGA(T86, T78, T79, T80, T87, less36_in_gg(T78, T86))
U14_GGA(T86, T78, T79, T80, T87, less36_out_gg(T78, T86)) → U15_GGA(T86, T78, T79, T80, T87, insert1_in_gga(T86, T80, T87))
U14_GGA(T86, T78, T79, T80, T87, less36_out_gg(T78, T86)) → INSERT1_IN_GGA(T86, T80, T87)
INSERT1_IN_GGA(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → U16_GGA(T116, T112, T113, T114, T117, p46_in_ggga(T112, T116, T114, T117))
INSERT1_IN_GGA(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → P46_IN_GGGA(T112, T116, T114, T117)
P46_IN_GGGA(0, s(T124), T114, T123) → U6_GGGA(T124, T114, T123, insert1_in_gga(s(T124), T114, T123))
P46_IN_GGGA(0, s(T124), T114, T123) → INSERT1_IN_GGA(s(T124), T114, T123)
INSERT1_IN_GGA(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) → U17_GGA(T159, T150, T151, T160, insert1_in_gga(0, T150, T160))
INSERT1_IN_GGA(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) → U18_GGA(T171, T170, T150, T151, T172, p21_in_ggga(T171, T170, T150, T172))
INSERT1_IN_GGA(T190, tree(T186, T187, T188), tree(T186, T187, T191)) → U19_GGA(T190, T186, T187, T188, T191, p46_in_ggga(T186, T190, T188, T191))
P46_IN_GGGA(s(T131), s(T133), T114, T134) → U7_GGGA(T131, T133, T114, T134, p53_in_ggga(T131, T133, T114, T134))
P46_IN_GGGA(s(T131), s(T133), T114, T134) → P53_IN_GGGA(T131, T133, T114, T134)
P53_IN_GGGA(T131, T133, T114, T134) → U8_GGGA(T131, T133, T114, T134, less36_in_gg(T131, T133))
P53_IN_GGGA(T131, T133, T114, T134) → LESS36_IN_GG(T131, T133)
P53_IN_GGGA(T131, T137, T114, T138) → U9_GGGA(T131, T137, T114, T138, less36_in_gg(T131, T137))
U9_GGGA(T131, T137, T114, T138, less36_out_gg(T131, T137)) → U10_GGGA(T131, T137, T114, T138, insert1_in_gga(s(T137), T114, T138))
U9_GGGA(T131, T137, T114, T138, less36_out_gg(T131, T137)) → INSERT1_IN_GGA(s(T137), T114, T138)
INSERT1_IN_GGA(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → U20_GGA(T212, T201, T202, T211, insert1_in_gga(s(T212), T202, T211))
INSERT1_IN_GGA(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → INSERT1_IN_GGA(s(T212), T202, T211)
INSERT1_IN_GGA(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → U21_GGA(T221, T219, T201, T202, T222, p53_in_ggga(T219, T221, T202, T222))
INSERT1_IN_GGA(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → P53_IN_GGGA(T219, T221, T202, T222)
INSERT1_IN_AGA(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U12_AGA(T43, T42, T22, T23, T44, p21_in_agga(T43, T42, T22, T44))
INSERT1_IN_AGA(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → P21_IN_AGGA(T43, T42, T22, T44)
P21_IN_AGGA(T43, T42, T22, T44) → U3_AGGA(T43, T42, T22, T44, less23_in_ag(T43, T42))
P21_IN_AGGA(T43, T42, T22, T44) → LESS23_IN_AG(T43, T42)
LESS23_IN_AG(s(T62), s(T61)) → U1_AG(T62, T61, less23_in_ag(T62, T61))
LESS23_IN_AG(s(T62), s(T61)) → LESS23_IN_AG(T62, T61)
P21_IN_AGGA(T47, T42, T22, T48) → U4_AGGA(T47, T42, T22, T48, less23_in_ag(T47, T42))
U4_AGGA(T47, T42, T22, T48, less23_out_ag(T47, T42)) → U5_AGGA(T47, T42, T22, T48, insert1_in_gga(s(T47), T22, T48))
U4_AGGA(T47, T42, T22, T48, less23_out_ag(T47, T42)) → INSERT1_IN_GGA(s(T47), T22, T48)
INSERT1_IN_AGA(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U13_AGA(T82, T78, T79, T80, T83, less36_in_ga(T78, T82))
INSERT1_IN_AGA(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → LESS36_IN_GA(T78, T82)
LESS36_IN_GA(s(T99), s(T101)) → U2_GA(T99, T101, less36_in_ga(T99, T101))
LESS36_IN_GA(s(T99), s(T101)) → LESS36_IN_GA(T99, T101)
INSERT1_IN_AGA(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_AGA(T86, T78, T79, T80, T87, less36_in_ga(T78, T86))
U14_AGA(T86, T78, T79, T80, T87, less36_out_ga(T78, T86)) → U15_AGA(T86, T78, T79, T80, T87, insert1_in_aga(T86, T80, T87))
U14_AGA(T86, T78, T79, T80, T87, less36_out_ga(T78, T86)) → INSERT1_IN_AGA(T86, T80, T87)
INSERT1_IN_AGA(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → U16_AGA(T116, T112, T113, T114, T117, p46_in_gaga(T112, T116, T114, T117))
INSERT1_IN_AGA(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → P46_IN_GAGA(T112, T116, T114, T117)
P46_IN_GAGA(0, s(T124), T114, T123) → U6_GAGA(T124, T114, T123, insert1_in_aga(s(T124), T114, T123))
P46_IN_GAGA(0, s(T124), T114, T123) → INSERT1_IN_AGA(s(T124), T114, T123)
INSERT1_IN_AGA(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) → U17_AGA(T159, T150, T151, T160, insert1_in_gga(0, T150, T160))
INSERT1_IN_AGA(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) → U18_AGA(T171, T170, T150, T151, T172, p21_in_agga(T171, T170, T150, T172))
INSERT1_IN_AGA(T190, tree(T186, T187, T188), tree(T186, T187, T191)) → U19_AGA(T190, T186, T187, T188, T191, p46_in_gaga(T186, T190, T188, T191))
P46_IN_GAGA(s(T131), s(T133), T114, T134) → U7_GAGA(T131, T133, T114, T134, p53_in_gaga(T131, T133, T114, T134))
P46_IN_GAGA(s(T131), s(T133), T114, T134) → P53_IN_GAGA(T131, T133, T114, T134)
P53_IN_GAGA(T131, T133, T114, T134) → U8_GAGA(T131, T133, T114, T134, less36_in_ga(T131, T133))
P53_IN_GAGA(T131, T133, T114, T134) → LESS36_IN_GA(T131, T133)
P53_IN_GAGA(T131, T137, T114, T138) → U9_GAGA(T131, T137, T114, T138, less36_in_ga(T131, T137))
U9_GAGA(T131, T137, T114, T138, less36_out_ga(T131, T137)) → U10_GAGA(T131, T137, T114, T138, insert1_in_aga(s(T137), T114, T138))
U9_GAGA(T131, T137, T114, T138, less36_out_ga(T131, T137)) → INSERT1_IN_AGA(s(T137), T114, T138)
INSERT1_IN_AGA(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → U20_AGA(T212, T201, T202, T211, insert1_in_aga(s(T212), T202, T211))
INSERT1_IN_AGA(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → INSERT1_IN_AGA(s(T212), T202, T211)
INSERT1_IN_AGA(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → U21_AGA(T221, T219, T201, T202, T222, p53_in_gaga(T219, T221, T202, T222))
INSERT1_IN_AGA(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → P53_IN_GAGA(T219, T221, T202, T222)
insert1_in_aga(T5, void, tree(T5, void, void)) → insert1_out_aga(T5, void, tree(T5, void, void))
insert1_in_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insert1_out_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insert1_in_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U11_aga(T31, T22, T23, T32, insert1_in_gga(0, T22, T32))
insert1_in_gga(T5, void, tree(T5, void, void)) → insert1_out_gga(T5, void, tree(T5, void, void))
insert1_in_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insert1_out_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insert1_in_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U11_gga(T31, T22, T23, T32, insert1_in_gga(0, T22, T32))
insert1_in_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U12_gga(T43, T42, T22, T23, T44, p21_in_ggga(T43, T42, T22, T44))
p21_in_ggga(T43, T42, T22, T44) → U3_ggga(T43, T42, T22, T44, less23_in_gg(T43, T42))
less23_in_gg(0, s(T55)) → less23_out_gg(0, s(T55))
less23_in_gg(s(T62), s(T61)) → U1_gg(T62, T61, less23_in_gg(T62, T61))
U1_gg(T62, T61, less23_out_gg(T62, T61)) → less23_out_gg(s(T62), s(T61))
U3_ggga(T43, T42, T22, T44, less23_out_gg(T43, T42)) → p21_out_ggga(T43, T42, T22, T44)
p21_in_ggga(T47, T42, T22, T48) → U4_ggga(T47, T42, T22, T48, less23_in_gg(T47, T42))
U4_ggga(T47, T42, T22, T48, less23_out_gg(T47, T42)) → U5_ggga(T47, T42, T22, T48, insert1_in_gga(s(T47), T22, T48))
insert1_in_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U13_gga(T82, T78, T79, T80, T83, less36_in_gg(T78, T82))
less36_in_gg(0, s(T94)) → less36_out_gg(0, s(T94))
less36_in_gg(s(T99), s(T101)) → U2_gg(T99, T101, less36_in_gg(T99, T101))
U2_gg(T99, T101, less36_out_gg(T99, T101)) → less36_out_gg(s(T99), s(T101))
U13_gga(T82, T78, T79, T80, T83, less36_out_gg(T78, T82)) → insert1_out_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
insert1_in_gga(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_gga(T86, T78, T79, T80, T87, less36_in_gg(T78, T86))
U14_gga(T86, T78, T79, T80, T87, less36_out_gg(T78, T86)) → U15_gga(T86, T78, T79, T80, T87, insert1_in_gga(T86, T80, T87))
insert1_in_gga(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → U16_gga(T116, T112, T113, T114, T117, p46_in_ggga(T112, T116, T114, T117))
p46_in_ggga(0, s(T124), T114, T123) → U6_ggga(T124, T114, T123, insert1_in_gga(s(T124), T114, T123))
insert1_in_gga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) → U17_gga(T159, T150, T151, T160, insert1_in_gga(0, T150, T160))
insert1_in_gga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) → U18_gga(T171, T170, T150, T151, T172, p21_in_ggga(T171, T170, T150, T172))
U18_gga(T171, T170, T150, T151, T172, p21_out_ggga(T171, T170, T150, T172)) → insert1_out_gga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151))
insert1_in_gga(T190, tree(T186, T187, T188), tree(T186, T187, T191)) → U19_gga(T190, T186, T187, T188, T191, p46_in_ggga(T186, T190, T188, T191))
p46_in_ggga(s(T131), s(T133), T114, T134) → U7_ggga(T131, T133, T114, T134, p53_in_ggga(T131, T133, T114, T134))
p53_in_ggga(T131, T133, T114, T134) → U8_ggga(T131, T133, T114, T134, less36_in_gg(T131, T133))
U8_ggga(T131, T133, T114, T134, less36_out_gg(T131, T133)) → p53_out_ggga(T131, T133, T114, T134)
p53_in_ggga(T131, T137, T114, T138) → U9_ggga(T131, T137, T114, T138, less36_in_gg(T131, T137))
U9_ggga(T131, T137, T114, T138, less36_out_gg(T131, T137)) → U10_ggga(T131, T137, T114, T138, insert1_in_gga(s(T137), T114, T138))
insert1_in_gga(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → U20_gga(T212, T201, T202, T211, insert1_in_gga(s(T212), T202, T211))
insert1_in_gga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → U21_gga(T221, T219, T201, T202, T222, p53_in_ggga(T219, T221, T202, T222))
U21_gga(T221, T219, T201, T202, T222, p53_out_ggga(T219, T221, T202, T222)) → insert1_out_gga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222))
U20_gga(T212, T201, T202, T211, insert1_out_gga(s(T212), T202, T211)) → insert1_out_gga(s(T212), tree(0, T201, T202), tree(0, T201, T211))
U10_ggga(T131, T137, T114, T138, insert1_out_gga(s(T137), T114, T138)) → p53_out_ggga(T131, T137, T114, T138)
U7_ggga(T131, T133, T114, T134, p53_out_ggga(T131, T133, T114, T134)) → p46_out_ggga(s(T131), s(T133), T114, T134)
U19_gga(T190, T186, T187, T188, T191, p46_out_ggga(T186, T190, T188, T191)) → insert1_out_gga(T190, tree(T186, T187, T188), tree(T186, T187, T191))
U17_gga(T159, T150, T151, T160, insert1_out_gga(0, T150, T160)) → insert1_out_gga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151))
U6_ggga(T124, T114, T123, insert1_out_gga(s(T124), T114, T123)) → p46_out_ggga(0, s(T124), T114, T123)
U16_gga(T116, T112, T113, T114, T117, p46_out_ggga(T112, T116, T114, T117)) → insert1_out_gga(T116, tree(T112, T113, T114), tree(T112, T113, T117))
U15_gga(T86, T78, T79, T80, T87, insert1_out_gga(T86, T80, T87)) → insert1_out_gga(T86, tree(T78, T79, T80), tree(T78, T79, T87))
U5_ggga(T47, T42, T22, T48, insert1_out_gga(s(T47), T22, T48)) → p21_out_ggga(T47, T42, T22, T48)
U12_gga(T43, T42, T22, T23, T44, p21_out_ggga(T43, T42, T22, T44)) → insert1_out_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
U11_gga(T31, T22, T23, T32, insert1_out_gga(0, T22, T32)) → insert1_out_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
U11_aga(T31, T22, T23, T32, insert1_out_gga(0, T22, T32)) → insert1_out_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
insert1_in_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U12_aga(T43, T42, T22, T23, T44, p21_in_agga(T43, T42, T22, T44))
p21_in_agga(T43, T42, T22, T44) → U3_agga(T43, T42, T22, T44, less23_in_ag(T43, T42))
less23_in_ag(0, s(T55)) → less23_out_ag(0, s(T55))
less23_in_ag(s(T62), s(T61)) → U1_ag(T62, T61, less23_in_ag(T62, T61))
U1_ag(T62, T61, less23_out_ag(T62, T61)) → less23_out_ag(s(T62), s(T61))
U3_agga(T43, T42, T22, T44, less23_out_ag(T43, T42)) → p21_out_agga(T43, T42, T22, T44)
p21_in_agga(T47, T42, T22, T48) → U4_agga(T47, T42, T22, T48, less23_in_ag(T47, T42))
U4_agga(T47, T42, T22, T48, less23_out_ag(T47, T42)) → U5_agga(T47, T42, T22, T48, insert1_in_gga(s(T47), T22, T48))
U5_agga(T47, T42, T22, T48, insert1_out_gga(s(T47), T22, T48)) → p21_out_agga(T47, T42, T22, T48)
U12_aga(T43, T42, T22, T23, T44, p21_out_agga(T43, T42, T22, T44)) → insert1_out_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
insert1_in_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U13_aga(T82, T78, T79, T80, T83, less36_in_ga(T78, T82))
less36_in_ga(0, s(T94)) → less36_out_ga(0, s(T94))
less36_in_ga(s(T99), s(T101)) → U2_ga(T99, T101, less36_in_ga(T99, T101))
U2_ga(T99, T101, less36_out_ga(T99, T101)) → less36_out_ga(s(T99), s(T101))
U13_aga(T82, T78, T79, T80, T83, less36_out_ga(T78, T82)) → insert1_out_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
insert1_in_aga(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_aga(T86, T78, T79, T80, T87, less36_in_ga(T78, T86))
U14_aga(T86, T78, T79, T80, T87, less36_out_ga(T78, T86)) → U15_aga(T86, T78, T79, T80, T87, insert1_in_aga(T86, T80, T87))
insert1_in_aga(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → U16_aga(T116, T112, T113, T114, T117, p46_in_gaga(T112, T116, T114, T117))
p46_in_gaga(0, s(T124), T114, T123) → U6_gaga(T124, T114, T123, insert1_in_aga(s(T124), T114, T123))
insert1_in_aga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) → U17_aga(T159, T150, T151, T160, insert1_in_gga(0, T150, T160))
U17_aga(T159, T150, T151, T160, insert1_out_gga(0, T150, T160)) → insert1_out_aga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151))
insert1_in_aga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) → U18_aga(T171, T170, T150, T151, T172, p21_in_agga(T171, T170, T150, T172))
U18_aga(T171, T170, T150, T151, T172, p21_out_agga(T171, T170, T150, T172)) → insert1_out_aga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151))
insert1_in_aga(T190, tree(T186, T187, T188), tree(T186, T187, T191)) → U19_aga(T190, T186, T187, T188, T191, p46_in_gaga(T186, T190, T188, T191))
p46_in_gaga(s(T131), s(T133), T114, T134) → U7_gaga(T131, T133, T114, T134, p53_in_gaga(T131, T133, T114, T134))
p53_in_gaga(T131, T133, T114, T134) → U8_gaga(T131, T133, T114, T134, less36_in_ga(T131, T133))
U8_gaga(T131, T133, T114, T134, less36_out_ga(T131, T133)) → p53_out_gaga(T131, T133, T114, T134)
p53_in_gaga(T131, T137, T114, T138) → U9_gaga(T131, T137, T114, T138, less36_in_ga(T131, T137))
U9_gaga(T131, T137, T114, T138, less36_out_ga(T131, T137)) → U10_gaga(T131, T137, T114, T138, insert1_in_aga(s(T137), T114, T138))
insert1_in_aga(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → U20_aga(T212, T201, T202, T211, insert1_in_aga(s(T212), T202, T211))
insert1_in_aga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → U21_aga(T221, T219, T201, T202, T222, p53_in_gaga(T219, T221, T202, T222))
U21_aga(T221, T219, T201, T202, T222, p53_out_gaga(T219, T221, T202, T222)) → insert1_out_aga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222))
U20_aga(T212, T201, T202, T211, insert1_out_aga(s(T212), T202, T211)) → insert1_out_aga(s(T212), tree(0, T201, T202), tree(0, T201, T211))
U10_gaga(T131, T137, T114, T138, insert1_out_aga(s(T137), T114, T138)) → p53_out_gaga(T131, T137, T114, T138)
U7_gaga(T131, T133, T114, T134, p53_out_gaga(T131, T133, T114, T134)) → p46_out_gaga(s(T131), s(T133), T114, T134)
U19_aga(T190, T186, T187, T188, T191, p46_out_gaga(T186, T190, T188, T191)) → insert1_out_aga(T190, tree(T186, T187, T188), tree(T186, T187, T191))
U6_gaga(T124, T114, T123, insert1_out_aga(s(T124), T114, T123)) → p46_out_gaga(0, s(T124), T114, T123)
U16_aga(T116, T112, T113, T114, T117, p46_out_gaga(T112, T116, T114, T117)) → insert1_out_aga(T116, tree(T112, T113, T114), tree(T112, T113, T117))
U15_aga(T86, T78, T79, T80, T87, insert1_out_aga(T86, T80, T87)) → insert1_out_aga(T86, tree(T78, T79, T80), tree(T78, T79, T87))
LESS36_IN_GA(s(T99), s(T101)) → LESS36_IN_GA(T99, T101)
insert1_in_aga(T5, void, tree(T5, void, void)) → insert1_out_aga(T5, void, tree(T5, void, void))
insert1_in_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insert1_out_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insert1_in_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U11_aga(T31, T22, T23, T32, insert1_in_gga(0, T22, T32))
insert1_in_gga(T5, void, tree(T5, void, void)) → insert1_out_gga(T5, void, tree(T5, void, void))
insert1_in_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insert1_out_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insert1_in_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U11_gga(T31, T22, T23, T32, insert1_in_gga(0, T22, T32))
insert1_in_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U12_gga(T43, T42, T22, T23, T44, p21_in_ggga(T43, T42, T22, T44))
p21_in_ggga(T43, T42, T22, T44) → U3_ggga(T43, T42, T22, T44, less23_in_gg(T43, T42))
less23_in_gg(0, s(T55)) → less23_out_gg(0, s(T55))
less23_in_gg(s(T62), s(T61)) → U1_gg(T62, T61, less23_in_gg(T62, T61))
U1_gg(T62, T61, less23_out_gg(T62, T61)) → less23_out_gg(s(T62), s(T61))
U3_ggga(T43, T42, T22, T44, less23_out_gg(T43, T42)) → p21_out_ggga(T43, T42, T22, T44)
p21_in_ggga(T47, T42, T22, T48) → U4_ggga(T47, T42, T22, T48, less23_in_gg(T47, T42))
U4_ggga(T47, T42, T22, T48, less23_out_gg(T47, T42)) → U5_ggga(T47, T42, T22, T48, insert1_in_gga(s(T47), T22, T48))
insert1_in_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U13_gga(T82, T78, T79, T80, T83, less36_in_gg(T78, T82))
less36_in_gg(0, s(T94)) → less36_out_gg(0, s(T94))
less36_in_gg(s(T99), s(T101)) → U2_gg(T99, T101, less36_in_gg(T99, T101))
U2_gg(T99, T101, less36_out_gg(T99, T101)) → less36_out_gg(s(T99), s(T101))
U13_gga(T82, T78, T79, T80, T83, less36_out_gg(T78, T82)) → insert1_out_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
insert1_in_gga(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_gga(T86, T78, T79, T80, T87, less36_in_gg(T78, T86))
U14_gga(T86, T78, T79, T80, T87, less36_out_gg(T78, T86)) → U15_gga(T86, T78, T79, T80, T87, insert1_in_gga(T86, T80, T87))
insert1_in_gga(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → U16_gga(T116, T112, T113, T114, T117, p46_in_ggga(T112, T116, T114, T117))
p46_in_ggga(0, s(T124), T114, T123) → U6_ggga(T124, T114, T123, insert1_in_gga(s(T124), T114, T123))
insert1_in_gga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) → U17_gga(T159, T150, T151, T160, insert1_in_gga(0, T150, T160))
insert1_in_gga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) → U18_gga(T171, T170, T150, T151, T172, p21_in_ggga(T171, T170, T150, T172))
U18_gga(T171, T170, T150, T151, T172, p21_out_ggga(T171, T170, T150, T172)) → insert1_out_gga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151))
insert1_in_gga(T190, tree(T186, T187, T188), tree(T186, T187, T191)) → U19_gga(T190, T186, T187, T188, T191, p46_in_ggga(T186, T190, T188, T191))
p46_in_ggga(s(T131), s(T133), T114, T134) → U7_ggga(T131, T133, T114, T134, p53_in_ggga(T131, T133, T114, T134))
p53_in_ggga(T131, T133, T114, T134) → U8_ggga(T131, T133, T114, T134, less36_in_gg(T131, T133))
U8_ggga(T131, T133, T114, T134, less36_out_gg(T131, T133)) → p53_out_ggga(T131, T133, T114, T134)
p53_in_ggga(T131, T137, T114, T138) → U9_ggga(T131, T137, T114, T138, less36_in_gg(T131, T137))
U9_ggga(T131, T137, T114, T138, less36_out_gg(T131, T137)) → U10_ggga(T131, T137, T114, T138, insert1_in_gga(s(T137), T114, T138))
insert1_in_gga(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → U20_gga(T212, T201, T202, T211, insert1_in_gga(s(T212), T202, T211))
insert1_in_gga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → U21_gga(T221, T219, T201, T202, T222, p53_in_ggga(T219, T221, T202, T222))
U21_gga(T221, T219, T201, T202, T222, p53_out_ggga(T219, T221, T202, T222)) → insert1_out_gga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222))
U20_gga(T212, T201, T202, T211, insert1_out_gga(s(T212), T202, T211)) → insert1_out_gga(s(T212), tree(0, T201, T202), tree(0, T201, T211))
U10_ggga(T131, T137, T114, T138, insert1_out_gga(s(T137), T114, T138)) → p53_out_ggga(T131, T137, T114, T138)
U7_ggga(T131, T133, T114, T134, p53_out_ggga(T131, T133, T114, T134)) → p46_out_ggga(s(T131), s(T133), T114, T134)
U19_gga(T190, T186, T187, T188, T191, p46_out_ggga(T186, T190, T188, T191)) → insert1_out_gga(T190, tree(T186, T187, T188), tree(T186, T187, T191))
U17_gga(T159, T150, T151, T160, insert1_out_gga(0, T150, T160)) → insert1_out_gga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151))
U6_ggga(T124, T114, T123, insert1_out_gga(s(T124), T114, T123)) → p46_out_ggga(0, s(T124), T114, T123)
U16_gga(T116, T112, T113, T114, T117, p46_out_ggga(T112, T116, T114, T117)) → insert1_out_gga(T116, tree(T112, T113, T114), tree(T112, T113, T117))
U15_gga(T86, T78, T79, T80, T87, insert1_out_gga(T86, T80, T87)) → insert1_out_gga(T86, tree(T78, T79, T80), tree(T78, T79, T87))
U5_ggga(T47, T42, T22, T48, insert1_out_gga(s(T47), T22, T48)) → p21_out_ggga(T47, T42, T22, T48)
U12_gga(T43, T42, T22, T23, T44, p21_out_ggga(T43, T42, T22, T44)) → insert1_out_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
U11_gga(T31, T22, T23, T32, insert1_out_gga(0, T22, T32)) → insert1_out_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
U11_aga(T31, T22, T23, T32, insert1_out_gga(0, T22, T32)) → insert1_out_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
insert1_in_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U12_aga(T43, T42, T22, T23, T44, p21_in_agga(T43, T42, T22, T44))
p21_in_agga(T43, T42, T22, T44) → U3_agga(T43, T42, T22, T44, less23_in_ag(T43, T42))
less23_in_ag(0, s(T55)) → less23_out_ag(0, s(T55))
less23_in_ag(s(T62), s(T61)) → U1_ag(T62, T61, less23_in_ag(T62, T61))
U1_ag(T62, T61, less23_out_ag(T62, T61)) → less23_out_ag(s(T62), s(T61))
U3_agga(T43, T42, T22, T44, less23_out_ag(T43, T42)) → p21_out_agga(T43, T42, T22, T44)
p21_in_agga(T47, T42, T22, T48) → U4_agga(T47, T42, T22, T48, less23_in_ag(T47, T42))
U4_agga(T47, T42, T22, T48, less23_out_ag(T47, T42)) → U5_agga(T47, T42, T22, T48, insert1_in_gga(s(T47), T22, T48))
U5_agga(T47, T42, T22, T48, insert1_out_gga(s(T47), T22, T48)) → p21_out_agga(T47, T42, T22, T48)
U12_aga(T43, T42, T22, T23, T44, p21_out_agga(T43, T42, T22, T44)) → insert1_out_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
insert1_in_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U13_aga(T82, T78, T79, T80, T83, less36_in_ga(T78, T82))
less36_in_ga(0, s(T94)) → less36_out_ga(0, s(T94))
less36_in_ga(s(T99), s(T101)) → U2_ga(T99, T101, less36_in_ga(T99, T101))
U2_ga(T99, T101, less36_out_ga(T99, T101)) → less36_out_ga(s(T99), s(T101))
U13_aga(T82, T78, T79, T80, T83, less36_out_ga(T78, T82)) → insert1_out_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
insert1_in_aga(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_aga(T86, T78, T79, T80, T87, less36_in_ga(T78, T86))
U14_aga(T86, T78, T79, T80, T87, less36_out_ga(T78, T86)) → U15_aga(T86, T78, T79, T80, T87, insert1_in_aga(T86, T80, T87))
insert1_in_aga(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → U16_aga(T116, T112, T113, T114, T117, p46_in_gaga(T112, T116, T114, T117))
p46_in_gaga(0, s(T124), T114, T123) → U6_gaga(T124, T114, T123, insert1_in_aga(s(T124), T114, T123))
insert1_in_aga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) → U17_aga(T159, T150, T151, T160, insert1_in_gga(0, T150, T160))
U17_aga(T159, T150, T151, T160, insert1_out_gga(0, T150, T160)) → insert1_out_aga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151))
insert1_in_aga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) → U18_aga(T171, T170, T150, T151, T172, p21_in_agga(T171, T170, T150, T172))
U18_aga(T171, T170, T150, T151, T172, p21_out_agga(T171, T170, T150, T172)) → insert1_out_aga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151))
insert1_in_aga(T190, tree(T186, T187, T188), tree(T186, T187, T191)) → U19_aga(T190, T186, T187, T188, T191, p46_in_gaga(T186, T190, T188, T191))
p46_in_gaga(s(T131), s(T133), T114, T134) → U7_gaga(T131, T133, T114, T134, p53_in_gaga(T131, T133, T114, T134))
p53_in_gaga(T131, T133, T114, T134) → U8_gaga(T131, T133, T114, T134, less36_in_ga(T131, T133))
U8_gaga(T131, T133, T114, T134, less36_out_ga(T131, T133)) → p53_out_gaga(T131, T133, T114, T134)
p53_in_gaga(T131, T137, T114, T138) → U9_gaga(T131, T137, T114, T138, less36_in_ga(T131, T137))
U9_gaga(T131, T137, T114, T138, less36_out_ga(T131, T137)) → U10_gaga(T131, T137, T114, T138, insert1_in_aga(s(T137), T114, T138))
insert1_in_aga(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → U20_aga(T212, T201, T202, T211, insert1_in_aga(s(T212), T202, T211))
insert1_in_aga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → U21_aga(T221, T219, T201, T202, T222, p53_in_gaga(T219, T221, T202, T222))
U21_aga(T221, T219, T201, T202, T222, p53_out_gaga(T219, T221, T202, T222)) → insert1_out_aga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222))
U20_aga(T212, T201, T202, T211, insert1_out_aga(s(T212), T202, T211)) → insert1_out_aga(s(T212), tree(0, T201, T202), tree(0, T201, T211))
U10_gaga(T131, T137, T114, T138, insert1_out_aga(s(T137), T114, T138)) → p53_out_gaga(T131, T137, T114, T138)
U7_gaga(T131, T133, T114, T134, p53_out_gaga(T131, T133, T114, T134)) → p46_out_gaga(s(T131), s(T133), T114, T134)
U19_aga(T190, T186, T187, T188, T191, p46_out_gaga(T186, T190, T188, T191)) → insert1_out_aga(T190, tree(T186, T187, T188), tree(T186, T187, T191))
U6_gaga(T124, T114, T123, insert1_out_aga(s(T124), T114, T123)) → p46_out_gaga(0, s(T124), T114, T123)
U16_aga(T116, T112, T113, T114, T117, p46_out_gaga(T112, T116, T114, T117)) → insert1_out_aga(T116, tree(T112, T113, T114), tree(T112, T113, T117))
U15_aga(T86, T78, T79, T80, T87, insert1_out_aga(T86, T80, T87)) → insert1_out_aga(T86, tree(T78, T79, T80), tree(T78, T79, T87))
LESS36_IN_GA(s(T99), s(T101)) → LESS36_IN_GA(T99, T101)
LESS36_IN_GA(s(T99)) → LESS36_IN_GA(T99)
From the DPs we obtained the following set of size-change graphs:
LESS23_IN_AG(s(T62), s(T61)) → LESS23_IN_AG(T62, T61)
insert1_in_aga(T5, void, tree(T5, void, void)) → insert1_out_aga(T5, void, tree(T5, void, void))
insert1_in_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insert1_out_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insert1_in_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U11_aga(T31, T22, T23, T32, insert1_in_gga(0, T22, T32))
insert1_in_gga(T5, void, tree(T5, void, void)) → insert1_out_gga(T5, void, tree(T5, void, void))
insert1_in_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insert1_out_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insert1_in_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U11_gga(T31, T22, T23, T32, insert1_in_gga(0, T22, T32))
insert1_in_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U12_gga(T43, T42, T22, T23, T44, p21_in_ggga(T43, T42, T22, T44))
p21_in_ggga(T43, T42, T22, T44) → U3_ggga(T43, T42, T22, T44, less23_in_gg(T43, T42))
less23_in_gg(0, s(T55)) → less23_out_gg(0, s(T55))
less23_in_gg(s(T62), s(T61)) → U1_gg(T62, T61, less23_in_gg(T62, T61))
U1_gg(T62, T61, less23_out_gg(T62, T61)) → less23_out_gg(s(T62), s(T61))
U3_ggga(T43, T42, T22, T44, less23_out_gg(T43, T42)) → p21_out_ggga(T43, T42, T22, T44)
p21_in_ggga(T47, T42, T22, T48) → U4_ggga(T47, T42, T22, T48, less23_in_gg(T47, T42))
U4_ggga(T47, T42, T22, T48, less23_out_gg(T47, T42)) → U5_ggga(T47, T42, T22, T48, insert1_in_gga(s(T47), T22, T48))
insert1_in_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U13_gga(T82, T78, T79, T80, T83, less36_in_gg(T78, T82))
less36_in_gg(0, s(T94)) → less36_out_gg(0, s(T94))
less36_in_gg(s(T99), s(T101)) → U2_gg(T99, T101, less36_in_gg(T99, T101))
U2_gg(T99, T101, less36_out_gg(T99, T101)) → less36_out_gg(s(T99), s(T101))
U13_gga(T82, T78, T79, T80, T83, less36_out_gg(T78, T82)) → insert1_out_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
insert1_in_gga(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_gga(T86, T78, T79, T80, T87, less36_in_gg(T78, T86))
U14_gga(T86, T78, T79, T80, T87, less36_out_gg(T78, T86)) → U15_gga(T86, T78, T79, T80, T87, insert1_in_gga(T86, T80, T87))
insert1_in_gga(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → U16_gga(T116, T112, T113, T114, T117, p46_in_ggga(T112, T116, T114, T117))
p46_in_ggga(0, s(T124), T114, T123) → U6_ggga(T124, T114, T123, insert1_in_gga(s(T124), T114, T123))
insert1_in_gga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) → U17_gga(T159, T150, T151, T160, insert1_in_gga(0, T150, T160))
insert1_in_gga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) → U18_gga(T171, T170, T150, T151, T172, p21_in_ggga(T171, T170, T150, T172))
U18_gga(T171, T170, T150, T151, T172, p21_out_ggga(T171, T170, T150, T172)) → insert1_out_gga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151))
insert1_in_gga(T190, tree(T186, T187, T188), tree(T186, T187, T191)) → U19_gga(T190, T186, T187, T188, T191, p46_in_ggga(T186, T190, T188, T191))
p46_in_ggga(s(T131), s(T133), T114, T134) → U7_ggga(T131, T133, T114, T134, p53_in_ggga(T131, T133, T114, T134))
p53_in_ggga(T131, T133, T114, T134) → U8_ggga(T131, T133, T114, T134, less36_in_gg(T131, T133))
U8_ggga(T131, T133, T114, T134, less36_out_gg(T131, T133)) → p53_out_ggga(T131, T133, T114, T134)
p53_in_ggga(T131, T137, T114, T138) → U9_ggga(T131, T137, T114, T138, less36_in_gg(T131, T137))
U9_ggga(T131, T137, T114, T138, less36_out_gg(T131, T137)) → U10_ggga(T131, T137, T114, T138, insert1_in_gga(s(T137), T114, T138))
insert1_in_gga(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → U20_gga(T212, T201, T202, T211, insert1_in_gga(s(T212), T202, T211))
insert1_in_gga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → U21_gga(T221, T219, T201, T202, T222, p53_in_ggga(T219, T221, T202, T222))
U21_gga(T221, T219, T201, T202, T222, p53_out_ggga(T219, T221, T202, T222)) → insert1_out_gga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222))
U20_gga(T212, T201, T202, T211, insert1_out_gga(s(T212), T202, T211)) → insert1_out_gga(s(T212), tree(0, T201, T202), tree(0, T201, T211))
U10_ggga(T131, T137, T114, T138, insert1_out_gga(s(T137), T114, T138)) → p53_out_ggga(T131, T137, T114, T138)
U7_ggga(T131, T133, T114, T134, p53_out_ggga(T131, T133, T114, T134)) → p46_out_ggga(s(T131), s(T133), T114, T134)
U19_gga(T190, T186, T187, T188, T191, p46_out_ggga(T186, T190, T188, T191)) → insert1_out_gga(T190, tree(T186, T187, T188), tree(T186, T187, T191))
U17_gga(T159, T150, T151, T160, insert1_out_gga(0, T150, T160)) → insert1_out_gga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151))
U6_ggga(T124, T114, T123, insert1_out_gga(s(T124), T114, T123)) → p46_out_ggga(0, s(T124), T114, T123)
U16_gga(T116, T112, T113, T114, T117, p46_out_ggga(T112, T116, T114, T117)) → insert1_out_gga(T116, tree(T112, T113, T114), tree(T112, T113, T117))
U15_gga(T86, T78, T79, T80, T87, insert1_out_gga(T86, T80, T87)) → insert1_out_gga(T86, tree(T78, T79, T80), tree(T78, T79, T87))
U5_ggga(T47, T42, T22, T48, insert1_out_gga(s(T47), T22, T48)) → p21_out_ggga(T47, T42, T22, T48)
U12_gga(T43, T42, T22, T23, T44, p21_out_ggga(T43, T42, T22, T44)) → insert1_out_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
U11_gga(T31, T22, T23, T32, insert1_out_gga(0, T22, T32)) → insert1_out_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
U11_aga(T31, T22, T23, T32, insert1_out_gga(0, T22, T32)) → insert1_out_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
insert1_in_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U12_aga(T43, T42, T22, T23, T44, p21_in_agga(T43, T42, T22, T44))
p21_in_agga(T43, T42, T22, T44) → U3_agga(T43, T42, T22, T44, less23_in_ag(T43, T42))
less23_in_ag(0, s(T55)) → less23_out_ag(0, s(T55))
less23_in_ag(s(T62), s(T61)) → U1_ag(T62, T61, less23_in_ag(T62, T61))
U1_ag(T62, T61, less23_out_ag(T62, T61)) → less23_out_ag(s(T62), s(T61))
U3_agga(T43, T42, T22, T44, less23_out_ag(T43, T42)) → p21_out_agga(T43, T42, T22, T44)
p21_in_agga(T47, T42, T22, T48) → U4_agga(T47, T42, T22, T48, less23_in_ag(T47, T42))
U4_agga(T47, T42, T22, T48, less23_out_ag(T47, T42)) → U5_agga(T47, T42, T22, T48, insert1_in_gga(s(T47), T22, T48))
U5_agga(T47, T42, T22, T48, insert1_out_gga(s(T47), T22, T48)) → p21_out_agga(T47, T42, T22, T48)
U12_aga(T43, T42, T22, T23, T44, p21_out_agga(T43, T42, T22, T44)) → insert1_out_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
insert1_in_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U13_aga(T82, T78, T79, T80, T83, less36_in_ga(T78, T82))
less36_in_ga(0, s(T94)) → less36_out_ga(0, s(T94))
less36_in_ga(s(T99), s(T101)) → U2_ga(T99, T101, less36_in_ga(T99, T101))
U2_ga(T99, T101, less36_out_ga(T99, T101)) → less36_out_ga(s(T99), s(T101))
U13_aga(T82, T78, T79, T80, T83, less36_out_ga(T78, T82)) → insert1_out_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
insert1_in_aga(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_aga(T86, T78, T79, T80, T87, less36_in_ga(T78, T86))
U14_aga(T86, T78, T79, T80, T87, less36_out_ga(T78, T86)) → U15_aga(T86, T78, T79, T80, T87, insert1_in_aga(T86, T80, T87))
insert1_in_aga(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → U16_aga(T116, T112, T113, T114, T117, p46_in_gaga(T112, T116, T114, T117))
p46_in_gaga(0, s(T124), T114, T123) → U6_gaga(T124, T114, T123, insert1_in_aga(s(T124), T114, T123))
insert1_in_aga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) → U17_aga(T159, T150, T151, T160, insert1_in_gga(0, T150, T160))
U17_aga(T159, T150, T151, T160, insert1_out_gga(0, T150, T160)) → insert1_out_aga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151))
insert1_in_aga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) → U18_aga(T171, T170, T150, T151, T172, p21_in_agga(T171, T170, T150, T172))
U18_aga(T171, T170, T150, T151, T172, p21_out_agga(T171, T170, T150, T172)) → insert1_out_aga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151))
insert1_in_aga(T190, tree(T186, T187, T188), tree(T186, T187, T191)) → U19_aga(T190, T186, T187, T188, T191, p46_in_gaga(T186, T190, T188, T191))
p46_in_gaga(s(T131), s(T133), T114, T134) → U7_gaga(T131, T133, T114, T134, p53_in_gaga(T131, T133, T114, T134))
p53_in_gaga(T131, T133, T114, T134) → U8_gaga(T131, T133, T114, T134, less36_in_ga(T131, T133))
U8_gaga(T131, T133, T114, T134, less36_out_ga(T131, T133)) → p53_out_gaga(T131, T133, T114, T134)
p53_in_gaga(T131, T137, T114, T138) → U9_gaga(T131, T137, T114, T138, less36_in_ga(T131, T137))
U9_gaga(T131, T137, T114, T138, less36_out_ga(T131, T137)) → U10_gaga(T131, T137, T114, T138, insert1_in_aga(s(T137), T114, T138))
insert1_in_aga(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → U20_aga(T212, T201, T202, T211, insert1_in_aga(s(T212), T202, T211))
insert1_in_aga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → U21_aga(T221, T219, T201, T202, T222, p53_in_gaga(T219, T221, T202, T222))
U21_aga(T221, T219, T201, T202, T222, p53_out_gaga(T219, T221, T202, T222)) → insert1_out_aga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222))
U20_aga(T212, T201, T202, T211, insert1_out_aga(s(T212), T202, T211)) → insert1_out_aga(s(T212), tree(0, T201, T202), tree(0, T201, T211))
U10_gaga(T131, T137, T114, T138, insert1_out_aga(s(T137), T114, T138)) → p53_out_gaga(T131, T137, T114, T138)
U7_gaga(T131, T133, T114, T134, p53_out_gaga(T131, T133, T114, T134)) → p46_out_gaga(s(T131), s(T133), T114, T134)
U19_aga(T190, T186, T187, T188, T191, p46_out_gaga(T186, T190, T188, T191)) → insert1_out_aga(T190, tree(T186, T187, T188), tree(T186, T187, T191))
U6_gaga(T124, T114, T123, insert1_out_aga(s(T124), T114, T123)) → p46_out_gaga(0, s(T124), T114, T123)
U16_aga(T116, T112, T113, T114, T117, p46_out_gaga(T112, T116, T114, T117)) → insert1_out_aga(T116, tree(T112, T113, T114), tree(T112, T113, T117))
U15_aga(T86, T78, T79, T80, T87, insert1_out_aga(T86, T80, T87)) → insert1_out_aga(T86, tree(T78, T79, T80), tree(T78, T79, T87))
LESS23_IN_AG(s(T62), s(T61)) → LESS23_IN_AG(T62, T61)
LESS23_IN_AG(s(T61)) → LESS23_IN_AG(T61)
From the DPs we obtained the following set of size-change graphs:
LESS36_IN_GG(s(T99), s(T101)) → LESS36_IN_GG(T99, T101)
insert1_in_aga(T5, void, tree(T5, void, void)) → insert1_out_aga(T5, void, tree(T5, void, void))
insert1_in_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insert1_out_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insert1_in_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U11_aga(T31, T22, T23, T32, insert1_in_gga(0, T22, T32))
insert1_in_gga(T5, void, tree(T5, void, void)) → insert1_out_gga(T5, void, tree(T5, void, void))
insert1_in_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insert1_out_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insert1_in_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U11_gga(T31, T22, T23, T32, insert1_in_gga(0, T22, T32))
insert1_in_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U12_gga(T43, T42, T22, T23, T44, p21_in_ggga(T43, T42, T22, T44))
p21_in_ggga(T43, T42, T22, T44) → U3_ggga(T43, T42, T22, T44, less23_in_gg(T43, T42))
less23_in_gg(0, s(T55)) → less23_out_gg(0, s(T55))
less23_in_gg(s(T62), s(T61)) → U1_gg(T62, T61, less23_in_gg(T62, T61))
U1_gg(T62, T61, less23_out_gg(T62, T61)) → less23_out_gg(s(T62), s(T61))
U3_ggga(T43, T42, T22, T44, less23_out_gg(T43, T42)) → p21_out_ggga(T43, T42, T22, T44)
p21_in_ggga(T47, T42, T22, T48) → U4_ggga(T47, T42, T22, T48, less23_in_gg(T47, T42))
U4_ggga(T47, T42, T22, T48, less23_out_gg(T47, T42)) → U5_ggga(T47, T42, T22, T48, insert1_in_gga(s(T47), T22, T48))
insert1_in_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U13_gga(T82, T78, T79, T80, T83, less36_in_gg(T78, T82))
less36_in_gg(0, s(T94)) → less36_out_gg(0, s(T94))
less36_in_gg(s(T99), s(T101)) → U2_gg(T99, T101, less36_in_gg(T99, T101))
U2_gg(T99, T101, less36_out_gg(T99, T101)) → less36_out_gg(s(T99), s(T101))
U13_gga(T82, T78, T79, T80, T83, less36_out_gg(T78, T82)) → insert1_out_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
insert1_in_gga(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_gga(T86, T78, T79, T80, T87, less36_in_gg(T78, T86))
U14_gga(T86, T78, T79, T80, T87, less36_out_gg(T78, T86)) → U15_gga(T86, T78, T79, T80, T87, insert1_in_gga(T86, T80, T87))
insert1_in_gga(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → U16_gga(T116, T112, T113, T114, T117, p46_in_ggga(T112, T116, T114, T117))
p46_in_ggga(0, s(T124), T114, T123) → U6_ggga(T124, T114, T123, insert1_in_gga(s(T124), T114, T123))
insert1_in_gga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) → U17_gga(T159, T150, T151, T160, insert1_in_gga(0, T150, T160))
insert1_in_gga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) → U18_gga(T171, T170, T150, T151, T172, p21_in_ggga(T171, T170, T150, T172))
U18_gga(T171, T170, T150, T151, T172, p21_out_ggga(T171, T170, T150, T172)) → insert1_out_gga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151))
insert1_in_gga(T190, tree(T186, T187, T188), tree(T186, T187, T191)) → U19_gga(T190, T186, T187, T188, T191, p46_in_ggga(T186, T190, T188, T191))
p46_in_ggga(s(T131), s(T133), T114, T134) → U7_ggga(T131, T133, T114, T134, p53_in_ggga(T131, T133, T114, T134))
p53_in_ggga(T131, T133, T114, T134) → U8_ggga(T131, T133, T114, T134, less36_in_gg(T131, T133))
U8_ggga(T131, T133, T114, T134, less36_out_gg(T131, T133)) → p53_out_ggga(T131, T133, T114, T134)
p53_in_ggga(T131, T137, T114, T138) → U9_ggga(T131, T137, T114, T138, less36_in_gg(T131, T137))
U9_ggga(T131, T137, T114, T138, less36_out_gg(T131, T137)) → U10_ggga(T131, T137, T114, T138, insert1_in_gga(s(T137), T114, T138))
insert1_in_gga(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → U20_gga(T212, T201, T202, T211, insert1_in_gga(s(T212), T202, T211))
insert1_in_gga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → U21_gga(T221, T219, T201, T202, T222, p53_in_ggga(T219, T221, T202, T222))
U21_gga(T221, T219, T201, T202, T222, p53_out_ggga(T219, T221, T202, T222)) → insert1_out_gga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222))
U20_gga(T212, T201, T202, T211, insert1_out_gga(s(T212), T202, T211)) → insert1_out_gga(s(T212), tree(0, T201, T202), tree(0, T201, T211))
U10_ggga(T131, T137, T114, T138, insert1_out_gga(s(T137), T114, T138)) → p53_out_ggga(T131, T137, T114, T138)
U7_ggga(T131, T133, T114, T134, p53_out_ggga(T131, T133, T114, T134)) → p46_out_ggga(s(T131), s(T133), T114, T134)
U19_gga(T190, T186, T187, T188, T191, p46_out_ggga(T186, T190, T188, T191)) → insert1_out_gga(T190, tree(T186, T187, T188), tree(T186, T187, T191))
U17_gga(T159, T150, T151, T160, insert1_out_gga(0, T150, T160)) → insert1_out_gga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151))
U6_ggga(T124, T114, T123, insert1_out_gga(s(T124), T114, T123)) → p46_out_ggga(0, s(T124), T114, T123)
U16_gga(T116, T112, T113, T114, T117, p46_out_ggga(T112, T116, T114, T117)) → insert1_out_gga(T116, tree(T112, T113, T114), tree(T112, T113, T117))
U15_gga(T86, T78, T79, T80, T87, insert1_out_gga(T86, T80, T87)) → insert1_out_gga(T86, tree(T78, T79, T80), tree(T78, T79, T87))
U5_ggga(T47, T42, T22, T48, insert1_out_gga(s(T47), T22, T48)) → p21_out_ggga(T47, T42, T22, T48)
U12_gga(T43, T42, T22, T23, T44, p21_out_ggga(T43, T42, T22, T44)) → insert1_out_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
U11_gga(T31, T22, T23, T32, insert1_out_gga(0, T22, T32)) → insert1_out_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
U11_aga(T31, T22, T23, T32, insert1_out_gga(0, T22, T32)) → insert1_out_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
insert1_in_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U12_aga(T43, T42, T22, T23, T44, p21_in_agga(T43, T42, T22, T44))
p21_in_agga(T43, T42, T22, T44) → U3_agga(T43, T42, T22, T44, less23_in_ag(T43, T42))
less23_in_ag(0, s(T55)) → less23_out_ag(0, s(T55))
less23_in_ag(s(T62), s(T61)) → U1_ag(T62, T61, less23_in_ag(T62, T61))
U1_ag(T62, T61, less23_out_ag(T62, T61)) → less23_out_ag(s(T62), s(T61))
U3_agga(T43, T42, T22, T44, less23_out_ag(T43, T42)) → p21_out_agga(T43, T42, T22, T44)
p21_in_agga(T47, T42, T22, T48) → U4_agga(T47, T42, T22, T48, less23_in_ag(T47, T42))
U4_agga(T47, T42, T22, T48, less23_out_ag(T47, T42)) → U5_agga(T47, T42, T22, T48, insert1_in_gga(s(T47), T22, T48))
U5_agga(T47, T42, T22, T48, insert1_out_gga(s(T47), T22, T48)) → p21_out_agga(T47, T42, T22, T48)
U12_aga(T43, T42, T22, T23, T44, p21_out_agga(T43, T42, T22, T44)) → insert1_out_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
insert1_in_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U13_aga(T82, T78, T79, T80, T83, less36_in_ga(T78, T82))
less36_in_ga(0, s(T94)) → less36_out_ga(0, s(T94))
less36_in_ga(s(T99), s(T101)) → U2_ga(T99, T101, less36_in_ga(T99, T101))
U2_ga(T99, T101, less36_out_ga(T99, T101)) → less36_out_ga(s(T99), s(T101))
U13_aga(T82, T78, T79, T80, T83, less36_out_ga(T78, T82)) → insert1_out_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
insert1_in_aga(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_aga(T86, T78, T79, T80, T87, less36_in_ga(T78, T86))
U14_aga(T86, T78, T79, T80, T87, less36_out_ga(T78, T86)) → U15_aga(T86, T78, T79, T80, T87, insert1_in_aga(T86, T80, T87))
insert1_in_aga(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → U16_aga(T116, T112, T113, T114, T117, p46_in_gaga(T112, T116, T114, T117))
p46_in_gaga(0, s(T124), T114, T123) → U6_gaga(T124, T114, T123, insert1_in_aga(s(T124), T114, T123))
insert1_in_aga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) → U17_aga(T159, T150, T151, T160, insert1_in_gga(0, T150, T160))
U17_aga(T159, T150, T151, T160, insert1_out_gga(0, T150, T160)) → insert1_out_aga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151))
insert1_in_aga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) → U18_aga(T171, T170, T150, T151, T172, p21_in_agga(T171, T170, T150, T172))
U18_aga(T171, T170, T150, T151, T172, p21_out_agga(T171, T170, T150, T172)) → insert1_out_aga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151))
insert1_in_aga(T190, tree(T186, T187, T188), tree(T186, T187, T191)) → U19_aga(T190, T186, T187, T188, T191, p46_in_gaga(T186, T190, T188, T191))
p46_in_gaga(s(T131), s(T133), T114, T134) → U7_gaga(T131, T133, T114, T134, p53_in_gaga(T131, T133, T114, T134))
p53_in_gaga(T131, T133, T114, T134) → U8_gaga(T131, T133, T114, T134, less36_in_ga(T131, T133))
U8_gaga(T131, T133, T114, T134, less36_out_ga(T131, T133)) → p53_out_gaga(T131, T133, T114, T134)
p53_in_gaga(T131, T137, T114, T138) → U9_gaga(T131, T137, T114, T138, less36_in_ga(T131, T137))
U9_gaga(T131, T137, T114, T138, less36_out_ga(T131, T137)) → U10_gaga(T131, T137, T114, T138, insert1_in_aga(s(T137), T114, T138))
insert1_in_aga(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → U20_aga(T212, T201, T202, T211, insert1_in_aga(s(T212), T202, T211))
insert1_in_aga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → U21_aga(T221, T219, T201, T202, T222, p53_in_gaga(T219, T221, T202, T222))
U21_aga(T221, T219, T201, T202, T222, p53_out_gaga(T219, T221, T202, T222)) → insert1_out_aga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222))
U20_aga(T212, T201, T202, T211, insert1_out_aga(s(T212), T202, T211)) → insert1_out_aga(s(T212), tree(0, T201, T202), tree(0, T201, T211))
U10_gaga(T131, T137, T114, T138, insert1_out_aga(s(T137), T114, T138)) → p53_out_gaga(T131, T137, T114, T138)
U7_gaga(T131, T133, T114, T134, p53_out_gaga(T131, T133, T114, T134)) → p46_out_gaga(s(T131), s(T133), T114, T134)
U19_aga(T190, T186, T187, T188, T191, p46_out_gaga(T186, T190, T188, T191)) → insert1_out_aga(T190, tree(T186, T187, T188), tree(T186, T187, T191))
U6_gaga(T124, T114, T123, insert1_out_aga(s(T124), T114, T123)) → p46_out_gaga(0, s(T124), T114, T123)
U16_aga(T116, T112, T113, T114, T117, p46_out_gaga(T112, T116, T114, T117)) → insert1_out_aga(T116, tree(T112, T113, T114), tree(T112, T113, T117))
U15_aga(T86, T78, T79, T80, T87, insert1_out_aga(T86, T80, T87)) → insert1_out_aga(T86, tree(T78, T79, T80), tree(T78, T79, T87))
LESS36_IN_GG(s(T99), s(T101)) → LESS36_IN_GG(T99, T101)
LESS36_IN_GG(s(T99), s(T101)) → LESS36_IN_GG(T99, T101)
From the DPs we obtained the following set of size-change graphs:
LESS23_IN_GG(s(T62), s(T61)) → LESS23_IN_GG(T62, T61)
insert1_in_aga(T5, void, tree(T5, void, void)) → insert1_out_aga(T5, void, tree(T5, void, void))
insert1_in_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insert1_out_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insert1_in_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U11_aga(T31, T22, T23, T32, insert1_in_gga(0, T22, T32))
insert1_in_gga(T5, void, tree(T5, void, void)) → insert1_out_gga(T5, void, tree(T5, void, void))
insert1_in_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insert1_out_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insert1_in_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U11_gga(T31, T22, T23, T32, insert1_in_gga(0, T22, T32))
insert1_in_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U12_gga(T43, T42, T22, T23, T44, p21_in_ggga(T43, T42, T22, T44))
p21_in_ggga(T43, T42, T22, T44) → U3_ggga(T43, T42, T22, T44, less23_in_gg(T43, T42))
less23_in_gg(0, s(T55)) → less23_out_gg(0, s(T55))
less23_in_gg(s(T62), s(T61)) → U1_gg(T62, T61, less23_in_gg(T62, T61))
U1_gg(T62, T61, less23_out_gg(T62, T61)) → less23_out_gg(s(T62), s(T61))
U3_ggga(T43, T42, T22, T44, less23_out_gg(T43, T42)) → p21_out_ggga(T43, T42, T22, T44)
p21_in_ggga(T47, T42, T22, T48) → U4_ggga(T47, T42, T22, T48, less23_in_gg(T47, T42))
U4_ggga(T47, T42, T22, T48, less23_out_gg(T47, T42)) → U5_ggga(T47, T42, T22, T48, insert1_in_gga(s(T47), T22, T48))
insert1_in_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U13_gga(T82, T78, T79, T80, T83, less36_in_gg(T78, T82))
less36_in_gg(0, s(T94)) → less36_out_gg(0, s(T94))
less36_in_gg(s(T99), s(T101)) → U2_gg(T99, T101, less36_in_gg(T99, T101))
U2_gg(T99, T101, less36_out_gg(T99, T101)) → less36_out_gg(s(T99), s(T101))
U13_gga(T82, T78, T79, T80, T83, less36_out_gg(T78, T82)) → insert1_out_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
insert1_in_gga(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_gga(T86, T78, T79, T80, T87, less36_in_gg(T78, T86))
U14_gga(T86, T78, T79, T80, T87, less36_out_gg(T78, T86)) → U15_gga(T86, T78, T79, T80, T87, insert1_in_gga(T86, T80, T87))
insert1_in_gga(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → U16_gga(T116, T112, T113, T114, T117, p46_in_ggga(T112, T116, T114, T117))
p46_in_ggga(0, s(T124), T114, T123) → U6_ggga(T124, T114, T123, insert1_in_gga(s(T124), T114, T123))
insert1_in_gga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) → U17_gga(T159, T150, T151, T160, insert1_in_gga(0, T150, T160))
insert1_in_gga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) → U18_gga(T171, T170, T150, T151, T172, p21_in_ggga(T171, T170, T150, T172))
U18_gga(T171, T170, T150, T151, T172, p21_out_ggga(T171, T170, T150, T172)) → insert1_out_gga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151))
insert1_in_gga(T190, tree(T186, T187, T188), tree(T186, T187, T191)) → U19_gga(T190, T186, T187, T188, T191, p46_in_ggga(T186, T190, T188, T191))
p46_in_ggga(s(T131), s(T133), T114, T134) → U7_ggga(T131, T133, T114, T134, p53_in_ggga(T131, T133, T114, T134))
p53_in_ggga(T131, T133, T114, T134) → U8_ggga(T131, T133, T114, T134, less36_in_gg(T131, T133))
U8_ggga(T131, T133, T114, T134, less36_out_gg(T131, T133)) → p53_out_ggga(T131, T133, T114, T134)
p53_in_ggga(T131, T137, T114, T138) → U9_ggga(T131, T137, T114, T138, less36_in_gg(T131, T137))
U9_ggga(T131, T137, T114, T138, less36_out_gg(T131, T137)) → U10_ggga(T131, T137, T114, T138, insert1_in_gga(s(T137), T114, T138))
insert1_in_gga(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → U20_gga(T212, T201, T202, T211, insert1_in_gga(s(T212), T202, T211))
insert1_in_gga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → U21_gga(T221, T219, T201, T202, T222, p53_in_ggga(T219, T221, T202, T222))
U21_gga(T221, T219, T201, T202, T222, p53_out_ggga(T219, T221, T202, T222)) → insert1_out_gga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222))
U20_gga(T212, T201, T202, T211, insert1_out_gga(s(T212), T202, T211)) → insert1_out_gga(s(T212), tree(0, T201, T202), tree(0, T201, T211))
U10_ggga(T131, T137, T114, T138, insert1_out_gga(s(T137), T114, T138)) → p53_out_ggga(T131, T137, T114, T138)
U7_ggga(T131, T133, T114, T134, p53_out_ggga(T131, T133, T114, T134)) → p46_out_ggga(s(T131), s(T133), T114, T134)
U19_gga(T190, T186, T187, T188, T191, p46_out_ggga(T186, T190, T188, T191)) → insert1_out_gga(T190, tree(T186, T187, T188), tree(T186, T187, T191))
U17_gga(T159, T150, T151, T160, insert1_out_gga(0, T150, T160)) → insert1_out_gga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151))
U6_ggga(T124, T114, T123, insert1_out_gga(s(T124), T114, T123)) → p46_out_ggga(0, s(T124), T114, T123)
U16_gga(T116, T112, T113, T114, T117, p46_out_ggga(T112, T116, T114, T117)) → insert1_out_gga(T116, tree(T112, T113, T114), tree(T112, T113, T117))
U15_gga(T86, T78, T79, T80, T87, insert1_out_gga(T86, T80, T87)) → insert1_out_gga(T86, tree(T78, T79, T80), tree(T78, T79, T87))
U5_ggga(T47, T42, T22, T48, insert1_out_gga(s(T47), T22, T48)) → p21_out_ggga(T47, T42, T22, T48)
U12_gga(T43, T42, T22, T23, T44, p21_out_ggga(T43, T42, T22, T44)) → insert1_out_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
U11_gga(T31, T22, T23, T32, insert1_out_gga(0, T22, T32)) → insert1_out_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
U11_aga(T31, T22, T23, T32, insert1_out_gga(0, T22, T32)) → insert1_out_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
insert1_in_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U12_aga(T43, T42, T22, T23, T44, p21_in_agga(T43, T42, T22, T44))
p21_in_agga(T43, T42, T22, T44) → U3_agga(T43, T42, T22, T44, less23_in_ag(T43, T42))
less23_in_ag(0, s(T55)) → less23_out_ag(0, s(T55))
less23_in_ag(s(T62), s(T61)) → U1_ag(T62, T61, less23_in_ag(T62, T61))
U1_ag(T62, T61, less23_out_ag(T62, T61)) → less23_out_ag(s(T62), s(T61))
U3_agga(T43, T42, T22, T44, less23_out_ag(T43, T42)) → p21_out_agga(T43, T42, T22, T44)
p21_in_agga(T47, T42, T22, T48) → U4_agga(T47, T42, T22, T48, less23_in_ag(T47, T42))
U4_agga(T47, T42, T22, T48, less23_out_ag(T47, T42)) → U5_agga(T47, T42, T22, T48, insert1_in_gga(s(T47), T22, T48))
U5_agga(T47, T42, T22, T48, insert1_out_gga(s(T47), T22, T48)) → p21_out_agga(T47, T42, T22, T48)
U12_aga(T43, T42, T22, T23, T44, p21_out_agga(T43, T42, T22, T44)) → insert1_out_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
insert1_in_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U13_aga(T82, T78, T79, T80, T83, less36_in_ga(T78, T82))
less36_in_ga(0, s(T94)) → less36_out_ga(0, s(T94))
less36_in_ga(s(T99), s(T101)) → U2_ga(T99, T101, less36_in_ga(T99, T101))
U2_ga(T99, T101, less36_out_ga(T99, T101)) → less36_out_ga(s(T99), s(T101))
U13_aga(T82, T78, T79, T80, T83, less36_out_ga(T78, T82)) → insert1_out_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
insert1_in_aga(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_aga(T86, T78, T79, T80, T87, less36_in_ga(T78, T86))
U14_aga(T86, T78, T79, T80, T87, less36_out_ga(T78, T86)) → U15_aga(T86, T78, T79, T80, T87, insert1_in_aga(T86, T80, T87))
insert1_in_aga(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → U16_aga(T116, T112, T113, T114, T117, p46_in_gaga(T112, T116, T114, T117))
p46_in_gaga(0, s(T124), T114, T123) → U6_gaga(T124, T114, T123, insert1_in_aga(s(T124), T114, T123))
insert1_in_aga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) → U17_aga(T159, T150, T151, T160, insert1_in_gga(0, T150, T160))
U17_aga(T159, T150, T151, T160, insert1_out_gga(0, T150, T160)) → insert1_out_aga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151))
insert1_in_aga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) → U18_aga(T171, T170, T150, T151, T172, p21_in_agga(T171, T170, T150, T172))
U18_aga(T171, T170, T150, T151, T172, p21_out_agga(T171, T170, T150, T172)) → insert1_out_aga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151))
insert1_in_aga(T190, tree(T186, T187, T188), tree(T186, T187, T191)) → U19_aga(T190, T186, T187, T188, T191, p46_in_gaga(T186, T190, T188, T191))
p46_in_gaga(s(T131), s(T133), T114, T134) → U7_gaga(T131, T133, T114, T134, p53_in_gaga(T131, T133, T114, T134))
p53_in_gaga(T131, T133, T114, T134) → U8_gaga(T131, T133, T114, T134, less36_in_ga(T131, T133))
U8_gaga(T131, T133, T114, T134, less36_out_ga(T131, T133)) → p53_out_gaga(T131, T133, T114, T134)
p53_in_gaga(T131, T137, T114, T138) → U9_gaga(T131, T137, T114, T138, less36_in_ga(T131, T137))
U9_gaga(T131, T137, T114, T138, less36_out_ga(T131, T137)) → U10_gaga(T131, T137, T114, T138, insert1_in_aga(s(T137), T114, T138))
insert1_in_aga(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → U20_aga(T212, T201, T202, T211, insert1_in_aga(s(T212), T202, T211))
insert1_in_aga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → U21_aga(T221, T219, T201, T202, T222, p53_in_gaga(T219, T221, T202, T222))
U21_aga(T221, T219, T201, T202, T222, p53_out_gaga(T219, T221, T202, T222)) → insert1_out_aga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222))
U20_aga(T212, T201, T202, T211, insert1_out_aga(s(T212), T202, T211)) → insert1_out_aga(s(T212), tree(0, T201, T202), tree(0, T201, T211))
U10_gaga(T131, T137, T114, T138, insert1_out_aga(s(T137), T114, T138)) → p53_out_gaga(T131, T137, T114, T138)
U7_gaga(T131, T133, T114, T134, p53_out_gaga(T131, T133, T114, T134)) → p46_out_gaga(s(T131), s(T133), T114, T134)
U19_aga(T190, T186, T187, T188, T191, p46_out_gaga(T186, T190, T188, T191)) → insert1_out_aga(T190, tree(T186, T187, T188), tree(T186, T187, T191))
U6_gaga(T124, T114, T123, insert1_out_aga(s(T124), T114, T123)) → p46_out_gaga(0, s(T124), T114, T123)
U16_aga(T116, T112, T113, T114, T117, p46_out_gaga(T112, T116, T114, T117)) → insert1_out_aga(T116, tree(T112, T113, T114), tree(T112, T113, T117))
U15_aga(T86, T78, T79, T80, T87, insert1_out_aga(T86, T80, T87)) → insert1_out_aga(T86, tree(T78, T79, T80), tree(T78, T79, T87))
LESS23_IN_GG(s(T62), s(T61)) → LESS23_IN_GG(T62, T61)
LESS23_IN_GG(s(T62), s(T61)) → LESS23_IN_GG(T62, T61)
From the DPs we obtained the following set of size-change graphs:
INSERT1_IN_GGA(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_GGA(T86, T78, T79, T80, T87, less36_in_gg(T78, T86))
U14_GGA(T86, T78, T79, T80, T87, less36_out_gg(T78, T86)) → INSERT1_IN_GGA(T86, T80, T87)
INSERT1_IN_GGA(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → INSERT1_IN_GGA(0, T22, T32)
INSERT1_IN_GGA(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → P46_IN_GGGA(T112, T116, T114, T117)
P46_IN_GGGA(0, s(T124), T114, T123) → INSERT1_IN_GGA(s(T124), T114, T123)
INSERT1_IN_GGA(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → P21_IN_GGGA(T43, T42, T22, T44)
P21_IN_GGGA(T47, T42, T22, T48) → U4_GGGA(T47, T42, T22, T48, less23_in_gg(T47, T42))
U4_GGGA(T47, T42, T22, T48, less23_out_gg(T47, T42)) → INSERT1_IN_GGA(s(T47), T22, T48)
INSERT1_IN_GGA(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → INSERT1_IN_GGA(s(T212), T202, T211)
INSERT1_IN_GGA(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → P53_IN_GGGA(T219, T221, T202, T222)
P53_IN_GGGA(T131, T137, T114, T138) → U9_GGGA(T131, T137, T114, T138, less36_in_gg(T131, T137))
U9_GGGA(T131, T137, T114, T138, less36_out_gg(T131, T137)) → INSERT1_IN_GGA(s(T137), T114, T138)
P46_IN_GGGA(s(T131), s(T133), T114, T134) → P53_IN_GGGA(T131, T133, T114, T134)
insert1_in_aga(T5, void, tree(T5, void, void)) → insert1_out_aga(T5, void, tree(T5, void, void))
insert1_in_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insert1_out_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insert1_in_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U11_aga(T31, T22, T23, T32, insert1_in_gga(0, T22, T32))
insert1_in_gga(T5, void, tree(T5, void, void)) → insert1_out_gga(T5, void, tree(T5, void, void))
insert1_in_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insert1_out_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insert1_in_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U11_gga(T31, T22, T23, T32, insert1_in_gga(0, T22, T32))
insert1_in_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U12_gga(T43, T42, T22, T23, T44, p21_in_ggga(T43, T42, T22, T44))
p21_in_ggga(T43, T42, T22, T44) → U3_ggga(T43, T42, T22, T44, less23_in_gg(T43, T42))
less23_in_gg(0, s(T55)) → less23_out_gg(0, s(T55))
less23_in_gg(s(T62), s(T61)) → U1_gg(T62, T61, less23_in_gg(T62, T61))
U1_gg(T62, T61, less23_out_gg(T62, T61)) → less23_out_gg(s(T62), s(T61))
U3_ggga(T43, T42, T22, T44, less23_out_gg(T43, T42)) → p21_out_ggga(T43, T42, T22, T44)
p21_in_ggga(T47, T42, T22, T48) → U4_ggga(T47, T42, T22, T48, less23_in_gg(T47, T42))
U4_ggga(T47, T42, T22, T48, less23_out_gg(T47, T42)) → U5_ggga(T47, T42, T22, T48, insert1_in_gga(s(T47), T22, T48))
insert1_in_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U13_gga(T82, T78, T79, T80, T83, less36_in_gg(T78, T82))
less36_in_gg(0, s(T94)) → less36_out_gg(0, s(T94))
less36_in_gg(s(T99), s(T101)) → U2_gg(T99, T101, less36_in_gg(T99, T101))
U2_gg(T99, T101, less36_out_gg(T99, T101)) → less36_out_gg(s(T99), s(T101))
U13_gga(T82, T78, T79, T80, T83, less36_out_gg(T78, T82)) → insert1_out_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
insert1_in_gga(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_gga(T86, T78, T79, T80, T87, less36_in_gg(T78, T86))
U14_gga(T86, T78, T79, T80, T87, less36_out_gg(T78, T86)) → U15_gga(T86, T78, T79, T80, T87, insert1_in_gga(T86, T80, T87))
insert1_in_gga(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → U16_gga(T116, T112, T113, T114, T117, p46_in_ggga(T112, T116, T114, T117))
p46_in_ggga(0, s(T124), T114, T123) → U6_ggga(T124, T114, T123, insert1_in_gga(s(T124), T114, T123))
insert1_in_gga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) → U17_gga(T159, T150, T151, T160, insert1_in_gga(0, T150, T160))
insert1_in_gga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) → U18_gga(T171, T170, T150, T151, T172, p21_in_ggga(T171, T170, T150, T172))
U18_gga(T171, T170, T150, T151, T172, p21_out_ggga(T171, T170, T150, T172)) → insert1_out_gga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151))
insert1_in_gga(T190, tree(T186, T187, T188), tree(T186, T187, T191)) → U19_gga(T190, T186, T187, T188, T191, p46_in_ggga(T186, T190, T188, T191))
p46_in_ggga(s(T131), s(T133), T114, T134) → U7_ggga(T131, T133, T114, T134, p53_in_ggga(T131, T133, T114, T134))
p53_in_ggga(T131, T133, T114, T134) → U8_ggga(T131, T133, T114, T134, less36_in_gg(T131, T133))
U8_ggga(T131, T133, T114, T134, less36_out_gg(T131, T133)) → p53_out_ggga(T131, T133, T114, T134)
p53_in_ggga(T131, T137, T114, T138) → U9_ggga(T131, T137, T114, T138, less36_in_gg(T131, T137))
U9_ggga(T131, T137, T114, T138, less36_out_gg(T131, T137)) → U10_ggga(T131, T137, T114, T138, insert1_in_gga(s(T137), T114, T138))
insert1_in_gga(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → U20_gga(T212, T201, T202, T211, insert1_in_gga(s(T212), T202, T211))
insert1_in_gga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → U21_gga(T221, T219, T201, T202, T222, p53_in_ggga(T219, T221, T202, T222))
U21_gga(T221, T219, T201, T202, T222, p53_out_ggga(T219, T221, T202, T222)) → insert1_out_gga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222))
U20_gga(T212, T201, T202, T211, insert1_out_gga(s(T212), T202, T211)) → insert1_out_gga(s(T212), tree(0, T201, T202), tree(0, T201, T211))
U10_ggga(T131, T137, T114, T138, insert1_out_gga(s(T137), T114, T138)) → p53_out_ggga(T131, T137, T114, T138)
U7_ggga(T131, T133, T114, T134, p53_out_ggga(T131, T133, T114, T134)) → p46_out_ggga(s(T131), s(T133), T114, T134)
U19_gga(T190, T186, T187, T188, T191, p46_out_ggga(T186, T190, T188, T191)) → insert1_out_gga(T190, tree(T186, T187, T188), tree(T186, T187, T191))
U17_gga(T159, T150, T151, T160, insert1_out_gga(0, T150, T160)) → insert1_out_gga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151))
U6_ggga(T124, T114, T123, insert1_out_gga(s(T124), T114, T123)) → p46_out_ggga(0, s(T124), T114, T123)
U16_gga(T116, T112, T113, T114, T117, p46_out_ggga(T112, T116, T114, T117)) → insert1_out_gga(T116, tree(T112, T113, T114), tree(T112, T113, T117))
U15_gga(T86, T78, T79, T80, T87, insert1_out_gga(T86, T80, T87)) → insert1_out_gga(T86, tree(T78, T79, T80), tree(T78, T79, T87))
U5_ggga(T47, T42, T22, T48, insert1_out_gga(s(T47), T22, T48)) → p21_out_ggga(T47, T42, T22, T48)
U12_gga(T43, T42, T22, T23, T44, p21_out_ggga(T43, T42, T22, T44)) → insert1_out_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
U11_gga(T31, T22, T23, T32, insert1_out_gga(0, T22, T32)) → insert1_out_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
U11_aga(T31, T22, T23, T32, insert1_out_gga(0, T22, T32)) → insert1_out_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
insert1_in_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U12_aga(T43, T42, T22, T23, T44, p21_in_agga(T43, T42, T22, T44))
p21_in_agga(T43, T42, T22, T44) → U3_agga(T43, T42, T22, T44, less23_in_ag(T43, T42))
less23_in_ag(0, s(T55)) → less23_out_ag(0, s(T55))
less23_in_ag(s(T62), s(T61)) → U1_ag(T62, T61, less23_in_ag(T62, T61))
U1_ag(T62, T61, less23_out_ag(T62, T61)) → less23_out_ag(s(T62), s(T61))
U3_agga(T43, T42, T22, T44, less23_out_ag(T43, T42)) → p21_out_agga(T43, T42, T22, T44)
p21_in_agga(T47, T42, T22, T48) → U4_agga(T47, T42, T22, T48, less23_in_ag(T47, T42))
U4_agga(T47, T42, T22, T48, less23_out_ag(T47, T42)) → U5_agga(T47, T42, T22, T48, insert1_in_gga(s(T47), T22, T48))
U5_agga(T47, T42, T22, T48, insert1_out_gga(s(T47), T22, T48)) → p21_out_agga(T47, T42, T22, T48)
U12_aga(T43, T42, T22, T23, T44, p21_out_agga(T43, T42, T22, T44)) → insert1_out_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
insert1_in_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U13_aga(T82, T78, T79, T80, T83, less36_in_ga(T78, T82))
less36_in_ga(0, s(T94)) → less36_out_ga(0, s(T94))
less36_in_ga(s(T99), s(T101)) → U2_ga(T99, T101, less36_in_ga(T99, T101))
U2_ga(T99, T101, less36_out_ga(T99, T101)) → less36_out_ga(s(T99), s(T101))
U13_aga(T82, T78, T79, T80, T83, less36_out_ga(T78, T82)) → insert1_out_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
insert1_in_aga(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_aga(T86, T78, T79, T80, T87, less36_in_ga(T78, T86))
U14_aga(T86, T78, T79, T80, T87, less36_out_ga(T78, T86)) → U15_aga(T86, T78, T79, T80, T87, insert1_in_aga(T86, T80, T87))
insert1_in_aga(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → U16_aga(T116, T112, T113, T114, T117, p46_in_gaga(T112, T116, T114, T117))
p46_in_gaga(0, s(T124), T114, T123) → U6_gaga(T124, T114, T123, insert1_in_aga(s(T124), T114, T123))
insert1_in_aga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) → U17_aga(T159, T150, T151, T160, insert1_in_gga(0, T150, T160))
U17_aga(T159, T150, T151, T160, insert1_out_gga(0, T150, T160)) → insert1_out_aga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151))
insert1_in_aga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) → U18_aga(T171, T170, T150, T151, T172, p21_in_agga(T171, T170, T150, T172))
U18_aga(T171, T170, T150, T151, T172, p21_out_agga(T171, T170, T150, T172)) → insert1_out_aga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151))
insert1_in_aga(T190, tree(T186, T187, T188), tree(T186, T187, T191)) → U19_aga(T190, T186, T187, T188, T191, p46_in_gaga(T186, T190, T188, T191))
p46_in_gaga(s(T131), s(T133), T114, T134) → U7_gaga(T131, T133, T114, T134, p53_in_gaga(T131, T133, T114, T134))
p53_in_gaga(T131, T133, T114, T134) → U8_gaga(T131, T133, T114, T134, less36_in_ga(T131, T133))
U8_gaga(T131, T133, T114, T134, less36_out_ga(T131, T133)) → p53_out_gaga(T131, T133, T114, T134)
p53_in_gaga(T131, T137, T114, T138) → U9_gaga(T131, T137, T114, T138, less36_in_ga(T131, T137))
U9_gaga(T131, T137, T114, T138, less36_out_ga(T131, T137)) → U10_gaga(T131, T137, T114, T138, insert1_in_aga(s(T137), T114, T138))
insert1_in_aga(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → U20_aga(T212, T201, T202, T211, insert1_in_aga(s(T212), T202, T211))
insert1_in_aga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → U21_aga(T221, T219, T201, T202, T222, p53_in_gaga(T219, T221, T202, T222))
U21_aga(T221, T219, T201, T202, T222, p53_out_gaga(T219, T221, T202, T222)) → insert1_out_aga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222))
U20_aga(T212, T201, T202, T211, insert1_out_aga(s(T212), T202, T211)) → insert1_out_aga(s(T212), tree(0, T201, T202), tree(0, T201, T211))
U10_gaga(T131, T137, T114, T138, insert1_out_aga(s(T137), T114, T138)) → p53_out_gaga(T131, T137, T114, T138)
U7_gaga(T131, T133, T114, T134, p53_out_gaga(T131, T133, T114, T134)) → p46_out_gaga(s(T131), s(T133), T114, T134)
U19_aga(T190, T186, T187, T188, T191, p46_out_gaga(T186, T190, T188, T191)) → insert1_out_aga(T190, tree(T186, T187, T188), tree(T186, T187, T191))
U6_gaga(T124, T114, T123, insert1_out_aga(s(T124), T114, T123)) → p46_out_gaga(0, s(T124), T114, T123)
U16_aga(T116, T112, T113, T114, T117, p46_out_gaga(T112, T116, T114, T117)) → insert1_out_aga(T116, tree(T112, T113, T114), tree(T112, T113, T117))
U15_aga(T86, T78, T79, T80, T87, insert1_out_aga(T86, T80, T87)) → insert1_out_aga(T86, tree(T78, T79, T80), tree(T78, T79, T87))
INSERT1_IN_GGA(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_GGA(T86, T78, T79, T80, T87, less36_in_gg(T78, T86))
U14_GGA(T86, T78, T79, T80, T87, less36_out_gg(T78, T86)) → INSERT1_IN_GGA(T86, T80, T87)
INSERT1_IN_GGA(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → INSERT1_IN_GGA(0, T22, T32)
INSERT1_IN_GGA(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → P46_IN_GGGA(T112, T116, T114, T117)
P46_IN_GGGA(0, s(T124), T114, T123) → INSERT1_IN_GGA(s(T124), T114, T123)
INSERT1_IN_GGA(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → P21_IN_GGGA(T43, T42, T22, T44)
P21_IN_GGGA(T47, T42, T22, T48) → U4_GGGA(T47, T42, T22, T48, less23_in_gg(T47, T42))
U4_GGGA(T47, T42, T22, T48, less23_out_gg(T47, T42)) → INSERT1_IN_GGA(s(T47), T22, T48)
INSERT1_IN_GGA(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → INSERT1_IN_GGA(s(T212), T202, T211)
INSERT1_IN_GGA(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → P53_IN_GGGA(T219, T221, T202, T222)
P53_IN_GGGA(T131, T137, T114, T138) → U9_GGGA(T131, T137, T114, T138, less36_in_gg(T131, T137))
U9_GGGA(T131, T137, T114, T138, less36_out_gg(T131, T137)) → INSERT1_IN_GGA(s(T137), T114, T138)
P46_IN_GGGA(s(T131), s(T133), T114, T134) → P53_IN_GGGA(T131, T133, T114, T134)
less36_in_gg(0, s(T94)) → less36_out_gg(0, s(T94))
less36_in_gg(s(T99), s(T101)) → U2_gg(T99, T101, less36_in_gg(T99, T101))
less23_in_gg(0, s(T55)) → less23_out_gg(0, s(T55))
less23_in_gg(s(T62), s(T61)) → U1_gg(T62, T61, less23_in_gg(T62, T61))
U2_gg(T99, T101, less36_out_gg(T99, T101)) → less36_out_gg(s(T99), s(T101))
U1_gg(T62, T61, less23_out_gg(T62, T61)) → less23_out_gg(s(T62), s(T61))
INSERT1_IN_GGA(T86, tree(T78, T79, T80)) → U14_GGA(T86, T80, less36_in_gg(T78, T86))
U14_GGA(T86, T80, less36_out_gg) → INSERT1_IN_GGA(T86, T80)
INSERT1_IN_GGA(0, tree(s(T31), T22, T23)) → INSERT1_IN_GGA(0, T22)
INSERT1_IN_GGA(T116, tree(T112, T113, T114)) → P46_IN_GGGA(T112, T116, T114)
P46_IN_GGGA(0, s(T124), T114) → INSERT1_IN_GGA(s(T124), T114)
INSERT1_IN_GGA(s(T43), tree(s(T42), T22, T23)) → P21_IN_GGGA(T43, T42, T22)
P21_IN_GGGA(T47, T42, T22) → U4_GGGA(T47, T22, less23_in_gg(T47, T42))
U4_GGGA(T47, T22, less23_out_gg) → INSERT1_IN_GGA(s(T47), T22)
INSERT1_IN_GGA(s(T212), tree(0, T201, T202)) → INSERT1_IN_GGA(s(T212), T202)
INSERT1_IN_GGA(s(T221), tree(s(T219), T201, T202)) → P53_IN_GGGA(T219, T221, T202)
P53_IN_GGGA(T131, T137, T114) → U9_GGGA(T137, T114, less36_in_gg(T131, T137))
U9_GGGA(T137, T114, less36_out_gg) → INSERT1_IN_GGA(s(T137), T114)
P46_IN_GGGA(s(T131), s(T133), T114) → P53_IN_GGGA(T131, T133, T114)
less36_in_gg(0, s(T94)) → less36_out_gg
less36_in_gg(s(T99), s(T101)) → U2_gg(less36_in_gg(T99, T101))
less23_in_gg(0, s(T55)) → less23_out_gg
less23_in_gg(s(T62), s(T61)) → U1_gg(less23_in_gg(T62, T61))
U2_gg(less36_out_gg) → less36_out_gg
U1_gg(less23_out_gg) → less23_out_gg
less36_in_gg(x0, x1)
less23_in_gg(x0, x1)
U2_gg(x0)
U1_gg(x0)
From the DPs we obtained the following set of size-change graphs:
INSERT1_IN_AGA(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_AGA(T86, T78, T79, T80, T87, less36_in_ga(T78, T86))
U14_AGA(T86, T78, T79, T80, T87, less36_out_ga(T78, T86)) → INSERT1_IN_AGA(T86, T80, T87)
INSERT1_IN_AGA(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → P46_IN_GAGA(T112, T116, T114, T117)
P46_IN_GAGA(0, s(T124), T114, T123) → INSERT1_IN_AGA(s(T124), T114, T123)
INSERT1_IN_AGA(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → INSERT1_IN_AGA(s(T212), T202, T211)
INSERT1_IN_AGA(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → P53_IN_GAGA(T219, T221, T202, T222)
P53_IN_GAGA(T131, T137, T114, T138) → U9_GAGA(T131, T137, T114, T138, less36_in_ga(T131, T137))
U9_GAGA(T131, T137, T114, T138, less36_out_ga(T131, T137)) → INSERT1_IN_AGA(s(T137), T114, T138)
P46_IN_GAGA(s(T131), s(T133), T114, T134) → P53_IN_GAGA(T131, T133, T114, T134)
insert1_in_aga(T5, void, tree(T5, void, void)) → insert1_out_aga(T5, void, tree(T5, void, void))
insert1_in_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insert1_out_aga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insert1_in_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U11_aga(T31, T22, T23, T32, insert1_in_gga(0, T22, T32))
insert1_in_gga(T5, void, tree(T5, void, void)) → insert1_out_gga(T5, void, tree(T5, void, void))
insert1_in_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14)) → insert1_out_gga(T12, tree(T12, T13, T14), tree(T12, T13, T14))
insert1_in_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) → U11_gga(T31, T22, T23, T32, insert1_in_gga(0, T22, T32))
insert1_in_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U12_gga(T43, T42, T22, T23, T44, p21_in_ggga(T43, T42, T22, T44))
p21_in_ggga(T43, T42, T22, T44) → U3_ggga(T43, T42, T22, T44, less23_in_gg(T43, T42))
less23_in_gg(0, s(T55)) → less23_out_gg(0, s(T55))
less23_in_gg(s(T62), s(T61)) → U1_gg(T62, T61, less23_in_gg(T62, T61))
U1_gg(T62, T61, less23_out_gg(T62, T61)) → less23_out_gg(s(T62), s(T61))
U3_ggga(T43, T42, T22, T44, less23_out_gg(T43, T42)) → p21_out_ggga(T43, T42, T22, T44)
p21_in_ggga(T47, T42, T22, T48) → U4_ggga(T47, T42, T22, T48, less23_in_gg(T47, T42))
U4_ggga(T47, T42, T22, T48, less23_out_gg(T47, T42)) → U5_ggga(T47, T42, T22, T48, insert1_in_gga(s(T47), T22, T48))
insert1_in_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U13_gga(T82, T78, T79, T80, T83, less36_in_gg(T78, T82))
less36_in_gg(0, s(T94)) → less36_out_gg(0, s(T94))
less36_in_gg(s(T99), s(T101)) → U2_gg(T99, T101, less36_in_gg(T99, T101))
U2_gg(T99, T101, less36_out_gg(T99, T101)) → less36_out_gg(s(T99), s(T101))
U13_gga(T82, T78, T79, T80, T83, less36_out_gg(T78, T82)) → insert1_out_gga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
insert1_in_gga(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_gga(T86, T78, T79, T80, T87, less36_in_gg(T78, T86))
U14_gga(T86, T78, T79, T80, T87, less36_out_gg(T78, T86)) → U15_gga(T86, T78, T79, T80, T87, insert1_in_gga(T86, T80, T87))
insert1_in_gga(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → U16_gga(T116, T112, T113, T114, T117, p46_in_ggga(T112, T116, T114, T117))
p46_in_ggga(0, s(T124), T114, T123) → U6_ggga(T124, T114, T123, insert1_in_gga(s(T124), T114, T123))
insert1_in_gga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) → U17_gga(T159, T150, T151, T160, insert1_in_gga(0, T150, T160))
insert1_in_gga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) → U18_gga(T171, T170, T150, T151, T172, p21_in_ggga(T171, T170, T150, T172))
U18_gga(T171, T170, T150, T151, T172, p21_out_ggga(T171, T170, T150, T172)) → insert1_out_gga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151))
insert1_in_gga(T190, tree(T186, T187, T188), tree(T186, T187, T191)) → U19_gga(T190, T186, T187, T188, T191, p46_in_ggga(T186, T190, T188, T191))
p46_in_ggga(s(T131), s(T133), T114, T134) → U7_ggga(T131, T133, T114, T134, p53_in_ggga(T131, T133, T114, T134))
p53_in_ggga(T131, T133, T114, T134) → U8_ggga(T131, T133, T114, T134, less36_in_gg(T131, T133))
U8_ggga(T131, T133, T114, T134, less36_out_gg(T131, T133)) → p53_out_ggga(T131, T133, T114, T134)
p53_in_ggga(T131, T137, T114, T138) → U9_ggga(T131, T137, T114, T138, less36_in_gg(T131, T137))
U9_ggga(T131, T137, T114, T138, less36_out_gg(T131, T137)) → U10_ggga(T131, T137, T114, T138, insert1_in_gga(s(T137), T114, T138))
insert1_in_gga(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → U20_gga(T212, T201, T202, T211, insert1_in_gga(s(T212), T202, T211))
insert1_in_gga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → U21_gga(T221, T219, T201, T202, T222, p53_in_ggga(T219, T221, T202, T222))
U21_gga(T221, T219, T201, T202, T222, p53_out_ggga(T219, T221, T202, T222)) → insert1_out_gga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222))
U20_gga(T212, T201, T202, T211, insert1_out_gga(s(T212), T202, T211)) → insert1_out_gga(s(T212), tree(0, T201, T202), tree(0, T201, T211))
U10_ggga(T131, T137, T114, T138, insert1_out_gga(s(T137), T114, T138)) → p53_out_ggga(T131, T137, T114, T138)
U7_ggga(T131, T133, T114, T134, p53_out_ggga(T131, T133, T114, T134)) → p46_out_ggga(s(T131), s(T133), T114, T134)
U19_gga(T190, T186, T187, T188, T191, p46_out_ggga(T186, T190, T188, T191)) → insert1_out_gga(T190, tree(T186, T187, T188), tree(T186, T187, T191))
U17_gga(T159, T150, T151, T160, insert1_out_gga(0, T150, T160)) → insert1_out_gga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151))
U6_ggga(T124, T114, T123, insert1_out_gga(s(T124), T114, T123)) → p46_out_ggga(0, s(T124), T114, T123)
U16_gga(T116, T112, T113, T114, T117, p46_out_ggga(T112, T116, T114, T117)) → insert1_out_gga(T116, tree(T112, T113, T114), tree(T112, T113, T117))
U15_gga(T86, T78, T79, T80, T87, insert1_out_gga(T86, T80, T87)) → insert1_out_gga(T86, tree(T78, T79, T80), tree(T78, T79, T87))
U5_ggga(T47, T42, T22, T48, insert1_out_gga(s(T47), T22, T48)) → p21_out_ggga(T47, T42, T22, T48)
U12_gga(T43, T42, T22, T23, T44, p21_out_ggga(T43, T42, T22, T44)) → insert1_out_gga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
U11_gga(T31, T22, T23, T32, insert1_out_gga(0, T22, T32)) → insert1_out_gga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
U11_aga(T31, T22, T23, T32, insert1_out_gga(0, T22, T32)) → insert1_out_aga(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23))
insert1_in_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) → U12_aga(T43, T42, T22, T23, T44, p21_in_agga(T43, T42, T22, T44))
p21_in_agga(T43, T42, T22, T44) → U3_agga(T43, T42, T22, T44, less23_in_ag(T43, T42))
less23_in_ag(0, s(T55)) → less23_out_ag(0, s(T55))
less23_in_ag(s(T62), s(T61)) → U1_ag(T62, T61, less23_in_ag(T62, T61))
U1_ag(T62, T61, less23_out_ag(T62, T61)) → less23_out_ag(s(T62), s(T61))
U3_agga(T43, T42, T22, T44, less23_out_ag(T43, T42)) → p21_out_agga(T43, T42, T22, T44)
p21_in_agga(T47, T42, T22, T48) → U4_agga(T47, T42, T22, T48, less23_in_ag(T47, T42))
U4_agga(T47, T42, T22, T48, less23_out_ag(T47, T42)) → U5_agga(T47, T42, T22, T48, insert1_in_gga(s(T47), T22, T48))
U5_agga(T47, T42, T22, T48, insert1_out_gga(s(T47), T22, T48)) → p21_out_agga(T47, T42, T22, T48)
U12_aga(T43, T42, T22, T23, T44, p21_out_agga(T43, T42, T22, T44)) → insert1_out_aga(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23))
insert1_in_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83)) → U13_aga(T82, T78, T79, T80, T83, less36_in_ga(T78, T82))
less36_in_ga(0, s(T94)) → less36_out_ga(0, s(T94))
less36_in_ga(s(T99), s(T101)) → U2_ga(T99, T101, less36_in_ga(T99, T101))
U2_ga(T99, T101, less36_out_ga(T99, T101)) → less36_out_ga(s(T99), s(T101))
U13_aga(T82, T78, T79, T80, T83, less36_out_ga(T78, T82)) → insert1_out_aga(T82, tree(T78, T79, T80), tree(T78, T79, T83))
insert1_in_aga(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_aga(T86, T78, T79, T80, T87, less36_in_ga(T78, T86))
U14_aga(T86, T78, T79, T80, T87, less36_out_ga(T78, T86)) → U15_aga(T86, T78, T79, T80, T87, insert1_in_aga(T86, T80, T87))
insert1_in_aga(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → U16_aga(T116, T112, T113, T114, T117, p46_in_gaga(T112, T116, T114, T117))
p46_in_gaga(0, s(T124), T114, T123) → U6_gaga(T124, T114, T123, insert1_in_aga(s(T124), T114, T123))
insert1_in_aga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) → U17_aga(T159, T150, T151, T160, insert1_in_gga(0, T150, T160))
U17_aga(T159, T150, T151, T160, insert1_out_gga(0, T150, T160)) → insert1_out_aga(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151))
insert1_in_aga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) → U18_aga(T171, T170, T150, T151, T172, p21_in_agga(T171, T170, T150, T172))
U18_aga(T171, T170, T150, T151, T172, p21_out_agga(T171, T170, T150, T172)) → insert1_out_aga(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151))
insert1_in_aga(T190, tree(T186, T187, T188), tree(T186, T187, T191)) → U19_aga(T190, T186, T187, T188, T191, p46_in_gaga(T186, T190, T188, T191))
p46_in_gaga(s(T131), s(T133), T114, T134) → U7_gaga(T131, T133, T114, T134, p53_in_gaga(T131, T133, T114, T134))
p53_in_gaga(T131, T133, T114, T134) → U8_gaga(T131, T133, T114, T134, less36_in_ga(T131, T133))
U8_gaga(T131, T133, T114, T134, less36_out_ga(T131, T133)) → p53_out_gaga(T131, T133, T114, T134)
p53_in_gaga(T131, T137, T114, T138) → U9_gaga(T131, T137, T114, T138, less36_in_ga(T131, T137))
U9_gaga(T131, T137, T114, T138, less36_out_ga(T131, T137)) → U10_gaga(T131, T137, T114, T138, insert1_in_aga(s(T137), T114, T138))
insert1_in_aga(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → U20_aga(T212, T201, T202, T211, insert1_in_aga(s(T212), T202, T211))
insert1_in_aga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → U21_aga(T221, T219, T201, T202, T222, p53_in_gaga(T219, T221, T202, T222))
U21_aga(T221, T219, T201, T202, T222, p53_out_gaga(T219, T221, T202, T222)) → insert1_out_aga(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222))
U20_aga(T212, T201, T202, T211, insert1_out_aga(s(T212), T202, T211)) → insert1_out_aga(s(T212), tree(0, T201, T202), tree(0, T201, T211))
U10_gaga(T131, T137, T114, T138, insert1_out_aga(s(T137), T114, T138)) → p53_out_gaga(T131, T137, T114, T138)
U7_gaga(T131, T133, T114, T134, p53_out_gaga(T131, T133, T114, T134)) → p46_out_gaga(s(T131), s(T133), T114, T134)
U19_aga(T190, T186, T187, T188, T191, p46_out_gaga(T186, T190, T188, T191)) → insert1_out_aga(T190, tree(T186, T187, T188), tree(T186, T187, T191))
U6_gaga(T124, T114, T123, insert1_out_aga(s(T124), T114, T123)) → p46_out_gaga(0, s(T124), T114, T123)
U16_aga(T116, T112, T113, T114, T117, p46_out_gaga(T112, T116, T114, T117)) → insert1_out_aga(T116, tree(T112, T113, T114), tree(T112, T113, T117))
U15_aga(T86, T78, T79, T80, T87, insert1_out_aga(T86, T80, T87)) → insert1_out_aga(T86, tree(T78, T79, T80), tree(T78, T79, T87))
INSERT1_IN_AGA(T86, tree(T78, T79, T80), tree(T78, T79, T87)) → U14_AGA(T86, T78, T79, T80, T87, less36_in_ga(T78, T86))
U14_AGA(T86, T78, T79, T80, T87, less36_out_ga(T78, T86)) → INSERT1_IN_AGA(T86, T80, T87)
INSERT1_IN_AGA(T116, tree(T112, T113, T114), tree(T112, T113, T117)) → P46_IN_GAGA(T112, T116, T114, T117)
P46_IN_GAGA(0, s(T124), T114, T123) → INSERT1_IN_AGA(s(T124), T114, T123)
INSERT1_IN_AGA(s(T212), tree(0, T201, T202), tree(0, T201, T211)) → INSERT1_IN_AGA(s(T212), T202, T211)
INSERT1_IN_AGA(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) → P53_IN_GAGA(T219, T221, T202, T222)
P53_IN_GAGA(T131, T137, T114, T138) → U9_GAGA(T131, T137, T114, T138, less36_in_ga(T131, T137))
U9_GAGA(T131, T137, T114, T138, less36_out_ga(T131, T137)) → INSERT1_IN_AGA(s(T137), T114, T138)
P46_IN_GAGA(s(T131), s(T133), T114, T134) → P53_IN_GAGA(T131, T133, T114, T134)
less36_in_ga(0, s(T94)) → less36_out_ga(0, s(T94))
less36_in_ga(s(T99), s(T101)) → U2_ga(T99, T101, less36_in_ga(T99, T101))
U2_ga(T99, T101, less36_out_ga(T99, T101)) → less36_out_ga(s(T99), s(T101))
INSERT1_IN_AGA(tree(T78, T79, T80)) → U14_AGA(T80, less36_in_ga(T78))
U14_AGA(T80, less36_out_ga) → INSERT1_IN_AGA(T80)
INSERT1_IN_AGA(tree(T112, T113, T114)) → P46_IN_GAGA(T112, T114)
P46_IN_GAGA(0, T114) → INSERT1_IN_AGA(T114)
INSERT1_IN_AGA(tree(0, T201, T202)) → INSERT1_IN_AGA(T202)
INSERT1_IN_AGA(tree(s(T219), T201, T202)) → P53_IN_GAGA(T219, T202)
P53_IN_GAGA(T131, T114) → U9_GAGA(T114, less36_in_ga(T131))
U9_GAGA(T114, less36_out_ga) → INSERT1_IN_AGA(T114)
P46_IN_GAGA(s(T131), T114) → P53_IN_GAGA(T131, T114)
less36_in_ga(0) → less36_out_ga
less36_in_ga(s(T99)) → U2_ga(less36_in_ga(T99))
U2_ga(less36_out_ga) → less36_out_ga
less36_in_ga(x0)
U2_ga(x0)
From the DPs we obtained the following set of size-change graphs: