(0) Obligation:

Clauses:

in_order(void, []).
in_order(tree(X, Left, Right), Xs) :- ','(in_order(Left, Ls), ','(in_order(Right, Rs), app(Ls, .(X, Rs), Xs))).
app([], X, X).
app(.(X, Xs), Ys, .(X, Zs)) :- app(Xs, Ys, Zs).

Queries:

in_order(a,g).

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph.

(2) Obligation:

Clauses:

in_order13(void, []).
in_order13(tree(T27, T25, T26), X33) :- in_order13(T25, X31).
in_order13(tree(T30, T25, T29), X33) :- ','(in_order13(T25, T28), in_order13(T29, X32)).
in_order13(tree(T33, T25, T29), X33) :- ','(in_order13(T25, T32), ','(in_order13(T29, T31), app26(T32, T33, T31, X33))).
app26([], T46, T47, .(T46, T47)).
app26(.(T56, T60), T61, T62, .(T56, X60)) :- app26(T60, T61, T62, X60).
app83([], T241, T242, .(T241, T242)).
app83(.(T253, T258), T259, T260, .(T253, T257)) :- app83(T258, T259, T260, T257).
in_order1(void, []).
in_order1(tree(T13, void, T12), []) :- in_order13(T12, X10).
in_order1(tree(T86, tree(T84, T82, T83), T85), []) :- in_order13(T82, X94).
in_order1(tree(T91, tree(T89, T82, T88), T90), []) :- ','(in_order13(T82, T87), in_order13(T88, X95)).
in_order1(tree(T96, tree(T94, T82, T88), T95), []) :- ','(in_order13(T82, T93), ','(in_order13(T88, T92), app26(T93, T94, T92, X96))).
in_order1(tree(T103, tree(T94, T82, T88), T102), []) :- ','(in_order13(T82, T93), ','(in_order13(T88, T92), ','(app26(T93, T94, T92, T101), in_order13(T102, X10)))).
in_order1(tree(T137, void, T136), T132) :- in_order13(T136, X125).
in_order1(tree(T153, void, T136), .(T153, T154)) :- in_order13(T136, T154).
in_order1(tree(T168, tree(T166, T164, T165), T167), T132) :- in_order13(T164, X158).
in_order1(tree(T173, tree(T171, T164, T170), T172), T132) :- ','(in_order13(T164, T169), in_order13(T170, X159)).
in_order1(tree(T179, tree(T177, T164, T170), T178), T132) :- ','(in_order13(T164, T176), ','(in_order13(T170, T175), app26(T176, T177, T175, X160))).
in_order1(tree(T187, tree(T177, T164, T170), T186), T132) :- ','(in_order13(T164, T176), ','(in_order13(T170, T175), ','(app26(T176, T177, T175, T185), in_order13(T186, X125)))).
in_order1(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) :- ','(in_order13(T164, T176), ','(in_order13(T170, T175), ','(app26(T176, T177, T175, []), in_order13(T186, T210)))).
in_order1(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) :- ','(in_order13(T164, T176), ','(in_order13(T170, T175), ','(app26(T176, T177, T175, .(T221, T226)), ','(in_order13(T186, T228), app83(T226, T227, T228, T225))))).

Queries:

in_order1(a,g).

(3) PrologToPiTRSProof (SOUND transformation)

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

in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))

The argument filtering Pi contains the following mapping:
in_order1_in_ag(x1, x2)  =  in_order1_in_ag(x2)
[]  =  []
in_order1_out_ag(x1, x2)  =  in_order1_out_ag(x2)
U9_ag(x1, x2, x3)  =  U9_ag(x3)
in_order13_in_aa(x1, x2)  =  in_order13_in_aa
in_order13_out_aa(x1, x2)  =  in_order13_out_aa
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
.(x1, x2)  =  .(x2)
tree(x1, x2, x3)  =  tree(x2, x3)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app26_in_aaaa(x1, x2, x3, x4)  =  app26_in_aaaa
app26_out_aaaa(x1, x2, x3, x4)  =  app26_out_aaaa(x1)
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U10_ag(x1, x2, x3, x4, x5, x6)  =  U10_ag(x6)
U11_ag(x1, x2, x3, x4, x5, x6)  =  U11_ag(x6)
U12_ag(x1, x2, x3, x4, x5, x6)  =  U12_ag(x6)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6, x7)  =  U14_ag(x7)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x3, x4)
U21_ag(x1, x2, x3, x4)  =  U21_ag(x3, x4)
in_order13_in_ag(x1, x2)  =  in_order13_in_ag(x2)
in_order13_out_ag(x1, x2)  =  in_order13_out_ag(x2)
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x4, x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x4, x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x4, x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x4, x5)
app26_in_aaag(x1, x2, x3, x4)  =  app26_in_aaag(x4)
app26_out_aaag(x1, x2, x3, x4)  =  app26_out_aaag(x1, x3, x4)
U7_aaag(x1, x2, x3, x4, x5, x6)  =  U7_aaag(x5, x6)
U22_ag(x1, x2, x3, x4, x5, x6, x7)  =  U22_ag(x6, x7)
U23_ag(x1, x2, x3, x4, x5, x6, x7)  =  U23_ag(x6, x7)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x6, x7)
U25_ag(x1, x2, x3, x4, x5, x6, x7)  =  U25_ag(x6, x7)
U26_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U26_ag(x6, x8)
U27_ag(x1, x2, x3, x4, x5, x6, x7)  =  U27_ag(x6, x7)
U28_ag(x1, x2, x3, x4, x5, x6, x7)  =  U28_ag(x6, x7)
U29_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U29_ag(x6, x8)
U30_ag(x1, x2, x3, x4, x5, x6, x7)  =  U30_ag(x6, x7)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x6, x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x6, x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_ag(x6, x8)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x6, x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7)  =  U35_ag(x6, x7)
U36_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_ag(x7, x8)
U37_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U37_ag(x7, x9)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x7, x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U39_ag(x7, x9)
U40_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_ag(x7, x8)
app83_in_aaag(x1, x2, x3, x4)  =  app83_in_aaag(x4)
app83_out_aaag(x1, x2, x3, x4)  =  app83_out_aaag(x1, x3, x4)
U8_aaag(x1, x2, x3, x4, x5, x6)  =  U8_aaag(x5, x6)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

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

in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))

The argument filtering Pi contains the following mapping:
in_order1_in_ag(x1, x2)  =  in_order1_in_ag(x2)
[]  =  []
in_order1_out_ag(x1, x2)  =  in_order1_out_ag(x2)
U9_ag(x1, x2, x3)  =  U9_ag(x3)
in_order13_in_aa(x1, x2)  =  in_order13_in_aa
in_order13_out_aa(x1, x2)  =  in_order13_out_aa
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
.(x1, x2)  =  .(x2)
tree(x1, x2, x3)  =  tree(x2, x3)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app26_in_aaaa(x1, x2, x3, x4)  =  app26_in_aaaa
app26_out_aaaa(x1, x2, x3, x4)  =  app26_out_aaaa(x1)
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U10_ag(x1, x2, x3, x4, x5, x6)  =  U10_ag(x6)
U11_ag(x1, x2, x3, x4, x5, x6)  =  U11_ag(x6)
U12_ag(x1, x2, x3, x4, x5, x6)  =  U12_ag(x6)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6, x7)  =  U14_ag(x7)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x3, x4)
U21_ag(x1, x2, x3, x4)  =  U21_ag(x3, x4)
in_order13_in_ag(x1, x2)  =  in_order13_in_ag(x2)
in_order13_out_ag(x1, x2)  =  in_order13_out_ag(x2)
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x4, x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x4, x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x4, x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x4, x5)
app26_in_aaag(x1, x2, x3, x4)  =  app26_in_aaag(x4)
app26_out_aaag(x1, x2, x3, x4)  =  app26_out_aaag(x1, x3, x4)
U7_aaag(x1, x2, x3, x4, x5, x6)  =  U7_aaag(x5, x6)
U22_ag(x1, x2, x3, x4, x5, x6, x7)  =  U22_ag(x6, x7)
U23_ag(x1, x2, x3, x4, x5, x6, x7)  =  U23_ag(x6, x7)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x6, x7)
U25_ag(x1, x2, x3, x4, x5, x6, x7)  =  U25_ag(x6, x7)
U26_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U26_ag(x6, x8)
U27_ag(x1, x2, x3, x4, x5, x6, x7)  =  U27_ag(x6, x7)
U28_ag(x1, x2, x3, x4, x5, x6, x7)  =  U28_ag(x6, x7)
U29_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U29_ag(x6, x8)
U30_ag(x1, x2, x3, x4, x5, x6, x7)  =  U30_ag(x6, x7)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x6, x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x6, x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_ag(x6, x8)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x6, x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7)  =  U35_ag(x6, x7)
U36_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_ag(x7, x8)
U37_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U37_ag(x7, x9)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x7, x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U39_ag(x7, x9)
U40_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_ag(x7, x8)
app83_in_aaag(x1, x2, x3, x4)  =  app83_in_aaag(x4)
app83_out_aaag(x1, x2, x3, x4)  =  app83_out_aaag(x1, x3, x4)
U8_aaag(x1, x2, x3, x4, x5, x6)  =  U8_aaag(x5, x6)

(5) DependencyPairsProof (EQUIVALENT transformation)

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

IN_ORDER1_IN_AG(tree(T13, void, T12), []) → U9_AG(T13, T12, in_order13_in_aa(T12, X10))
IN_ORDER1_IN_AG(tree(T13, void, T12), []) → IN_ORDER13_IN_AA(T12, X10)
IN_ORDER13_IN_AA(tree(T27, T25, T26), X33) → U1_AA(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
IN_ORDER13_IN_AA(tree(T27, T25, T26), X33) → IN_ORDER13_IN_AA(T25, X31)
IN_ORDER13_IN_AA(tree(T30, T25, T29), X33) → U2_AA(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
IN_ORDER13_IN_AA(tree(T33, T25, T29), X33) → U4_AA(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_AA(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_AA(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U4_AA(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → IN_ORDER13_IN_AA(T29, T31)
U5_AA(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_AA(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
U5_AA(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → APP26_IN_AAAA(T32, T33, T31, X33)
APP26_IN_AAAA(.(T56, T60), T61, T62, .(T56, X60)) → U7_AAAA(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
APP26_IN_AAAA(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAA(T60, T61, T62, X60)
U2_AA(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_AA(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U2_AA(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → IN_ORDER13_IN_AA(T29, X32)
IN_ORDER1_IN_AG(tree(T86, tree(T84, T82, T83), T85), []) → U10_AG(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
IN_ORDER1_IN_AG(tree(T86, tree(T84, T82, T83), T85), []) → IN_ORDER13_IN_AA(T82, X94)
IN_ORDER1_IN_AG(tree(T91, tree(T89, T82, T88), T90), []) → U11_AG(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_AG(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_AG(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U11_AG(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → IN_ORDER13_IN_AA(T88, X95)
IN_ORDER1_IN_AG(tree(T96, tree(T94, T82, T88), T95), []) → U13_AG(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_AG(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_AG(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U13_AG(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → IN_ORDER13_IN_AA(T88, T92)
U14_AG(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_AG(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U14_AG(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → APP26_IN_AAAA(T93, T94, T92, X96)
IN_ORDER1_IN_AG(tree(T103, tree(T94, T82, T88), T102), []) → U16_AG(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_AG(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_AG(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U16_AG(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → IN_ORDER13_IN_AA(T88, T92)
U17_AG(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_AG(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U17_AG(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → APP26_IN_AAAA(T93, T94, T92, T101)
U18_AG(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_AG(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U18_AG(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → IN_ORDER13_IN_AA(T102, X10)
IN_ORDER1_IN_AG(tree(T137, void, T136), T132) → U20_AG(T137, T136, T132, in_order13_in_aa(T136, X125))
IN_ORDER1_IN_AG(tree(T137, void, T136), T132) → IN_ORDER13_IN_AA(T136, X125)
IN_ORDER1_IN_AG(tree(T153, void, T136), .(T153, T154)) → U21_AG(T153, T136, T154, in_order13_in_ag(T136, T154))
IN_ORDER1_IN_AG(tree(T153, void, T136), .(T153, T154)) → IN_ORDER13_IN_AG(T136, T154)
IN_ORDER13_IN_AG(tree(T27, T25, T26), X33) → U1_AG(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
IN_ORDER13_IN_AG(tree(T27, T25, T26), X33) → IN_ORDER13_IN_AA(T25, X31)
IN_ORDER13_IN_AG(tree(T30, T25, T29), X33) → U2_AG(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_AG(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_AG(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U2_AG(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → IN_ORDER13_IN_AA(T29, X32)
IN_ORDER13_IN_AG(tree(T33, T25, T29), X33) → U4_AG(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_AG(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_AG(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U4_AG(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → IN_ORDER13_IN_AA(T29, T31)
U5_AG(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_AG(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
U5_AG(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → APP26_IN_AAAG(T32, T33, T31, X33)
APP26_IN_AAAG(.(T56, T60), T61, T62, .(T56, X60)) → U7_AAAG(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
APP26_IN_AAAG(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAG(T60, T61, T62, X60)
IN_ORDER1_IN_AG(tree(T168, tree(T166, T164, T165), T167), T132) → U22_AG(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
IN_ORDER1_IN_AG(tree(T168, tree(T166, T164, T165), T167), T132) → IN_ORDER13_IN_AA(T164, X158)
IN_ORDER1_IN_AG(tree(T173, tree(T171, T164, T170), T172), T132) → U23_AG(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_AG(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_AG(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U23_AG(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → IN_ORDER13_IN_AA(T170, X159)
IN_ORDER1_IN_AG(tree(T179, tree(T177, T164, T170), T178), T132) → U25_AG(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_AG(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_AG(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U25_AG(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U26_AG(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_AG(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U26_AG(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAA(T176, T177, T175, X160)
IN_ORDER1_IN_AG(tree(T187, tree(T177, T164, T170), T186), T132) → U28_AG(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_AG(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_AG(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U28_AG(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U29_AG(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_AG(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U29_AG(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAA(T176, T177, T175, T185)
U30_AG(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_AG(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U30_AG(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → IN_ORDER13_IN_AA(T186, X125)
IN_ORDER1_IN_AG(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_AG(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
IN_ORDER1_IN_AG(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → IN_ORDER13_IN_AA(T164, T176)
U32_AG(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_AG(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U32_AG(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U33_AG(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_AG(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U33_AG(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAG(T176, T177, T175, [])
U34_AG(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_AG(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U34_AG(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → IN_ORDER13_IN_AG(T186, T210)
IN_ORDER1_IN_AG(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_AG(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
IN_ORDER1_IN_AG(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → IN_ORDER13_IN_AA(T164, T176)
U36_AG(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_AG(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U36_AG(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U37_AG(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_AG(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U37_AG(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAA(T176, T177, T175, .(T221, T226))
U38_AG(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_AG(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U38_AG(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → IN_ORDER13_IN_AA(T186, T228)
U39_AG(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_AG(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
U39_AG(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → APP83_IN_AAAG(T226, T227, T228, T225)
APP83_IN_AAAG(.(T253, T258), T259, T260, .(T253, T257)) → U8_AAAG(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
APP83_IN_AAAG(.(T253, T258), T259, T260, .(T253, T257)) → APP83_IN_AAAG(T258, T259, T260, T257)

The TRS R consists of the following rules:

in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))

The argument filtering Pi contains the following mapping:
in_order1_in_ag(x1, x2)  =  in_order1_in_ag(x2)
[]  =  []
in_order1_out_ag(x1, x2)  =  in_order1_out_ag(x2)
U9_ag(x1, x2, x3)  =  U9_ag(x3)
in_order13_in_aa(x1, x2)  =  in_order13_in_aa
in_order13_out_aa(x1, x2)  =  in_order13_out_aa
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
.(x1, x2)  =  .(x2)
tree(x1, x2, x3)  =  tree(x2, x3)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app26_in_aaaa(x1, x2, x3, x4)  =  app26_in_aaaa
app26_out_aaaa(x1, x2, x3, x4)  =  app26_out_aaaa(x1)
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U10_ag(x1, x2, x3, x4, x5, x6)  =  U10_ag(x6)
U11_ag(x1, x2, x3, x4, x5, x6)  =  U11_ag(x6)
U12_ag(x1, x2, x3, x4, x5, x6)  =  U12_ag(x6)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6, x7)  =  U14_ag(x7)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x3, x4)
U21_ag(x1, x2, x3, x4)  =  U21_ag(x3, x4)
in_order13_in_ag(x1, x2)  =  in_order13_in_ag(x2)
in_order13_out_ag(x1, x2)  =  in_order13_out_ag(x2)
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x4, x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x4, x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x4, x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x4, x5)
app26_in_aaag(x1, x2, x3, x4)  =  app26_in_aaag(x4)
app26_out_aaag(x1, x2, x3, x4)  =  app26_out_aaag(x1, x3, x4)
U7_aaag(x1, x2, x3, x4, x5, x6)  =  U7_aaag(x5, x6)
U22_ag(x1, x2, x3, x4, x5, x6, x7)  =  U22_ag(x6, x7)
U23_ag(x1, x2, x3, x4, x5, x6, x7)  =  U23_ag(x6, x7)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x6, x7)
U25_ag(x1, x2, x3, x4, x5, x6, x7)  =  U25_ag(x6, x7)
U26_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U26_ag(x6, x8)
U27_ag(x1, x2, x3, x4, x5, x6, x7)  =  U27_ag(x6, x7)
U28_ag(x1, x2, x3, x4, x5, x6, x7)  =  U28_ag(x6, x7)
U29_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U29_ag(x6, x8)
U30_ag(x1, x2, x3, x4, x5, x6, x7)  =  U30_ag(x6, x7)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x6, x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x6, x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_ag(x6, x8)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x6, x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7)  =  U35_ag(x6, x7)
U36_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_ag(x7, x8)
U37_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U37_ag(x7, x9)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x7, x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U39_ag(x7, x9)
U40_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_ag(x7, x8)
app83_in_aaag(x1, x2, x3, x4)  =  app83_in_aaag(x4)
app83_out_aaag(x1, x2, x3, x4)  =  app83_out_aaag(x1, x3, x4)
U8_aaag(x1, x2, x3, x4, x5, x6)  =  U8_aaag(x5, x6)
IN_ORDER1_IN_AG(x1, x2)  =  IN_ORDER1_IN_AG(x2)
U9_AG(x1, x2, x3)  =  U9_AG(x3)
IN_ORDER13_IN_AA(x1, x2)  =  IN_ORDER13_IN_AA
U1_AA(x1, x2, x3, x4, x5)  =  U1_AA(x5)
U2_AA(x1, x2, x3, x4, x5)  =  U2_AA(x5)
U4_AA(x1, x2, x3, x4, x5)  =  U4_AA(x5)
U5_AA(x1, x2, x3, x4, x5, x6)  =  U5_AA(x6)
U6_AA(x1, x2, x3, x4, x5)  =  U6_AA(x5)
APP26_IN_AAAA(x1, x2, x3, x4)  =  APP26_IN_AAAA
U7_AAAA(x1, x2, x3, x4, x5, x6)  =  U7_AAAA(x6)
U3_AA(x1, x2, x3, x4, x5)  =  U3_AA(x5)
U10_AG(x1, x2, x3, x4, x5, x6)  =  U10_AG(x6)
U11_AG(x1, x2, x3, x4, x5, x6)  =  U11_AG(x6)
U12_AG(x1, x2, x3, x4, x5, x6)  =  U12_AG(x6)
U13_AG(x1, x2, x3, x4, x5, x6)  =  U13_AG(x6)
U14_AG(x1, x2, x3, x4, x5, x6, x7)  =  U14_AG(x7)
U15_AG(x1, x2, x3, x4, x5, x6)  =  U15_AG(x6)
U16_AG(x1, x2, x3, x4, x5, x6)  =  U16_AG(x6)
U17_AG(x1, x2, x3, x4, x5, x6, x7)  =  U17_AG(x7)
U18_AG(x1, x2, x3, x4, x5, x6)  =  U18_AG(x6)
U19_AG(x1, x2, x3, x4, x5, x6)  =  U19_AG(x6)
U20_AG(x1, x2, x3, x4)  =  U20_AG(x3, x4)
U21_AG(x1, x2, x3, x4)  =  U21_AG(x3, x4)
IN_ORDER13_IN_AG(x1, x2)  =  IN_ORDER13_IN_AG(x2)
U1_AG(x1, x2, x3, x4, x5)  =  U1_AG(x4, x5)
U2_AG(x1, x2, x3, x4, x5)  =  U2_AG(x4, x5)
U3_AG(x1, x2, x3, x4, x5)  =  U3_AG(x4, x5)
U4_AG(x1, x2, x3, x4, x5)  =  U4_AG(x4, x5)
U5_AG(x1, x2, x3, x4, x5, x6)  =  U5_AG(x4, x6)
U6_AG(x1, x2, x3, x4, x5)  =  U6_AG(x4, x5)
APP26_IN_AAAG(x1, x2, x3, x4)  =  APP26_IN_AAAG(x4)
U7_AAAG(x1, x2, x3, x4, x5, x6)  =  U7_AAAG(x5, x6)
U22_AG(x1, x2, x3, x4, x5, x6, x7)  =  U22_AG(x6, x7)
U23_AG(x1, x2, x3, x4, x5, x6, x7)  =  U23_AG(x6, x7)
U24_AG(x1, x2, x3, x4, x5, x6, x7)  =  U24_AG(x6, x7)
U25_AG(x1, x2, x3, x4, x5, x6, x7)  =  U25_AG(x6, x7)
U26_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U26_AG(x6, x8)
U27_AG(x1, x2, x3, x4, x5, x6, x7)  =  U27_AG(x6, x7)
U28_AG(x1, x2, x3, x4, x5, x6, x7)  =  U28_AG(x6, x7)
U29_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U29_AG(x6, x8)
U30_AG(x1, x2, x3, x4, x5, x6, x7)  =  U30_AG(x6, x7)
U31_AG(x1, x2, x3, x4, x5, x6, x7)  =  U31_AG(x6, x7)
U32_AG(x1, x2, x3, x4, x5, x6, x7)  =  U32_AG(x6, x7)
U33_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_AG(x6, x8)
U34_AG(x1, x2, x3, x4, x5, x6, x7)  =  U34_AG(x6, x7)
U35_AG(x1, x2, x3, x4, x5, x6, x7)  =  U35_AG(x6, x7)
U36_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_AG(x7, x8)
U37_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U37_AG(x7, x9)
U38_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_AG(x7, x8)
U39_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U39_AG(x7, x9)
U40_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_AG(x7, x8)
APP83_IN_AAAG(x1, x2, x3, x4)  =  APP83_IN_AAAG(x4)
U8_AAAG(x1, x2, x3, x4, x5, x6)  =  U8_AAAG(x5, x6)

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

(6) Obligation:

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

IN_ORDER1_IN_AG(tree(T13, void, T12), []) → U9_AG(T13, T12, in_order13_in_aa(T12, X10))
IN_ORDER1_IN_AG(tree(T13, void, T12), []) → IN_ORDER13_IN_AA(T12, X10)
IN_ORDER13_IN_AA(tree(T27, T25, T26), X33) → U1_AA(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
IN_ORDER13_IN_AA(tree(T27, T25, T26), X33) → IN_ORDER13_IN_AA(T25, X31)
IN_ORDER13_IN_AA(tree(T30, T25, T29), X33) → U2_AA(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
IN_ORDER13_IN_AA(tree(T33, T25, T29), X33) → U4_AA(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_AA(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_AA(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U4_AA(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → IN_ORDER13_IN_AA(T29, T31)
U5_AA(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_AA(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
U5_AA(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → APP26_IN_AAAA(T32, T33, T31, X33)
APP26_IN_AAAA(.(T56, T60), T61, T62, .(T56, X60)) → U7_AAAA(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
APP26_IN_AAAA(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAA(T60, T61, T62, X60)
U2_AA(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_AA(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U2_AA(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → IN_ORDER13_IN_AA(T29, X32)
IN_ORDER1_IN_AG(tree(T86, tree(T84, T82, T83), T85), []) → U10_AG(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
IN_ORDER1_IN_AG(tree(T86, tree(T84, T82, T83), T85), []) → IN_ORDER13_IN_AA(T82, X94)
IN_ORDER1_IN_AG(tree(T91, tree(T89, T82, T88), T90), []) → U11_AG(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_AG(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_AG(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U11_AG(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → IN_ORDER13_IN_AA(T88, X95)
IN_ORDER1_IN_AG(tree(T96, tree(T94, T82, T88), T95), []) → U13_AG(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_AG(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_AG(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U13_AG(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → IN_ORDER13_IN_AA(T88, T92)
U14_AG(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_AG(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U14_AG(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → APP26_IN_AAAA(T93, T94, T92, X96)
IN_ORDER1_IN_AG(tree(T103, tree(T94, T82, T88), T102), []) → U16_AG(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_AG(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_AG(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U16_AG(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → IN_ORDER13_IN_AA(T88, T92)
U17_AG(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_AG(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U17_AG(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → APP26_IN_AAAA(T93, T94, T92, T101)
U18_AG(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_AG(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U18_AG(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → IN_ORDER13_IN_AA(T102, X10)
IN_ORDER1_IN_AG(tree(T137, void, T136), T132) → U20_AG(T137, T136, T132, in_order13_in_aa(T136, X125))
IN_ORDER1_IN_AG(tree(T137, void, T136), T132) → IN_ORDER13_IN_AA(T136, X125)
IN_ORDER1_IN_AG(tree(T153, void, T136), .(T153, T154)) → U21_AG(T153, T136, T154, in_order13_in_ag(T136, T154))
IN_ORDER1_IN_AG(tree(T153, void, T136), .(T153, T154)) → IN_ORDER13_IN_AG(T136, T154)
IN_ORDER13_IN_AG(tree(T27, T25, T26), X33) → U1_AG(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
IN_ORDER13_IN_AG(tree(T27, T25, T26), X33) → IN_ORDER13_IN_AA(T25, X31)
IN_ORDER13_IN_AG(tree(T30, T25, T29), X33) → U2_AG(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_AG(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_AG(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U2_AG(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → IN_ORDER13_IN_AA(T29, X32)
IN_ORDER13_IN_AG(tree(T33, T25, T29), X33) → U4_AG(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_AG(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_AG(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U4_AG(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → IN_ORDER13_IN_AA(T29, T31)
U5_AG(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_AG(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
U5_AG(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → APP26_IN_AAAG(T32, T33, T31, X33)
APP26_IN_AAAG(.(T56, T60), T61, T62, .(T56, X60)) → U7_AAAG(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
APP26_IN_AAAG(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAG(T60, T61, T62, X60)
IN_ORDER1_IN_AG(tree(T168, tree(T166, T164, T165), T167), T132) → U22_AG(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
IN_ORDER1_IN_AG(tree(T168, tree(T166, T164, T165), T167), T132) → IN_ORDER13_IN_AA(T164, X158)
IN_ORDER1_IN_AG(tree(T173, tree(T171, T164, T170), T172), T132) → U23_AG(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_AG(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_AG(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U23_AG(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → IN_ORDER13_IN_AA(T170, X159)
IN_ORDER1_IN_AG(tree(T179, tree(T177, T164, T170), T178), T132) → U25_AG(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_AG(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_AG(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U25_AG(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U26_AG(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_AG(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U26_AG(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAA(T176, T177, T175, X160)
IN_ORDER1_IN_AG(tree(T187, tree(T177, T164, T170), T186), T132) → U28_AG(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_AG(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_AG(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U28_AG(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U29_AG(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_AG(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U29_AG(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAA(T176, T177, T175, T185)
U30_AG(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_AG(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U30_AG(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → IN_ORDER13_IN_AA(T186, X125)
IN_ORDER1_IN_AG(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_AG(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
IN_ORDER1_IN_AG(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → IN_ORDER13_IN_AA(T164, T176)
U32_AG(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_AG(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U32_AG(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U33_AG(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_AG(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U33_AG(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAG(T176, T177, T175, [])
U34_AG(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_AG(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U34_AG(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → IN_ORDER13_IN_AG(T186, T210)
IN_ORDER1_IN_AG(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_AG(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
IN_ORDER1_IN_AG(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → IN_ORDER13_IN_AA(T164, T176)
U36_AG(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_AG(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U36_AG(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U37_AG(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_AG(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U37_AG(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAA(T176, T177, T175, .(T221, T226))
U38_AG(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_AG(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U38_AG(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → IN_ORDER13_IN_AA(T186, T228)
U39_AG(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_AG(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
U39_AG(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → APP83_IN_AAAG(T226, T227, T228, T225)
APP83_IN_AAAG(.(T253, T258), T259, T260, .(T253, T257)) → U8_AAAG(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
APP83_IN_AAAG(.(T253, T258), T259, T260, .(T253, T257)) → APP83_IN_AAAG(T258, T259, T260, T257)

The TRS R consists of the following rules:

in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))

The argument filtering Pi contains the following mapping:
in_order1_in_ag(x1, x2)  =  in_order1_in_ag(x2)
[]  =  []
in_order1_out_ag(x1, x2)  =  in_order1_out_ag(x2)
U9_ag(x1, x2, x3)  =  U9_ag(x3)
in_order13_in_aa(x1, x2)  =  in_order13_in_aa
in_order13_out_aa(x1, x2)  =  in_order13_out_aa
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
.(x1, x2)  =  .(x2)
tree(x1, x2, x3)  =  tree(x2, x3)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app26_in_aaaa(x1, x2, x3, x4)  =  app26_in_aaaa
app26_out_aaaa(x1, x2, x3, x4)  =  app26_out_aaaa(x1)
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U10_ag(x1, x2, x3, x4, x5, x6)  =  U10_ag(x6)
U11_ag(x1, x2, x3, x4, x5, x6)  =  U11_ag(x6)
U12_ag(x1, x2, x3, x4, x5, x6)  =  U12_ag(x6)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6, x7)  =  U14_ag(x7)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x3, x4)
U21_ag(x1, x2, x3, x4)  =  U21_ag(x3, x4)
in_order13_in_ag(x1, x2)  =  in_order13_in_ag(x2)
in_order13_out_ag(x1, x2)  =  in_order13_out_ag(x2)
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x4, x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x4, x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x4, x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x4, x5)
app26_in_aaag(x1, x2, x3, x4)  =  app26_in_aaag(x4)
app26_out_aaag(x1, x2, x3, x4)  =  app26_out_aaag(x1, x3, x4)
U7_aaag(x1, x2, x3, x4, x5, x6)  =  U7_aaag(x5, x6)
U22_ag(x1, x2, x3, x4, x5, x6, x7)  =  U22_ag(x6, x7)
U23_ag(x1, x2, x3, x4, x5, x6, x7)  =  U23_ag(x6, x7)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x6, x7)
U25_ag(x1, x2, x3, x4, x5, x6, x7)  =  U25_ag(x6, x7)
U26_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U26_ag(x6, x8)
U27_ag(x1, x2, x3, x4, x5, x6, x7)  =  U27_ag(x6, x7)
U28_ag(x1, x2, x3, x4, x5, x6, x7)  =  U28_ag(x6, x7)
U29_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U29_ag(x6, x8)
U30_ag(x1, x2, x3, x4, x5, x6, x7)  =  U30_ag(x6, x7)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x6, x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x6, x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_ag(x6, x8)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x6, x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7)  =  U35_ag(x6, x7)
U36_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_ag(x7, x8)
U37_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U37_ag(x7, x9)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x7, x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U39_ag(x7, x9)
U40_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_ag(x7, x8)
app83_in_aaag(x1, x2, x3, x4)  =  app83_in_aaag(x4)
app83_out_aaag(x1, x2, x3, x4)  =  app83_out_aaag(x1, x3, x4)
U8_aaag(x1, x2, x3, x4, x5, x6)  =  U8_aaag(x5, x6)
IN_ORDER1_IN_AG(x1, x2)  =  IN_ORDER1_IN_AG(x2)
U9_AG(x1, x2, x3)  =  U9_AG(x3)
IN_ORDER13_IN_AA(x1, x2)  =  IN_ORDER13_IN_AA
U1_AA(x1, x2, x3, x4, x5)  =  U1_AA(x5)
U2_AA(x1, x2, x3, x4, x5)  =  U2_AA(x5)
U4_AA(x1, x2, x3, x4, x5)  =  U4_AA(x5)
U5_AA(x1, x2, x3, x4, x5, x6)  =  U5_AA(x6)
U6_AA(x1, x2, x3, x4, x5)  =  U6_AA(x5)
APP26_IN_AAAA(x1, x2, x3, x4)  =  APP26_IN_AAAA
U7_AAAA(x1, x2, x3, x4, x5, x6)  =  U7_AAAA(x6)
U3_AA(x1, x2, x3, x4, x5)  =  U3_AA(x5)
U10_AG(x1, x2, x3, x4, x5, x6)  =  U10_AG(x6)
U11_AG(x1, x2, x3, x4, x5, x6)  =  U11_AG(x6)
U12_AG(x1, x2, x3, x4, x5, x6)  =  U12_AG(x6)
U13_AG(x1, x2, x3, x4, x5, x6)  =  U13_AG(x6)
U14_AG(x1, x2, x3, x4, x5, x6, x7)  =  U14_AG(x7)
U15_AG(x1, x2, x3, x4, x5, x6)  =  U15_AG(x6)
U16_AG(x1, x2, x3, x4, x5, x6)  =  U16_AG(x6)
U17_AG(x1, x2, x3, x4, x5, x6, x7)  =  U17_AG(x7)
U18_AG(x1, x2, x3, x4, x5, x6)  =  U18_AG(x6)
U19_AG(x1, x2, x3, x4, x5, x6)  =  U19_AG(x6)
U20_AG(x1, x2, x3, x4)  =  U20_AG(x3, x4)
U21_AG(x1, x2, x3, x4)  =  U21_AG(x3, x4)
IN_ORDER13_IN_AG(x1, x2)  =  IN_ORDER13_IN_AG(x2)
U1_AG(x1, x2, x3, x4, x5)  =  U1_AG(x4, x5)
U2_AG(x1, x2, x3, x4, x5)  =  U2_AG(x4, x5)
U3_AG(x1, x2, x3, x4, x5)  =  U3_AG(x4, x5)
U4_AG(x1, x2, x3, x4, x5)  =  U4_AG(x4, x5)
U5_AG(x1, x2, x3, x4, x5, x6)  =  U5_AG(x4, x6)
U6_AG(x1, x2, x3, x4, x5)  =  U6_AG(x4, x5)
APP26_IN_AAAG(x1, x2, x3, x4)  =  APP26_IN_AAAG(x4)
U7_AAAG(x1, x2, x3, x4, x5, x6)  =  U7_AAAG(x5, x6)
U22_AG(x1, x2, x3, x4, x5, x6, x7)  =  U22_AG(x6, x7)
U23_AG(x1, x2, x3, x4, x5, x6, x7)  =  U23_AG(x6, x7)
U24_AG(x1, x2, x3, x4, x5, x6, x7)  =  U24_AG(x6, x7)
U25_AG(x1, x2, x3, x4, x5, x6, x7)  =  U25_AG(x6, x7)
U26_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U26_AG(x6, x8)
U27_AG(x1, x2, x3, x4, x5, x6, x7)  =  U27_AG(x6, x7)
U28_AG(x1, x2, x3, x4, x5, x6, x7)  =  U28_AG(x6, x7)
U29_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U29_AG(x6, x8)
U30_AG(x1, x2, x3, x4, x5, x6, x7)  =  U30_AG(x6, x7)
U31_AG(x1, x2, x3, x4, x5, x6, x7)  =  U31_AG(x6, x7)
U32_AG(x1, x2, x3, x4, x5, x6, x7)  =  U32_AG(x6, x7)
U33_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_AG(x6, x8)
U34_AG(x1, x2, x3, x4, x5, x6, x7)  =  U34_AG(x6, x7)
U35_AG(x1, x2, x3, x4, x5, x6, x7)  =  U35_AG(x6, x7)
U36_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_AG(x7, x8)
U37_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U37_AG(x7, x9)
U38_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_AG(x7, x8)
U39_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U39_AG(x7, x9)
U40_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_AG(x7, x8)
APP83_IN_AAAG(x1, x2, x3, x4)  =  APP83_IN_AAAG(x4)
U8_AAAG(x1, x2, x3, x4, x5, x6)  =  U8_AAAG(x5, x6)

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

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 4 SCCs with 76 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

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

APP83_IN_AAAG(.(T253, T258), T259, T260, .(T253, T257)) → APP83_IN_AAAG(T258, T259, T260, T257)

The TRS R consists of the following rules:

in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))

The argument filtering Pi contains the following mapping:
in_order1_in_ag(x1, x2)  =  in_order1_in_ag(x2)
[]  =  []
in_order1_out_ag(x1, x2)  =  in_order1_out_ag(x2)
U9_ag(x1, x2, x3)  =  U9_ag(x3)
in_order13_in_aa(x1, x2)  =  in_order13_in_aa
in_order13_out_aa(x1, x2)  =  in_order13_out_aa
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
.(x1, x2)  =  .(x2)
tree(x1, x2, x3)  =  tree(x2, x3)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app26_in_aaaa(x1, x2, x3, x4)  =  app26_in_aaaa
app26_out_aaaa(x1, x2, x3, x4)  =  app26_out_aaaa(x1)
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U10_ag(x1, x2, x3, x4, x5, x6)  =  U10_ag(x6)
U11_ag(x1, x2, x3, x4, x5, x6)  =  U11_ag(x6)
U12_ag(x1, x2, x3, x4, x5, x6)  =  U12_ag(x6)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6, x7)  =  U14_ag(x7)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x3, x4)
U21_ag(x1, x2, x3, x4)  =  U21_ag(x3, x4)
in_order13_in_ag(x1, x2)  =  in_order13_in_ag(x2)
in_order13_out_ag(x1, x2)  =  in_order13_out_ag(x2)
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x4, x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x4, x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x4, x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x4, x5)
app26_in_aaag(x1, x2, x3, x4)  =  app26_in_aaag(x4)
app26_out_aaag(x1, x2, x3, x4)  =  app26_out_aaag(x1, x3, x4)
U7_aaag(x1, x2, x3, x4, x5, x6)  =  U7_aaag(x5, x6)
U22_ag(x1, x2, x3, x4, x5, x6, x7)  =  U22_ag(x6, x7)
U23_ag(x1, x2, x3, x4, x5, x6, x7)  =  U23_ag(x6, x7)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x6, x7)
U25_ag(x1, x2, x3, x4, x5, x6, x7)  =  U25_ag(x6, x7)
U26_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U26_ag(x6, x8)
U27_ag(x1, x2, x3, x4, x5, x6, x7)  =  U27_ag(x6, x7)
U28_ag(x1, x2, x3, x4, x5, x6, x7)  =  U28_ag(x6, x7)
U29_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U29_ag(x6, x8)
U30_ag(x1, x2, x3, x4, x5, x6, x7)  =  U30_ag(x6, x7)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x6, x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x6, x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_ag(x6, x8)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x6, x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7)  =  U35_ag(x6, x7)
U36_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_ag(x7, x8)
U37_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U37_ag(x7, x9)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x7, x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U39_ag(x7, x9)
U40_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_ag(x7, x8)
app83_in_aaag(x1, x2, x3, x4)  =  app83_in_aaag(x4)
app83_out_aaag(x1, x2, x3, x4)  =  app83_out_aaag(x1, x3, x4)
U8_aaag(x1, x2, x3, x4, x5, x6)  =  U8_aaag(x5, x6)
APP83_IN_AAAG(x1, x2, x3, x4)  =  APP83_IN_AAAG(x4)

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:

APP83_IN_AAAG(.(T253, T258), T259, T260, .(T253, T257)) → APP83_IN_AAAG(T258, T259, T260, T257)

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

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:

APP83_IN_AAAG(.(T257)) → APP83_IN_AAAG(T257)

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:

  • APP83_IN_AAAG(.(T257)) → APP83_IN_AAAG(T257)
    The graph contains the following edges 1 > 1

(15) YES

(16) Obligation:

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

APP26_IN_AAAG(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAG(T60, T61, T62, X60)

The TRS R consists of the following rules:

in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))

The argument filtering Pi contains the following mapping:
in_order1_in_ag(x1, x2)  =  in_order1_in_ag(x2)
[]  =  []
in_order1_out_ag(x1, x2)  =  in_order1_out_ag(x2)
U9_ag(x1, x2, x3)  =  U9_ag(x3)
in_order13_in_aa(x1, x2)  =  in_order13_in_aa
in_order13_out_aa(x1, x2)  =  in_order13_out_aa
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
.(x1, x2)  =  .(x2)
tree(x1, x2, x3)  =  tree(x2, x3)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app26_in_aaaa(x1, x2, x3, x4)  =  app26_in_aaaa
app26_out_aaaa(x1, x2, x3, x4)  =  app26_out_aaaa(x1)
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U10_ag(x1, x2, x3, x4, x5, x6)  =  U10_ag(x6)
U11_ag(x1, x2, x3, x4, x5, x6)  =  U11_ag(x6)
U12_ag(x1, x2, x3, x4, x5, x6)  =  U12_ag(x6)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6, x7)  =  U14_ag(x7)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x3, x4)
U21_ag(x1, x2, x3, x4)  =  U21_ag(x3, x4)
in_order13_in_ag(x1, x2)  =  in_order13_in_ag(x2)
in_order13_out_ag(x1, x2)  =  in_order13_out_ag(x2)
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x4, x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x4, x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x4, x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x4, x5)
app26_in_aaag(x1, x2, x3, x4)  =  app26_in_aaag(x4)
app26_out_aaag(x1, x2, x3, x4)  =  app26_out_aaag(x1, x3, x4)
U7_aaag(x1, x2, x3, x4, x5, x6)  =  U7_aaag(x5, x6)
U22_ag(x1, x2, x3, x4, x5, x6, x7)  =  U22_ag(x6, x7)
U23_ag(x1, x2, x3, x4, x5, x6, x7)  =  U23_ag(x6, x7)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x6, x7)
U25_ag(x1, x2, x3, x4, x5, x6, x7)  =  U25_ag(x6, x7)
U26_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U26_ag(x6, x8)
U27_ag(x1, x2, x3, x4, x5, x6, x7)  =  U27_ag(x6, x7)
U28_ag(x1, x2, x3, x4, x5, x6, x7)  =  U28_ag(x6, x7)
U29_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U29_ag(x6, x8)
U30_ag(x1, x2, x3, x4, x5, x6, x7)  =  U30_ag(x6, x7)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x6, x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x6, x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_ag(x6, x8)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x6, x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7)  =  U35_ag(x6, x7)
U36_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_ag(x7, x8)
U37_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U37_ag(x7, x9)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x7, x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U39_ag(x7, x9)
U40_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_ag(x7, x8)
app83_in_aaag(x1, x2, x3, x4)  =  app83_in_aaag(x4)
app83_out_aaag(x1, x2, x3, x4)  =  app83_out_aaag(x1, x3, x4)
U8_aaag(x1, x2, x3, x4, x5, x6)  =  U8_aaag(x5, x6)
APP26_IN_AAAG(x1, x2, x3, x4)  =  APP26_IN_AAAG(x4)

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:

APP26_IN_AAAG(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAG(T60, T61, T62, X60)

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

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:

APP26_IN_AAAG(.(X60)) → APP26_IN_AAAG(X60)

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:

  • APP26_IN_AAAG(.(X60)) → APP26_IN_AAAG(X60)
    The graph contains the following edges 1 > 1

(22) YES

(23) Obligation:

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

APP26_IN_AAAA(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAA(T60, T61, T62, X60)

The TRS R consists of the following rules:

in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))

The argument filtering Pi contains the following mapping:
in_order1_in_ag(x1, x2)  =  in_order1_in_ag(x2)
[]  =  []
in_order1_out_ag(x1, x2)  =  in_order1_out_ag(x2)
U9_ag(x1, x2, x3)  =  U9_ag(x3)
in_order13_in_aa(x1, x2)  =  in_order13_in_aa
in_order13_out_aa(x1, x2)  =  in_order13_out_aa
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
.(x1, x2)  =  .(x2)
tree(x1, x2, x3)  =  tree(x2, x3)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app26_in_aaaa(x1, x2, x3, x4)  =  app26_in_aaaa
app26_out_aaaa(x1, x2, x3, x4)  =  app26_out_aaaa(x1)
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U10_ag(x1, x2, x3, x4, x5, x6)  =  U10_ag(x6)
U11_ag(x1, x2, x3, x4, x5, x6)  =  U11_ag(x6)
U12_ag(x1, x2, x3, x4, x5, x6)  =  U12_ag(x6)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6, x7)  =  U14_ag(x7)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x3, x4)
U21_ag(x1, x2, x3, x4)  =  U21_ag(x3, x4)
in_order13_in_ag(x1, x2)  =  in_order13_in_ag(x2)
in_order13_out_ag(x1, x2)  =  in_order13_out_ag(x2)
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x4, x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x4, x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x4, x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x4, x5)
app26_in_aaag(x1, x2, x3, x4)  =  app26_in_aaag(x4)
app26_out_aaag(x1, x2, x3, x4)  =  app26_out_aaag(x1, x3, x4)
U7_aaag(x1, x2, x3, x4, x5, x6)  =  U7_aaag(x5, x6)
U22_ag(x1, x2, x3, x4, x5, x6, x7)  =  U22_ag(x6, x7)
U23_ag(x1, x2, x3, x4, x5, x6, x7)  =  U23_ag(x6, x7)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x6, x7)
U25_ag(x1, x2, x3, x4, x5, x6, x7)  =  U25_ag(x6, x7)
U26_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U26_ag(x6, x8)
U27_ag(x1, x2, x3, x4, x5, x6, x7)  =  U27_ag(x6, x7)
U28_ag(x1, x2, x3, x4, x5, x6, x7)  =  U28_ag(x6, x7)
U29_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U29_ag(x6, x8)
U30_ag(x1, x2, x3, x4, x5, x6, x7)  =  U30_ag(x6, x7)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x6, x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x6, x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_ag(x6, x8)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x6, x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7)  =  U35_ag(x6, x7)
U36_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_ag(x7, x8)
U37_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U37_ag(x7, x9)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x7, x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U39_ag(x7, x9)
U40_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_ag(x7, x8)
app83_in_aaag(x1, x2, x3, x4)  =  app83_in_aaag(x4)
app83_out_aaag(x1, x2, x3, x4)  =  app83_out_aaag(x1, x3, x4)
U8_aaag(x1, x2, x3, x4, x5, x6)  =  U8_aaag(x5, x6)
APP26_IN_AAAA(x1, x2, x3, x4)  =  APP26_IN_AAAA

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:

APP26_IN_AAAA(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAA(T60, T61, T62, X60)

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

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

(26) PiDPToQDPProof (SOUND transformation)

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

(27) Obligation:

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

APP26_IN_AAAAAPP26_IN_AAAA

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

(28) NonTerminationProof (EQUIVALENT transformation)

We used the non-termination processor [FROCOS05] to show that the DP problem is infinite.
Found a loop by semiunifying a rule from P directly.

s = APP26_IN_AAAA evaluates to t =APP26_IN_AAAA

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




Rewriting sequence

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



(29) NO

(30) Obligation:

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

IN_ORDER13_IN_AA(tree(T30, T25, T29), X33) → U2_AA(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_AA(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → IN_ORDER13_IN_AA(T29, X32)
IN_ORDER13_IN_AA(tree(T27, T25, T26), X33) → IN_ORDER13_IN_AA(T25, X31)
IN_ORDER13_IN_AA(tree(T33, T25, T29), X33) → U4_AA(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_AA(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → IN_ORDER13_IN_AA(T29, T31)

The TRS R consists of the following rules:

in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))

The argument filtering Pi contains the following mapping:
in_order1_in_ag(x1, x2)  =  in_order1_in_ag(x2)
[]  =  []
in_order1_out_ag(x1, x2)  =  in_order1_out_ag(x2)
U9_ag(x1, x2, x3)  =  U9_ag(x3)
in_order13_in_aa(x1, x2)  =  in_order13_in_aa
in_order13_out_aa(x1, x2)  =  in_order13_out_aa
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
.(x1, x2)  =  .(x2)
tree(x1, x2, x3)  =  tree(x2, x3)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app26_in_aaaa(x1, x2, x3, x4)  =  app26_in_aaaa
app26_out_aaaa(x1, x2, x3, x4)  =  app26_out_aaaa(x1)
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U10_ag(x1, x2, x3, x4, x5, x6)  =  U10_ag(x6)
U11_ag(x1, x2, x3, x4, x5, x6)  =  U11_ag(x6)
U12_ag(x1, x2, x3, x4, x5, x6)  =  U12_ag(x6)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6, x7)  =  U14_ag(x7)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x3, x4)
U21_ag(x1, x2, x3, x4)  =  U21_ag(x3, x4)
in_order13_in_ag(x1, x2)  =  in_order13_in_ag(x2)
in_order13_out_ag(x1, x2)  =  in_order13_out_ag(x2)
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x4, x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x4, x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x4, x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x4, x5)
app26_in_aaag(x1, x2, x3, x4)  =  app26_in_aaag(x4)
app26_out_aaag(x1, x2, x3, x4)  =  app26_out_aaag(x1, x3, x4)
U7_aaag(x1, x2, x3, x4, x5, x6)  =  U7_aaag(x5, x6)
U22_ag(x1, x2, x3, x4, x5, x6, x7)  =  U22_ag(x6, x7)
U23_ag(x1, x2, x3, x4, x5, x6, x7)  =  U23_ag(x6, x7)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x6, x7)
U25_ag(x1, x2, x3, x4, x5, x6, x7)  =  U25_ag(x6, x7)
U26_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U26_ag(x6, x8)
U27_ag(x1, x2, x3, x4, x5, x6, x7)  =  U27_ag(x6, x7)
U28_ag(x1, x2, x3, x4, x5, x6, x7)  =  U28_ag(x6, x7)
U29_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U29_ag(x6, x8)
U30_ag(x1, x2, x3, x4, x5, x6, x7)  =  U30_ag(x6, x7)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x6, x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x6, x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_ag(x6, x8)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x6, x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7)  =  U35_ag(x6, x7)
U36_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_ag(x7, x8)
U37_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U37_ag(x7, x9)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x7, x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U39_ag(x7, x9)
U40_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_ag(x7, x8)
app83_in_aaag(x1, x2, x3, x4)  =  app83_in_aaag(x4)
app83_out_aaag(x1, x2, x3, x4)  =  app83_out_aaag(x1, x3, x4)
U8_aaag(x1, x2, x3, x4, x5, x6)  =  U8_aaag(x5, x6)
IN_ORDER13_IN_AA(x1, x2)  =  IN_ORDER13_IN_AA
U2_AA(x1, x2, x3, x4, x5)  =  U2_AA(x5)
U4_AA(x1, x2, x3, x4, x5)  =  U4_AA(x5)

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:

IN_ORDER13_IN_AA(tree(T30, T25, T29), X33) → U2_AA(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_AA(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → IN_ORDER13_IN_AA(T29, X32)
IN_ORDER13_IN_AA(tree(T27, T25, T26), X33) → IN_ORDER13_IN_AA(T25, X31)
IN_ORDER13_IN_AA(tree(T33, T25, T29), X33) → U4_AA(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_AA(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → IN_ORDER13_IN_AA(T29, T31)

The TRS R consists of the following rules:

in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))

The argument filtering Pi contains the following mapping:
[]  =  []
in_order13_in_aa(x1, x2)  =  in_order13_in_aa
in_order13_out_aa(x1, x2)  =  in_order13_out_aa
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
.(x1, x2)  =  .(x2)
tree(x1, x2, x3)  =  tree(x2, x3)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app26_in_aaaa(x1, x2, x3, x4)  =  app26_in_aaaa
app26_out_aaaa(x1, x2, x3, x4)  =  app26_out_aaaa(x1)
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
IN_ORDER13_IN_AA(x1, x2)  =  IN_ORDER13_IN_AA
U2_AA(x1, x2, x3, x4, x5)  =  U2_AA(x5)
U4_AA(x1, x2, x3, x4, x5)  =  U4_AA(x5)

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

(33) PiDPToQDPProof (SOUND transformation)

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

(34) Obligation:

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

IN_ORDER13_IN_AAU2_AA(in_order13_in_aa)
U2_AA(in_order13_out_aa) → IN_ORDER13_IN_AA
IN_ORDER13_IN_AAIN_ORDER13_IN_AA
IN_ORDER13_IN_AAU4_AA(in_order13_in_aa)
U4_AA(in_order13_out_aa) → IN_ORDER13_IN_AA

The TRS R consists of the following rules:

in_order13_in_aain_order13_out_aa
in_order13_in_aaU1_aa(in_order13_in_aa)
in_order13_in_aaU2_aa(in_order13_in_aa)
in_order13_in_aaU4_aa(in_order13_in_aa)
U1_aa(in_order13_out_aa) → in_order13_out_aa
U2_aa(in_order13_out_aa) → U3_aa(in_order13_in_aa)
U4_aa(in_order13_out_aa) → U5_aa(in_order13_in_aa)
U3_aa(in_order13_out_aa) → in_order13_out_aa
U5_aa(in_order13_out_aa) → U6_aa(app26_in_aaaa)
U6_aa(app26_out_aaaa(T32)) → in_order13_out_aa
app26_in_aaaaapp26_out_aaaa([])
app26_in_aaaaU7_aaaa(app26_in_aaaa)
U7_aaaa(app26_out_aaaa(T60)) → app26_out_aaaa(.(T60))

The set Q consists of the following terms:

in_order13_in_aa
U1_aa(x0)
U2_aa(x0)
U4_aa(x0)
U3_aa(x0)
U5_aa(x0)
U6_aa(x0)
app26_in_aaaa
U7_aaaa(x0)

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

(35) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule IN_ORDER13_IN_AAU2_AA(in_order13_in_aa) at position [0] we obtained the following new rules [LPAR04]:

IN_ORDER13_IN_AAU2_AA(in_order13_out_aa)
IN_ORDER13_IN_AAU2_AA(U1_aa(in_order13_in_aa))
IN_ORDER13_IN_AAU2_AA(U2_aa(in_order13_in_aa))
IN_ORDER13_IN_AAU2_AA(U4_aa(in_order13_in_aa))

(36) Obligation:

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

U2_AA(in_order13_out_aa) → IN_ORDER13_IN_AA
IN_ORDER13_IN_AAIN_ORDER13_IN_AA
IN_ORDER13_IN_AAU4_AA(in_order13_in_aa)
U4_AA(in_order13_out_aa) → IN_ORDER13_IN_AA
IN_ORDER13_IN_AAU2_AA(in_order13_out_aa)
IN_ORDER13_IN_AAU2_AA(U1_aa(in_order13_in_aa))
IN_ORDER13_IN_AAU2_AA(U2_aa(in_order13_in_aa))
IN_ORDER13_IN_AAU2_AA(U4_aa(in_order13_in_aa))

The TRS R consists of the following rules:

in_order13_in_aain_order13_out_aa
in_order13_in_aaU1_aa(in_order13_in_aa)
in_order13_in_aaU2_aa(in_order13_in_aa)
in_order13_in_aaU4_aa(in_order13_in_aa)
U1_aa(in_order13_out_aa) → in_order13_out_aa
U2_aa(in_order13_out_aa) → U3_aa(in_order13_in_aa)
U4_aa(in_order13_out_aa) → U5_aa(in_order13_in_aa)
U3_aa(in_order13_out_aa) → in_order13_out_aa
U5_aa(in_order13_out_aa) → U6_aa(app26_in_aaaa)
U6_aa(app26_out_aaaa(T32)) → in_order13_out_aa
app26_in_aaaaapp26_out_aaaa([])
app26_in_aaaaU7_aaaa(app26_in_aaaa)
U7_aaaa(app26_out_aaaa(T60)) → app26_out_aaaa(.(T60))

The set Q consists of the following terms:

in_order13_in_aa
U1_aa(x0)
U2_aa(x0)
U4_aa(x0)
U3_aa(x0)
U5_aa(x0)
U6_aa(x0)
app26_in_aaaa
U7_aaaa(x0)

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

(37) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule IN_ORDER13_IN_AAU4_AA(in_order13_in_aa) at position [0] we obtained the following new rules [LPAR04]:

IN_ORDER13_IN_AAU4_AA(in_order13_out_aa)
IN_ORDER13_IN_AAU4_AA(U1_aa(in_order13_in_aa))
IN_ORDER13_IN_AAU4_AA(U2_aa(in_order13_in_aa))
IN_ORDER13_IN_AAU4_AA(U4_aa(in_order13_in_aa))

(38) Obligation:

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

U2_AA(in_order13_out_aa) → IN_ORDER13_IN_AA
IN_ORDER13_IN_AAIN_ORDER13_IN_AA
U4_AA(in_order13_out_aa) → IN_ORDER13_IN_AA
IN_ORDER13_IN_AAU2_AA(in_order13_out_aa)
IN_ORDER13_IN_AAU2_AA(U1_aa(in_order13_in_aa))
IN_ORDER13_IN_AAU2_AA(U2_aa(in_order13_in_aa))
IN_ORDER13_IN_AAU2_AA(U4_aa(in_order13_in_aa))
IN_ORDER13_IN_AAU4_AA(in_order13_out_aa)
IN_ORDER13_IN_AAU4_AA(U1_aa(in_order13_in_aa))
IN_ORDER13_IN_AAU4_AA(U2_aa(in_order13_in_aa))
IN_ORDER13_IN_AAU4_AA(U4_aa(in_order13_in_aa))

The TRS R consists of the following rules:

in_order13_in_aain_order13_out_aa
in_order13_in_aaU1_aa(in_order13_in_aa)
in_order13_in_aaU2_aa(in_order13_in_aa)
in_order13_in_aaU4_aa(in_order13_in_aa)
U1_aa(in_order13_out_aa) → in_order13_out_aa
U2_aa(in_order13_out_aa) → U3_aa(in_order13_in_aa)
U4_aa(in_order13_out_aa) → U5_aa(in_order13_in_aa)
U3_aa(in_order13_out_aa) → in_order13_out_aa
U5_aa(in_order13_out_aa) → U6_aa(app26_in_aaaa)
U6_aa(app26_out_aaaa(T32)) → in_order13_out_aa
app26_in_aaaaapp26_out_aaaa([])
app26_in_aaaaU7_aaaa(app26_in_aaaa)
U7_aaaa(app26_out_aaaa(T60)) → app26_out_aaaa(.(T60))

The set Q consists of the following terms:

in_order13_in_aa
U1_aa(x0)
U2_aa(x0)
U4_aa(x0)
U3_aa(x0)
U5_aa(x0)
U6_aa(x0)
app26_in_aaaa
U7_aaaa(x0)

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

(39) NonTerminationProof (EQUIVALENT transformation)

We used the non-termination processor [FROCOS05] to show that the DP problem is infinite.
Found a loop by semiunifying a rule from P directly.

s = IN_ORDER13_IN_AA evaluates to t =IN_ORDER13_IN_AA

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




Rewriting sequence

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



(40) NO

(41) PrologToPiTRSProof (SOUND transformation)

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

in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))

The argument filtering Pi contains the following mapping:
in_order1_in_ag(x1, x2)  =  in_order1_in_ag(x2)
[]  =  []
in_order1_out_ag(x1, x2)  =  in_order1_out_ag
U9_ag(x1, x2, x3)  =  U9_ag(x3)
in_order13_in_aa(x1, x2)  =  in_order13_in_aa
in_order13_out_aa(x1, x2)  =  in_order13_out_aa
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
.(x1, x2)  =  .(x2)
tree(x1, x2, x3)  =  tree(x2, x3)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app26_in_aaaa(x1, x2, x3, x4)  =  app26_in_aaaa
app26_out_aaaa(x1, x2, x3, x4)  =  app26_out_aaaa(x1)
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U10_ag(x1, x2, x3, x4, x5, x6)  =  U10_ag(x6)
U11_ag(x1, x2, x3, x4, x5, x6)  =  U11_ag(x6)
U12_ag(x1, x2, x3, x4, x5, x6)  =  U12_ag(x6)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6, x7)  =  U14_ag(x7)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x4)
U21_ag(x1, x2, x3, x4)  =  U21_ag(x4)
in_order13_in_ag(x1, x2)  =  in_order13_in_ag(x2)
in_order13_out_ag(x1, x2)  =  in_order13_out_ag
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x5)
app26_in_aaag(x1, x2, x3, x4)  =  app26_in_aaag(x4)
app26_out_aaag(x1, x2, x3, x4)  =  app26_out_aaag(x1, x3)
U7_aaag(x1, x2, x3, x4, x5, x6)  =  U7_aaag(x6)
U22_ag(x1, x2, x3, x4, x5, x6, x7)  =  U22_ag(x7)
U23_ag(x1, x2, x3, x4, x5, x6, x7)  =  U23_ag(x7)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x7)
U25_ag(x1, x2, x3, x4, x5, x6, x7)  =  U25_ag(x7)
U26_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U26_ag(x8)
U27_ag(x1, x2, x3, x4, x5, x6, x7)  =  U27_ag(x7)
U28_ag(x1, x2, x3, x4, x5, x6, x7)  =  U28_ag(x7)
U29_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U29_ag(x8)
U30_ag(x1, x2, x3, x4, x5, x6, x7)  =  U30_ag(x7)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x6, x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_ag(x6, x8)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x6, x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7)  =  U35_ag(x7)
U36_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_ag(x7, x8)
U37_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U37_ag(x7, x9)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x7, x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U39_ag(x7, x9)
U40_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_ag(x8)
app83_in_aaag(x1, x2, x3, x4)  =  app83_in_aaag(x4)
app83_out_aaag(x1, x2, x3, x4)  =  app83_out_aaag(x1, x3)
U8_aaag(x1, x2, x3, x4, x5, x6)  =  U8_aaag(x6)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(42) Obligation:

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

in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))

The argument filtering Pi contains the following mapping:
in_order1_in_ag(x1, x2)  =  in_order1_in_ag(x2)
[]  =  []
in_order1_out_ag(x1, x2)  =  in_order1_out_ag
U9_ag(x1, x2, x3)  =  U9_ag(x3)
in_order13_in_aa(x1, x2)  =  in_order13_in_aa
in_order13_out_aa(x1, x2)  =  in_order13_out_aa
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
.(x1, x2)  =  .(x2)
tree(x1, x2, x3)  =  tree(x2, x3)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app26_in_aaaa(x1, x2, x3, x4)  =  app26_in_aaaa
app26_out_aaaa(x1, x2, x3, x4)  =  app26_out_aaaa(x1)
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U10_ag(x1, x2, x3, x4, x5, x6)  =  U10_ag(x6)
U11_ag(x1, x2, x3, x4, x5, x6)  =  U11_ag(x6)
U12_ag(x1, x2, x3, x4, x5, x6)  =  U12_ag(x6)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6, x7)  =  U14_ag(x7)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x4)
U21_ag(x1, x2, x3, x4)  =  U21_ag(x4)
in_order13_in_ag(x1, x2)  =  in_order13_in_ag(x2)
in_order13_out_ag(x1, x2)  =  in_order13_out_ag
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x5)
app26_in_aaag(x1, x2, x3, x4)  =  app26_in_aaag(x4)
app26_out_aaag(x1, x2, x3, x4)  =  app26_out_aaag(x1, x3)
U7_aaag(x1, x2, x3, x4, x5, x6)  =  U7_aaag(x6)
U22_ag(x1, x2, x3, x4, x5, x6, x7)  =  U22_ag(x7)
U23_ag(x1, x2, x3, x4, x5, x6, x7)  =  U23_ag(x7)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x7)
U25_ag(x1, x2, x3, x4, x5, x6, x7)  =  U25_ag(x7)
U26_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U26_ag(x8)
U27_ag(x1, x2, x3, x4, x5, x6, x7)  =  U27_ag(x7)
U28_ag(x1, x2, x3, x4, x5, x6, x7)  =  U28_ag(x7)
U29_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U29_ag(x8)
U30_ag(x1, x2, x3, x4, x5, x6, x7)  =  U30_ag(x7)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x6, x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_ag(x6, x8)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x6, x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7)  =  U35_ag(x7)
U36_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_ag(x7, x8)
U37_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U37_ag(x7, x9)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x7, x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U39_ag(x7, x9)
U40_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_ag(x8)
app83_in_aaag(x1, x2, x3, x4)  =  app83_in_aaag(x4)
app83_out_aaag(x1, x2, x3, x4)  =  app83_out_aaag(x1, x3)
U8_aaag(x1, x2, x3, x4, x5, x6)  =  U8_aaag(x6)

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

IN_ORDER1_IN_AG(tree(T13, void, T12), []) → U9_AG(T13, T12, in_order13_in_aa(T12, X10))
IN_ORDER1_IN_AG(tree(T13, void, T12), []) → IN_ORDER13_IN_AA(T12, X10)
IN_ORDER13_IN_AA(tree(T27, T25, T26), X33) → U1_AA(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
IN_ORDER13_IN_AA(tree(T27, T25, T26), X33) → IN_ORDER13_IN_AA(T25, X31)
IN_ORDER13_IN_AA(tree(T30, T25, T29), X33) → U2_AA(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
IN_ORDER13_IN_AA(tree(T33, T25, T29), X33) → U4_AA(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_AA(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_AA(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U4_AA(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → IN_ORDER13_IN_AA(T29, T31)
U5_AA(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_AA(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
U5_AA(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → APP26_IN_AAAA(T32, T33, T31, X33)
APP26_IN_AAAA(.(T56, T60), T61, T62, .(T56, X60)) → U7_AAAA(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
APP26_IN_AAAA(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAA(T60, T61, T62, X60)
U2_AA(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_AA(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U2_AA(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → IN_ORDER13_IN_AA(T29, X32)
IN_ORDER1_IN_AG(tree(T86, tree(T84, T82, T83), T85), []) → U10_AG(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
IN_ORDER1_IN_AG(tree(T86, tree(T84, T82, T83), T85), []) → IN_ORDER13_IN_AA(T82, X94)
IN_ORDER1_IN_AG(tree(T91, tree(T89, T82, T88), T90), []) → U11_AG(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_AG(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_AG(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U11_AG(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → IN_ORDER13_IN_AA(T88, X95)
IN_ORDER1_IN_AG(tree(T96, tree(T94, T82, T88), T95), []) → U13_AG(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_AG(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_AG(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U13_AG(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → IN_ORDER13_IN_AA(T88, T92)
U14_AG(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_AG(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U14_AG(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → APP26_IN_AAAA(T93, T94, T92, X96)
IN_ORDER1_IN_AG(tree(T103, tree(T94, T82, T88), T102), []) → U16_AG(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_AG(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_AG(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U16_AG(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → IN_ORDER13_IN_AA(T88, T92)
U17_AG(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_AG(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U17_AG(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → APP26_IN_AAAA(T93, T94, T92, T101)
U18_AG(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_AG(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U18_AG(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → IN_ORDER13_IN_AA(T102, X10)
IN_ORDER1_IN_AG(tree(T137, void, T136), T132) → U20_AG(T137, T136, T132, in_order13_in_aa(T136, X125))
IN_ORDER1_IN_AG(tree(T137, void, T136), T132) → IN_ORDER13_IN_AA(T136, X125)
IN_ORDER1_IN_AG(tree(T153, void, T136), .(T153, T154)) → U21_AG(T153, T136, T154, in_order13_in_ag(T136, T154))
IN_ORDER1_IN_AG(tree(T153, void, T136), .(T153, T154)) → IN_ORDER13_IN_AG(T136, T154)
IN_ORDER13_IN_AG(tree(T27, T25, T26), X33) → U1_AG(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
IN_ORDER13_IN_AG(tree(T27, T25, T26), X33) → IN_ORDER13_IN_AA(T25, X31)
IN_ORDER13_IN_AG(tree(T30, T25, T29), X33) → U2_AG(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_AG(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_AG(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U2_AG(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → IN_ORDER13_IN_AA(T29, X32)
IN_ORDER13_IN_AG(tree(T33, T25, T29), X33) → U4_AG(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_AG(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_AG(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U4_AG(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → IN_ORDER13_IN_AA(T29, T31)
U5_AG(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_AG(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
U5_AG(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → APP26_IN_AAAG(T32, T33, T31, X33)
APP26_IN_AAAG(.(T56, T60), T61, T62, .(T56, X60)) → U7_AAAG(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
APP26_IN_AAAG(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAG(T60, T61, T62, X60)
IN_ORDER1_IN_AG(tree(T168, tree(T166, T164, T165), T167), T132) → U22_AG(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
IN_ORDER1_IN_AG(tree(T168, tree(T166, T164, T165), T167), T132) → IN_ORDER13_IN_AA(T164, X158)
IN_ORDER1_IN_AG(tree(T173, tree(T171, T164, T170), T172), T132) → U23_AG(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_AG(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_AG(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U23_AG(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → IN_ORDER13_IN_AA(T170, X159)
IN_ORDER1_IN_AG(tree(T179, tree(T177, T164, T170), T178), T132) → U25_AG(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_AG(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_AG(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U25_AG(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U26_AG(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_AG(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U26_AG(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAA(T176, T177, T175, X160)
IN_ORDER1_IN_AG(tree(T187, tree(T177, T164, T170), T186), T132) → U28_AG(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_AG(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_AG(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U28_AG(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U29_AG(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_AG(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U29_AG(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAA(T176, T177, T175, T185)
U30_AG(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_AG(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U30_AG(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → IN_ORDER13_IN_AA(T186, X125)
IN_ORDER1_IN_AG(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_AG(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
IN_ORDER1_IN_AG(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → IN_ORDER13_IN_AA(T164, T176)
U32_AG(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_AG(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U32_AG(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U33_AG(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_AG(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U33_AG(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAG(T176, T177, T175, [])
U34_AG(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_AG(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U34_AG(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → IN_ORDER13_IN_AG(T186, T210)
IN_ORDER1_IN_AG(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_AG(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
IN_ORDER1_IN_AG(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → IN_ORDER13_IN_AA(T164, T176)
U36_AG(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_AG(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U36_AG(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U37_AG(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_AG(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U37_AG(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAA(T176, T177, T175, .(T221, T226))
U38_AG(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_AG(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U38_AG(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → IN_ORDER13_IN_AA(T186, T228)
U39_AG(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_AG(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
U39_AG(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → APP83_IN_AAAG(T226, T227, T228, T225)
APP83_IN_AAAG(.(T253, T258), T259, T260, .(T253, T257)) → U8_AAAG(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
APP83_IN_AAAG(.(T253, T258), T259, T260, .(T253, T257)) → APP83_IN_AAAG(T258, T259, T260, T257)

The TRS R consists of the following rules:

in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))

The argument filtering Pi contains the following mapping:
in_order1_in_ag(x1, x2)  =  in_order1_in_ag(x2)
[]  =  []
in_order1_out_ag(x1, x2)  =  in_order1_out_ag
U9_ag(x1, x2, x3)  =  U9_ag(x3)
in_order13_in_aa(x1, x2)  =  in_order13_in_aa
in_order13_out_aa(x1, x2)  =  in_order13_out_aa
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
.(x1, x2)  =  .(x2)
tree(x1, x2, x3)  =  tree(x2, x3)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app26_in_aaaa(x1, x2, x3, x4)  =  app26_in_aaaa
app26_out_aaaa(x1, x2, x3, x4)  =  app26_out_aaaa(x1)
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U10_ag(x1, x2, x3, x4, x5, x6)  =  U10_ag(x6)
U11_ag(x1, x2, x3, x4, x5, x6)  =  U11_ag(x6)
U12_ag(x1, x2, x3, x4, x5, x6)  =  U12_ag(x6)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6, x7)  =  U14_ag(x7)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x4)
U21_ag(x1, x2, x3, x4)  =  U21_ag(x4)
in_order13_in_ag(x1, x2)  =  in_order13_in_ag(x2)
in_order13_out_ag(x1, x2)  =  in_order13_out_ag
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x5)
app26_in_aaag(x1, x2, x3, x4)  =  app26_in_aaag(x4)
app26_out_aaag(x1, x2, x3, x4)  =  app26_out_aaag(x1, x3)
U7_aaag(x1, x2, x3, x4, x5, x6)  =  U7_aaag(x6)
U22_ag(x1, x2, x3, x4, x5, x6, x7)  =  U22_ag(x7)
U23_ag(x1, x2, x3, x4, x5, x6, x7)  =  U23_ag(x7)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x7)
U25_ag(x1, x2, x3, x4, x5, x6, x7)  =  U25_ag(x7)
U26_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U26_ag(x8)
U27_ag(x1, x2, x3, x4, x5, x6, x7)  =  U27_ag(x7)
U28_ag(x1, x2, x3, x4, x5, x6, x7)  =  U28_ag(x7)
U29_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U29_ag(x8)
U30_ag(x1, x2, x3, x4, x5, x6, x7)  =  U30_ag(x7)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x6, x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_ag(x6, x8)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x6, x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7)  =  U35_ag(x7)
U36_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_ag(x7, x8)
U37_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U37_ag(x7, x9)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x7, x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U39_ag(x7, x9)
U40_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_ag(x8)
app83_in_aaag(x1, x2, x3, x4)  =  app83_in_aaag(x4)
app83_out_aaag(x1, x2, x3, x4)  =  app83_out_aaag(x1, x3)
U8_aaag(x1, x2, x3, x4, x5, x6)  =  U8_aaag(x6)
IN_ORDER1_IN_AG(x1, x2)  =  IN_ORDER1_IN_AG(x2)
U9_AG(x1, x2, x3)  =  U9_AG(x3)
IN_ORDER13_IN_AA(x1, x2)  =  IN_ORDER13_IN_AA
U1_AA(x1, x2, x3, x4, x5)  =  U1_AA(x5)
U2_AA(x1, x2, x3, x4, x5)  =  U2_AA(x5)
U4_AA(x1, x2, x3, x4, x5)  =  U4_AA(x5)
U5_AA(x1, x2, x3, x4, x5, x6)  =  U5_AA(x6)
U6_AA(x1, x2, x3, x4, x5)  =  U6_AA(x5)
APP26_IN_AAAA(x1, x2, x3, x4)  =  APP26_IN_AAAA
U7_AAAA(x1, x2, x3, x4, x5, x6)  =  U7_AAAA(x6)
U3_AA(x1, x2, x3, x4, x5)  =  U3_AA(x5)
U10_AG(x1, x2, x3, x4, x5, x6)  =  U10_AG(x6)
U11_AG(x1, x2, x3, x4, x5, x6)  =  U11_AG(x6)
U12_AG(x1, x2, x3, x4, x5, x6)  =  U12_AG(x6)
U13_AG(x1, x2, x3, x4, x5, x6)  =  U13_AG(x6)
U14_AG(x1, x2, x3, x4, x5, x6, x7)  =  U14_AG(x7)
U15_AG(x1, x2, x3, x4, x5, x6)  =  U15_AG(x6)
U16_AG(x1, x2, x3, x4, x5, x6)  =  U16_AG(x6)
U17_AG(x1, x2, x3, x4, x5, x6, x7)  =  U17_AG(x7)
U18_AG(x1, x2, x3, x4, x5, x6)  =  U18_AG(x6)
U19_AG(x1, x2, x3, x4, x5, x6)  =  U19_AG(x6)
U20_AG(x1, x2, x3, x4)  =  U20_AG(x4)
U21_AG(x1, x2, x3, x4)  =  U21_AG(x4)
IN_ORDER13_IN_AG(x1, x2)  =  IN_ORDER13_IN_AG(x2)
U1_AG(x1, x2, x3, x4, x5)  =  U1_AG(x5)
U2_AG(x1, x2, x3, x4, x5)  =  U2_AG(x5)
U3_AG(x1, x2, x3, x4, x5)  =  U3_AG(x5)
U4_AG(x1, x2, x3, x4, x5)  =  U4_AG(x4, x5)
U5_AG(x1, x2, x3, x4, x5, x6)  =  U5_AG(x4, x6)
U6_AG(x1, x2, x3, x4, x5)  =  U6_AG(x5)
APP26_IN_AAAG(x1, x2, x3, x4)  =  APP26_IN_AAAG(x4)
U7_AAAG(x1, x2, x3, x4, x5, x6)  =  U7_AAAG(x6)
U22_AG(x1, x2, x3, x4, x5, x6, x7)  =  U22_AG(x7)
U23_AG(x1, x2, x3, x4, x5, x6, x7)  =  U23_AG(x7)
U24_AG(x1, x2, x3, x4, x5, x6, x7)  =  U24_AG(x7)
U25_AG(x1, x2, x3, x4, x5, x6, x7)  =  U25_AG(x7)
U26_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U26_AG(x8)
U27_AG(x1, x2, x3, x4, x5, x6, x7)  =  U27_AG(x7)
U28_AG(x1, x2, x3, x4, x5, x6, x7)  =  U28_AG(x7)
U29_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U29_AG(x8)
U30_AG(x1, x2, x3, x4, x5, x6, x7)  =  U30_AG(x7)
U31_AG(x1, x2, x3, x4, x5, x6, x7)  =  U31_AG(x7)
U32_AG(x1, x2, x3, x4, x5, x6, x7)  =  U32_AG(x6, x7)
U33_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_AG(x6, x8)
U34_AG(x1, x2, x3, x4, x5, x6, x7)  =  U34_AG(x6, x7)
U35_AG(x1, x2, x3, x4, x5, x6, x7)  =  U35_AG(x7)
U36_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_AG(x7, x8)
U37_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U37_AG(x7, x9)
U38_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_AG(x7, x8)
U39_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U39_AG(x7, x9)
U40_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_AG(x8)
APP83_IN_AAAG(x1, x2, x3, x4)  =  APP83_IN_AAAG(x4)
U8_AAAG(x1, x2, x3, x4, x5, x6)  =  U8_AAAG(x6)

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

(44) Obligation:

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

IN_ORDER1_IN_AG(tree(T13, void, T12), []) → U9_AG(T13, T12, in_order13_in_aa(T12, X10))
IN_ORDER1_IN_AG(tree(T13, void, T12), []) → IN_ORDER13_IN_AA(T12, X10)
IN_ORDER13_IN_AA(tree(T27, T25, T26), X33) → U1_AA(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
IN_ORDER13_IN_AA(tree(T27, T25, T26), X33) → IN_ORDER13_IN_AA(T25, X31)
IN_ORDER13_IN_AA(tree(T30, T25, T29), X33) → U2_AA(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
IN_ORDER13_IN_AA(tree(T33, T25, T29), X33) → U4_AA(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_AA(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_AA(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U4_AA(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → IN_ORDER13_IN_AA(T29, T31)
U5_AA(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_AA(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
U5_AA(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → APP26_IN_AAAA(T32, T33, T31, X33)
APP26_IN_AAAA(.(T56, T60), T61, T62, .(T56, X60)) → U7_AAAA(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
APP26_IN_AAAA(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAA(T60, T61, T62, X60)
U2_AA(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_AA(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U2_AA(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → IN_ORDER13_IN_AA(T29, X32)
IN_ORDER1_IN_AG(tree(T86, tree(T84, T82, T83), T85), []) → U10_AG(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
IN_ORDER1_IN_AG(tree(T86, tree(T84, T82, T83), T85), []) → IN_ORDER13_IN_AA(T82, X94)
IN_ORDER1_IN_AG(tree(T91, tree(T89, T82, T88), T90), []) → U11_AG(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_AG(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_AG(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U11_AG(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → IN_ORDER13_IN_AA(T88, X95)
IN_ORDER1_IN_AG(tree(T96, tree(T94, T82, T88), T95), []) → U13_AG(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_AG(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_AG(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U13_AG(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → IN_ORDER13_IN_AA(T88, T92)
U14_AG(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_AG(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U14_AG(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → APP26_IN_AAAA(T93, T94, T92, X96)
IN_ORDER1_IN_AG(tree(T103, tree(T94, T82, T88), T102), []) → U16_AG(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_AG(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_AG(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U16_AG(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → IN_ORDER13_IN_AA(T88, T92)
U17_AG(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_AG(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U17_AG(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → APP26_IN_AAAA(T93, T94, T92, T101)
U18_AG(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_AG(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U18_AG(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → IN_ORDER13_IN_AA(T102, X10)
IN_ORDER1_IN_AG(tree(T137, void, T136), T132) → U20_AG(T137, T136, T132, in_order13_in_aa(T136, X125))
IN_ORDER1_IN_AG(tree(T137, void, T136), T132) → IN_ORDER13_IN_AA(T136, X125)
IN_ORDER1_IN_AG(tree(T153, void, T136), .(T153, T154)) → U21_AG(T153, T136, T154, in_order13_in_ag(T136, T154))
IN_ORDER1_IN_AG(tree(T153, void, T136), .(T153, T154)) → IN_ORDER13_IN_AG(T136, T154)
IN_ORDER13_IN_AG(tree(T27, T25, T26), X33) → U1_AG(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
IN_ORDER13_IN_AG(tree(T27, T25, T26), X33) → IN_ORDER13_IN_AA(T25, X31)
IN_ORDER13_IN_AG(tree(T30, T25, T29), X33) → U2_AG(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_AG(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_AG(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U2_AG(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → IN_ORDER13_IN_AA(T29, X32)
IN_ORDER13_IN_AG(tree(T33, T25, T29), X33) → U4_AG(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_AG(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_AG(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U4_AG(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → IN_ORDER13_IN_AA(T29, T31)
U5_AG(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_AG(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
U5_AG(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → APP26_IN_AAAG(T32, T33, T31, X33)
APP26_IN_AAAG(.(T56, T60), T61, T62, .(T56, X60)) → U7_AAAG(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
APP26_IN_AAAG(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAG(T60, T61, T62, X60)
IN_ORDER1_IN_AG(tree(T168, tree(T166, T164, T165), T167), T132) → U22_AG(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
IN_ORDER1_IN_AG(tree(T168, tree(T166, T164, T165), T167), T132) → IN_ORDER13_IN_AA(T164, X158)
IN_ORDER1_IN_AG(tree(T173, tree(T171, T164, T170), T172), T132) → U23_AG(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_AG(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_AG(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U23_AG(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → IN_ORDER13_IN_AA(T170, X159)
IN_ORDER1_IN_AG(tree(T179, tree(T177, T164, T170), T178), T132) → U25_AG(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_AG(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_AG(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U25_AG(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U26_AG(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_AG(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U26_AG(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAA(T176, T177, T175, X160)
IN_ORDER1_IN_AG(tree(T187, tree(T177, T164, T170), T186), T132) → U28_AG(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_AG(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_AG(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U28_AG(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U29_AG(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_AG(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U29_AG(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAA(T176, T177, T175, T185)
U30_AG(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_AG(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U30_AG(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → IN_ORDER13_IN_AA(T186, X125)
IN_ORDER1_IN_AG(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_AG(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
IN_ORDER1_IN_AG(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → IN_ORDER13_IN_AA(T164, T176)
U32_AG(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_AG(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U32_AG(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U33_AG(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_AG(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U33_AG(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAG(T176, T177, T175, [])
U34_AG(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_AG(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U34_AG(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → IN_ORDER13_IN_AG(T186, T210)
IN_ORDER1_IN_AG(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_AG(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
IN_ORDER1_IN_AG(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → IN_ORDER13_IN_AA(T164, T176)
U36_AG(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_AG(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U36_AG(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → IN_ORDER13_IN_AA(T170, T175)
U37_AG(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_AG(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U37_AG(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → APP26_IN_AAAA(T176, T177, T175, .(T221, T226))
U38_AG(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_AG(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U38_AG(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → IN_ORDER13_IN_AA(T186, T228)
U39_AG(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_AG(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
U39_AG(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → APP83_IN_AAAG(T226, T227, T228, T225)
APP83_IN_AAAG(.(T253, T258), T259, T260, .(T253, T257)) → U8_AAAG(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
APP83_IN_AAAG(.(T253, T258), T259, T260, .(T253, T257)) → APP83_IN_AAAG(T258, T259, T260, T257)

The TRS R consists of the following rules:

in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))

The argument filtering Pi contains the following mapping:
in_order1_in_ag(x1, x2)  =  in_order1_in_ag(x2)
[]  =  []
in_order1_out_ag(x1, x2)  =  in_order1_out_ag
U9_ag(x1, x2, x3)  =  U9_ag(x3)
in_order13_in_aa(x1, x2)  =  in_order13_in_aa
in_order13_out_aa(x1, x2)  =  in_order13_out_aa
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
.(x1, x2)  =  .(x2)
tree(x1, x2, x3)  =  tree(x2, x3)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app26_in_aaaa(x1, x2, x3, x4)  =  app26_in_aaaa
app26_out_aaaa(x1, x2, x3, x4)  =  app26_out_aaaa(x1)
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U10_ag(x1, x2, x3, x4, x5, x6)  =  U10_ag(x6)
U11_ag(x1, x2, x3, x4, x5, x6)  =  U11_ag(x6)
U12_ag(x1, x2, x3, x4, x5, x6)  =  U12_ag(x6)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6, x7)  =  U14_ag(x7)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x4)
U21_ag(x1, x2, x3, x4)  =  U21_ag(x4)
in_order13_in_ag(x1, x2)  =  in_order13_in_ag(x2)
in_order13_out_ag(x1, x2)  =  in_order13_out_ag
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x5)
app26_in_aaag(x1, x2, x3, x4)  =  app26_in_aaag(x4)
app26_out_aaag(x1, x2, x3, x4)  =  app26_out_aaag(x1, x3)
U7_aaag(x1, x2, x3, x4, x5, x6)  =  U7_aaag(x6)
U22_ag(x1, x2, x3, x4, x5, x6, x7)  =  U22_ag(x7)
U23_ag(x1, x2, x3, x4, x5, x6, x7)  =  U23_ag(x7)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x7)
U25_ag(x1, x2, x3, x4, x5, x6, x7)  =  U25_ag(x7)
U26_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U26_ag(x8)
U27_ag(x1, x2, x3, x4, x5, x6, x7)  =  U27_ag(x7)
U28_ag(x1, x2, x3, x4, x5, x6, x7)  =  U28_ag(x7)
U29_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U29_ag(x8)
U30_ag(x1, x2, x3, x4, x5, x6, x7)  =  U30_ag(x7)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x6, x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_ag(x6, x8)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x6, x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7)  =  U35_ag(x7)
U36_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_ag(x7, x8)
U37_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U37_ag(x7, x9)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x7, x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U39_ag(x7, x9)
U40_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_ag(x8)
app83_in_aaag(x1, x2, x3, x4)  =  app83_in_aaag(x4)
app83_out_aaag(x1, x2, x3, x4)  =  app83_out_aaag(x1, x3)
U8_aaag(x1, x2, x3, x4, x5, x6)  =  U8_aaag(x6)
IN_ORDER1_IN_AG(x1, x2)  =  IN_ORDER1_IN_AG(x2)
U9_AG(x1, x2, x3)  =  U9_AG(x3)
IN_ORDER13_IN_AA(x1, x2)  =  IN_ORDER13_IN_AA
U1_AA(x1, x2, x3, x4, x5)  =  U1_AA(x5)
U2_AA(x1, x2, x3, x4, x5)  =  U2_AA(x5)
U4_AA(x1, x2, x3, x4, x5)  =  U4_AA(x5)
U5_AA(x1, x2, x3, x4, x5, x6)  =  U5_AA(x6)
U6_AA(x1, x2, x3, x4, x5)  =  U6_AA(x5)
APP26_IN_AAAA(x1, x2, x3, x4)  =  APP26_IN_AAAA
U7_AAAA(x1, x2, x3, x4, x5, x6)  =  U7_AAAA(x6)
U3_AA(x1, x2, x3, x4, x5)  =  U3_AA(x5)
U10_AG(x1, x2, x3, x4, x5, x6)  =  U10_AG(x6)
U11_AG(x1, x2, x3, x4, x5, x6)  =  U11_AG(x6)
U12_AG(x1, x2, x3, x4, x5, x6)  =  U12_AG(x6)
U13_AG(x1, x2, x3, x4, x5, x6)  =  U13_AG(x6)
U14_AG(x1, x2, x3, x4, x5, x6, x7)  =  U14_AG(x7)
U15_AG(x1, x2, x3, x4, x5, x6)  =  U15_AG(x6)
U16_AG(x1, x2, x3, x4, x5, x6)  =  U16_AG(x6)
U17_AG(x1, x2, x3, x4, x5, x6, x7)  =  U17_AG(x7)
U18_AG(x1, x2, x3, x4, x5, x6)  =  U18_AG(x6)
U19_AG(x1, x2, x3, x4, x5, x6)  =  U19_AG(x6)
U20_AG(x1, x2, x3, x4)  =  U20_AG(x4)
U21_AG(x1, x2, x3, x4)  =  U21_AG(x4)
IN_ORDER13_IN_AG(x1, x2)  =  IN_ORDER13_IN_AG(x2)
U1_AG(x1, x2, x3, x4, x5)  =  U1_AG(x5)
U2_AG(x1, x2, x3, x4, x5)  =  U2_AG(x5)
U3_AG(x1, x2, x3, x4, x5)  =  U3_AG(x5)
U4_AG(x1, x2, x3, x4, x5)  =  U4_AG(x4, x5)
U5_AG(x1, x2, x3, x4, x5, x6)  =  U5_AG(x4, x6)
U6_AG(x1, x2, x3, x4, x5)  =  U6_AG(x5)
APP26_IN_AAAG(x1, x2, x3, x4)  =  APP26_IN_AAAG(x4)
U7_AAAG(x1, x2, x3, x4, x5, x6)  =  U7_AAAG(x6)
U22_AG(x1, x2, x3, x4, x5, x6, x7)  =  U22_AG(x7)
U23_AG(x1, x2, x3, x4, x5, x6, x7)  =  U23_AG(x7)
U24_AG(x1, x2, x3, x4, x5, x6, x7)  =  U24_AG(x7)
U25_AG(x1, x2, x3, x4, x5, x6, x7)  =  U25_AG(x7)
U26_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U26_AG(x8)
U27_AG(x1, x2, x3, x4, x5, x6, x7)  =  U27_AG(x7)
U28_AG(x1, x2, x3, x4, x5, x6, x7)  =  U28_AG(x7)
U29_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U29_AG(x8)
U30_AG(x1, x2, x3, x4, x5, x6, x7)  =  U30_AG(x7)
U31_AG(x1, x2, x3, x4, x5, x6, x7)  =  U31_AG(x7)
U32_AG(x1, x2, x3, x4, x5, x6, x7)  =  U32_AG(x6, x7)
U33_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_AG(x6, x8)
U34_AG(x1, x2, x3, x4, x5, x6, x7)  =  U34_AG(x6, x7)
U35_AG(x1, x2, x3, x4, x5, x6, x7)  =  U35_AG(x7)
U36_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_AG(x7, x8)
U37_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U37_AG(x7, x9)
U38_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_AG(x7, x8)
U39_AG(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U39_AG(x7, x9)
U40_AG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_AG(x8)
APP83_IN_AAAG(x1, x2, x3, x4)  =  APP83_IN_AAAG(x4)
U8_AAAG(x1, x2, x3, x4, x5, x6)  =  U8_AAAG(x6)

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

(45) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 4 SCCs with 76 less nodes.

(46) Complex Obligation (AND)

(47) Obligation:

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

APP83_IN_AAAG(.(T253, T258), T259, T260, .(T253, T257)) → APP83_IN_AAAG(T258, T259, T260, T257)

The TRS R consists of the following rules:

in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))

The argument filtering Pi contains the following mapping:
in_order1_in_ag(x1, x2)  =  in_order1_in_ag(x2)
[]  =  []
in_order1_out_ag(x1, x2)  =  in_order1_out_ag
U9_ag(x1, x2, x3)  =  U9_ag(x3)
in_order13_in_aa(x1, x2)  =  in_order13_in_aa
in_order13_out_aa(x1, x2)  =  in_order13_out_aa
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
.(x1, x2)  =  .(x2)
tree(x1, x2, x3)  =  tree(x2, x3)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app26_in_aaaa(x1, x2, x3, x4)  =  app26_in_aaaa
app26_out_aaaa(x1, x2, x3, x4)  =  app26_out_aaaa(x1)
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U10_ag(x1, x2, x3, x4, x5, x6)  =  U10_ag(x6)
U11_ag(x1, x2, x3, x4, x5, x6)  =  U11_ag(x6)
U12_ag(x1, x2, x3, x4, x5, x6)  =  U12_ag(x6)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6, x7)  =  U14_ag(x7)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x4)
U21_ag(x1, x2, x3, x4)  =  U21_ag(x4)
in_order13_in_ag(x1, x2)  =  in_order13_in_ag(x2)
in_order13_out_ag(x1, x2)  =  in_order13_out_ag
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x5)
app26_in_aaag(x1, x2, x3, x4)  =  app26_in_aaag(x4)
app26_out_aaag(x1, x2, x3, x4)  =  app26_out_aaag(x1, x3)
U7_aaag(x1, x2, x3, x4, x5, x6)  =  U7_aaag(x6)
U22_ag(x1, x2, x3, x4, x5, x6, x7)  =  U22_ag(x7)
U23_ag(x1, x2, x3, x4, x5, x6, x7)  =  U23_ag(x7)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x7)
U25_ag(x1, x2, x3, x4, x5, x6, x7)  =  U25_ag(x7)
U26_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U26_ag(x8)
U27_ag(x1, x2, x3, x4, x5, x6, x7)  =  U27_ag(x7)
U28_ag(x1, x2, x3, x4, x5, x6, x7)  =  U28_ag(x7)
U29_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U29_ag(x8)
U30_ag(x1, x2, x3, x4, x5, x6, x7)  =  U30_ag(x7)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x6, x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_ag(x6, x8)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x6, x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7)  =  U35_ag(x7)
U36_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_ag(x7, x8)
U37_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U37_ag(x7, x9)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x7, x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U39_ag(x7, x9)
U40_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_ag(x8)
app83_in_aaag(x1, x2, x3, x4)  =  app83_in_aaag(x4)
app83_out_aaag(x1, x2, x3, x4)  =  app83_out_aaag(x1, x3)
U8_aaag(x1, x2, x3, x4, x5, x6)  =  U8_aaag(x6)
APP83_IN_AAAG(x1, x2, x3, x4)  =  APP83_IN_AAAG(x4)

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

(48) UsableRulesProof (EQUIVALENT transformation)

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

(49) Obligation:

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

APP83_IN_AAAG(.(T253, T258), T259, T260, .(T253, T257)) → APP83_IN_AAAG(T258, T259, T260, T257)

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

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

(50) PiDPToQDPProof (SOUND transformation)

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

(51) Obligation:

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

APP83_IN_AAAG(.(T257)) → APP83_IN_AAAG(T257)

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

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

  • APP83_IN_AAAG(.(T257)) → APP83_IN_AAAG(T257)
    The graph contains the following edges 1 > 1

(53) YES

(54) Obligation:

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

APP26_IN_AAAG(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAG(T60, T61, T62, X60)

The TRS R consists of the following rules:

in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))

The argument filtering Pi contains the following mapping:
in_order1_in_ag(x1, x2)  =  in_order1_in_ag(x2)
[]  =  []
in_order1_out_ag(x1, x2)  =  in_order1_out_ag
U9_ag(x1, x2, x3)  =  U9_ag(x3)
in_order13_in_aa(x1, x2)  =  in_order13_in_aa
in_order13_out_aa(x1, x2)  =  in_order13_out_aa
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
.(x1, x2)  =  .(x2)
tree(x1, x2, x3)  =  tree(x2, x3)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app26_in_aaaa(x1, x2, x3, x4)  =  app26_in_aaaa
app26_out_aaaa(x1, x2, x3, x4)  =  app26_out_aaaa(x1)
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U10_ag(x1, x2, x3, x4, x5, x6)  =  U10_ag(x6)
U11_ag(x1, x2, x3, x4, x5, x6)  =  U11_ag(x6)
U12_ag(x1, x2, x3, x4, x5, x6)  =  U12_ag(x6)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6, x7)  =  U14_ag(x7)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x4)
U21_ag(x1, x2, x3, x4)  =  U21_ag(x4)
in_order13_in_ag(x1, x2)  =  in_order13_in_ag(x2)
in_order13_out_ag(x1, x2)  =  in_order13_out_ag
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x5)
app26_in_aaag(x1, x2, x3, x4)  =  app26_in_aaag(x4)
app26_out_aaag(x1, x2, x3, x4)  =  app26_out_aaag(x1, x3)
U7_aaag(x1, x2, x3, x4, x5, x6)  =  U7_aaag(x6)
U22_ag(x1, x2, x3, x4, x5, x6, x7)  =  U22_ag(x7)
U23_ag(x1, x2, x3, x4, x5, x6, x7)  =  U23_ag(x7)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x7)
U25_ag(x1, x2, x3, x4, x5, x6, x7)  =  U25_ag(x7)
U26_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U26_ag(x8)
U27_ag(x1, x2, x3, x4, x5, x6, x7)  =  U27_ag(x7)
U28_ag(x1, x2, x3, x4, x5, x6, x7)  =  U28_ag(x7)
U29_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U29_ag(x8)
U30_ag(x1, x2, x3, x4, x5, x6, x7)  =  U30_ag(x7)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x6, x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_ag(x6, x8)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x6, x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7)  =  U35_ag(x7)
U36_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_ag(x7, x8)
U37_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U37_ag(x7, x9)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x7, x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U39_ag(x7, x9)
U40_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_ag(x8)
app83_in_aaag(x1, x2, x3, x4)  =  app83_in_aaag(x4)
app83_out_aaag(x1, x2, x3, x4)  =  app83_out_aaag(x1, x3)
U8_aaag(x1, x2, x3, x4, x5, x6)  =  U8_aaag(x6)
APP26_IN_AAAG(x1, x2, x3, x4)  =  APP26_IN_AAAG(x4)

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

(55) UsableRulesProof (EQUIVALENT transformation)

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

(56) Obligation:

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

APP26_IN_AAAG(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAG(T60, T61, T62, X60)

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

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

(57) PiDPToQDPProof (SOUND transformation)

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

(58) Obligation:

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

APP26_IN_AAAG(.(X60)) → APP26_IN_AAAG(X60)

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

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

  • APP26_IN_AAAG(.(X60)) → APP26_IN_AAAG(X60)
    The graph contains the following edges 1 > 1

(60) YES

(61) Obligation:

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

APP26_IN_AAAA(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAA(T60, T61, T62, X60)

The TRS R consists of the following rules:

in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))

The argument filtering Pi contains the following mapping:
in_order1_in_ag(x1, x2)  =  in_order1_in_ag(x2)
[]  =  []
in_order1_out_ag(x1, x2)  =  in_order1_out_ag
U9_ag(x1, x2, x3)  =  U9_ag(x3)
in_order13_in_aa(x1, x2)  =  in_order13_in_aa
in_order13_out_aa(x1, x2)  =  in_order13_out_aa
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
.(x1, x2)  =  .(x2)
tree(x1, x2, x3)  =  tree(x2, x3)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app26_in_aaaa(x1, x2, x3, x4)  =  app26_in_aaaa
app26_out_aaaa(x1, x2, x3, x4)  =  app26_out_aaaa(x1)
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U10_ag(x1, x2, x3, x4, x5, x6)  =  U10_ag(x6)
U11_ag(x1, x2, x3, x4, x5, x6)  =  U11_ag(x6)
U12_ag(x1, x2, x3, x4, x5, x6)  =  U12_ag(x6)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6, x7)  =  U14_ag(x7)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x4)
U21_ag(x1, x2, x3, x4)  =  U21_ag(x4)
in_order13_in_ag(x1, x2)  =  in_order13_in_ag(x2)
in_order13_out_ag(x1, x2)  =  in_order13_out_ag
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x5)
app26_in_aaag(x1, x2, x3, x4)  =  app26_in_aaag(x4)
app26_out_aaag(x1, x2, x3, x4)  =  app26_out_aaag(x1, x3)
U7_aaag(x1, x2, x3, x4, x5, x6)  =  U7_aaag(x6)
U22_ag(x1, x2, x3, x4, x5, x6, x7)  =  U22_ag(x7)
U23_ag(x1, x2, x3, x4, x5, x6, x7)  =  U23_ag(x7)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x7)
U25_ag(x1, x2, x3, x4, x5, x6, x7)  =  U25_ag(x7)
U26_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U26_ag(x8)
U27_ag(x1, x2, x3, x4, x5, x6, x7)  =  U27_ag(x7)
U28_ag(x1, x2, x3, x4, x5, x6, x7)  =  U28_ag(x7)
U29_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U29_ag(x8)
U30_ag(x1, x2, x3, x4, x5, x6, x7)  =  U30_ag(x7)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x6, x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_ag(x6, x8)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x6, x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7)  =  U35_ag(x7)
U36_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_ag(x7, x8)
U37_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U37_ag(x7, x9)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x7, x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U39_ag(x7, x9)
U40_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_ag(x8)
app83_in_aaag(x1, x2, x3, x4)  =  app83_in_aaag(x4)
app83_out_aaag(x1, x2, x3, x4)  =  app83_out_aaag(x1, x3)
U8_aaag(x1, x2, x3, x4, x5, x6)  =  U8_aaag(x6)
APP26_IN_AAAA(x1, x2, x3, x4)  =  APP26_IN_AAAA

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

(62) UsableRulesProof (EQUIVALENT transformation)

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

(63) Obligation:

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

APP26_IN_AAAA(.(T56, T60), T61, T62, .(T56, X60)) → APP26_IN_AAAA(T60, T61, T62, X60)

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

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

(64) PiDPToQDPProof (SOUND transformation)

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

(65) Obligation:

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

APP26_IN_AAAAAPP26_IN_AAAA

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

(66) NonTerminationProof (EQUIVALENT transformation)

We used the non-termination processor [FROCOS05] to show that the DP problem is infinite.
Found a loop by semiunifying a rule from P directly.

s = APP26_IN_AAAA evaluates to t =APP26_IN_AAAA

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




Rewriting sequence

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



(67) NO

(68) Obligation:

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

IN_ORDER13_IN_AA(tree(T30, T25, T29), X33) → U2_AA(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_AA(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → IN_ORDER13_IN_AA(T29, X32)
IN_ORDER13_IN_AA(tree(T27, T25, T26), X33) → IN_ORDER13_IN_AA(T25, X31)
IN_ORDER13_IN_AA(tree(T33, T25, T29), X33) → U4_AA(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_AA(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → IN_ORDER13_IN_AA(T29, T31)

The TRS R consists of the following rules:

in_order1_in_ag(void, []) → in_order1_out_ag(void, [])
in_order1_in_ag(tree(T13, void, T12), []) → U9_ag(T13, T12, in_order13_in_aa(T12, X10))
in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U9_ag(T13, T12, in_order13_out_aa(T12, X10)) → in_order1_out_ag(tree(T13, void, T12), [])
in_order1_in_ag(tree(T86, tree(T84, T82, T83), T85), []) → U10_ag(T86, T84, T82, T83, T85, in_order13_in_aa(T82, X94))
U10_ag(T86, T84, T82, T83, T85, in_order13_out_aa(T82, X94)) → in_order1_out_ag(tree(T86, tree(T84, T82, T83), T85), [])
in_order1_in_ag(tree(T91, tree(T89, T82, T88), T90), []) → U11_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T82, T87))
U11_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T82, T87)) → U12_ag(T91, T89, T82, T88, T90, in_order13_in_aa(T88, X95))
U12_ag(T91, T89, T82, T88, T90, in_order13_out_aa(T88, X95)) → in_order1_out_ag(tree(T91, tree(T89, T82, T88), T90), [])
in_order1_in_ag(tree(T96, tree(T94, T82, T88), T95), []) → U13_ag(T96, T94, T82, T88, T95, in_order13_in_aa(T82, T93))
U13_ag(T96, T94, T82, T88, T95, in_order13_out_aa(T82, T93)) → U14_ag(T96, T94, T82, T88, T95, T93, in_order13_in_aa(T88, T92))
U14_ag(T96, T94, T82, T88, T95, T93, in_order13_out_aa(T88, T92)) → U15_ag(T96, T94, T82, T88, T95, app26_in_aaaa(T93, T94, T92, X96))
U15_ag(T96, T94, T82, T88, T95, app26_out_aaaa(T93, T94, T92, X96)) → in_order1_out_ag(tree(T96, tree(T94, T82, T88), T95), [])
in_order1_in_ag(tree(T103, tree(T94, T82, T88), T102), []) → U16_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T82, T93))
U16_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T82, T93)) → U17_ag(T103, T94, T82, T88, T102, T93, in_order13_in_aa(T88, T92))
U17_ag(T103, T94, T82, T88, T102, T93, in_order13_out_aa(T88, T92)) → U18_ag(T103, T94, T82, T88, T102, app26_in_aaaa(T93, T94, T92, T101))
U18_ag(T103, T94, T82, T88, T102, app26_out_aaaa(T93, T94, T92, T101)) → U19_ag(T103, T94, T82, T88, T102, in_order13_in_aa(T102, X10))
U19_ag(T103, T94, T82, T88, T102, in_order13_out_aa(T102, X10)) → in_order1_out_ag(tree(T103, tree(T94, T82, T88), T102), [])
in_order1_in_ag(tree(T137, void, T136), T132) → U20_ag(T137, T136, T132, in_order13_in_aa(T136, X125))
U20_ag(T137, T136, T132, in_order13_out_aa(T136, X125)) → in_order1_out_ag(tree(T137, void, T136), T132)
in_order1_in_ag(tree(T153, void, T136), .(T153, T154)) → U21_ag(T153, T136, T154, in_order13_in_ag(T136, T154))
in_order13_in_ag(void, []) → in_order13_out_ag(void, [])
in_order13_in_ag(tree(T27, T25, T26), X33) → U1_ag(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
U1_ag(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_ag(tree(T27, T25, T26), X33)
in_order13_in_ag(tree(T30, T25, T29), X33) → U2_ag(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_ag(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_ag(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U3_ag(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_ag(tree(T30, T25, T29), X33)
in_order13_in_ag(tree(T33, T25, T29), X33) → U4_ag(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_ag(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_ag(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U5_ag(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_ag(T33, T25, T29, X33, app26_in_aaag(T32, T33, T31, X33))
app26_in_aaag([], T46, T47, .(T46, T47)) → app26_out_aaag([], T46, T47, .(T46, T47))
app26_in_aaag(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaag(T56, T60, T61, T62, X60, app26_in_aaag(T60, T61, T62, X60))
U7_aaag(T56, T60, T61, T62, X60, app26_out_aaag(T60, T61, T62, X60)) → app26_out_aaag(.(T56, T60), T61, T62, .(T56, X60))
U6_ag(T33, T25, T29, X33, app26_out_aaag(T32, T33, T31, X33)) → in_order13_out_ag(tree(T33, T25, T29), X33)
U21_ag(T153, T136, T154, in_order13_out_ag(T136, T154)) → in_order1_out_ag(tree(T153, void, T136), .(T153, T154))
in_order1_in_ag(tree(T168, tree(T166, T164, T165), T167), T132) → U22_ag(T168, T166, T164, T165, T167, T132, in_order13_in_aa(T164, X158))
U22_ag(T168, T166, T164, T165, T167, T132, in_order13_out_aa(T164, X158)) → in_order1_out_ag(tree(T168, tree(T166, T164, T165), T167), T132)
in_order1_in_ag(tree(T173, tree(T171, T164, T170), T172), T132) → U23_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T164, T169))
U23_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T164, T169)) → U24_ag(T173, T171, T164, T170, T172, T132, in_order13_in_aa(T170, X159))
U24_ag(T173, T171, T164, T170, T172, T132, in_order13_out_aa(T170, X159)) → in_order1_out_ag(tree(T173, tree(T171, T164, T170), T172), T132)
in_order1_in_ag(tree(T179, tree(T177, T164, T170), T178), T132) → U25_ag(T179, T177, T164, T170, T178, T132, in_order13_in_aa(T164, T176))
U25_ag(T179, T177, T164, T170, T178, T132, in_order13_out_aa(T164, T176)) → U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_in_aa(T170, T175))
U26_ag(T179, T177, T164, T170, T178, T132, T176, in_order13_out_aa(T170, T175)) → U27_ag(T179, T177, T164, T170, T178, T132, app26_in_aaaa(T176, T177, T175, X160))
U27_ag(T179, T177, T164, T170, T178, T132, app26_out_aaaa(T176, T177, T175, X160)) → in_order1_out_ag(tree(T179, tree(T177, T164, T170), T178), T132)
in_order1_in_ag(tree(T187, tree(T177, T164, T170), T186), T132) → U28_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T164, T176))
U28_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T164, T176)) → U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_in_aa(T170, T175))
U29_ag(T187, T177, T164, T170, T186, T132, T176, in_order13_out_aa(T170, T175)) → U30_ag(T187, T177, T164, T170, T186, T132, app26_in_aaaa(T176, T177, T175, T185))
U30_ag(T187, T177, T164, T170, T186, T132, app26_out_aaaa(T176, T177, T175, T185)) → U31_ag(T187, T177, T164, T170, T186, T132, in_order13_in_aa(T186, X125))
U31_ag(T187, T177, T164, T170, T186, T132, in_order13_out_aa(T186, X125)) → in_order1_out_ag(tree(T187, tree(T177, T164, T170), T186), T132)
in_order1_in_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210)) → U32_ag(T209, T177, T164, T170, T186, T210, in_order13_in_aa(T164, T176))
U32_ag(T209, T177, T164, T170, T186, T210, in_order13_out_aa(T164, T176)) → U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_in_aa(T170, T175))
U33_ag(T209, T177, T164, T170, T186, T210, T176, in_order13_out_aa(T170, T175)) → U34_ag(T209, T177, T164, T170, T186, T210, app26_in_aaag(T176, T177, T175, []))
U34_ag(T209, T177, T164, T170, T186, T210, app26_out_aaag(T176, T177, T175, [])) → U35_ag(T209, T177, T164, T170, T186, T210, in_order13_in_ag(T186, T210))
U35_ag(T209, T177, T164, T170, T186, T210, in_order13_out_ag(T186, T210)) → in_order1_out_ag(tree(T209, tree(T177, T164, T170), T186), .(T209, T210))
in_order1_in_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225)) → U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_in_aa(T164, T176))
U36_ag(T227, T177, T164, T170, T186, T221, T225, in_order13_out_aa(T164, T176)) → U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_in_aa(T170, T175))
U37_ag(T227, T177, T164, T170, T186, T221, T225, T176, in_order13_out_aa(T170, T175)) → U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_in_aaaa(T176, T177, T175, .(T221, T226)))
U38_ag(T227, T177, T164, T170, T186, T221, T225, app26_out_aaaa(T176, T177, T175, .(T221, T226))) → U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_in_aa(T186, T228))
U39_ag(T227, T177, T164, T170, T186, T221, T225, T226, in_order13_out_aa(T186, T228)) → U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_in_aaag(T226, T227, T228, T225))
app83_in_aaag([], T241, T242, .(T241, T242)) → app83_out_aaag([], T241, T242, .(T241, T242))
app83_in_aaag(.(T253, T258), T259, T260, .(T253, T257)) → U8_aaag(T253, T258, T259, T260, T257, app83_in_aaag(T258, T259, T260, T257))
U8_aaag(T253, T258, T259, T260, T257, app83_out_aaag(T258, T259, T260, T257)) → app83_out_aaag(.(T253, T258), T259, T260, .(T253, T257))
U40_ag(T227, T177, T164, T170, T186, T221, T225, app83_out_aaag(T226, T227, T228, T225)) → in_order1_out_ag(tree(T227, tree(T177, T164, T170), T186), .(T221, T225))

The argument filtering Pi contains the following mapping:
in_order1_in_ag(x1, x2)  =  in_order1_in_ag(x2)
[]  =  []
in_order1_out_ag(x1, x2)  =  in_order1_out_ag
U9_ag(x1, x2, x3)  =  U9_ag(x3)
in_order13_in_aa(x1, x2)  =  in_order13_in_aa
in_order13_out_aa(x1, x2)  =  in_order13_out_aa
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
.(x1, x2)  =  .(x2)
tree(x1, x2, x3)  =  tree(x2, x3)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app26_in_aaaa(x1, x2, x3, x4)  =  app26_in_aaaa
app26_out_aaaa(x1, x2, x3, x4)  =  app26_out_aaaa(x1)
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U10_ag(x1, x2, x3, x4, x5, x6)  =  U10_ag(x6)
U11_ag(x1, x2, x3, x4, x5, x6)  =  U11_ag(x6)
U12_ag(x1, x2, x3, x4, x5, x6)  =  U12_ag(x6)
U13_ag(x1, x2, x3, x4, x5, x6)  =  U13_ag(x6)
U14_ag(x1, x2, x3, x4, x5, x6, x7)  =  U14_ag(x7)
U15_ag(x1, x2, x3, x4, x5, x6)  =  U15_ag(x6)
U16_ag(x1, x2, x3, x4, x5, x6)  =  U16_ag(x6)
U17_ag(x1, x2, x3, x4, x5, x6, x7)  =  U17_ag(x7)
U18_ag(x1, x2, x3, x4, x5, x6)  =  U18_ag(x6)
U19_ag(x1, x2, x3, x4, x5, x6)  =  U19_ag(x6)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x4)
U21_ag(x1, x2, x3, x4)  =  U21_ag(x4)
in_order13_in_ag(x1, x2)  =  in_order13_in_ag(x2)
in_order13_out_ag(x1, x2)  =  in_order13_out_ag
U1_ag(x1, x2, x3, x4, x5)  =  U1_ag(x5)
U2_ag(x1, x2, x3, x4, x5)  =  U2_ag(x5)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5, x6)  =  U5_ag(x4, x6)
U6_ag(x1, x2, x3, x4, x5)  =  U6_ag(x5)
app26_in_aaag(x1, x2, x3, x4)  =  app26_in_aaag(x4)
app26_out_aaag(x1, x2, x3, x4)  =  app26_out_aaag(x1, x3)
U7_aaag(x1, x2, x3, x4, x5, x6)  =  U7_aaag(x6)
U22_ag(x1, x2, x3, x4, x5, x6, x7)  =  U22_ag(x7)
U23_ag(x1, x2, x3, x4, x5, x6, x7)  =  U23_ag(x7)
U24_ag(x1, x2, x3, x4, x5, x6, x7)  =  U24_ag(x7)
U25_ag(x1, x2, x3, x4, x5, x6, x7)  =  U25_ag(x7)
U26_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U26_ag(x8)
U27_ag(x1, x2, x3, x4, x5, x6, x7)  =  U27_ag(x7)
U28_ag(x1, x2, x3, x4, x5, x6, x7)  =  U28_ag(x7)
U29_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U29_ag(x8)
U30_ag(x1, x2, x3, x4, x5, x6, x7)  =  U30_ag(x7)
U31_ag(x1, x2, x3, x4, x5, x6, x7)  =  U31_ag(x7)
U32_ag(x1, x2, x3, x4, x5, x6, x7)  =  U32_ag(x6, x7)
U33_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_ag(x6, x8)
U34_ag(x1, x2, x3, x4, x5, x6, x7)  =  U34_ag(x6, x7)
U35_ag(x1, x2, x3, x4, x5, x6, x7)  =  U35_ag(x7)
U36_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_ag(x7, x8)
U37_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U37_ag(x7, x9)
U38_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U38_ag(x7, x8)
U39_ag(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U39_ag(x7, x9)
U40_ag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_ag(x8)
app83_in_aaag(x1, x2, x3, x4)  =  app83_in_aaag(x4)
app83_out_aaag(x1, x2, x3, x4)  =  app83_out_aaag(x1, x3)
U8_aaag(x1, x2, x3, x4, x5, x6)  =  U8_aaag(x6)
IN_ORDER13_IN_AA(x1, x2)  =  IN_ORDER13_IN_AA
U2_AA(x1, x2, x3, x4, x5)  =  U2_AA(x5)
U4_AA(x1, x2, x3, x4, x5)  =  U4_AA(x5)

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

(69) UsableRulesProof (EQUIVALENT transformation)

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

(70) Obligation:

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

IN_ORDER13_IN_AA(tree(T30, T25, T29), X33) → U2_AA(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
U2_AA(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → IN_ORDER13_IN_AA(T29, X32)
IN_ORDER13_IN_AA(tree(T27, T25, T26), X33) → IN_ORDER13_IN_AA(T25, X31)
IN_ORDER13_IN_AA(tree(T33, T25, T29), X33) → U4_AA(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U4_AA(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → IN_ORDER13_IN_AA(T29, T31)

The TRS R consists of the following rules:

in_order13_in_aa(void, []) → in_order13_out_aa(void, [])
in_order13_in_aa(tree(T27, T25, T26), X33) → U1_aa(T27, T25, T26, X33, in_order13_in_aa(T25, X31))
in_order13_in_aa(tree(T30, T25, T29), X33) → U2_aa(T30, T25, T29, X33, in_order13_in_aa(T25, T28))
in_order13_in_aa(tree(T33, T25, T29), X33) → U4_aa(T33, T25, T29, X33, in_order13_in_aa(T25, T32))
U1_aa(T27, T25, T26, X33, in_order13_out_aa(T25, X31)) → in_order13_out_aa(tree(T27, T25, T26), X33)
U2_aa(T30, T25, T29, X33, in_order13_out_aa(T25, T28)) → U3_aa(T30, T25, T29, X33, in_order13_in_aa(T29, X32))
U4_aa(T33, T25, T29, X33, in_order13_out_aa(T25, T32)) → U5_aa(T33, T25, T29, X33, T32, in_order13_in_aa(T29, T31))
U3_aa(T30, T25, T29, X33, in_order13_out_aa(T29, X32)) → in_order13_out_aa(tree(T30, T25, T29), X33)
U5_aa(T33, T25, T29, X33, T32, in_order13_out_aa(T29, T31)) → U6_aa(T33, T25, T29, X33, app26_in_aaaa(T32, T33, T31, X33))
U6_aa(T33, T25, T29, X33, app26_out_aaaa(T32, T33, T31, X33)) → in_order13_out_aa(tree(T33, T25, T29), X33)
app26_in_aaaa([], T46, T47, .(T46, T47)) → app26_out_aaaa([], T46, T47, .(T46, T47))
app26_in_aaaa(.(T56, T60), T61, T62, .(T56, X60)) → U7_aaaa(T56, T60, T61, T62, X60, app26_in_aaaa(T60, T61, T62, X60))
U7_aaaa(T56, T60, T61, T62, X60, app26_out_aaaa(T60, T61, T62, X60)) → app26_out_aaaa(.(T56, T60), T61, T62, .(T56, X60))

The argument filtering Pi contains the following mapping:
[]  =  []
in_order13_in_aa(x1, x2)  =  in_order13_in_aa
in_order13_out_aa(x1, x2)  =  in_order13_out_aa
U1_aa(x1, x2, x3, x4, x5)  =  U1_aa(x5)
U2_aa(x1, x2, x3, x4, x5)  =  U2_aa(x5)
U4_aa(x1, x2, x3, x4, x5)  =  U4_aa(x5)
U5_aa(x1, x2, x3, x4, x5, x6)  =  U5_aa(x6)
U6_aa(x1, x2, x3, x4, x5)  =  U6_aa(x5)
.(x1, x2)  =  .(x2)
tree(x1, x2, x3)  =  tree(x2, x3)
U3_aa(x1, x2, x3, x4, x5)  =  U3_aa(x5)
app26_in_aaaa(x1, x2, x3, x4)  =  app26_in_aaaa
app26_out_aaaa(x1, x2, x3, x4)  =  app26_out_aaaa(x1)
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
IN_ORDER13_IN_AA(x1, x2)  =  IN_ORDER13_IN_AA
U2_AA(x1, x2, x3, x4, x5)  =  U2_AA(x5)
U4_AA(x1, x2, x3, x4, x5)  =  U4_AA(x5)

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

(71) PiDPToQDPProof (SOUND transformation)

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

(72) Obligation:

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

IN_ORDER13_IN_AAU2_AA(in_order13_in_aa)
U2_AA(in_order13_out_aa) → IN_ORDER13_IN_AA
IN_ORDER13_IN_AAIN_ORDER13_IN_AA
IN_ORDER13_IN_AAU4_AA(in_order13_in_aa)
U4_AA(in_order13_out_aa) → IN_ORDER13_IN_AA

The TRS R consists of the following rules:

in_order13_in_aain_order13_out_aa
in_order13_in_aaU1_aa(in_order13_in_aa)
in_order13_in_aaU2_aa(in_order13_in_aa)
in_order13_in_aaU4_aa(in_order13_in_aa)
U1_aa(in_order13_out_aa) → in_order13_out_aa
U2_aa(in_order13_out_aa) → U3_aa(in_order13_in_aa)
U4_aa(in_order13_out_aa) → U5_aa(in_order13_in_aa)
U3_aa(in_order13_out_aa) → in_order13_out_aa
U5_aa(in_order13_out_aa) → U6_aa(app26_in_aaaa)
U6_aa(app26_out_aaaa(T32)) → in_order13_out_aa
app26_in_aaaaapp26_out_aaaa([])
app26_in_aaaaU7_aaaa(app26_in_aaaa)
U7_aaaa(app26_out_aaaa(T60)) → app26_out_aaaa(.(T60))

The set Q consists of the following terms:

in_order13_in_aa
U1_aa(x0)
U2_aa(x0)
U4_aa(x0)
U3_aa(x0)
U5_aa(x0)
U6_aa(x0)
app26_in_aaaa
U7_aaaa(x0)

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

(73) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule IN_ORDER13_IN_AAU2_AA(in_order13_in_aa) at position [0] we obtained the following new rules [LPAR04]:

IN_ORDER13_IN_AAU2_AA(in_order13_out_aa)
IN_ORDER13_IN_AAU2_AA(U1_aa(in_order13_in_aa))
IN_ORDER13_IN_AAU2_AA(U2_aa(in_order13_in_aa))
IN_ORDER13_IN_AAU2_AA(U4_aa(in_order13_in_aa))

(74) Obligation:

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

U2_AA(in_order13_out_aa) → IN_ORDER13_IN_AA
IN_ORDER13_IN_AAIN_ORDER13_IN_AA
IN_ORDER13_IN_AAU4_AA(in_order13_in_aa)
U4_AA(in_order13_out_aa) → IN_ORDER13_IN_AA
IN_ORDER13_IN_AAU2_AA(in_order13_out_aa)
IN_ORDER13_IN_AAU2_AA(U1_aa(in_order13_in_aa))
IN_ORDER13_IN_AAU2_AA(U2_aa(in_order13_in_aa))
IN_ORDER13_IN_AAU2_AA(U4_aa(in_order13_in_aa))

The TRS R consists of the following rules:

in_order13_in_aain_order13_out_aa
in_order13_in_aaU1_aa(in_order13_in_aa)
in_order13_in_aaU2_aa(in_order13_in_aa)
in_order13_in_aaU4_aa(in_order13_in_aa)
U1_aa(in_order13_out_aa) → in_order13_out_aa
U2_aa(in_order13_out_aa) → U3_aa(in_order13_in_aa)
U4_aa(in_order13_out_aa) → U5_aa(in_order13_in_aa)
U3_aa(in_order13_out_aa) → in_order13_out_aa
U5_aa(in_order13_out_aa) → U6_aa(app26_in_aaaa)
U6_aa(app26_out_aaaa(T32)) → in_order13_out_aa
app26_in_aaaaapp26_out_aaaa([])
app26_in_aaaaU7_aaaa(app26_in_aaaa)
U7_aaaa(app26_out_aaaa(T60)) → app26_out_aaaa(.(T60))

The set Q consists of the following terms:

in_order13_in_aa
U1_aa(x0)
U2_aa(x0)
U4_aa(x0)
U3_aa(x0)
U5_aa(x0)
U6_aa(x0)
app26_in_aaaa
U7_aaaa(x0)

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

(75) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule IN_ORDER13_IN_AAU4_AA(in_order13_in_aa) at position [0] we obtained the following new rules [LPAR04]:

IN_ORDER13_IN_AAU4_AA(in_order13_out_aa)
IN_ORDER13_IN_AAU4_AA(U1_aa(in_order13_in_aa))
IN_ORDER13_IN_AAU4_AA(U2_aa(in_order13_in_aa))
IN_ORDER13_IN_AAU4_AA(U4_aa(in_order13_in_aa))

(76) Obligation:

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

U2_AA(in_order13_out_aa) → IN_ORDER13_IN_AA
IN_ORDER13_IN_AAIN_ORDER13_IN_AA
U4_AA(in_order13_out_aa) → IN_ORDER13_IN_AA
IN_ORDER13_IN_AAU2_AA(in_order13_out_aa)
IN_ORDER13_IN_AAU2_AA(U1_aa(in_order13_in_aa))
IN_ORDER13_IN_AAU2_AA(U2_aa(in_order13_in_aa))
IN_ORDER13_IN_AAU2_AA(U4_aa(in_order13_in_aa))
IN_ORDER13_IN_AAU4_AA(in_order13_out_aa)
IN_ORDER13_IN_AAU4_AA(U1_aa(in_order13_in_aa))
IN_ORDER13_IN_AAU4_AA(U2_aa(in_order13_in_aa))
IN_ORDER13_IN_AAU4_AA(U4_aa(in_order13_in_aa))

The TRS R consists of the following rules:

in_order13_in_aain_order13_out_aa
in_order13_in_aaU1_aa(in_order13_in_aa)
in_order13_in_aaU2_aa(in_order13_in_aa)
in_order13_in_aaU4_aa(in_order13_in_aa)
U1_aa(in_order13_out_aa) → in_order13_out_aa
U2_aa(in_order13_out_aa) → U3_aa(in_order13_in_aa)
U4_aa(in_order13_out_aa) → U5_aa(in_order13_in_aa)
U3_aa(in_order13_out_aa) → in_order13_out_aa
U5_aa(in_order13_out_aa) → U6_aa(app26_in_aaaa)
U6_aa(app26_out_aaaa(T32)) → in_order13_out_aa
app26_in_aaaaapp26_out_aaaa([])
app26_in_aaaaU7_aaaa(app26_in_aaaa)
U7_aaaa(app26_out_aaaa(T60)) → app26_out_aaaa(.(T60))

The set Q consists of the following terms:

in_order13_in_aa
U1_aa(x0)
U2_aa(x0)
U4_aa(x0)
U3_aa(x0)
U5_aa(x0)
U6_aa(x0)
app26_in_aaaa
U7_aaaa(x0)

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

(77) NonTerminationProof (EQUIVALENT transformation)

We used the non-termination processor [FROCOS05] to show that the DP problem is infinite.
Found a loop by semiunifying a rule from P directly.

s = IN_ORDER13_IN_AA evaluates to t =IN_ORDER13_IN_AA

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




Rewriting sequence

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



(78) NO