(0) Obligation:

Clauses:

insert(X, void, tree(X, void, void)).
insert(X, tree(X, Left, Right), tree(X, Left, Right)).
insert(X, tree(Y, Left, Right), tree(Y, Left1, Right)) :- ','(less(X, Y), insert(X, Left, Left1)).
insert(X, tree(Y, Left, Right), tree(Y, Left, Right1)) :- ','(less(Y, X), insert(X, Right, Right1)).
less(0, s(X1)).
less(s(X), s(Y)) :- less(X, Y).

Queries:

insert(a,g,a).

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph.

(2) Obligation:

Clauses:

less23(0, s(T55)).
less23(s(T62), s(T61)) :- less23(T62, T61).
less36(0, s(T94)).
less36(s(T99), s(T101)) :- less36(T99, T101).
p21(T43, T42, T22, T44) :- less23(T43, T42).
p21(T47, T42, T22, T48) :- ','(less23(T47, T42), insert1(s(T47), T22, T48)).
p46(0, s(T124), T114, T123) :- insert1(s(T124), T114, T123).
p46(s(T131), s(T133), T114, T134) :- p53(T131, T133, T114, T134).
p53(T131, T133, T114, T134) :- less36(T131, T133).
p53(T131, T137, T114, T138) :- ','(less36(T131, T137), insert1(s(T137), T114, T138)).
insert1(T5, void, tree(T5, void, void)).
insert1(T12, tree(T12, T13, T14), tree(T12, T13, T14)).
insert1(0, tree(s(T31), T22, T23), tree(s(T31), T32, T23)) :- insert1(0, T22, T32).
insert1(s(T43), tree(s(T42), T22, T23), tree(s(T42), T44, T23)) :- p21(T43, T42, T22, T44).
insert1(T82, tree(T78, T79, T80), tree(T78, T79, T83)) :- less36(T78, T82).
insert1(T86, tree(T78, T79, T80), tree(T78, T79, T87)) :- ','(less36(T78, T86), insert1(T86, T80, T87)).
insert1(T116, tree(T112, T113, T114), tree(T112, T113, T117)) :- p46(T112, T116, T114, T117).
insert1(0, tree(s(T159), T150, T151), tree(s(T159), T160, T151)) :- insert1(0, T150, T160).
insert1(s(T171), tree(s(T170), T150, T151), tree(s(T170), T172, T151)) :- p21(T171, T170, T150, T172).
insert1(T190, tree(T186, T187, T188), tree(T186, T187, T191)) :- p46(T186, T190, T188, T191).
insert1(s(T212), tree(0, T201, T202), tree(0, T201, T211)) :- insert1(s(T212), T202, T211).
insert1(s(T221), tree(s(T219), T201, T202), tree(s(T219), T201, T222)) :- p53(T219, T221, T202, T222).

Queries:

insert1(a,g,a).

(3) PrologToPiTRSProof (SOUND transformation)

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

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))

The argument filtering Pi contains the following mapping:
insert1_in_aga(x1, x2, x3)  =  insert1_in_aga(x2)
void  =  void
insert1_out_aga(x1, x2, x3)  =  insert1_out_aga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
U11_aga(x1, x2, x3, x4, x5)  =  U11_aga(x5)
insert1_in_gga(x1, x2, x3)  =  insert1_in_gga(x1, x2)
insert1_out_gga(x1, x2, x3)  =  insert1_out_gga
0  =  0
U11_gga(x1, x2, x3, x4, x5)  =  U11_gga(x5)
U12_gga(x1, x2, x3, x4, x5, x6)  =  U12_gga(x6)
p21_in_ggga(x1, x2, x3, x4)  =  p21_in_ggga(x1, x2, x3)
U3_ggga(x1, x2, x3, x4, x5)  =  U3_ggga(x5)
less23_in_gg(x1, x2)  =  less23_in_gg(x1, x2)
less23_out_gg(x1, x2)  =  less23_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
p21_out_ggga(x1, x2, x3, x4)  =  p21_out_ggga
U4_ggga(x1, x2, x3, x4, x5)  =  U4_ggga(x1, x3, x5)
U5_ggga(x1, x2, x3, x4, x5)  =  U5_ggga(x5)
U13_gga(x1, x2, x3, x4, x5, x6)  =  U13_gga(x6)
less36_in_gg(x1, x2)  =  less36_in_gg(x1, x2)
less36_out_gg(x1, x2)  =  less36_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
U14_gga(x1, x2, x3, x4, x5, x6)  =  U14_gga(x1, x4, x6)
U15_gga(x1, x2, x3, x4, x5, x6)  =  U15_gga(x6)
U16_gga(x1, x2, x3, x4, x5, x6)  =  U16_gga(x6)
p46_in_ggga(x1, x2, x3, x4)  =  p46_in_ggga(x1, x2, x3)
U6_ggga(x1, x2, x3, x4)  =  U6_ggga(x4)
U17_gga(x1, x2, x3, x4, x5)  =  U17_gga(x5)
U18_gga(x1, x2, x3, x4, x5, x6)  =  U18_gga(x6)
U19_gga(x1, x2, x3, x4, x5, x6)  =  U19_gga(x6)
U7_ggga(x1, x2, x3, x4, x5)  =  U7_ggga(x5)
p53_in_ggga(x1, x2, x3, x4)  =  p53_in_ggga(x1, x2, x3)
U8_ggga(x1, x2, x3, x4, x5)  =  U8_ggga(x5)
p53_out_ggga(x1, x2, x3, x4)  =  p53_out_ggga
U9_ggga(x1, x2, x3, x4, x5)  =  U9_ggga(x2, x3, x5)
U10_ggga(x1, x2, x3, x4, x5)  =  U10_ggga(x5)
U20_gga(x1, x2, x3, x4, x5)  =  U20_gga(x5)
U21_gga(x1, x2, x3, x4, x5, x6)  =  U21_gga(x6)
p46_out_ggga(x1, x2, x3, x4)  =  p46_out_ggga
U12_aga(x1, x2, x3, x4, x5, x6)  =  U12_aga(x6)
p21_in_agga(x1, x2, x3, x4)  =  p21_in_agga(x2, x3)
U3_agga(x1, x2, x3, x4, x5)  =  U3_agga(x5)
less23_in_ag(x1, x2)  =  less23_in_ag(x2)
less23_out_ag(x1, x2)  =  less23_out_ag(x1)
U1_ag(x1, x2, x3)  =  U1_ag(x3)
p21_out_agga(x1, x2, x3, x4)  =  p21_out_agga(x1)
U4_agga(x1, x2, x3, x4, x5)  =  U4_agga(x3, x5)
U5_agga(x1, x2, x3, x4, x5)  =  U5_agga(x1, x5)
U13_aga(x1, x2, x3, x4, x5, x6)  =  U13_aga(x6)
less36_in_ga(x1, x2)  =  less36_in_ga(x1)
less36_out_ga(x1, x2)  =  less36_out_ga
U2_ga(x1, x2, x3)  =  U2_ga(x3)
U14_aga(x1, x2, x3, x4, x5, x6)  =  U14_aga(x4, x6)
U15_aga(x1, x2, x3, x4, x5, x6)  =  U15_aga(x6)
U16_aga(x1, x2, x3, x4, x5, x6)  =  U16_aga(x6)
p46_in_gaga(x1, x2, x3, x4)  =  p46_in_gaga(x1, x3)
U6_gaga(x1, x2, x3, x4)  =  U6_gaga(x4)
U17_aga(x1, x2, x3, x4, x5)  =  U17_aga(x5)
U18_aga(x1, x2, x3, x4, x5, x6)  =  U18_aga(x6)
U19_aga(x1, x2, x3, x4, x5, x6)  =  U19_aga(x6)
U7_gaga(x1, x2, x3, x4, x5)  =  U7_gaga(x5)
p53_in_gaga(x1, x2, x3, x4)  =  p53_in_gaga(x1, x3)
U8_gaga(x1, x2, x3, x4, x5)  =  U8_gaga(x5)
p53_out_gaga(x1, x2, x3, x4)  =  p53_out_gaga
U9_gaga(x1, x2, x3, x4, x5)  =  U9_gaga(x3, x5)
U10_gaga(x1, x2, x3, x4, x5)  =  U10_gaga(x5)
U20_aga(x1, x2, x3, x4, x5)  =  U20_aga(x5)
U21_aga(x1, x2, x3, x4, x5, x6)  =  U21_aga(x6)
p46_out_gaga(x1, x2, x3, x4)  =  p46_out_gaga

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

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

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))

The argument filtering Pi contains the following mapping:
insert1_in_aga(x1, x2, x3)  =  insert1_in_aga(x2)
void  =  void
insert1_out_aga(x1, x2, x3)  =  insert1_out_aga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
U11_aga(x1, x2, x3, x4, x5)  =  U11_aga(x5)
insert1_in_gga(x1, x2, x3)  =  insert1_in_gga(x1, x2)
insert1_out_gga(x1, x2, x3)  =  insert1_out_gga
0  =  0
U11_gga(x1, x2, x3, x4, x5)  =  U11_gga(x5)
U12_gga(x1, x2, x3, x4, x5, x6)  =  U12_gga(x6)
p21_in_ggga(x1, x2, x3, x4)  =  p21_in_ggga(x1, x2, x3)
U3_ggga(x1, x2, x3, x4, x5)  =  U3_ggga(x5)
less23_in_gg(x1, x2)  =  less23_in_gg(x1, x2)
less23_out_gg(x1, x2)  =  less23_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
p21_out_ggga(x1, x2, x3, x4)  =  p21_out_ggga
U4_ggga(x1, x2, x3, x4, x5)  =  U4_ggga(x1, x3, x5)
U5_ggga(x1, x2, x3, x4, x5)  =  U5_ggga(x5)
U13_gga(x1, x2, x3, x4, x5, x6)  =  U13_gga(x6)
less36_in_gg(x1, x2)  =  less36_in_gg(x1, x2)
less36_out_gg(x1, x2)  =  less36_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
U14_gga(x1, x2, x3, x4, x5, x6)  =  U14_gga(x1, x4, x6)
U15_gga(x1, x2, x3, x4, x5, x6)  =  U15_gga(x6)
U16_gga(x1, x2, x3, x4, x5, x6)  =  U16_gga(x6)
p46_in_ggga(x1, x2, x3, x4)  =  p46_in_ggga(x1, x2, x3)
U6_ggga(x1, x2, x3, x4)  =  U6_ggga(x4)
U17_gga(x1, x2, x3, x4, x5)  =  U17_gga(x5)
U18_gga(x1, x2, x3, x4, x5, x6)  =  U18_gga(x6)
U19_gga(x1, x2, x3, x4, x5, x6)  =  U19_gga(x6)
U7_ggga(x1, x2, x3, x4, x5)  =  U7_ggga(x5)
p53_in_ggga(x1, x2, x3, x4)  =  p53_in_ggga(x1, x2, x3)
U8_ggga(x1, x2, x3, x4, x5)  =  U8_ggga(x5)
p53_out_ggga(x1, x2, x3, x4)  =  p53_out_ggga
U9_ggga(x1, x2, x3, x4, x5)  =  U9_ggga(x2, x3, x5)
U10_ggga(x1, x2, x3, x4, x5)  =  U10_ggga(x5)
U20_gga(x1, x2, x3, x4, x5)  =  U20_gga(x5)
U21_gga(x1, x2, x3, x4, x5, x6)  =  U21_gga(x6)
p46_out_ggga(x1, x2, x3, x4)  =  p46_out_ggga
U12_aga(x1, x2, x3, x4, x5, x6)  =  U12_aga(x6)
p21_in_agga(x1, x2, x3, x4)  =  p21_in_agga(x2, x3)
U3_agga(x1, x2, x3, x4, x5)  =  U3_agga(x5)
less23_in_ag(x1, x2)  =  less23_in_ag(x2)
less23_out_ag(x1, x2)  =  less23_out_ag(x1)
U1_ag(x1, x2, x3)  =  U1_ag(x3)
p21_out_agga(x1, x2, x3, x4)  =  p21_out_agga(x1)
U4_agga(x1, x2, x3, x4, x5)  =  U4_agga(x3, x5)
U5_agga(x1, x2, x3, x4, x5)  =  U5_agga(x1, x5)
U13_aga(x1, x2, x3, x4, x5, x6)  =  U13_aga(x6)
less36_in_ga(x1, x2)  =  less36_in_ga(x1)
less36_out_ga(x1, x2)  =  less36_out_ga
U2_ga(x1, x2, x3)  =  U2_ga(x3)
U14_aga(x1, x2, x3, x4, x5, x6)  =  U14_aga(x4, x6)
U15_aga(x1, x2, x3, x4, x5, x6)  =  U15_aga(x6)
U16_aga(x1, x2, x3, x4, x5, x6)  =  U16_aga(x6)
p46_in_gaga(x1, x2, x3, x4)  =  p46_in_gaga(x1, x3)
U6_gaga(x1, x2, x3, x4)  =  U6_gaga(x4)
U17_aga(x1, x2, x3, x4, x5)  =  U17_aga(x5)
U18_aga(x1, x2, x3, x4, x5, x6)  =  U18_aga(x6)
U19_aga(x1, x2, x3, x4, x5, x6)  =  U19_aga(x6)
U7_gaga(x1, x2, x3, x4, x5)  =  U7_gaga(x5)
p53_in_gaga(x1, x2, x3, x4)  =  p53_in_gaga(x1, x3)
U8_gaga(x1, x2, x3, x4, x5)  =  U8_gaga(x5)
p53_out_gaga(x1, x2, x3, x4)  =  p53_out_gaga
U9_gaga(x1, x2, x3, x4, x5)  =  U9_gaga(x3, x5)
U10_gaga(x1, x2, x3, x4, x5)  =  U10_gaga(x5)
U20_aga(x1, x2, x3, x4, x5)  =  U20_aga(x5)
U21_aga(x1, x2, x3, x4, x5, x6)  =  U21_aga(x6)
p46_out_gaga(x1, x2, x3, x4)  =  p46_out_gaga

(5) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

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)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
insert1_in_aga(x1, x2, x3)  =  insert1_in_aga(x2)
void  =  void
insert1_out_aga(x1, x2, x3)  =  insert1_out_aga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
U11_aga(x1, x2, x3, x4, x5)  =  U11_aga(x5)
insert1_in_gga(x1, x2, x3)  =  insert1_in_gga(x1, x2)
insert1_out_gga(x1, x2, x3)  =  insert1_out_gga
0  =  0
U11_gga(x1, x2, x3, x4, x5)  =  U11_gga(x5)
U12_gga(x1, x2, x3, x4, x5, x6)  =  U12_gga(x6)
p21_in_ggga(x1, x2, x3, x4)  =  p21_in_ggga(x1, x2, x3)
U3_ggga(x1, x2, x3, x4, x5)  =  U3_ggga(x5)
less23_in_gg(x1, x2)  =  less23_in_gg(x1, x2)
less23_out_gg(x1, x2)  =  less23_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
p21_out_ggga(x1, x2, x3, x4)  =  p21_out_ggga
U4_ggga(x1, x2, x3, x4, x5)  =  U4_ggga(x1, x3, x5)
U5_ggga(x1, x2, x3, x4, x5)  =  U5_ggga(x5)
U13_gga(x1, x2, x3, x4, x5, x6)  =  U13_gga(x6)
less36_in_gg(x1, x2)  =  less36_in_gg(x1, x2)
less36_out_gg(x1, x2)  =  less36_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
U14_gga(x1, x2, x3, x4, x5, x6)  =  U14_gga(x1, x4, x6)
U15_gga(x1, x2, x3, x4, x5, x6)  =  U15_gga(x6)
U16_gga(x1, x2, x3, x4, x5, x6)  =  U16_gga(x6)
p46_in_ggga(x1, x2, x3, x4)  =  p46_in_ggga(x1, x2, x3)
U6_ggga(x1, x2, x3, x4)  =  U6_ggga(x4)
U17_gga(x1, x2, x3, x4, x5)  =  U17_gga(x5)
U18_gga(x1, x2, x3, x4, x5, x6)  =  U18_gga(x6)
U19_gga(x1, x2, x3, x4, x5, x6)  =  U19_gga(x6)
U7_ggga(x1, x2, x3, x4, x5)  =  U7_ggga(x5)
p53_in_ggga(x1, x2, x3, x4)  =  p53_in_ggga(x1, x2, x3)
U8_ggga(x1, x2, x3, x4, x5)  =  U8_ggga(x5)
p53_out_ggga(x1, x2, x3, x4)  =  p53_out_ggga
U9_ggga(x1, x2, x3, x4, x5)  =  U9_ggga(x2, x3, x5)
U10_ggga(x1, x2, x3, x4, x5)  =  U10_ggga(x5)
U20_gga(x1, x2, x3, x4, x5)  =  U20_gga(x5)
U21_gga(x1, x2, x3, x4, x5, x6)  =  U21_gga(x6)
p46_out_ggga(x1, x2, x3, x4)  =  p46_out_ggga
U12_aga(x1, x2, x3, x4, x5, x6)  =  U12_aga(x6)
p21_in_agga(x1, x2, x3, x4)  =  p21_in_agga(x2, x3)
U3_agga(x1, x2, x3, x4, x5)  =  U3_agga(x5)
less23_in_ag(x1, x2)  =  less23_in_ag(x2)
less23_out_ag(x1, x2)  =  less23_out_ag(x1)
U1_ag(x1, x2, x3)  =  U1_ag(x3)
p21_out_agga(x1, x2, x3, x4)  =  p21_out_agga(x1)
U4_agga(x1, x2, x3, x4, x5)  =  U4_agga(x3, x5)
U5_agga(x1, x2, x3, x4, x5)  =  U5_agga(x1, x5)
U13_aga(x1, x2, x3, x4, x5, x6)  =  U13_aga(x6)
less36_in_ga(x1, x2)  =  less36_in_ga(x1)
less36_out_ga(x1, x2)  =  less36_out_ga
U2_ga(x1, x2, x3)  =  U2_ga(x3)
U14_aga(x1, x2, x3, x4, x5, x6)  =  U14_aga(x4, x6)
U15_aga(x1, x2, x3, x4, x5, x6)  =  U15_aga(x6)
U16_aga(x1, x2, x3, x4, x5, x6)  =  U16_aga(x6)
p46_in_gaga(x1, x2, x3, x4)  =  p46_in_gaga(x1, x3)
U6_gaga(x1, x2, x3, x4)  =  U6_gaga(x4)
U17_aga(x1, x2, x3, x4, x5)  =  U17_aga(x5)
U18_aga(x1, x2, x3, x4, x5, x6)  =  U18_aga(x6)
U19_aga(x1, x2, x3, x4, x5, x6)  =  U19_aga(x6)
U7_gaga(x1, x2, x3, x4, x5)  =  U7_gaga(x5)
p53_in_gaga(x1, x2, x3, x4)  =  p53_in_gaga(x1, x3)
U8_gaga(x1, x2, x3, x4, x5)  =  U8_gaga(x5)
p53_out_gaga(x1, x2, x3, x4)  =  p53_out_gaga
U9_gaga(x1, x2, x3, x4, x5)  =  U9_gaga(x3, x5)
U10_gaga(x1, x2, x3, x4, x5)  =  U10_gaga(x5)
U20_aga(x1, x2, x3, x4, x5)  =  U20_aga(x5)
U21_aga(x1, x2, x3, x4, x5, x6)  =  U21_aga(x6)
p46_out_gaga(x1, x2, x3, x4)  =  p46_out_gaga
INSERT1_IN_AGA(x1, x2, x3)  =  INSERT1_IN_AGA(x2)
U11_AGA(x1, x2, x3, x4, x5)  =  U11_AGA(x5)
INSERT1_IN_GGA(x1, x2, x3)  =  INSERT1_IN_GGA(x1, x2)
U11_GGA(x1, x2, x3, x4, x5)  =  U11_GGA(x5)
U12_GGA(x1, x2, x3, x4, x5, x6)  =  U12_GGA(x6)
P21_IN_GGGA(x1, x2, x3, x4)  =  P21_IN_GGGA(x1, x2, x3)
U3_GGGA(x1, x2, x3, x4, x5)  =  U3_GGGA(x5)
LESS23_IN_GG(x1, x2)  =  LESS23_IN_GG(x1, x2)
U1_GG(x1, x2, x3)  =  U1_GG(x3)
U4_GGGA(x1, x2, x3, x4, x5)  =  U4_GGGA(x1, x3, x5)
U5_GGGA(x1, x2, x3, x4, x5)  =  U5_GGGA(x5)
U13_GGA(x1, x2, x3, x4, x5, x6)  =  U13_GGA(x6)
LESS36_IN_GG(x1, x2)  =  LESS36_IN_GG(x1, x2)
U2_GG(x1, x2, x3)  =  U2_GG(x3)
U14_GGA(x1, x2, x3, x4, x5, x6)  =  U14_GGA(x1, x4, x6)
U15_GGA(x1, x2, x3, x4, x5, x6)  =  U15_GGA(x6)
U16_GGA(x1, x2, x3, x4, x5, x6)  =  U16_GGA(x6)
P46_IN_GGGA(x1, x2, x3, x4)  =  P46_IN_GGGA(x1, x2, x3)
U6_GGGA(x1, x2, x3, x4)  =  U6_GGGA(x4)
U17_GGA(x1, x2, x3, x4, x5)  =  U17_GGA(x5)
U18_GGA(x1, x2, x3, x4, x5, x6)  =  U18_GGA(x6)
U19_GGA(x1, x2, x3, x4, x5, x6)  =  U19_GGA(x6)
U7_GGGA(x1, x2, x3, x4, x5)  =  U7_GGGA(x5)
P53_IN_GGGA(x1, x2, x3, x4)  =  P53_IN_GGGA(x1, x2, x3)
U8_GGGA(x1, x2, x3, x4, x5)  =  U8_GGGA(x5)
U9_GGGA(x1, x2, x3, x4, x5)  =  U9_GGGA(x2, x3, x5)
U10_GGGA(x1, x2, x3, x4, x5)  =  U10_GGGA(x5)
U20_GGA(x1, x2, x3, x4, x5)  =  U20_GGA(x5)
U21_GGA(x1, x2, x3, x4, x5, x6)  =  U21_GGA(x6)
U12_AGA(x1, x2, x3, x4, x5, x6)  =  U12_AGA(x6)
P21_IN_AGGA(x1, x2, x3, x4)  =  P21_IN_AGGA(x2, x3)
U3_AGGA(x1, x2, x3, x4, x5)  =  U3_AGGA(x5)
LESS23_IN_AG(x1, x2)  =  LESS23_IN_AG(x2)
U1_AG(x1, x2, x3)  =  U1_AG(x3)
U4_AGGA(x1, x2, x3, x4, x5)  =  U4_AGGA(x3, x5)
U5_AGGA(x1, x2, x3, x4, x5)  =  U5_AGGA(x1, x5)
U13_AGA(x1, x2, x3, x4, x5, x6)  =  U13_AGA(x6)
LESS36_IN_GA(x1, x2)  =  LESS36_IN_GA(x1)
U2_GA(x1, x2, x3)  =  U2_GA(x3)
U14_AGA(x1, x2, x3, x4, x5, x6)  =  U14_AGA(x4, x6)
U15_AGA(x1, x2, x3, x4, x5, x6)  =  U15_AGA(x6)
U16_AGA(x1, x2, x3, x4, x5, x6)  =  U16_AGA(x6)
P46_IN_GAGA(x1, x2, x3, x4)  =  P46_IN_GAGA(x1, x3)
U6_GAGA(x1, x2, x3, x4)  =  U6_GAGA(x4)
U17_AGA(x1, x2, x3, x4, x5)  =  U17_AGA(x5)
U18_AGA(x1, x2, x3, x4, x5, x6)  =  U18_AGA(x6)
U19_AGA(x1, x2, x3, x4, x5, x6)  =  U19_AGA(x6)
U7_GAGA(x1, x2, x3, x4, x5)  =  U7_GAGA(x5)
P53_IN_GAGA(x1, x2, x3, x4)  =  P53_IN_GAGA(x1, x3)
U8_GAGA(x1, x2, x3, x4, x5)  =  U8_GAGA(x5)
U9_GAGA(x1, x2, x3, x4, x5)  =  U9_GAGA(x3, x5)
U10_GAGA(x1, x2, x3, x4, x5)  =  U10_GAGA(x5)
U20_AGA(x1, x2, x3, x4, x5)  =  U20_AGA(x5)
U21_AGA(x1, x2, x3, x4, x5, x6)  =  U21_AGA(x6)

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

(6) Obligation:

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

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)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
insert1_in_aga(x1, x2, x3)  =  insert1_in_aga(x2)
void  =  void
insert1_out_aga(x1, x2, x3)  =  insert1_out_aga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
U11_aga(x1, x2, x3, x4, x5)  =  U11_aga(x5)
insert1_in_gga(x1, x2, x3)  =  insert1_in_gga(x1, x2)
insert1_out_gga(x1, x2, x3)  =  insert1_out_gga
0  =  0
U11_gga(x1, x2, x3, x4, x5)  =  U11_gga(x5)
U12_gga(x1, x2, x3, x4, x5, x6)  =  U12_gga(x6)
p21_in_ggga(x1, x2, x3, x4)  =  p21_in_ggga(x1, x2, x3)
U3_ggga(x1, x2, x3, x4, x5)  =  U3_ggga(x5)
less23_in_gg(x1, x2)  =  less23_in_gg(x1, x2)
less23_out_gg(x1, x2)  =  less23_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
p21_out_ggga(x1, x2, x3, x4)  =  p21_out_ggga
U4_ggga(x1, x2, x3, x4, x5)  =  U4_ggga(x1, x3, x5)
U5_ggga(x1, x2, x3, x4, x5)  =  U5_ggga(x5)
U13_gga(x1, x2, x3, x4, x5, x6)  =  U13_gga(x6)
less36_in_gg(x1, x2)  =  less36_in_gg(x1, x2)
less36_out_gg(x1, x2)  =  less36_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
U14_gga(x1, x2, x3, x4, x5, x6)  =  U14_gga(x1, x4, x6)
U15_gga(x1, x2, x3, x4, x5, x6)  =  U15_gga(x6)
U16_gga(x1, x2, x3, x4, x5, x6)  =  U16_gga(x6)
p46_in_ggga(x1, x2, x3, x4)  =  p46_in_ggga(x1, x2, x3)
U6_ggga(x1, x2, x3, x4)  =  U6_ggga(x4)
U17_gga(x1, x2, x3, x4, x5)  =  U17_gga(x5)
U18_gga(x1, x2, x3, x4, x5, x6)  =  U18_gga(x6)
U19_gga(x1, x2, x3, x4, x5, x6)  =  U19_gga(x6)
U7_ggga(x1, x2, x3, x4, x5)  =  U7_ggga(x5)
p53_in_ggga(x1, x2, x3, x4)  =  p53_in_ggga(x1, x2, x3)
U8_ggga(x1, x2, x3, x4, x5)  =  U8_ggga(x5)
p53_out_ggga(x1, x2, x3, x4)  =  p53_out_ggga
U9_ggga(x1, x2, x3, x4, x5)  =  U9_ggga(x2, x3, x5)
U10_ggga(x1, x2, x3, x4, x5)  =  U10_ggga(x5)
U20_gga(x1, x2, x3, x4, x5)  =  U20_gga(x5)
U21_gga(x1, x2, x3, x4, x5, x6)  =  U21_gga(x6)
p46_out_ggga(x1, x2, x3, x4)  =  p46_out_ggga
U12_aga(x1, x2, x3, x4, x5, x6)  =  U12_aga(x6)
p21_in_agga(x1, x2, x3, x4)  =  p21_in_agga(x2, x3)
U3_agga(x1, x2, x3, x4, x5)  =  U3_agga(x5)
less23_in_ag(x1, x2)  =  less23_in_ag(x2)
less23_out_ag(x1, x2)  =  less23_out_ag(x1)
U1_ag(x1, x2, x3)  =  U1_ag(x3)
p21_out_agga(x1, x2, x3, x4)  =  p21_out_agga(x1)
U4_agga(x1, x2, x3, x4, x5)  =  U4_agga(x3, x5)
U5_agga(x1, x2, x3, x4, x5)  =  U5_agga(x1, x5)
U13_aga(x1, x2, x3, x4, x5, x6)  =  U13_aga(x6)
less36_in_ga(x1, x2)  =  less36_in_ga(x1)
less36_out_ga(x1, x2)  =  less36_out_ga
U2_ga(x1, x2, x3)  =  U2_ga(x3)
U14_aga(x1, x2, x3, x4, x5, x6)  =  U14_aga(x4, x6)
U15_aga(x1, x2, x3, x4, x5, x6)  =  U15_aga(x6)
U16_aga(x1, x2, x3, x4, x5, x6)  =  U16_aga(x6)
p46_in_gaga(x1, x2, x3, x4)  =  p46_in_gaga(x1, x3)
U6_gaga(x1, x2, x3, x4)  =  U6_gaga(x4)
U17_aga(x1, x2, x3, x4, x5)  =  U17_aga(x5)
U18_aga(x1, x2, x3, x4, x5, x6)  =  U18_aga(x6)
U19_aga(x1, x2, x3, x4, x5, x6)  =  U19_aga(x6)
U7_gaga(x1, x2, x3, x4, x5)  =  U7_gaga(x5)
p53_in_gaga(x1, x2, x3, x4)  =  p53_in_gaga(x1, x3)
U8_gaga(x1, x2, x3, x4, x5)  =  U8_gaga(x5)
p53_out_gaga(x1, x2, x3, x4)  =  p53_out_gaga
U9_gaga(x1, x2, x3, x4, x5)  =  U9_gaga(x3, x5)
U10_gaga(x1, x2, x3, x4, x5)  =  U10_gaga(x5)
U20_aga(x1, x2, x3, x4, x5)  =  U20_aga(x5)
U21_aga(x1, x2, x3, x4, x5, x6)  =  U21_aga(x6)
p46_out_gaga(x1, x2, x3, x4)  =  p46_out_gaga
INSERT1_IN_AGA(x1, x2, x3)  =  INSERT1_IN_AGA(x2)
U11_AGA(x1, x2, x3, x4, x5)  =  U11_AGA(x5)
INSERT1_IN_GGA(x1, x2, x3)  =  INSERT1_IN_GGA(x1, x2)
U11_GGA(x1, x2, x3, x4, x5)  =  U11_GGA(x5)
U12_GGA(x1, x2, x3, x4, x5, x6)  =  U12_GGA(x6)
P21_IN_GGGA(x1, x2, x3, x4)  =  P21_IN_GGGA(x1, x2, x3)
U3_GGGA(x1, x2, x3, x4, x5)  =  U3_GGGA(x5)
LESS23_IN_GG(x1, x2)  =  LESS23_IN_GG(x1, x2)
U1_GG(x1, x2, x3)  =  U1_GG(x3)
U4_GGGA(x1, x2, x3, x4, x5)  =  U4_GGGA(x1, x3, x5)
U5_GGGA(x1, x2, x3, x4, x5)  =  U5_GGGA(x5)
U13_GGA(x1, x2, x3, x4, x5, x6)  =  U13_GGA(x6)
LESS36_IN_GG(x1, x2)  =  LESS36_IN_GG(x1, x2)
U2_GG(x1, x2, x3)  =  U2_GG(x3)
U14_GGA(x1, x2, x3, x4, x5, x6)  =  U14_GGA(x1, x4, x6)
U15_GGA(x1, x2, x3, x4, x5, x6)  =  U15_GGA(x6)
U16_GGA(x1, x2, x3, x4, x5, x6)  =  U16_GGA(x6)
P46_IN_GGGA(x1, x2, x3, x4)  =  P46_IN_GGGA(x1, x2, x3)
U6_GGGA(x1, x2, x3, x4)  =  U6_GGGA(x4)
U17_GGA(x1, x2, x3, x4, x5)  =  U17_GGA(x5)
U18_GGA(x1, x2, x3, x4, x5, x6)  =  U18_GGA(x6)
U19_GGA(x1, x2, x3, x4, x5, x6)  =  U19_GGA(x6)
U7_GGGA(x1, x2, x3, x4, x5)  =  U7_GGGA(x5)
P53_IN_GGGA(x1, x2, x3, x4)  =  P53_IN_GGGA(x1, x2, x3)
U8_GGGA(x1, x2, x3, x4, x5)  =  U8_GGGA(x5)
U9_GGGA(x1, x2, x3, x4, x5)  =  U9_GGGA(x2, x3, x5)
U10_GGGA(x1, x2, x3, x4, x5)  =  U10_GGGA(x5)
U20_GGA(x1, x2, x3, x4, x5)  =  U20_GGA(x5)
U21_GGA(x1, x2, x3, x4, x5, x6)  =  U21_GGA(x6)
U12_AGA(x1, x2, x3, x4, x5, x6)  =  U12_AGA(x6)
P21_IN_AGGA(x1, x2, x3, x4)  =  P21_IN_AGGA(x2, x3)
U3_AGGA(x1, x2, x3, x4, x5)  =  U3_AGGA(x5)
LESS23_IN_AG(x1, x2)  =  LESS23_IN_AG(x2)
U1_AG(x1, x2, x3)  =  U1_AG(x3)
U4_AGGA(x1, x2, x3, x4, x5)  =  U4_AGGA(x3, x5)
U5_AGGA(x1, x2, x3, x4, x5)  =  U5_AGGA(x1, x5)
U13_AGA(x1, x2, x3, x4, x5, x6)  =  U13_AGA(x6)
LESS36_IN_GA(x1, x2)  =  LESS36_IN_GA(x1)
U2_GA(x1, x2, x3)  =  U2_GA(x3)
U14_AGA(x1, x2, x3, x4, x5, x6)  =  U14_AGA(x4, x6)
U15_AGA(x1, x2, x3, x4, x5, x6)  =  U15_AGA(x6)
U16_AGA(x1, x2, x3, x4, x5, x6)  =  U16_AGA(x6)
P46_IN_GAGA(x1, x2, x3, x4)  =  P46_IN_GAGA(x1, x3)
U6_GAGA(x1, x2, x3, x4)  =  U6_GAGA(x4)
U17_AGA(x1, x2, x3, x4, x5)  =  U17_AGA(x5)
U18_AGA(x1, x2, x3, x4, x5, x6)  =  U18_AGA(x6)
U19_AGA(x1, x2, x3, x4, x5, x6)  =  U19_AGA(x6)
U7_GAGA(x1, x2, x3, x4, x5)  =  U7_GAGA(x5)
P53_IN_GAGA(x1, x2, x3, x4)  =  P53_IN_GAGA(x1, x3)
U8_GAGA(x1, x2, x3, x4, x5)  =  U8_GAGA(x5)
U9_GAGA(x1, x2, x3, x4, x5)  =  U9_GAGA(x3, x5)
U10_GAGA(x1, x2, x3, x4, x5)  =  U10_GAGA(x5)
U20_AGA(x1, x2, x3, x4, x5)  =  U20_AGA(x5)
U21_AGA(x1, x2, x3, x4, x5, x6)  =  U21_AGA(x6)

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

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 6 SCCs with 46 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

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

LESS36_IN_GA(s(T99), s(T101)) → LESS36_IN_GA(T99, T101)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
insert1_in_aga(x1, x2, x3)  =  insert1_in_aga(x2)
void  =  void
insert1_out_aga(x1, x2, x3)  =  insert1_out_aga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
U11_aga(x1, x2, x3, x4, x5)  =  U11_aga(x5)
insert1_in_gga(x1, x2, x3)  =  insert1_in_gga(x1, x2)
insert1_out_gga(x1, x2, x3)  =  insert1_out_gga
0  =  0
U11_gga(x1, x2, x3, x4, x5)  =  U11_gga(x5)
U12_gga(x1, x2, x3, x4, x5, x6)  =  U12_gga(x6)
p21_in_ggga(x1, x2, x3, x4)  =  p21_in_ggga(x1, x2, x3)
U3_ggga(x1, x2, x3, x4, x5)  =  U3_ggga(x5)
less23_in_gg(x1, x2)  =  less23_in_gg(x1, x2)
less23_out_gg(x1, x2)  =  less23_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
p21_out_ggga(x1, x2, x3, x4)  =  p21_out_ggga
U4_ggga(x1, x2, x3, x4, x5)  =  U4_ggga(x1, x3, x5)
U5_ggga(x1, x2, x3, x4, x5)  =  U5_ggga(x5)
U13_gga(x1, x2, x3, x4, x5, x6)  =  U13_gga(x6)
less36_in_gg(x1, x2)  =  less36_in_gg(x1, x2)
less36_out_gg(x1, x2)  =  less36_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
U14_gga(x1, x2, x3, x4, x5, x6)  =  U14_gga(x1, x4, x6)
U15_gga(x1, x2, x3, x4, x5, x6)  =  U15_gga(x6)
U16_gga(x1, x2, x3, x4, x5, x6)  =  U16_gga(x6)
p46_in_ggga(x1, x2, x3, x4)  =  p46_in_ggga(x1, x2, x3)
U6_ggga(x1, x2, x3, x4)  =  U6_ggga(x4)
U17_gga(x1, x2, x3, x4, x5)  =  U17_gga(x5)
U18_gga(x1, x2, x3, x4, x5, x6)  =  U18_gga(x6)
U19_gga(x1, x2, x3, x4, x5, x6)  =  U19_gga(x6)
U7_ggga(x1, x2, x3, x4, x5)  =  U7_ggga(x5)
p53_in_ggga(x1, x2, x3, x4)  =  p53_in_ggga(x1, x2, x3)
U8_ggga(x1, x2, x3, x4, x5)  =  U8_ggga(x5)
p53_out_ggga(x1, x2, x3, x4)  =  p53_out_ggga
U9_ggga(x1, x2, x3, x4, x5)  =  U9_ggga(x2, x3, x5)
U10_ggga(x1, x2, x3, x4, x5)  =  U10_ggga(x5)
U20_gga(x1, x2, x3, x4, x5)  =  U20_gga(x5)
U21_gga(x1, x2, x3, x4, x5, x6)  =  U21_gga(x6)
p46_out_ggga(x1, x2, x3, x4)  =  p46_out_ggga
U12_aga(x1, x2, x3, x4, x5, x6)  =  U12_aga(x6)
p21_in_agga(x1, x2, x3, x4)  =  p21_in_agga(x2, x3)
U3_agga(x1, x2, x3, x4, x5)  =  U3_agga(x5)
less23_in_ag(x1, x2)  =  less23_in_ag(x2)
less23_out_ag(x1, x2)  =  less23_out_ag(x1)
U1_ag(x1, x2, x3)  =  U1_ag(x3)
p21_out_agga(x1, x2, x3, x4)  =  p21_out_agga(x1)
U4_agga(x1, x2, x3, x4, x5)  =  U4_agga(x3, x5)
U5_agga(x1, x2, x3, x4, x5)  =  U5_agga(x1, x5)
U13_aga(x1, x2, x3, x4, x5, x6)  =  U13_aga(x6)
less36_in_ga(x1, x2)  =  less36_in_ga(x1)
less36_out_ga(x1, x2)  =  less36_out_ga
U2_ga(x1, x2, x3)  =  U2_ga(x3)
U14_aga(x1, x2, x3, x4, x5, x6)  =  U14_aga(x4, x6)
U15_aga(x1, x2, x3, x4, x5, x6)  =  U15_aga(x6)
U16_aga(x1, x2, x3, x4, x5, x6)  =  U16_aga(x6)
p46_in_gaga(x1, x2, x3, x4)  =  p46_in_gaga(x1, x3)
U6_gaga(x1, x2, x3, x4)  =  U6_gaga(x4)
U17_aga(x1, x2, x3, x4, x5)  =  U17_aga(x5)
U18_aga(x1, x2, x3, x4, x5, x6)  =  U18_aga(x6)
U19_aga(x1, x2, x3, x4, x5, x6)  =  U19_aga(x6)
U7_gaga(x1, x2, x3, x4, x5)  =  U7_gaga(x5)
p53_in_gaga(x1, x2, x3, x4)  =  p53_in_gaga(x1, x3)
U8_gaga(x1, x2, x3, x4, x5)  =  U8_gaga(x5)
p53_out_gaga(x1, x2, x3, x4)  =  p53_out_gaga
U9_gaga(x1, x2, x3, x4, x5)  =  U9_gaga(x3, x5)
U10_gaga(x1, x2, x3, x4, x5)  =  U10_gaga(x5)
U20_aga(x1, x2, x3, x4, x5)  =  U20_aga(x5)
U21_aga(x1, x2, x3, x4, x5, x6)  =  U21_aga(x6)
p46_out_gaga(x1, x2, x3, x4)  =  p46_out_gaga
LESS36_IN_GA(x1, x2)  =  LESS36_IN_GA(x1)

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

(10) UsableRulesProof (EQUIVALENT transformation)

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

(11) Obligation:

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

LESS36_IN_GA(s(T99), s(T101)) → LESS36_IN_GA(T99, T101)

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

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

(12) PiDPToQDPProof (SOUND transformation)

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

(13) Obligation:

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

LESS36_IN_GA(s(T99)) → LESS36_IN_GA(T99)

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

(14) QDPSizeChangeProof (EQUIVALENT transformation)

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

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

  • LESS36_IN_GA(s(T99)) → LESS36_IN_GA(T99)
    The graph contains the following edges 1 > 1

(15) YES

(16) Obligation:

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

LESS23_IN_AG(s(T62), s(T61)) → LESS23_IN_AG(T62, T61)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
insert1_in_aga(x1, x2, x3)  =  insert1_in_aga(x2)
void  =  void
insert1_out_aga(x1, x2, x3)  =  insert1_out_aga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
U11_aga(x1, x2, x3, x4, x5)  =  U11_aga(x5)
insert1_in_gga(x1, x2, x3)  =  insert1_in_gga(x1, x2)
insert1_out_gga(x1, x2, x3)  =  insert1_out_gga
0  =  0
U11_gga(x1, x2, x3, x4, x5)  =  U11_gga(x5)
U12_gga(x1, x2, x3, x4, x5, x6)  =  U12_gga(x6)
p21_in_ggga(x1, x2, x3, x4)  =  p21_in_ggga(x1, x2, x3)
U3_ggga(x1, x2, x3, x4, x5)  =  U3_ggga(x5)
less23_in_gg(x1, x2)  =  less23_in_gg(x1, x2)
less23_out_gg(x1, x2)  =  less23_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
p21_out_ggga(x1, x2, x3, x4)  =  p21_out_ggga
U4_ggga(x1, x2, x3, x4, x5)  =  U4_ggga(x1, x3, x5)
U5_ggga(x1, x2, x3, x4, x5)  =  U5_ggga(x5)
U13_gga(x1, x2, x3, x4, x5, x6)  =  U13_gga(x6)
less36_in_gg(x1, x2)  =  less36_in_gg(x1, x2)
less36_out_gg(x1, x2)  =  less36_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
U14_gga(x1, x2, x3, x4, x5, x6)  =  U14_gga(x1, x4, x6)
U15_gga(x1, x2, x3, x4, x5, x6)  =  U15_gga(x6)
U16_gga(x1, x2, x3, x4, x5, x6)  =  U16_gga(x6)
p46_in_ggga(x1, x2, x3, x4)  =  p46_in_ggga(x1, x2, x3)
U6_ggga(x1, x2, x3, x4)  =  U6_ggga(x4)
U17_gga(x1, x2, x3, x4, x5)  =  U17_gga(x5)
U18_gga(x1, x2, x3, x4, x5, x6)  =  U18_gga(x6)
U19_gga(x1, x2, x3, x4, x5, x6)  =  U19_gga(x6)
U7_ggga(x1, x2, x3, x4, x5)  =  U7_ggga(x5)
p53_in_ggga(x1, x2, x3, x4)  =  p53_in_ggga(x1, x2, x3)
U8_ggga(x1, x2, x3, x4, x5)  =  U8_ggga(x5)
p53_out_ggga(x1, x2, x3, x4)  =  p53_out_ggga
U9_ggga(x1, x2, x3, x4, x5)  =  U9_ggga(x2, x3, x5)
U10_ggga(x1, x2, x3, x4, x5)  =  U10_ggga(x5)
U20_gga(x1, x2, x3, x4, x5)  =  U20_gga(x5)
U21_gga(x1, x2, x3, x4, x5, x6)  =  U21_gga(x6)
p46_out_ggga(x1, x2, x3, x4)  =  p46_out_ggga
U12_aga(x1, x2, x3, x4, x5, x6)  =  U12_aga(x6)
p21_in_agga(x1, x2, x3, x4)  =  p21_in_agga(x2, x3)
U3_agga(x1, x2, x3, x4, x5)  =  U3_agga(x5)
less23_in_ag(x1, x2)  =  less23_in_ag(x2)
less23_out_ag(x1, x2)  =  less23_out_ag(x1)
U1_ag(x1, x2, x3)  =  U1_ag(x3)
p21_out_agga(x1, x2, x3, x4)  =  p21_out_agga(x1)
U4_agga(x1, x2, x3, x4, x5)  =  U4_agga(x3, x5)
U5_agga(x1, x2, x3, x4, x5)  =  U5_agga(x1, x5)
U13_aga(x1, x2, x3, x4, x5, x6)  =  U13_aga(x6)
less36_in_ga(x1, x2)  =  less36_in_ga(x1)
less36_out_ga(x1, x2)  =  less36_out_ga
U2_ga(x1, x2, x3)  =  U2_ga(x3)
U14_aga(x1, x2, x3, x4, x5, x6)  =  U14_aga(x4, x6)
U15_aga(x1, x2, x3, x4, x5, x6)  =  U15_aga(x6)
U16_aga(x1, x2, x3, x4, x5, x6)  =  U16_aga(x6)
p46_in_gaga(x1, x2, x3, x4)  =  p46_in_gaga(x1, x3)
U6_gaga(x1, x2, x3, x4)  =  U6_gaga(x4)
U17_aga(x1, x2, x3, x4, x5)  =  U17_aga(x5)
U18_aga(x1, x2, x3, x4, x5, x6)  =  U18_aga(x6)
U19_aga(x1, x2, x3, x4, x5, x6)  =  U19_aga(x6)
U7_gaga(x1, x2, x3, x4, x5)  =  U7_gaga(x5)
p53_in_gaga(x1, x2, x3, x4)  =  p53_in_gaga(x1, x3)
U8_gaga(x1, x2, x3, x4, x5)  =  U8_gaga(x5)
p53_out_gaga(x1, x2, x3, x4)  =  p53_out_gaga
U9_gaga(x1, x2, x3, x4, x5)  =  U9_gaga(x3, x5)
U10_gaga(x1, x2, x3, x4, x5)  =  U10_gaga(x5)
U20_aga(x1, x2, x3, x4, x5)  =  U20_aga(x5)
U21_aga(x1, x2, x3, x4, x5, x6)  =  U21_aga(x6)
p46_out_gaga(x1, x2, x3, x4)  =  p46_out_gaga
LESS23_IN_AG(x1, x2)  =  LESS23_IN_AG(x2)

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

(17) UsableRulesProof (EQUIVALENT transformation)

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

(18) Obligation:

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

LESS23_IN_AG(s(T62), s(T61)) → LESS23_IN_AG(T62, T61)

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

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

(19) PiDPToQDPProof (SOUND transformation)

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

(20) Obligation:

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

LESS23_IN_AG(s(T61)) → LESS23_IN_AG(T61)

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

(21) QDPSizeChangeProof (EQUIVALENT transformation)

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

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

  • LESS23_IN_AG(s(T61)) → LESS23_IN_AG(T61)
    The graph contains the following edges 1 > 1

(22) YES

(23) Obligation:

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

LESS36_IN_GG(s(T99), s(T101)) → LESS36_IN_GG(T99, T101)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
insert1_in_aga(x1, x2, x3)  =  insert1_in_aga(x2)
void  =  void
insert1_out_aga(x1, x2, x3)  =  insert1_out_aga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
U11_aga(x1, x2, x3, x4, x5)  =  U11_aga(x5)
insert1_in_gga(x1, x2, x3)  =  insert1_in_gga(x1, x2)
insert1_out_gga(x1, x2, x3)  =  insert1_out_gga
0  =  0
U11_gga(x1, x2, x3, x4, x5)  =  U11_gga(x5)
U12_gga(x1, x2, x3, x4, x5, x6)  =  U12_gga(x6)
p21_in_ggga(x1, x2, x3, x4)  =  p21_in_ggga(x1, x2, x3)
U3_ggga(x1, x2, x3, x4, x5)  =  U3_ggga(x5)
less23_in_gg(x1, x2)  =  less23_in_gg(x1, x2)
less23_out_gg(x1, x2)  =  less23_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
p21_out_ggga(x1, x2, x3, x4)  =  p21_out_ggga
U4_ggga(x1, x2, x3, x4, x5)  =  U4_ggga(x1, x3, x5)
U5_ggga(x1, x2, x3, x4, x5)  =  U5_ggga(x5)
U13_gga(x1, x2, x3, x4, x5, x6)  =  U13_gga(x6)
less36_in_gg(x1, x2)  =  less36_in_gg(x1, x2)
less36_out_gg(x1, x2)  =  less36_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
U14_gga(x1, x2, x3, x4, x5, x6)  =  U14_gga(x1, x4, x6)
U15_gga(x1, x2, x3, x4, x5, x6)  =  U15_gga(x6)
U16_gga(x1, x2, x3, x4, x5, x6)  =  U16_gga(x6)
p46_in_ggga(x1, x2, x3, x4)  =  p46_in_ggga(x1, x2, x3)
U6_ggga(x1, x2, x3, x4)  =  U6_ggga(x4)
U17_gga(x1, x2, x3, x4, x5)  =  U17_gga(x5)
U18_gga(x1, x2, x3, x4, x5, x6)  =  U18_gga(x6)
U19_gga(x1, x2, x3, x4, x5, x6)  =  U19_gga(x6)
U7_ggga(x1, x2, x3, x4, x5)  =  U7_ggga(x5)
p53_in_ggga(x1, x2, x3, x4)  =  p53_in_ggga(x1, x2, x3)
U8_ggga(x1, x2, x3, x4, x5)  =  U8_ggga(x5)
p53_out_ggga(x1, x2, x3, x4)  =  p53_out_ggga
U9_ggga(x1, x2, x3, x4, x5)  =  U9_ggga(x2, x3, x5)
U10_ggga(x1, x2, x3, x4, x5)  =  U10_ggga(x5)
U20_gga(x1, x2, x3, x4, x5)  =  U20_gga(x5)
U21_gga(x1, x2, x3, x4, x5, x6)  =  U21_gga(x6)
p46_out_ggga(x1, x2, x3, x4)  =  p46_out_ggga
U12_aga(x1, x2, x3, x4, x5, x6)  =  U12_aga(x6)
p21_in_agga(x1, x2, x3, x4)  =  p21_in_agga(x2, x3)
U3_agga(x1, x2, x3, x4, x5)  =  U3_agga(x5)
less23_in_ag(x1, x2)  =  less23_in_ag(x2)
less23_out_ag(x1, x2)  =  less23_out_ag(x1)
U1_ag(x1, x2, x3)  =  U1_ag(x3)
p21_out_agga(x1, x2, x3, x4)  =  p21_out_agga(x1)
U4_agga(x1, x2, x3, x4, x5)  =  U4_agga(x3, x5)
U5_agga(x1, x2, x3, x4, x5)  =  U5_agga(x1, x5)
U13_aga(x1, x2, x3, x4, x5, x6)  =  U13_aga(x6)
less36_in_ga(x1, x2)  =  less36_in_ga(x1)
less36_out_ga(x1, x2)  =  less36_out_ga
U2_ga(x1, x2, x3)  =  U2_ga(x3)
U14_aga(x1, x2, x3, x4, x5, x6)  =  U14_aga(x4, x6)
U15_aga(x1, x2, x3, x4, x5, x6)  =  U15_aga(x6)
U16_aga(x1, x2, x3, x4, x5, x6)  =  U16_aga(x6)
p46_in_gaga(x1, x2, x3, x4)  =  p46_in_gaga(x1, x3)
U6_gaga(x1, x2, x3, x4)  =  U6_gaga(x4)
U17_aga(x1, x2, x3, x4, x5)  =  U17_aga(x5)
U18_aga(x1, x2, x3, x4, x5, x6)  =  U18_aga(x6)
U19_aga(x1, x2, x3, x4, x5, x6)  =  U19_aga(x6)
U7_gaga(x1, x2, x3, x4, x5)  =  U7_gaga(x5)
p53_in_gaga(x1, x2, x3, x4)  =  p53_in_gaga(x1, x3)
U8_gaga(x1, x2, x3, x4, x5)  =  U8_gaga(x5)
p53_out_gaga(x1, x2, x3, x4)  =  p53_out_gaga
U9_gaga(x1, x2, x3, x4, x5)  =  U9_gaga(x3, x5)
U10_gaga(x1, x2, x3, x4, x5)  =  U10_gaga(x5)
U20_aga(x1, x2, x3, x4, x5)  =  U20_aga(x5)
U21_aga(x1, x2, x3, x4, x5, x6)  =  U21_aga(x6)
p46_out_gaga(x1, x2, x3, x4)  =  p46_out_gaga
LESS36_IN_GG(x1, x2)  =  LESS36_IN_GG(x1, x2)

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

(24) UsableRulesProof (EQUIVALENT transformation)

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

(25) Obligation:

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

LESS36_IN_GG(s(T99), s(T101)) → LESS36_IN_GG(T99, T101)

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

(26) PiDPToQDPProof (EQUIVALENT transformation)

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

(27) Obligation:

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

LESS36_IN_GG(s(T99), s(T101)) → LESS36_IN_GG(T99, T101)

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

(28) QDPSizeChangeProof (EQUIVALENT transformation)

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

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

  • LESS36_IN_GG(s(T99), s(T101)) → LESS36_IN_GG(T99, T101)
    The graph contains the following edges 1 > 1, 2 > 2

(29) YES

(30) Obligation:

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

LESS23_IN_GG(s(T62), s(T61)) → LESS23_IN_GG(T62, T61)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
insert1_in_aga(x1, x2, x3)  =  insert1_in_aga(x2)
void  =  void
insert1_out_aga(x1, x2, x3)  =  insert1_out_aga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
U11_aga(x1, x2, x3, x4, x5)  =  U11_aga(x5)
insert1_in_gga(x1, x2, x3)  =  insert1_in_gga(x1, x2)
insert1_out_gga(x1, x2, x3)  =  insert1_out_gga
0  =  0
U11_gga(x1, x2, x3, x4, x5)  =  U11_gga(x5)
U12_gga(x1, x2, x3, x4, x5, x6)  =  U12_gga(x6)
p21_in_ggga(x1, x2, x3, x4)  =  p21_in_ggga(x1, x2, x3)
U3_ggga(x1, x2, x3, x4, x5)  =  U3_ggga(x5)
less23_in_gg(x1, x2)  =  less23_in_gg(x1, x2)
less23_out_gg(x1, x2)  =  less23_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
p21_out_ggga(x1, x2, x3, x4)  =  p21_out_ggga
U4_ggga(x1, x2, x3, x4, x5)  =  U4_ggga(x1, x3, x5)
U5_ggga(x1, x2, x3, x4, x5)  =  U5_ggga(x5)
U13_gga(x1, x2, x3, x4, x5, x6)  =  U13_gga(x6)
less36_in_gg(x1, x2)  =  less36_in_gg(x1, x2)
less36_out_gg(x1, x2)  =  less36_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
U14_gga(x1, x2, x3, x4, x5, x6)  =  U14_gga(x1, x4, x6)
U15_gga(x1, x2, x3, x4, x5, x6)  =  U15_gga(x6)
U16_gga(x1, x2, x3, x4, x5, x6)  =  U16_gga(x6)
p46_in_ggga(x1, x2, x3, x4)  =  p46_in_ggga(x1, x2, x3)
U6_ggga(x1, x2, x3, x4)  =  U6_ggga(x4)
U17_gga(x1, x2, x3, x4, x5)  =  U17_gga(x5)
U18_gga(x1, x2, x3, x4, x5, x6)  =  U18_gga(x6)
U19_gga(x1, x2, x3, x4, x5, x6)  =  U19_gga(x6)
U7_ggga(x1, x2, x3, x4, x5)  =  U7_ggga(x5)
p53_in_ggga(x1, x2, x3, x4)  =  p53_in_ggga(x1, x2, x3)
U8_ggga(x1, x2, x3, x4, x5)  =  U8_ggga(x5)
p53_out_ggga(x1, x2, x3, x4)  =  p53_out_ggga
U9_ggga(x1, x2, x3, x4, x5)  =  U9_ggga(x2, x3, x5)
U10_ggga(x1, x2, x3, x4, x5)  =  U10_ggga(x5)
U20_gga(x1, x2, x3, x4, x5)  =  U20_gga(x5)
U21_gga(x1, x2, x3, x4, x5, x6)  =  U21_gga(x6)
p46_out_ggga(x1, x2, x3, x4)  =  p46_out_ggga
U12_aga(x1, x2, x3, x4, x5, x6)  =  U12_aga(x6)
p21_in_agga(x1, x2, x3, x4)  =  p21_in_agga(x2, x3)
U3_agga(x1, x2, x3, x4, x5)  =  U3_agga(x5)
less23_in_ag(x1, x2)  =  less23_in_ag(x2)
less23_out_ag(x1, x2)  =  less23_out_ag(x1)
U1_ag(x1, x2, x3)  =  U1_ag(x3)
p21_out_agga(x1, x2, x3, x4)  =  p21_out_agga(x1)
U4_agga(x1, x2, x3, x4, x5)  =  U4_agga(x3, x5)
U5_agga(x1, x2, x3, x4, x5)  =  U5_agga(x1, x5)
U13_aga(x1, x2, x3, x4, x5, x6)  =  U13_aga(x6)
less36_in_ga(x1, x2)  =  less36_in_ga(x1)
less36_out_ga(x1, x2)  =  less36_out_ga
U2_ga(x1, x2, x3)  =  U2_ga(x3)
U14_aga(x1, x2, x3, x4, x5, x6)  =  U14_aga(x4, x6)
U15_aga(x1, x2, x3, x4, x5, x6)  =  U15_aga(x6)
U16_aga(x1, x2, x3, x4, x5, x6)  =  U16_aga(x6)
p46_in_gaga(x1, x2, x3, x4)  =  p46_in_gaga(x1, x3)
U6_gaga(x1, x2, x3, x4)  =  U6_gaga(x4)
U17_aga(x1, x2, x3, x4, x5)  =  U17_aga(x5)
U18_aga(x1, x2, x3, x4, x5, x6)  =  U18_aga(x6)
U19_aga(x1, x2, x3, x4, x5, x6)  =  U19_aga(x6)
U7_gaga(x1, x2, x3, x4, x5)  =  U7_gaga(x5)
p53_in_gaga(x1, x2, x3, x4)  =  p53_in_gaga(x1, x3)
U8_gaga(x1, x2, x3, x4, x5)  =  U8_gaga(x5)
p53_out_gaga(x1, x2, x3, x4)  =  p53_out_gaga
U9_gaga(x1, x2, x3, x4, x5)  =  U9_gaga(x3, x5)
U10_gaga(x1, x2, x3, x4, x5)  =  U10_gaga(x5)
U20_aga(x1, x2, x3, x4, x5)  =  U20_aga(x5)
U21_aga(x1, x2, x3, x4, x5, x6)  =  U21_aga(x6)
p46_out_gaga(x1, x2, x3, x4)  =  p46_out_gaga
LESS23_IN_GG(x1, x2)  =  LESS23_IN_GG(x1, x2)

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

(31) UsableRulesProof (EQUIVALENT transformation)

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

(32) Obligation:

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

LESS23_IN_GG(s(T62), s(T61)) → LESS23_IN_GG(T62, T61)

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

(33) PiDPToQDPProof (EQUIVALENT transformation)

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

(34) Obligation:

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

LESS23_IN_GG(s(T62), s(T61)) → LESS23_IN_GG(T62, T61)

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

(35) QDPSizeChangeProof (EQUIVALENT transformation)

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

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

  • LESS23_IN_GG(s(T62), s(T61)) → LESS23_IN_GG(T62, T61)
    The graph contains the following edges 1 > 1, 2 > 2

(36) YES

(37) Obligation:

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

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)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
insert1_in_aga(x1, x2, x3)  =  insert1_in_aga(x2)
void  =  void
insert1_out_aga(x1, x2, x3)  =  insert1_out_aga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
U11_aga(x1, x2, x3, x4, x5)  =  U11_aga(x5)
insert1_in_gga(x1, x2, x3)  =  insert1_in_gga(x1, x2)
insert1_out_gga(x1, x2, x3)  =  insert1_out_gga
0  =  0
U11_gga(x1, x2, x3, x4, x5)  =  U11_gga(x5)
U12_gga(x1, x2, x3, x4, x5, x6)  =  U12_gga(x6)
p21_in_ggga(x1, x2, x3, x4)  =  p21_in_ggga(x1, x2, x3)
U3_ggga(x1, x2, x3, x4, x5)  =  U3_ggga(x5)
less23_in_gg(x1, x2)  =  less23_in_gg(x1, x2)
less23_out_gg(x1, x2)  =  less23_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
p21_out_ggga(x1, x2, x3, x4)  =  p21_out_ggga
U4_ggga(x1, x2, x3, x4, x5)  =  U4_ggga(x1, x3, x5)
U5_ggga(x1, x2, x3, x4, x5)  =  U5_ggga(x5)
U13_gga(x1, x2, x3, x4, x5, x6)  =  U13_gga(x6)
less36_in_gg(x1, x2)  =  less36_in_gg(x1, x2)
less36_out_gg(x1, x2)  =  less36_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
U14_gga(x1, x2, x3, x4, x5, x6)  =  U14_gga(x1, x4, x6)
U15_gga(x1, x2, x3, x4, x5, x6)  =  U15_gga(x6)
U16_gga(x1, x2, x3, x4, x5, x6)  =  U16_gga(x6)
p46_in_ggga(x1, x2, x3, x4)  =  p46_in_ggga(x1, x2, x3)
U6_ggga(x1, x2, x3, x4)  =  U6_ggga(x4)
U17_gga(x1, x2, x3, x4, x5)  =  U17_gga(x5)
U18_gga(x1, x2, x3, x4, x5, x6)  =  U18_gga(x6)
U19_gga(x1, x2, x3, x4, x5, x6)  =  U19_gga(x6)
U7_ggga(x1, x2, x3, x4, x5)  =  U7_ggga(x5)
p53_in_ggga(x1, x2, x3, x4)  =  p53_in_ggga(x1, x2, x3)
U8_ggga(x1, x2, x3, x4, x5)  =  U8_ggga(x5)
p53_out_ggga(x1, x2, x3, x4)  =  p53_out_ggga
U9_ggga(x1, x2, x3, x4, x5)  =  U9_ggga(x2, x3, x5)
U10_ggga(x1, x2, x3, x4, x5)  =  U10_ggga(x5)
U20_gga(x1, x2, x3, x4, x5)  =  U20_gga(x5)
U21_gga(x1, x2, x3, x4, x5, x6)  =  U21_gga(x6)
p46_out_ggga(x1, x2, x3, x4)  =  p46_out_ggga
U12_aga(x1, x2, x3, x4, x5, x6)  =  U12_aga(x6)
p21_in_agga(x1, x2, x3, x4)  =  p21_in_agga(x2, x3)
U3_agga(x1, x2, x3, x4, x5)  =  U3_agga(x5)
less23_in_ag(x1, x2)  =  less23_in_ag(x2)
less23_out_ag(x1, x2)  =  less23_out_ag(x1)
U1_ag(x1, x2, x3)  =  U1_ag(x3)
p21_out_agga(x1, x2, x3, x4)  =  p21_out_agga(x1)
U4_agga(x1, x2, x3, x4, x5)  =  U4_agga(x3, x5)
U5_agga(x1, x2, x3, x4, x5)  =  U5_agga(x1, x5)
U13_aga(x1, x2, x3, x4, x5, x6)  =  U13_aga(x6)
less36_in_ga(x1, x2)  =  less36_in_ga(x1)
less36_out_ga(x1, x2)  =  less36_out_ga
U2_ga(x1, x2, x3)  =  U2_ga(x3)
U14_aga(x1, x2, x3, x4, x5, x6)  =  U14_aga(x4, x6)
U15_aga(x1, x2, x3, x4, x5, x6)  =  U15_aga(x6)
U16_aga(x1, x2, x3, x4, x5, x6)  =  U16_aga(x6)
p46_in_gaga(x1, x2, x3, x4)  =  p46_in_gaga(x1, x3)
U6_gaga(x1, x2, x3, x4)  =  U6_gaga(x4)
U17_aga(x1, x2, x3, x4, x5)  =  U17_aga(x5)
U18_aga(x1, x2, x3, x4, x5, x6)  =  U18_aga(x6)
U19_aga(x1, x2, x3, x4, x5, x6)  =  U19_aga(x6)
U7_gaga(x1, x2, x3, x4, x5)  =  U7_gaga(x5)
p53_in_gaga(x1, x2, x3, x4)  =  p53_in_gaga(x1, x3)
U8_gaga(x1, x2, x3, x4, x5)  =  U8_gaga(x5)
p53_out_gaga(x1, x2, x3, x4)  =  p53_out_gaga
U9_gaga(x1, x2, x3, x4, x5)  =  U9_gaga(x3, x5)
U10_gaga(x1, x2, x3, x4, x5)  =  U10_gaga(x5)
U20_aga(x1, x2, x3, x4, x5)  =  U20_aga(x5)
U21_aga(x1, x2, x3, x4, x5, x6)  =  U21_aga(x6)
p46_out_gaga(x1, x2, x3, x4)  =  p46_out_gaga
INSERT1_IN_GGA(x1, x2, x3)  =  INSERT1_IN_GGA(x1, x2)
P21_IN_GGGA(x1, x2, x3, x4)  =  P21_IN_GGGA(x1, x2, x3)
U4_GGGA(x1, x2, x3, x4, x5)  =  U4_GGGA(x1, x3, x5)
U14_GGA(x1, x2, x3, x4, x5, x6)  =  U14_GGA(x1, x4, x6)
P46_IN_GGGA(x1, x2, x3, x4)  =  P46_IN_GGGA(x1, x2, x3)
P53_IN_GGGA(x1, x2, x3, x4)  =  P53_IN_GGGA(x1, x2, x3)
U9_GGGA(x1, x2, x3, x4, x5)  =  U9_GGGA(x2, x3, x5)

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

(38) UsableRulesProof (EQUIVALENT transformation)

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

(39) Obligation:

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

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)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
0  =  0
less23_in_gg(x1, x2)  =  less23_in_gg(x1, x2)
less23_out_gg(x1, x2)  =  less23_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
less36_in_gg(x1, x2)  =  less36_in_gg(x1, x2)
less36_out_gg(x1, x2)  =  less36_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
INSERT1_IN_GGA(x1, x2, x3)  =  INSERT1_IN_GGA(x1, x2)
P21_IN_GGGA(x1, x2, x3, x4)  =  P21_IN_GGGA(x1, x2, x3)
U4_GGGA(x1, x2, x3, x4, x5)  =  U4_GGGA(x1, x3, x5)
U14_GGA(x1, x2, x3, x4, x5, x6)  =  U14_GGA(x1, x4, x6)
P46_IN_GGGA(x1, x2, x3, x4)  =  P46_IN_GGGA(x1, x2, x3)
P53_IN_GGGA(x1, x2, x3, x4)  =  P53_IN_GGGA(x1, x2, x3)
U9_GGGA(x1, x2, x3, x4, x5)  =  U9_GGGA(x2, x3, x5)

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

(40) PiDPToQDPProof (SOUND transformation)

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

(41) Obligation:

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

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)

The TRS R consists of the following rules:

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

The set Q consists of the following terms:

less36_in_gg(x0, x1)
less23_in_gg(x0, x1)
U2_gg(x0)
U1_gg(x0)

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

(42) QDPSizeChangeProof (EQUIVALENT transformation)

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

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

  • U14_GGA(T86, T80, less36_out_gg) → INSERT1_IN_GGA(T86, T80)
    The graph contains the following edges 1 >= 1, 2 >= 2

  • INSERT1_IN_GGA(T86, tree(T78, T79, T80)) → U14_GGA(T86, T80, less36_in_gg(T78, T86))
    The graph contains the following edges 1 >= 1, 2 > 2

  • INSERT1_IN_GGA(0, tree(s(T31), T22, T23)) → INSERT1_IN_GGA(0, T22)
    The graph contains the following edges 1 >= 1, 2 > 2

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

  • INSERT1_IN_GGA(T116, tree(T112, T113, T114)) → P46_IN_GGGA(T112, T116, T114)
    The graph contains the following edges 2 > 1, 1 >= 2, 2 > 3

  • P46_IN_GGGA(0, s(T124), T114) → INSERT1_IN_GGA(s(T124), T114)
    The graph contains the following edges 2 >= 1, 3 >= 2

  • P46_IN_GGGA(s(T131), s(T133), T114) → P53_IN_GGGA(T131, T133, T114)
    The graph contains the following edges 1 > 1, 2 > 2, 3 >= 3

  • P21_IN_GGGA(T47, T42, T22) → U4_GGGA(T47, T22, less23_in_gg(T47, T42))
    The graph contains the following edges 1 >= 1, 3 >= 2

  • P53_IN_GGGA(T131, T137, T114) → U9_GGGA(T137, T114, less36_in_gg(T131, T137))
    The graph contains the following edges 2 >= 1, 3 >= 2

  • U4_GGGA(T47, T22, less23_out_gg) → INSERT1_IN_GGA(s(T47), T22)
    The graph contains the following edges 2 >= 2

  • U9_GGGA(T137, T114, less36_out_gg) → INSERT1_IN_GGA(s(T137), T114)
    The graph contains the following edges 2 >= 2

  • INSERT1_IN_GGA(s(T43), tree(s(T42), T22, T23)) → P21_IN_GGGA(T43, T42, T22)
    The graph contains the following edges 1 > 1, 2 > 2, 2 > 3

  • INSERT1_IN_GGA(s(T221), tree(s(T219), T201, T202)) → P53_IN_GGGA(T219, T221, T202)
    The graph contains the following edges 2 > 1, 1 > 2, 2 > 3

(43) YES

(44) Obligation:

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

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)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
insert1_in_aga(x1, x2, x3)  =  insert1_in_aga(x2)
void  =  void
insert1_out_aga(x1, x2, x3)  =  insert1_out_aga
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
U11_aga(x1, x2, x3, x4, x5)  =  U11_aga(x5)
insert1_in_gga(x1, x2, x3)  =  insert1_in_gga(x1, x2)
insert1_out_gga(x1, x2, x3)  =  insert1_out_gga
0  =  0
U11_gga(x1, x2, x3, x4, x5)  =  U11_gga(x5)
U12_gga(x1, x2, x3, x4, x5, x6)  =  U12_gga(x6)
p21_in_ggga(x1, x2, x3, x4)  =  p21_in_ggga(x1, x2, x3)
U3_ggga(x1, x2, x3, x4, x5)  =  U3_ggga(x5)
less23_in_gg(x1, x2)  =  less23_in_gg(x1, x2)
less23_out_gg(x1, x2)  =  less23_out_gg
U1_gg(x1, x2, x3)  =  U1_gg(x3)
p21_out_ggga(x1, x2, x3, x4)  =  p21_out_ggga
U4_ggga(x1, x2, x3, x4, x5)  =  U4_ggga(x1, x3, x5)
U5_ggga(x1, x2, x3, x4, x5)  =  U5_ggga(x5)
U13_gga(x1, x2, x3, x4, x5, x6)  =  U13_gga(x6)
less36_in_gg(x1, x2)  =  less36_in_gg(x1, x2)
less36_out_gg(x1, x2)  =  less36_out_gg
U2_gg(x1, x2, x3)  =  U2_gg(x3)
U14_gga(x1, x2, x3, x4, x5, x6)  =  U14_gga(x1, x4, x6)
U15_gga(x1, x2, x3, x4, x5, x6)  =  U15_gga(x6)
U16_gga(x1, x2, x3, x4, x5, x6)  =  U16_gga(x6)
p46_in_ggga(x1, x2, x3, x4)  =  p46_in_ggga(x1, x2, x3)
U6_ggga(x1, x2, x3, x4)  =  U6_ggga(x4)
U17_gga(x1, x2, x3, x4, x5)  =  U17_gga(x5)
U18_gga(x1, x2, x3, x4, x5, x6)  =  U18_gga(x6)
U19_gga(x1, x2, x3, x4, x5, x6)  =  U19_gga(x6)
U7_ggga(x1, x2, x3, x4, x5)  =  U7_ggga(x5)
p53_in_ggga(x1, x2, x3, x4)  =  p53_in_ggga(x1, x2, x3)
U8_ggga(x1, x2, x3, x4, x5)  =  U8_ggga(x5)
p53_out_ggga(x1, x2, x3, x4)  =  p53_out_ggga
U9_ggga(x1, x2, x3, x4, x5)  =  U9_ggga(x2, x3, x5)
U10_ggga(x1, x2, x3, x4, x5)  =  U10_ggga(x5)
U20_gga(x1, x2, x3, x4, x5)  =  U20_gga(x5)
U21_gga(x1, x2, x3, x4, x5, x6)  =  U21_gga(x6)
p46_out_ggga(x1, x2, x3, x4)  =  p46_out_ggga
U12_aga(x1, x2, x3, x4, x5, x6)  =  U12_aga(x6)
p21_in_agga(x1, x2, x3, x4)  =  p21_in_agga(x2, x3)
U3_agga(x1, x2, x3, x4, x5)  =  U3_agga(x5)
less23_in_ag(x1, x2)  =  less23_in_ag(x2)
less23_out_ag(x1, x2)  =  less23_out_ag(x1)
U1_ag(x1, x2, x3)  =  U1_ag(x3)
p21_out_agga(x1, x2, x3, x4)  =  p21_out_agga(x1)
U4_agga(x1, x2, x3, x4, x5)  =  U4_agga(x3, x5)
U5_agga(x1, x2, x3, x4, x5)  =  U5_agga(x1, x5)
U13_aga(x1, x2, x3, x4, x5, x6)  =  U13_aga(x6)
less36_in_ga(x1, x2)  =  less36_in_ga(x1)
less36_out_ga(x1, x2)  =  less36_out_ga
U2_ga(x1, x2, x3)  =  U2_ga(x3)
U14_aga(x1, x2, x3, x4, x5, x6)  =  U14_aga(x4, x6)
U15_aga(x1, x2, x3, x4, x5, x6)  =  U15_aga(x6)
U16_aga(x1, x2, x3, x4, x5, x6)  =  U16_aga(x6)
p46_in_gaga(x1, x2, x3, x4)  =  p46_in_gaga(x1, x3)
U6_gaga(x1, x2, x3, x4)  =  U6_gaga(x4)
U17_aga(x1, x2, x3, x4, x5)  =  U17_aga(x5)
U18_aga(x1, x2, x3, x4, x5, x6)  =  U18_aga(x6)
U19_aga(x1, x2, x3, x4, x5, x6)  =  U19_aga(x6)
U7_gaga(x1, x2, x3, x4, x5)  =  U7_gaga(x5)
p53_in_gaga(x1, x2, x3, x4)  =  p53_in_gaga(x1, x3)
U8_gaga(x1, x2, x3, x4, x5)  =  U8_gaga(x5)
p53_out_gaga(x1, x2, x3, x4)  =  p53_out_gaga
U9_gaga(x1, x2, x3, x4, x5)  =  U9_gaga(x3, x5)
U10_gaga(x1, x2, x3, x4, x5)  =  U10_gaga(x5)
U20_aga(x1, x2, x3, x4, x5)  =  U20_aga(x5)
U21_aga(x1, x2, x3, x4, x5, x6)  =  U21_aga(x6)
p46_out_gaga(x1, x2, x3, x4)  =  p46_out_gaga
INSERT1_IN_AGA(x1, x2, x3)  =  INSERT1_IN_AGA(x2)
U14_AGA(x1, x2, x3, x4, x5, x6)  =  U14_AGA(x4, x6)
P46_IN_GAGA(x1, x2, x3, x4)  =  P46_IN_GAGA(x1, x3)
P53_IN_GAGA(x1, x2, x3, x4)  =  P53_IN_GAGA(x1, x3)
U9_GAGA(x1, x2, x3, x4, x5)  =  U9_GAGA(x3, x5)

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

(45) UsableRulesProof (EQUIVALENT transformation)

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

(46) Obligation:

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

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)

The TRS R consists of the following rules:

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))

The argument filtering Pi contains the following mapping:
tree(x1, x2, x3)  =  tree(x1, x2, x3)
s(x1)  =  s(x1)
0  =  0
less36_in_ga(x1, x2)  =  less36_in_ga(x1)
less36_out_ga(x1, x2)  =  less36_out_ga
U2_ga(x1, x2, x3)  =  U2_ga(x3)
INSERT1_IN_AGA(x1, x2, x3)  =  INSERT1_IN_AGA(x2)
U14_AGA(x1, x2, x3, x4, x5, x6)  =  U14_AGA(x4, x6)
P46_IN_GAGA(x1, x2, x3, x4)  =  P46_IN_GAGA(x1, x3)
P53_IN_GAGA(x1, x2, x3, x4)  =  P53_IN_GAGA(x1, x3)
U9_GAGA(x1, x2, x3, x4, x5)  =  U9_GAGA(x3, x5)

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

(47) PiDPToQDPProof (SOUND transformation)

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

(48) Obligation:

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

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)

The TRS R consists of the following rules:

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

The set Q consists of the following terms:

less36_in_ga(x0)
U2_ga(x0)

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

(49) QDPSizeChangeProof (EQUIVALENT transformation)

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

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

  • U14_AGA(T80, less36_out_ga) → INSERT1_IN_AGA(T80)
    The graph contains the following edges 1 >= 1

  • INSERT1_IN_AGA(tree(0, T201, T202)) → INSERT1_IN_AGA(T202)
    The graph contains the following edges 1 > 1

  • INSERT1_IN_AGA(tree(T78, T79, T80)) → U14_AGA(T80, less36_in_ga(T78))
    The graph contains the following edges 1 > 1

  • P46_IN_GAGA(0, T114) → INSERT1_IN_AGA(T114)
    The graph contains the following edges 2 >= 1

  • U9_GAGA(T114, less36_out_ga) → INSERT1_IN_AGA(T114)
    The graph contains the following edges 1 >= 1

  • P46_IN_GAGA(s(T131), T114) → P53_IN_GAGA(T131, T114)
    The graph contains the following edges 1 > 1, 2 >= 2

  • P53_IN_GAGA(T131, T114) → U9_GAGA(T114, less36_in_ga(T131))
    The graph contains the following edges 2 >= 1

  • INSERT1_IN_AGA(tree(T112, T113, T114)) → P46_IN_GAGA(T112, T114)
    The graph contains the following edges 1 > 1, 1 > 2

  • INSERT1_IN_AGA(tree(s(T219), T201, T202)) → P53_IN_GAGA(T219, T202)
    The graph contains the following edges 1 > 1, 1 > 2

(50) YES