(0) Obligation:

Clauses:

goal(A, B, C) :- ','(s2t(A, T), tapplast(T, B, C)).
tapplast(L, X, Last) :- ','(tappend(L, node(nil, X, nil), LX), tlast(Last, LX)).
tlast(X, node(nil, X, nil)).
tlast(X, node(L, X1, X2)) :- tlast(X, L).
tlast(X, node(X3, X4, R)) :- tlast(X, R).
tappend(nil, Y, Z) :- ','(!, eq(Y, Z)).
tappend(T, T1, node(T1, X, T2)) :- ','(left(T, nil), ','(right(T, T2), value(T, X))).
tappend(T, T2, node(T1, X, T2)) :- ','(left(T, T1), ','(right(T, nil), value(T, X))).
tappend(T, T3, node(U, X, T2)) :- ','(left(T, T1), ','(right(T, T2), ','(value(T, X), tappend(T1, T3, U)))).
tappend(T, T1, node(T1, X, U)) :- ','(left(T, T1), ','(right(T, T2), ','(value(T, X), tappend(T2, T3, U)))).
s2t(0, L) :- ','(!, eq(L, nil)).
s2t(X, node(T, X5, T)) :- ','(p(X, P), s2t(P, T)).
s2t(X, node(nil, X6, T)) :- ','(p(X, P), s2t(P, T)).
s2t(X, node(T, X7, nil)) :- ','(p(X, P), s2t(P, T)).
s2t(X, node(nil, X8, nil)).
left(nil, nil).
left(node(L, X9, X10), L).
right(nil, nil).
right(node(X11, X12, R), R).
value(nil, nil).
value(node(X13, X, X14), X).
p(0, 0).
p(s(X), X).
eq(X, X).

Queries:

goal(g,a,a).

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph.

(2) Obligation:

Clauses:

s2t4(0, nil).
s2t4(s(T14), node(X38, X39, X38)) :- s2t4(T14, X38).
s2t4(s(T16), node(nil, X52, X53)) :- s2t4(T16, X53).
s2t4(s(T18), node(X66, X67, nil)) :- s2t4(T18, X66).
s2t4(T19, node(nil, X74, nil)).
tappend38(nil, T30, node(nil, T30, nil)).
tappend38(nil, T32, node(node(nil, T32, nil), nil, nil)).
tappend38(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)).
tappend38(node(nil, T54, T55), T32, node(node(nil, T32, nil), T54, T55)).
tappend38(nil, T57, node(nil, nil, node(nil, T57, nil))).
tappend38(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))).
tappend38(node(T83, T84, nil), T57, node(T83, T84, node(nil, T57, nil))).
tappend38(nil, T89, node(X217, nil, nil)) :- tappend38(nil, T89, X217).
tappend38(node(T107, T105, T106), T108, node(X217, T105, T106)) :- tappend38(T107, T108, X217).
tappend38(node(T126, T124, T125), T127, node(X217, T124, T125)) :- tappend38(T126, T127, X217).
tappend38(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)).
tappend38(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))).
tappend38(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))).
tappend38(node(node(nil, T145, nil), T146, node(nil, T171, T172)), T145, node(node(nil, T145, nil), T146, node(X313, T171, T172))).
tappend38(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))).
tappend38(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))).
tappend38(node(node(nil, T145, nil), T146, node(T199, T200, nil)), T145, node(node(nil, T145, nil), T146, node(T199, T200, X370))).
tappend38(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) :- tappend151(nil, X431, X432).
tappend38(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) :- tappend151(T218, X431, X432).
tappend38(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) :- tappend151(T234, X431, X432).
tappend38(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) :- tappend151(nil, X486, X489).
tappend38(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) :- tappend151(T252, X486, X489).
tappend38(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) :- tappend151(T268, X486, X489).
tappend151(nil, X300, X300).
tappend151(nil, X313, node(X313, nil, nil)).
tappend151(node(nil, T160, T161), X313, node(X313, T160, T161)).
tappend151(node(nil, T171, T172), X313, node(X313, T171, T172)).
tappend151(nil, X370, node(nil, nil, X370)).
tappend151(node(T186, T187, nil), X370, node(T186, T187, X370)).
tappend151(node(T199, T200, nil), X370, node(T199, T200, X370)).
tappend151(nil, X431, node(X432, nil, nil)) :- tappend151(nil, X431, X432).
tappend151(node(T218, T216, T217), X431, node(X432, T216, T217)) :- tappend151(T218, X431, X432).
tappend151(node(T234, T232, T233), X431, node(X432, T232, T233)) :- tappend151(T234, X431, X432).
tappend151(nil, nil, node(nil, nil, X489)) :- tappend151(nil, X486, X489).
tappend151(node(T249, T250, T252), T249, node(T249, T250, X489)) :- tappend151(T252, X486, X489).
tappend151(node(T265, T266, T268), T265, node(T265, T266, X489)) :- tappend151(T268, X486, X489).
tlast39(T269, node(nil, T269, nil)).
tlast39(T274, node(T275, T272, T273)) :- tlast39(T274, T275).
tlast39(T280, node(T277, T278, T281)) :- tlast39(T280, T281).
goal1(T7, T10, T11) :- s2t4(T7, X21).
goal1(T7, T24, T25) :- ','(s2t4(T7, T23), tappend38(T23, T24, X81)).
goal1(T7, T24, T269) :- ','(s2t4(T7, T23), tappend38(T23, T24, node(nil, T269, nil))).
goal1(T7, T24, T274) :- ','(s2t4(T7, T23), ','(tappend38(T23, T24, node(T275, T272, T273)), tlast39(T274, T275))).
goal1(T7, T24, T280) :- ','(s2t4(T7, T23), ','(tappend38(T23, T24, node(T277, T278, T281)), tlast39(T280, T281))).

Queries:

goal1(g,a,a).

(3) PrologToPiTRSProof (SOUND transformation)

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

goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)

The argument filtering Pi contains the following mapping:
goal1_in_gaa(x1, x2, x3)  =  goal1_in_gaa(x1)
U21_gaa(x1, x2, x3, x4)  =  U21_gaa(x1, x4)
s2t4_in_ga(x1, x2)  =  s2t4_in_ga(x1)
0  =  0
s2t4_out_ga(x1, x2)  =  s2t4_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x1, x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x1, x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x1, x4)
goal1_out_gaa(x1, x2, x3)  =  goal1_out_gaa(x1)
U22_gaa(x1, x2, x3, x4)  =  U22_gaa(x1, x4)
U23_gaa(x1, x2, x3, x4)  =  U23_gaa(x1, x4)
tappend38_in_aaa(x1, x2, x3)  =  tappend38_in_aaa
tappend38_out_aaa(x1, x2, x3)  =  tappend38_out_aaa
U4_aaa(x1, x2, x3)  =  U4_aaa(x3)
tappend38_in_gaa(x1, x2, x3)  =  tappend38_in_gaa(x1)
nil  =  nil
tappend38_out_gaa(x1, x2, x3)  =  tappend38_out_gaa(x1)
node(x1, x2, x3)  =  node(x1, x2, x3)
U4_gaa(x1, x2, x3)  =  U4_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x1, x2, x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x1, x2, x3, x6)
U7_gaa(x1, x2, x3, x4)  =  U7_gaa(x1, x2, x4)
tappend151_in_gaa(x1, x2, x3)  =  tappend151_in_gaa(x1)
tappend151_out_gaa(x1, x2, x3)  =  tappend151_out_gaa(x1)
U13_gaa(x1, x2, x3)  =  U13_gaa(x3)
U14_gaa(x1, x2, x3, x4, x5, x6)  =  U14_gaa(x1, x2, x3, x6)
U15_gaa(x1, x2, x3, x4, x5, x6)  =  U15_gaa(x1, x2, x3, x6)
U16_gaa(x1, x2)  =  U16_gaa(x2)
U17_gaa(x1, x2, x3, x4, x5)  =  U17_gaa(x1, x2, x3, x5)
U18_gaa(x1, x2, x3, x4, x5)  =  U18_gaa(x1, x2, x3, x5)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x4, x5, x7)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x4, x5, x7)
U10_gaa(x1, x2, x3, x4)  =  U10_gaa(x1, x2, x4)
U11_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_gaa(x1, x2, x3, x4, x5, x7)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x4, x5, x7)
U5_aaa(x1, x2, x3, x4, x5, x6)  =  U5_aaa(x6)
U6_aaa(x1, x2, x3, x4, x5, x6)  =  U6_aaa(x6)
U7_aaa(x1, x2, x3, x4)  =  U7_aaa(x4)
U8_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_aaa(x7)
tappend151_in_aaa(x1, x2, x3)  =  tappend151_in_aaa
tappend151_out_aaa(x1, x2, x3)  =  tappend151_out_aaa
U13_aaa(x1, x2, x3)  =  U13_aaa(x3)
U14_aaa(x1, x2, x3, x4, x5, x6)  =  U14_aaa(x6)
U15_aaa(x1, x2, x3, x4, x5, x6)  =  U15_aaa(x6)
U16_aaa(x1, x2)  =  U16_aaa(x2)
U17_aaa(x1, x2, x3, x4, x5)  =  U17_aaa(x5)
U18_aaa(x1, x2, x3, x4, x5)  =  U18_aaa(x5)
U9_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_aaa(x7)
U10_aaa(x1, x2, x3, x4)  =  U10_aaa(x4)
U11_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_aaa(x7)
U12_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_aaa(x7)
U24_gaa(x1, x2, x3, x4)  =  U24_gaa(x1, x4)
U25_gaa(x1, x2, x3, x4)  =  U25_gaa(x1, x4)
U26_gaa(x1, x2, x3, x4)  =  U26_gaa(x1, x4)
U27_gaa(x1, x2, x3, x4)  =  U27_gaa(x1, x4)
U28_gaa(x1, x2, x3, x4)  =  U28_gaa(x1, x4)
tlast39_in_aa(x1, x2)  =  tlast39_in_aa
tlast39_out_aa(x1, x2)  =  tlast39_out_aa
U19_aa(x1, x2, x3, x4, x5)  =  U19_aa(x5)
U20_aa(x1, x2, x3, x4, x5)  =  U20_aa(x5)
U29_gaa(x1, x2, x3, x4)  =  U29_gaa(x1, x4)
U30_gaa(x1, x2, x3, x4)  =  U30_gaa(x1, x4)
U31_gaa(x1, x2, x3, x4)  =  U31_gaa(x1, x4)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

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

goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)

The argument filtering Pi contains the following mapping:
goal1_in_gaa(x1, x2, x3)  =  goal1_in_gaa(x1)
U21_gaa(x1, x2, x3, x4)  =  U21_gaa(x1, x4)
s2t4_in_ga(x1, x2)  =  s2t4_in_ga(x1)
0  =  0
s2t4_out_ga(x1, x2)  =  s2t4_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x1, x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x1, x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x1, x4)
goal1_out_gaa(x1, x2, x3)  =  goal1_out_gaa(x1)
U22_gaa(x1, x2, x3, x4)  =  U22_gaa(x1, x4)
U23_gaa(x1, x2, x3, x4)  =  U23_gaa(x1, x4)
tappend38_in_aaa(x1, x2, x3)  =  tappend38_in_aaa
tappend38_out_aaa(x1, x2, x3)  =  tappend38_out_aaa
U4_aaa(x1, x2, x3)  =  U4_aaa(x3)
tappend38_in_gaa(x1, x2, x3)  =  tappend38_in_gaa(x1)
nil  =  nil
tappend38_out_gaa(x1, x2, x3)  =  tappend38_out_gaa(x1)
node(x1, x2, x3)  =  node(x1, x2, x3)
U4_gaa(x1, x2, x3)  =  U4_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x1, x2, x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x1, x2, x3, x6)
U7_gaa(x1, x2, x3, x4)  =  U7_gaa(x1, x2, x4)
tappend151_in_gaa(x1, x2, x3)  =  tappend151_in_gaa(x1)
tappend151_out_gaa(x1, x2, x3)  =  tappend151_out_gaa(x1)
U13_gaa(x1, x2, x3)  =  U13_gaa(x3)
U14_gaa(x1, x2, x3, x4, x5, x6)  =  U14_gaa(x1, x2, x3, x6)
U15_gaa(x1, x2, x3, x4, x5, x6)  =  U15_gaa(x1, x2, x3, x6)
U16_gaa(x1, x2)  =  U16_gaa(x2)
U17_gaa(x1, x2, x3, x4, x5)  =  U17_gaa(x1, x2, x3, x5)
U18_gaa(x1, x2, x3, x4, x5)  =  U18_gaa(x1, x2, x3, x5)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x4, x5, x7)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x4, x5, x7)
U10_gaa(x1, x2, x3, x4)  =  U10_gaa(x1, x2, x4)
U11_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_gaa(x1, x2, x3, x4, x5, x7)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x4, x5, x7)
U5_aaa(x1, x2, x3, x4, x5, x6)  =  U5_aaa(x6)
U6_aaa(x1, x2, x3, x4, x5, x6)  =  U6_aaa(x6)
U7_aaa(x1, x2, x3, x4)  =  U7_aaa(x4)
U8_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_aaa(x7)
tappend151_in_aaa(x1, x2, x3)  =  tappend151_in_aaa
tappend151_out_aaa(x1, x2, x3)  =  tappend151_out_aaa
U13_aaa(x1, x2, x3)  =  U13_aaa(x3)
U14_aaa(x1, x2, x3, x4, x5, x6)  =  U14_aaa(x6)
U15_aaa(x1, x2, x3, x4, x5, x6)  =  U15_aaa(x6)
U16_aaa(x1, x2)  =  U16_aaa(x2)
U17_aaa(x1, x2, x3, x4, x5)  =  U17_aaa(x5)
U18_aaa(x1, x2, x3, x4, x5)  =  U18_aaa(x5)
U9_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_aaa(x7)
U10_aaa(x1, x2, x3, x4)  =  U10_aaa(x4)
U11_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_aaa(x7)
U12_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_aaa(x7)
U24_gaa(x1, x2, x3, x4)  =  U24_gaa(x1, x4)
U25_gaa(x1, x2, x3, x4)  =  U25_gaa(x1, x4)
U26_gaa(x1, x2, x3, x4)  =  U26_gaa(x1, x4)
U27_gaa(x1, x2, x3, x4)  =  U27_gaa(x1, x4)
U28_gaa(x1, x2, x3, x4)  =  U28_gaa(x1, x4)
tlast39_in_aa(x1, x2)  =  tlast39_in_aa
tlast39_out_aa(x1, x2)  =  tlast39_out_aa
U19_aa(x1, x2, x3, x4, x5)  =  U19_aa(x5)
U20_aa(x1, x2, x3, x4, x5)  =  U20_aa(x5)
U29_gaa(x1, x2, x3, x4)  =  U29_gaa(x1, x4)
U30_gaa(x1, x2, x3, x4)  =  U30_gaa(x1, x4)
U31_gaa(x1, x2, x3, x4)  =  U31_gaa(x1, x4)

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

GOAL1_IN_GAA(T7, T10, T11) → U21_GAA(T7, T10, T11, s2t4_in_ga(T7, X21))
GOAL1_IN_GAA(T7, T10, T11) → S2T4_IN_GA(T7, X21)
S2T4_IN_GA(s(T14), node(X38, X39, X38)) → U1_GA(T14, X38, X39, s2t4_in_ga(T14, X38))
S2T4_IN_GA(s(T14), node(X38, X39, X38)) → S2T4_IN_GA(T14, X38)
S2T4_IN_GA(s(T16), node(nil, X52, X53)) → U2_GA(T16, X52, X53, s2t4_in_ga(T16, X53))
S2T4_IN_GA(s(T16), node(nil, X52, X53)) → S2T4_IN_GA(T16, X53)
S2T4_IN_GA(s(T18), node(X66, X67, nil)) → U3_GA(T18, X66, X67, s2t4_in_ga(T18, X66))
S2T4_IN_GA(s(T18), node(X66, X67, nil)) → S2T4_IN_GA(T18, X66)
GOAL1_IN_GAA(T7, T24, T25) → U22_GAA(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_GAA(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_GAA(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
U22_GAA(T7, T24, T25, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, X81)
TAPPEND38_IN_AAA(nil, T89, node(X217, nil, nil)) → U4_AAA(T89, X217, tappend38_in_gaa(nil, T89, X217))
TAPPEND38_IN_AAA(nil, T89, node(X217, nil, nil)) → TAPPEND38_IN_GAA(nil, T89, X217)
TAPPEND38_IN_GAA(nil, T89, node(X217, nil, nil)) → U4_GAA(T89, X217, tappend38_in_gaa(nil, T89, X217))
TAPPEND38_IN_GAA(nil, T89, node(X217, nil, nil)) → TAPPEND38_IN_GAA(nil, T89, X217)
TAPPEND38_IN_GAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_GAA(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
TAPPEND38_IN_GAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_GAA(T107, T108, X217)
TAPPEND38_IN_GAA(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_GAA(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_GAA(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_GAA(nil, X431, node(X432, nil, nil)) → U13_GAA(X431, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND151_IN_GAA(nil, X431, node(X432, nil, nil)) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_GAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_GAA(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
TAPPEND151_IN_GAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_GAA(T218, X431, X432)
TAPPEND151_IN_GAA(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_GAA(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
TAPPEND151_IN_GAA(nil, nil, node(nil, nil, X489)) → U16_GAA(X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND151_IN_GAA(nil, nil, node(nil, nil, X489)) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND151_IN_GAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_GAA(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
TAPPEND151_IN_GAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_GAA(T252, X486, X489)
TAPPEND151_IN_GAA(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_GAA(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_GAA(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → TAPPEND151_IN_GAA(T218, X431, X432)
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_GAA(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_GAA(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_GAA(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → TAPPEND151_IN_GAA(T252, X486, X489)
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_GAA(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
TAPPEND38_IN_AAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_AAA(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
TAPPEND38_IN_AAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_AAA(T107, T108, X217)
TAPPEND38_IN_AAA(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_AAA(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_AAA(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_AAA(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → TAPPEND151_IN_AAA(T218, X431, X432)
TAPPEND151_IN_AAA(nil, X431, node(X432, nil, nil)) → U13_AAA(X431, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND151_IN_AAA(nil, X431, node(X432, nil, nil)) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_AAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_AAA(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
TAPPEND151_IN_AAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_AAA(T218, X431, X432)
TAPPEND151_IN_AAA(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_AAA(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
TAPPEND151_IN_AAA(nil, nil, node(nil, nil, X489)) → U16_AAA(X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND151_IN_AAA(nil, nil, node(nil, nil, X489)) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND151_IN_AAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_AAA(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
TAPPEND151_IN_AAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_AAA(T252, X486, X489)
TAPPEND151_IN_AAA(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_AAA(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_AAA(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_AAA(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_AAA(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → TAPPEND151_IN_AAA(T252, X486, X489)
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_AAA(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
GOAL1_IN_GAA(T7, T24, T269) → U24_GAA(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_GAA(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_GAA(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U24_GAA(T7, T24, T269, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, node(nil, T269, nil))
GOAL1_IN_GAA(T7, T24, T274) → U26_GAA(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_GAA(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_GAA(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U26_GAA(T7, T24, T274, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, node(T275, T272, T273))
U27_GAA(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_GAA(T7, T24, T274, tlast39_in_aa(T274, T275))
U27_GAA(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → TLAST39_IN_AA(T274, T275)
TLAST39_IN_AA(T274, node(T275, T272, T273)) → U19_AA(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
TLAST39_IN_AA(T274, node(T275, T272, T273)) → TLAST39_IN_AA(T274, T275)
TLAST39_IN_AA(T280, node(T277, T278, T281)) → U20_AA(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
TLAST39_IN_AA(T280, node(T277, T278, T281)) → TLAST39_IN_AA(T280, T281)
GOAL1_IN_GAA(T7, T24, T280) → U29_GAA(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_GAA(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_GAA(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U29_GAA(T7, T24, T280, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, node(T277, T278, T281))
U30_GAA(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_GAA(T7, T24, T280, tlast39_in_aa(T280, T281))
U30_GAA(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → TLAST39_IN_AA(T280, T281)

The TRS R consists of the following rules:

goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)

The argument filtering Pi contains the following mapping:
goal1_in_gaa(x1, x2, x3)  =  goal1_in_gaa(x1)
U21_gaa(x1, x2, x3, x4)  =  U21_gaa(x1, x4)
s2t4_in_ga(x1, x2)  =  s2t4_in_ga(x1)
0  =  0
s2t4_out_ga(x1, x2)  =  s2t4_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x1, x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x1, x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x1, x4)
goal1_out_gaa(x1, x2, x3)  =  goal1_out_gaa(x1)
U22_gaa(x1, x2, x3, x4)  =  U22_gaa(x1, x4)
U23_gaa(x1, x2, x3, x4)  =  U23_gaa(x1, x4)
tappend38_in_aaa(x1, x2, x3)  =  tappend38_in_aaa
tappend38_out_aaa(x1, x2, x3)  =  tappend38_out_aaa
U4_aaa(x1, x2, x3)  =  U4_aaa(x3)
tappend38_in_gaa(x1, x2, x3)  =  tappend38_in_gaa(x1)
nil  =  nil
tappend38_out_gaa(x1, x2, x3)  =  tappend38_out_gaa(x1)
node(x1, x2, x3)  =  node(x1, x2, x3)
U4_gaa(x1, x2, x3)  =  U4_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x1, x2, x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x1, x2, x3, x6)
U7_gaa(x1, x2, x3, x4)  =  U7_gaa(x1, x2, x4)
tappend151_in_gaa(x1, x2, x3)  =  tappend151_in_gaa(x1)
tappend151_out_gaa(x1, x2, x3)  =  tappend151_out_gaa(x1)
U13_gaa(x1, x2, x3)  =  U13_gaa(x3)
U14_gaa(x1, x2, x3, x4, x5, x6)  =  U14_gaa(x1, x2, x3, x6)
U15_gaa(x1, x2, x3, x4, x5, x6)  =  U15_gaa(x1, x2, x3, x6)
U16_gaa(x1, x2)  =  U16_gaa(x2)
U17_gaa(x1, x2, x3, x4, x5)  =  U17_gaa(x1, x2, x3, x5)
U18_gaa(x1, x2, x3, x4, x5)  =  U18_gaa(x1, x2, x3, x5)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x4, x5, x7)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x4, x5, x7)
U10_gaa(x1, x2, x3, x4)  =  U10_gaa(x1, x2, x4)
U11_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_gaa(x1, x2, x3, x4, x5, x7)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x4, x5, x7)
U5_aaa(x1, x2, x3, x4, x5, x6)  =  U5_aaa(x6)
U6_aaa(x1, x2, x3, x4, x5, x6)  =  U6_aaa(x6)
U7_aaa(x1, x2, x3, x4)  =  U7_aaa(x4)
U8_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_aaa(x7)
tappend151_in_aaa(x1, x2, x3)  =  tappend151_in_aaa
tappend151_out_aaa(x1, x2, x3)  =  tappend151_out_aaa
U13_aaa(x1, x2, x3)  =  U13_aaa(x3)
U14_aaa(x1, x2, x3, x4, x5, x6)  =  U14_aaa(x6)
U15_aaa(x1, x2, x3, x4, x5, x6)  =  U15_aaa(x6)
U16_aaa(x1, x2)  =  U16_aaa(x2)
U17_aaa(x1, x2, x3, x4, x5)  =  U17_aaa(x5)
U18_aaa(x1, x2, x3, x4, x5)  =  U18_aaa(x5)
U9_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_aaa(x7)
U10_aaa(x1, x2, x3, x4)  =  U10_aaa(x4)
U11_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_aaa(x7)
U12_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_aaa(x7)
U24_gaa(x1, x2, x3, x4)  =  U24_gaa(x1, x4)
U25_gaa(x1, x2, x3, x4)  =  U25_gaa(x1, x4)
U26_gaa(x1, x2, x3, x4)  =  U26_gaa(x1, x4)
U27_gaa(x1, x2, x3, x4)  =  U27_gaa(x1, x4)
U28_gaa(x1, x2, x3, x4)  =  U28_gaa(x1, x4)
tlast39_in_aa(x1, x2)  =  tlast39_in_aa
tlast39_out_aa(x1, x2)  =  tlast39_out_aa
U19_aa(x1, x2, x3, x4, x5)  =  U19_aa(x5)
U20_aa(x1, x2, x3, x4, x5)  =  U20_aa(x5)
U29_gaa(x1, x2, x3, x4)  =  U29_gaa(x1, x4)
U30_gaa(x1, x2, x3, x4)  =  U30_gaa(x1, x4)
U31_gaa(x1, x2, x3, x4)  =  U31_gaa(x1, x4)
GOAL1_IN_GAA(x1, x2, x3)  =  GOAL1_IN_GAA(x1)
U21_GAA(x1, x2, x3, x4)  =  U21_GAA(x1, x4)
S2T4_IN_GA(x1, x2)  =  S2T4_IN_GA(x1)
U1_GA(x1, x2, x3, x4)  =  U1_GA(x1, x4)
U2_GA(x1, x2, x3, x4)  =  U2_GA(x1, x4)
U3_GA(x1, x2, x3, x4)  =  U3_GA(x1, x4)
U22_GAA(x1, x2, x3, x4)  =  U22_GAA(x1, x4)
U23_GAA(x1, x2, x3, x4)  =  U23_GAA(x1, x4)
TAPPEND38_IN_AAA(x1, x2, x3)  =  TAPPEND38_IN_AAA
U4_AAA(x1, x2, x3)  =  U4_AAA(x3)
TAPPEND38_IN_GAA(x1, x2, x3)  =  TAPPEND38_IN_GAA(x1)
U4_GAA(x1, x2, x3)  =  U4_GAA(x3)
U5_GAA(x1, x2, x3, x4, x5, x6)  =  U5_GAA(x1, x2, x3, x6)
U6_GAA(x1, x2, x3, x4, x5, x6)  =  U6_GAA(x1, x2, x3, x6)
U7_GAA(x1, x2, x3, x4)  =  U7_GAA(x1, x2, x4)
TAPPEND151_IN_GAA(x1, x2, x3)  =  TAPPEND151_IN_GAA(x1)
U13_GAA(x1, x2, x3)  =  U13_GAA(x3)
U14_GAA(x1, x2, x3, x4, x5, x6)  =  U14_GAA(x1, x2, x3, x6)
U15_GAA(x1, x2, x3, x4, x5, x6)  =  U15_GAA(x1, x2, x3, x6)
U16_GAA(x1, x2)  =  U16_GAA(x2)
U17_GAA(x1, x2, x3, x4, x5)  =  U17_GAA(x1, x2, x3, x5)
U18_GAA(x1, x2, x3, x4, x5)  =  U18_GAA(x1, x2, x3, x5)
U8_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U8_GAA(x1, x2, x3, x4, x5, x7)
U9_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U9_GAA(x1, x2, x3, x4, x5, x7)
U10_GAA(x1, x2, x3, x4)  =  U10_GAA(x1, x2, x4)
U11_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U11_GAA(x1, x2, x3, x4, x5, x7)
U12_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U12_GAA(x1, x2, x3, x4, x5, x7)
U5_AAA(x1, x2, x3, x4, x5, x6)  =  U5_AAA(x6)
U6_AAA(x1, x2, x3, x4, x5, x6)  =  U6_AAA(x6)
U7_AAA(x1, x2, x3, x4)  =  U7_AAA(x4)
U8_AAA(x1, x2, x3, x4, x5, x6, x7)  =  U8_AAA(x7)
TAPPEND151_IN_AAA(x1, x2, x3)  =  TAPPEND151_IN_AAA
U13_AAA(x1, x2, x3)  =  U13_AAA(x3)
U14_AAA(x1, x2, x3, x4, x5, x6)  =  U14_AAA(x6)
U15_AAA(x1, x2, x3, x4, x5, x6)  =  U15_AAA(x6)
U16_AAA(x1, x2)  =  U16_AAA(x2)
U17_AAA(x1, x2, x3, x4, x5)  =  U17_AAA(x5)
U18_AAA(x1, x2, x3, x4, x5)  =  U18_AAA(x5)
U9_AAA(x1, x2, x3, x4, x5, x6, x7)  =  U9_AAA(x7)
U10_AAA(x1, x2, x3, x4)  =  U10_AAA(x4)
U11_AAA(x1, x2, x3, x4, x5, x6, x7)  =  U11_AAA(x7)
U12_AAA(x1, x2, x3, x4, x5, x6, x7)  =  U12_AAA(x7)
U24_GAA(x1, x2, x3, x4)  =  U24_GAA(x1, x4)
U25_GAA(x1, x2, x3, x4)  =  U25_GAA(x1, x4)
U26_GAA(x1, x2, x3, x4)  =  U26_GAA(x1, x4)
U27_GAA(x1, x2, x3, x4)  =  U27_GAA(x1, x4)
U28_GAA(x1, x2, x3, x4)  =  U28_GAA(x1, x4)
TLAST39_IN_AA(x1, x2)  =  TLAST39_IN_AA
U19_AA(x1, x2, x3, x4, x5)  =  U19_AA(x5)
U20_AA(x1, x2, x3, x4, x5)  =  U20_AA(x5)
U29_GAA(x1, x2, x3, x4)  =  U29_GAA(x1, x4)
U30_GAA(x1, x2, x3, x4)  =  U30_GAA(x1, x4)
U31_GAA(x1, x2, x3, x4)  =  U31_GAA(x1, x4)

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

(6) Obligation:

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

GOAL1_IN_GAA(T7, T10, T11) → U21_GAA(T7, T10, T11, s2t4_in_ga(T7, X21))
GOAL1_IN_GAA(T7, T10, T11) → S2T4_IN_GA(T7, X21)
S2T4_IN_GA(s(T14), node(X38, X39, X38)) → U1_GA(T14, X38, X39, s2t4_in_ga(T14, X38))
S2T4_IN_GA(s(T14), node(X38, X39, X38)) → S2T4_IN_GA(T14, X38)
S2T4_IN_GA(s(T16), node(nil, X52, X53)) → U2_GA(T16, X52, X53, s2t4_in_ga(T16, X53))
S2T4_IN_GA(s(T16), node(nil, X52, X53)) → S2T4_IN_GA(T16, X53)
S2T4_IN_GA(s(T18), node(X66, X67, nil)) → U3_GA(T18, X66, X67, s2t4_in_ga(T18, X66))
S2T4_IN_GA(s(T18), node(X66, X67, nil)) → S2T4_IN_GA(T18, X66)
GOAL1_IN_GAA(T7, T24, T25) → U22_GAA(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_GAA(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_GAA(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
U22_GAA(T7, T24, T25, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, X81)
TAPPEND38_IN_AAA(nil, T89, node(X217, nil, nil)) → U4_AAA(T89, X217, tappend38_in_gaa(nil, T89, X217))
TAPPEND38_IN_AAA(nil, T89, node(X217, nil, nil)) → TAPPEND38_IN_GAA(nil, T89, X217)
TAPPEND38_IN_GAA(nil, T89, node(X217, nil, nil)) → U4_GAA(T89, X217, tappend38_in_gaa(nil, T89, X217))
TAPPEND38_IN_GAA(nil, T89, node(X217, nil, nil)) → TAPPEND38_IN_GAA(nil, T89, X217)
TAPPEND38_IN_GAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_GAA(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
TAPPEND38_IN_GAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_GAA(T107, T108, X217)
TAPPEND38_IN_GAA(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_GAA(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_GAA(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_GAA(nil, X431, node(X432, nil, nil)) → U13_GAA(X431, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND151_IN_GAA(nil, X431, node(X432, nil, nil)) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_GAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_GAA(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
TAPPEND151_IN_GAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_GAA(T218, X431, X432)
TAPPEND151_IN_GAA(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_GAA(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
TAPPEND151_IN_GAA(nil, nil, node(nil, nil, X489)) → U16_GAA(X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND151_IN_GAA(nil, nil, node(nil, nil, X489)) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND151_IN_GAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_GAA(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
TAPPEND151_IN_GAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_GAA(T252, X486, X489)
TAPPEND151_IN_GAA(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_GAA(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_GAA(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → TAPPEND151_IN_GAA(T218, X431, X432)
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_GAA(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_GAA(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_GAA(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → TAPPEND151_IN_GAA(T252, X486, X489)
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_GAA(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
TAPPEND38_IN_AAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_AAA(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
TAPPEND38_IN_AAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_AAA(T107, T108, X217)
TAPPEND38_IN_AAA(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_AAA(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_AAA(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_AAA(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → TAPPEND151_IN_AAA(T218, X431, X432)
TAPPEND151_IN_AAA(nil, X431, node(X432, nil, nil)) → U13_AAA(X431, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND151_IN_AAA(nil, X431, node(X432, nil, nil)) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_AAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_AAA(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
TAPPEND151_IN_AAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_AAA(T218, X431, X432)
TAPPEND151_IN_AAA(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_AAA(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
TAPPEND151_IN_AAA(nil, nil, node(nil, nil, X489)) → U16_AAA(X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND151_IN_AAA(nil, nil, node(nil, nil, X489)) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND151_IN_AAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_AAA(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
TAPPEND151_IN_AAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_AAA(T252, X486, X489)
TAPPEND151_IN_AAA(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_AAA(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_AAA(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_AAA(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_AAA(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → TAPPEND151_IN_AAA(T252, X486, X489)
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_AAA(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
GOAL1_IN_GAA(T7, T24, T269) → U24_GAA(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_GAA(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_GAA(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U24_GAA(T7, T24, T269, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, node(nil, T269, nil))
GOAL1_IN_GAA(T7, T24, T274) → U26_GAA(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_GAA(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_GAA(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U26_GAA(T7, T24, T274, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, node(T275, T272, T273))
U27_GAA(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_GAA(T7, T24, T274, tlast39_in_aa(T274, T275))
U27_GAA(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → TLAST39_IN_AA(T274, T275)
TLAST39_IN_AA(T274, node(T275, T272, T273)) → U19_AA(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
TLAST39_IN_AA(T274, node(T275, T272, T273)) → TLAST39_IN_AA(T274, T275)
TLAST39_IN_AA(T280, node(T277, T278, T281)) → U20_AA(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
TLAST39_IN_AA(T280, node(T277, T278, T281)) → TLAST39_IN_AA(T280, T281)
GOAL1_IN_GAA(T7, T24, T280) → U29_GAA(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_GAA(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_GAA(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U29_GAA(T7, T24, T280, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, node(T277, T278, T281))
U30_GAA(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_GAA(T7, T24, T280, tlast39_in_aa(T280, T281))
U30_GAA(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → TLAST39_IN_AA(T280, T281)

The TRS R consists of the following rules:

goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)

The argument filtering Pi contains the following mapping:
goal1_in_gaa(x1, x2, x3)  =  goal1_in_gaa(x1)
U21_gaa(x1, x2, x3, x4)  =  U21_gaa(x1, x4)
s2t4_in_ga(x1, x2)  =  s2t4_in_ga(x1)
0  =  0
s2t4_out_ga(x1, x2)  =  s2t4_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x1, x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x1, x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x1, x4)
goal1_out_gaa(x1, x2, x3)  =  goal1_out_gaa(x1)
U22_gaa(x1, x2, x3, x4)  =  U22_gaa(x1, x4)
U23_gaa(x1, x2, x3, x4)  =  U23_gaa(x1, x4)
tappend38_in_aaa(x1, x2, x3)  =  tappend38_in_aaa
tappend38_out_aaa(x1, x2, x3)  =  tappend38_out_aaa
U4_aaa(x1, x2, x3)  =  U4_aaa(x3)
tappend38_in_gaa(x1, x2, x3)  =  tappend38_in_gaa(x1)
nil  =  nil
tappend38_out_gaa(x1, x2, x3)  =  tappend38_out_gaa(x1)
node(x1, x2, x3)  =  node(x1, x2, x3)
U4_gaa(x1, x2, x3)  =  U4_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x1, x2, x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x1, x2, x3, x6)
U7_gaa(x1, x2, x3, x4)  =  U7_gaa(x1, x2, x4)
tappend151_in_gaa(x1, x2, x3)  =  tappend151_in_gaa(x1)
tappend151_out_gaa(x1, x2, x3)  =  tappend151_out_gaa(x1)
U13_gaa(x1, x2, x3)  =  U13_gaa(x3)
U14_gaa(x1, x2, x3, x4, x5, x6)  =  U14_gaa(x1, x2, x3, x6)
U15_gaa(x1, x2, x3, x4, x5, x6)  =  U15_gaa(x1, x2, x3, x6)
U16_gaa(x1, x2)  =  U16_gaa(x2)
U17_gaa(x1, x2, x3, x4, x5)  =  U17_gaa(x1, x2, x3, x5)
U18_gaa(x1, x2, x3, x4, x5)  =  U18_gaa(x1, x2, x3, x5)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x4, x5, x7)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x4, x5, x7)
U10_gaa(x1, x2, x3, x4)  =  U10_gaa(x1, x2, x4)
U11_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_gaa(x1, x2, x3, x4, x5, x7)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x4, x5, x7)
U5_aaa(x1, x2, x3, x4, x5, x6)  =  U5_aaa(x6)
U6_aaa(x1, x2, x3, x4, x5, x6)  =  U6_aaa(x6)
U7_aaa(x1, x2, x3, x4)  =  U7_aaa(x4)
U8_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_aaa(x7)
tappend151_in_aaa(x1, x2, x3)  =  tappend151_in_aaa
tappend151_out_aaa(x1, x2, x3)  =  tappend151_out_aaa
U13_aaa(x1, x2, x3)  =  U13_aaa(x3)
U14_aaa(x1, x2, x3, x4, x5, x6)  =  U14_aaa(x6)
U15_aaa(x1, x2, x3, x4, x5, x6)  =  U15_aaa(x6)
U16_aaa(x1, x2)  =  U16_aaa(x2)
U17_aaa(x1, x2, x3, x4, x5)  =  U17_aaa(x5)
U18_aaa(x1, x2, x3, x4, x5)  =  U18_aaa(x5)
U9_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_aaa(x7)
U10_aaa(x1, x2, x3, x4)  =  U10_aaa(x4)
U11_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_aaa(x7)
U12_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_aaa(x7)
U24_gaa(x1, x2, x3, x4)  =  U24_gaa(x1, x4)
U25_gaa(x1, x2, x3, x4)  =  U25_gaa(x1, x4)
U26_gaa(x1, x2, x3, x4)  =  U26_gaa(x1, x4)
U27_gaa(x1, x2, x3, x4)  =  U27_gaa(x1, x4)
U28_gaa(x1, x2, x3, x4)  =  U28_gaa(x1, x4)
tlast39_in_aa(x1, x2)  =  tlast39_in_aa
tlast39_out_aa(x1, x2)  =  tlast39_out_aa
U19_aa(x1, x2, x3, x4, x5)  =  U19_aa(x5)
U20_aa(x1, x2, x3, x4, x5)  =  U20_aa(x5)
U29_gaa(x1, x2, x3, x4)  =  U29_gaa(x1, x4)
U30_gaa(x1, x2, x3, x4)  =  U30_gaa(x1, x4)
U31_gaa(x1, x2, x3, x4)  =  U31_gaa(x1, x4)
GOAL1_IN_GAA(x1, x2, x3)  =  GOAL1_IN_GAA(x1)
U21_GAA(x1, x2, x3, x4)  =  U21_GAA(x1, x4)
S2T4_IN_GA(x1, x2)  =  S2T4_IN_GA(x1)
U1_GA(x1, x2, x3, x4)  =  U1_GA(x1, x4)
U2_GA(x1, x2, x3, x4)  =  U2_GA(x1, x4)
U3_GA(x1, x2, x3, x4)  =  U3_GA(x1, x4)
U22_GAA(x1, x2, x3, x4)  =  U22_GAA(x1, x4)
U23_GAA(x1, x2, x3, x4)  =  U23_GAA(x1, x4)
TAPPEND38_IN_AAA(x1, x2, x3)  =  TAPPEND38_IN_AAA
U4_AAA(x1, x2, x3)  =  U4_AAA(x3)
TAPPEND38_IN_GAA(x1, x2, x3)  =  TAPPEND38_IN_GAA(x1)
U4_GAA(x1, x2, x3)  =  U4_GAA(x3)
U5_GAA(x1, x2, x3, x4, x5, x6)  =  U5_GAA(x1, x2, x3, x6)
U6_GAA(x1, x2, x3, x4, x5, x6)  =  U6_GAA(x1, x2, x3, x6)
U7_GAA(x1, x2, x3, x4)  =  U7_GAA(x1, x2, x4)
TAPPEND151_IN_GAA(x1, x2, x3)  =  TAPPEND151_IN_GAA(x1)
U13_GAA(x1, x2, x3)  =  U13_GAA(x3)
U14_GAA(x1, x2, x3, x4, x5, x6)  =  U14_GAA(x1, x2, x3, x6)
U15_GAA(x1, x2, x3, x4, x5, x6)  =  U15_GAA(x1, x2, x3, x6)
U16_GAA(x1, x2)  =  U16_GAA(x2)
U17_GAA(x1, x2, x3, x4, x5)  =  U17_GAA(x1, x2, x3, x5)
U18_GAA(x1, x2, x3, x4, x5)  =  U18_GAA(x1, x2, x3, x5)
U8_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U8_GAA(x1, x2, x3, x4, x5, x7)
U9_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U9_GAA(x1, x2, x3, x4, x5, x7)
U10_GAA(x1, x2, x3, x4)  =  U10_GAA(x1, x2, x4)
U11_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U11_GAA(x1, x2, x3, x4, x5, x7)
U12_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U12_GAA(x1, x2, x3, x4, x5, x7)
U5_AAA(x1, x2, x3, x4, x5, x6)  =  U5_AAA(x6)
U6_AAA(x1, x2, x3, x4, x5, x6)  =  U6_AAA(x6)
U7_AAA(x1, x2, x3, x4)  =  U7_AAA(x4)
U8_AAA(x1, x2, x3, x4, x5, x6, x7)  =  U8_AAA(x7)
TAPPEND151_IN_AAA(x1, x2, x3)  =  TAPPEND151_IN_AAA
U13_AAA(x1, x2, x3)  =  U13_AAA(x3)
U14_AAA(x1, x2, x3, x4, x5, x6)  =  U14_AAA(x6)
U15_AAA(x1, x2, x3, x4, x5, x6)  =  U15_AAA(x6)
U16_AAA(x1, x2)  =  U16_AAA(x2)
U17_AAA(x1, x2, x3, x4, x5)  =  U17_AAA(x5)
U18_AAA(x1, x2, x3, x4, x5)  =  U18_AAA(x5)
U9_AAA(x1, x2, x3, x4, x5, x6, x7)  =  U9_AAA(x7)
U10_AAA(x1, x2, x3, x4)  =  U10_AAA(x4)
U11_AAA(x1, x2, x3, x4, x5, x6, x7)  =  U11_AAA(x7)
U12_AAA(x1, x2, x3, x4, x5, x6, x7)  =  U12_AAA(x7)
U24_GAA(x1, x2, x3, x4)  =  U24_GAA(x1, x4)
U25_GAA(x1, x2, x3, x4)  =  U25_GAA(x1, x4)
U26_GAA(x1, x2, x3, x4)  =  U26_GAA(x1, x4)
U27_GAA(x1, x2, x3, x4)  =  U27_GAA(x1, x4)
U28_GAA(x1, x2, x3, x4)  =  U28_GAA(x1, x4)
TLAST39_IN_AA(x1, x2)  =  TLAST39_IN_AA
U19_AA(x1, x2, x3, x4, x5)  =  U19_AA(x5)
U20_AA(x1, x2, x3, x4, x5)  =  U20_AA(x5)
U29_GAA(x1, x2, x3, x4)  =  U29_GAA(x1, x4)
U30_GAA(x1, x2, x3, x4)  =  U30_GAA(x1, x4)
U31_GAA(x1, x2, x3, x4)  =  U31_GAA(x1, x4)

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

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 8 SCCs with 64 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

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

TLAST39_IN_AA(T280, node(T277, T278, T281)) → TLAST39_IN_AA(T280, T281)
TLAST39_IN_AA(T274, node(T275, T272, T273)) → TLAST39_IN_AA(T274, T275)

The TRS R consists of the following rules:

goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)

The argument filtering Pi contains the following mapping:
goal1_in_gaa(x1, x2, x3)  =  goal1_in_gaa(x1)
U21_gaa(x1, x2, x3, x4)  =  U21_gaa(x1, x4)
s2t4_in_ga(x1, x2)  =  s2t4_in_ga(x1)
0  =  0
s2t4_out_ga(x1, x2)  =  s2t4_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x1, x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x1, x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x1, x4)
goal1_out_gaa(x1, x2, x3)  =  goal1_out_gaa(x1)
U22_gaa(x1, x2, x3, x4)  =  U22_gaa(x1, x4)
U23_gaa(x1, x2, x3, x4)  =  U23_gaa(x1, x4)
tappend38_in_aaa(x1, x2, x3)  =  tappend38_in_aaa
tappend38_out_aaa(x1, x2, x3)  =  tappend38_out_aaa
U4_aaa(x1, x2, x3)  =  U4_aaa(x3)
tappend38_in_gaa(x1, x2, x3)  =  tappend38_in_gaa(x1)
nil  =  nil
tappend38_out_gaa(x1, x2, x3)  =  tappend38_out_gaa(x1)
node(x1, x2, x3)  =  node(x1, x2, x3)
U4_gaa(x1, x2, x3)  =  U4_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x1, x2, x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x1, x2, x3, x6)
U7_gaa(x1, x2, x3, x4)  =  U7_gaa(x1, x2, x4)
tappend151_in_gaa(x1, x2, x3)  =  tappend151_in_gaa(x1)
tappend151_out_gaa(x1, x2, x3)  =  tappend151_out_gaa(x1)
U13_gaa(x1, x2, x3)  =  U13_gaa(x3)
U14_gaa(x1, x2, x3, x4, x5, x6)  =  U14_gaa(x1, x2, x3, x6)
U15_gaa(x1, x2, x3, x4, x5, x6)  =  U15_gaa(x1, x2, x3, x6)
U16_gaa(x1, x2)  =  U16_gaa(x2)
U17_gaa(x1, x2, x3, x4, x5)  =  U17_gaa(x1, x2, x3, x5)
U18_gaa(x1, x2, x3, x4, x5)  =  U18_gaa(x1, x2, x3, x5)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x4, x5, x7)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x4, x5, x7)
U10_gaa(x1, x2, x3, x4)  =  U10_gaa(x1, x2, x4)
U11_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_gaa(x1, x2, x3, x4, x5, x7)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x4, x5, x7)
U5_aaa(x1, x2, x3, x4, x5, x6)  =  U5_aaa(x6)
U6_aaa(x1, x2, x3, x4, x5, x6)  =  U6_aaa(x6)
U7_aaa(x1, x2, x3, x4)  =  U7_aaa(x4)
U8_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_aaa(x7)
tappend151_in_aaa(x1, x2, x3)  =  tappend151_in_aaa
tappend151_out_aaa(x1, x2, x3)  =  tappend151_out_aaa
U13_aaa(x1, x2, x3)  =  U13_aaa(x3)
U14_aaa(x1, x2, x3, x4, x5, x6)  =  U14_aaa(x6)
U15_aaa(x1, x2, x3, x4, x5, x6)  =  U15_aaa(x6)
U16_aaa(x1, x2)  =  U16_aaa(x2)
U17_aaa(x1, x2, x3, x4, x5)  =  U17_aaa(x5)
U18_aaa(x1, x2, x3, x4, x5)  =  U18_aaa(x5)
U9_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_aaa(x7)
U10_aaa(x1, x2, x3, x4)  =  U10_aaa(x4)
U11_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_aaa(x7)
U12_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_aaa(x7)
U24_gaa(x1, x2, x3, x4)  =  U24_gaa(x1, x4)
U25_gaa(x1, x2, x3, x4)  =  U25_gaa(x1, x4)
U26_gaa(x1, x2, x3, x4)  =  U26_gaa(x1, x4)
U27_gaa(x1, x2, x3, x4)  =  U27_gaa(x1, x4)
U28_gaa(x1, x2, x3, x4)  =  U28_gaa(x1, x4)
tlast39_in_aa(x1, x2)  =  tlast39_in_aa
tlast39_out_aa(x1, x2)  =  tlast39_out_aa
U19_aa(x1, x2, x3, x4, x5)  =  U19_aa(x5)
U20_aa(x1, x2, x3, x4, x5)  =  U20_aa(x5)
U29_gaa(x1, x2, x3, x4)  =  U29_gaa(x1, x4)
U30_gaa(x1, x2, x3, x4)  =  U30_gaa(x1, x4)
U31_gaa(x1, x2, x3, x4)  =  U31_gaa(x1, x4)
TLAST39_IN_AA(x1, x2)  =  TLAST39_IN_AA

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:

TLAST39_IN_AA(T280, node(T277, T278, T281)) → TLAST39_IN_AA(T280, T281)
TLAST39_IN_AA(T274, node(T275, T272, T273)) → TLAST39_IN_AA(T274, T275)

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

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:

TLAST39_IN_AATLAST39_IN_AA

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

(14) 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 = TLAST39_IN_AA evaluates to t =TLAST39_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 TLAST39_IN_AA to TLAST39_IN_AA.



(15) FALSE

(16) Obligation:

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

TAPPEND151_IN_GAA(nil, nil, node(nil, nil, X489)) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND151_IN_GAA(nil, X431, node(X432, nil, nil)) → TAPPEND151_IN_GAA(nil, X431, X432)

The TRS R consists of the following rules:

goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)

The argument filtering Pi contains the following mapping:
goal1_in_gaa(x1, x2, x3)  =  goal1_in_gaa(x1)
U21_gaa(x1, x2, x3, x4)  =  U21_gaa(x1, x4)
s2t4_in_ga(x1, x2)  =  s2t4_in_ga(x1)
0  =  0
s2t4_out_ga(x1, x2)  =  s2t4_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x1, x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x1, x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x1, x4)
goal1_out_gaa(x1, x2, x3)  =  goal1_out_gaa(x1)
U22_gaa(x1, x2, x3, x4)  =  U22_gaa(x1, x4)
U23_gaa(x1, x2, x3, x4)  =  U23_gaa(x1, x4)
tappend38_in_aaa(x1, x2, x3)  =  tappend38_in_aaa
tappend38_out_aaa(x1, x2, x3)  =  tappend38_out_aaa
U4_aaa(x1, x2, x3)  =  U4_aaa(x3)
tappend38_in_gaa(x1, x2, x3)  =  tappend38_in_gaa(x1)
nil  =  nil
tappend38_out_gaa(x1, x2, x3)  =  tappend38_out_gaa(x1)
node(x1, x2, x3)  =  node(x1, x2, x3)
U4_gaa(x1, x2, x3)  =  U4_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x1, x2, x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x1, x2, x3, x6)
U7_gaa(x1, x2, x3, x4)  =  U7_gaa(x1, x2, x4)
tappend151_in_gaa(x1, x2, x3)  =  tappend151_in_gaa(x1)
tappend151_out_gaa(x1, x2, x3)  =  tappend151_out_gaa(x1)
U13_gaa(x1, x2, x3)  =  U13_gaa(x3)
U14_gaa(x1, x2, x3, x4, x5, x6)  =  U14_gaa(x1, x2, x3, x6)
U15_gaa(x1, x2, x3, x4, x5, x6)  =  U15_gaa(x1, x2, x3, x6)
U16_gaa(x1, x2)  =  U16_gaa(x2)
U17_gaa(x1, x2, x3, x4, x5)  =  U17_gaa(x1, x2, x3, x5)
U18_gaa(x1, x2, x3, x4, x5)  =  U18_gaa(x1, x2, x3, x5)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x4, x5, x7)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x4, x5, x7)
U10_gaa(x1, x2, x3, x4)  =  U10_gaa(x1, x2, x4)
U11_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_gaa(x1, x2, x3, x4, x5, x7)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x4, x5, x7)
U5_aaa(x1, x2, x3, x4, x5, x6)  =  U5_aaa(x6)
U6_aaa(x1, x2, x3, x4, x5, x6)  =  U6_aaa(x6)
U7_aaa(x1, x2, x3, x4)  =  U7_aaa(x4)
U8_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_aaa(x7)
tappend151_in_aaa(x1, x2, x3)  =  tappend151_in_aaa
tappend151_out_aaa(x1, x2, x3)  =  tappend151_out_aaa
U13_aaa(x1, x2, x3)  =  U13_aaa(x3)
U14_aaa(x1, x2, x3, x4, x5, x6)  =  U14_aaa(x6)
U15_aaa(x1, x2, x3, x4, x5, x6)  =  U15_aaa(x6)
U16_aaa(x1, x2)  =  U16_aaa(x2)
U17_aaa(x1, x2, x3, x4, x5)  =  U17_aaa(x5)
U18_aaa(x1, x2, x3, x4, x5)  =  U18_aaa(x5)
U9_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_aaa(x7)
U10_aaa(x1, x2, x3, x4)  =  U10_aaa(x4)
U11_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_aaa(x7)
U12_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_aaa(x7)
U24_gaa(x1, x2, x3, x4)  =  U24_gaa(x1, x4)
U25_gaa(x1, x2, x3, x4)  =  U25_gaa(x1, x4)
U26_gaa(x1, x2, x3, x4)  =  U26_gaa(x1, x4)
U27_gaa(x1, x2, x3, x4)  =  U27_gaa(x1, x4)
U28_gaa(x1, x2, x3, x4)  =  U28_gaa(x1, x4)
tlast39_in_aa(x1, x2)  =  tlast39_in_aa
tlast39_out_aa(x1, x2)  =  tlast39_out_aa
U19_aa(x1, x2, x3, x4, x5)  =  U19_aa(x5)
U20_aa(x1, x2, x3, x4, x5)  =  U20_aa(x5)
U29_gaa(x1, x2, x3, x4)  =  U29_gaa(x1, x4)
U30_gaa(x1, x2, x3, x4)  =  U30_gaa(x1, x4)
U31_gaa(x1, x2, x3, x4)  =  U31_gaa(x1, x4)
TAPPEND151_IN_GAA(x1, x2, x3)  =  TAPPEND151_IN_GAA(x1)

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:

TAPPEND151_IN_GAA(nil, nil, node(nil, nil, X489)) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND151_IN_GAA(nil, X431, node(X432, nil, nil)) → TAPPEND151_IN_GAA(nil, X431, X432)

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

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:

TAPPEND151_IN_GAA(nil) → TAPPEND151_IN_GAA(nil)

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

(21) 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 = TAPPEND151_IN_GAA(nil) evaluates to t =TAPPEND151_IN_GAA(nil)

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 TAPPEND151_IN_GAA(nil) to TAPPEND151_IN_GAA(nil).



(22) FALSE

(23) Obligation:

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

TAPPEND151_IN_AAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_AAA(T252, X486, X489)
TAPPEND151_IN_AAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_AAA(T218, X431, X432)

The TRS R consists of the following rules:

goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)

The argument filtering Pi contains the following mapping:
goal1_in_gaa(x1, x2, x3)  =  goal1_in_gaa(x1)
U21_gaa(x1, x2, x3, x4)  =  U21_gaa(x1, x4)
s2t4_in_ga(x1, x2)  =  s2t4_in_ga(x1)
0  =  0
s2t4_out_ga(x1, x2)  =  s2t4_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x1, x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x1, x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x1, x4)
goal1_out_gaa(x1, x2, x3)  =  goal1_out_gaa(x1)
U22_gaa(x1, x2, x3, x4)  =  U22_gaa(x1, x4)
U23_gaa(x1, x2, x3, x4)  =  U23_gaa(x1, x4)
tappend38_in_aaa(x1, x2, x3)  =  tappend38_in_aaa
tappend38_out_aaa(x1, x2, x3)  =  tappend38_out_aaa
U4_aaa(x1, x2, x3)  =  U4_aaa(x3)
tappend38_in_gaa(x1, x2, x3)  =  tappend38_in_gaa(x1)
nil  =  nil
tappend38_out_gaa(x1, x2, x3)  =  tappend38_out_gaa(x1)
node(x1, x2, x3)  =  node(x1, x2, x3)
U4_gaa(x1, x2, x3)  =  U4_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x1, x2, x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x1, x2, x3, x6)
U7_gaa(x1, x2, x3, x4)  =  U7_gaa(x1, x2, x4)
tappend151_in_gaa(x1, x2, x3)  =  tappend151_in_gaa(x1)
tappend151_out_gaa(x1, x2, x3)  =  tappend151_out_gaa(x1)
U13_gaa(x1, x2, x3)  =  U13_gaa(x3)
U14_gaa(x1, x2, x3, x4, x5, x6)  =  U14_gaa(x1, x2, x3, x6)
U15_gaa(x1, x2, x3, x4, x5, x6)  =  U15_gaa(x1, x2, x3, x6)
U16_gaa(x1, x2)  =  U16_gaa(x2)
U17_gaa(x1, x2, x3, x4, x5)  =  U17_gaa(x1, x2, x3, x5)
U18_gaa(x1, x2, x3, x4, x5)  =  U18_gaa(x1, x2, x3, x5)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x4, x5, x7)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x4, x5, x7)
U10_gaa(x1, x2, x3, x4)  =  U10_gaa(x1, x2, x4)
U11_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_gaa(x1, x2, x3, x4, x5, x7)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x4, x5, x7)
U5_aaa(x1, x2, x3, x4, x5, x6)  =  U5_aaa(x6)
U6_aaa(x1, x2, x3, x4, x5, x6)  =  U6_aaa(x6)
U7_aaa(x1, x2, x3, x4)  =  U7_aaa(x4)
U8_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_aaa(x7)
tappend151_in_aaa(x1, x2, x3)  =  tappend151_in_aaa
tappend151_out_aaa(x1, x2, x3)  =  tappend151_out_aaa
U13_aaa(x1, x2, x3)  =  U13_aaa(x3)
U14_aaa(x1, x2, x3, x4, x5, x6)  =  U14_aaa(x6)
U15_aaa(x1, x2, x3, x4, x5, x6)  =  U15_aaa(x6)
U16_aaa(x1, x2)  =  U16_aaa(x2)
U17_aaa(x1, x2, x3, x4, x5)  =  U17_aaa(x5)
U18_aaa(x1, x2, x3, x4, x5)  =  U18_aaa(x5)
U9_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_aaa(x7)
U10_aaa(x1, x2, x3, x4)  =  U10_aaa(x4)
U11_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_aaa(x7)
U12_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_aaa(x7)
U24_gaa(x1, x2, x3, x4)  =  U24_gaa(x1, x4)
U25_gaa(x1, x2, x3, x4)  =  U25_gaa(x1, x4)
U26_gaa(x1, x2, x3, x4)  =  U26_gaa(x1, x4)
U27_gaa(x1, x2, x3, x4)  =  U27_gaa(x1, x4)
U28_gaa(x1, x2, x3, x4)  =  U28_gaa(x1, x4)
tlast39_in_aa(x1, x2)  =  tlast39_in_aa
tlast39_out_aa(x1, x2)  =  tlast39_out_aa
U19_aa(x1, x2, x3, x4, x5)  =  U19_aa(x5)
U20_aa(x1, x2, x3, x4, x5)  =  U20_aa(x5)
U29_gaa(x1, x2, x3, x4)  =  U29_gaa(x1, x4)
U30_gaa(x1, x2, x3, x4)  =  U30_gaa(x1, x4)
U31_gaa(x1, x2, x3, x4)  =  U31_gaa(x1, x4)
TAPPEND151_IN_AAA(x1, x2, x3)  =  TAPPEND151_IN_AAA

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:

TAPPEND151_IN_AAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_AAA(T252, X486, X489)
TAPPEND151_IN_AAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_AAA(T218, X431, X432)

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

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:

TAPPEND151_IN_AAATAPPEND151_IN_AAA

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 = TAPPEND151_IN_AAA evaluates to t =TAPPEND151_IN_AAA

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 TAPPEND151_IN_AAA to TAPPEND151_IN_AAA.



(29) FALSE

(30) Obligation:

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

TAPPEND151_IN_GAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_GAA(T252, X486, X489)
TAPPEND151_IN_GAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_GAA(T218, X431, X432)

The TRS R consists of the following rules:

goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)

The argument filtering Pi contains the following mapping:
goal1_in_gaa(x1, x2, x3)  =  goal1_in_gaa(x1)
U21_gaa(x1, x2, x3, x4)  =  U21_gaa(x1, x4)
s2t4_in_ga(x1, x2)  =  s2t4_in_ga(x1)
0  =  0
s2t4_out_ga(x1, x2)  =  s2t4_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x1, x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x1, x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x1, x4)
goal1_out_gaa(x1, x2, x3)  =  goal1_out_gaa(x1)
U22_gaa(x1, x2, x3, x4)  =  U22_gaa(x1, x4)
U23_gaa(x1, x2, x3, x4)  =  U23_gaa(x1, x4)
tappend38_in_aaa(x1, x2, x3)  =  tappend38_in_aaa
tappend38_out_aaa(x1, x2, x3)  =  tappend38_out_aaa
U4_aaa(x1, x2, x3)  =  U4_aaa(x3)
tappend38_in_gaa(x1, x2, x3)  =  tappend38_in_gaa(x1)
nil  =  nil
tappend38_out_gaa(x1, x2, x3)  =  tappend38_out_gaa(x1)
node(x1, x2, x3)  =  node(x1, x2, x3)
U4_gaa(x1, x2, x3)  =  U4_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x1, x2, x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x1, x2, x3, x6)
U7_gaa(x1, x2, x3, x4)  =  U7_gaa(x1, x2, x4)
tappend151_in_gaa(x1, x2, x3)  =  tappend151_in_gaa(x1)
tappend151_out_gaa(x1, x2, x3)  =  tappend151_out_gaa(x1)
U13_gaa(x1, x2, x3)  =  U13_gaa(x3)
U14_gaa(x1, x2, x3, x4, x5, x6)  =  U14_gaa(x1, x2, x3, x6)
U15_gaa(x1, x2, x3, x4, x5, x6)  =  U15_gaa(x1, x2, x3, x6)
U16_gaa(x1, x2)  =  U16_gaa(x2)
U17_gaa(x1, x2, x3, x4, x5)  =  U17_gaa(x1, x2, x3, x5)
U18_gaa(x1, x2, x3, x4, x5)  =  U18_gaa(x1, x2, x3, x5)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x4, x5, x7)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x4, x5, x7)
U10_gaa(x1, x2, x3, x4)  =  U10_gaa(x1, x2, x4)
U11_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_gaa(x1, x2, x3, x4, x5, x7)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x4, x5, x7)
U5_aaa(x1, x2, x3, x4, x5, x6)  =  U5_aaa(x6)
U6_aaa(x1, x2, x3, x4, x5, x6)  =  U6_aaa(x6)
U7_aaa(x1, x2, x3, x4)  =  U7_aaa(x4)
U8_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_aaa(x7)
tappend151_in_aaa(x1, x2, x3)  =  tappend151_in_aaa
tappend151_out_aaa(x1, x2, x3)  =  tappend151_out_aaa
U13_aaa(x1, x2, x3)  =  U13_aaa(x3)
U14_aaa(x1, x2, x3, x4, x5, x6)  =  U14_aaa(x6)
U15_aaa(x1, x2, x3, x4, x5, x6)  =  U15_aaa(x6)
U16_aaa(x1, x2)  =  U16_aaa(x2)
U17_aaa(x1, x2, x3, x4, x5)  =  U17_aaa(x5)
U18_aaa(x1, x2, x3, x4, x5)  =  U18_aaa(x5)
U9_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_aaa(x7)
U10_aaa(x1, x2, x3, x4)  =  U10_aaa(x4)
U11_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_aaa(x7)
U12_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_aaa(x7)
U24_gaa(x1, x2, x3, x4)  =  U24_gaa(x1, x4)
U25_gaa(x1, x2, x3, x4)  =  U25_gaa(x1, x4)
U26_gaa(x1, x2, x3, x4)  =  U26_gaa(x1, x4)
U27_gaa(x1, x2, x3, x4)  =  U27_gaa(x1, x4)
U28_gaa(x1, x2, x3, x4)  =  U28_gaa(x1, x4)
tlast39_in_aa(x1, x2)  =  tlast39_in_aa
tlast39_out_aa(x1, x2)  =  tlast39_out_aa
U19_aa(x1, x2, x3, x4, x5)  =  U19_aa(x5)
U20_aa(x1, x2, x3, x4, x5)  =  U20_aa(x5)
U29_gaa(x1, x2, x3, x4)  =  U29_gaa(x1, x4)
U30_gaa(x1, x2, x3, x4)  =  U30_gaa(x1, x4)
U31_gaa(x1, x2, x3, x4)  =  U31_gaa(x1, x4)
TAPPEND151_IN_GAA(x1, x2, x3)  =  TAPPEND151_IN_GAA(x1)

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:

TAPPEND151_IN_GAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_GAA(T252, X486, X489)
TAPPEND151_IN_GAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_GAA(T218, X431, X432)

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

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:

TAPPEND151_IN_GAA(node(T249, T250, T252)) → TAPPEND151_IN_GAA(T252)
TAPPEND151_IN_GAA(node(T218, T216, T217)) → TAPPEND151_IN_GAA(T218)

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

(35) QDPSizeChangeProof (EQUIVALENT transformation)

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

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

  • TAPPEND151_IN_GAA(node(T249, T250, T252)) → TAPPEND151_IN_GAA(T252)
    The graph contains the following edges 1 > 1

  • TAPPEND151_IN_GAA(node(T218, T216, T217)) → TAPPEND151_IN_GAA(T218)
    The graph contains the following edges 1 > 1

(36) TRUE

(37) Obligation:

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

TAPPEND38_IN_GAA(nil, T89, node(X217, nil, nil)) → TAPPEND38_IN_GAA(nil, T89, X217)

The TRS R consists of the following rules:

goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)

The argument filtering Pi contains the following mapping:
goal1_in_gaa(x1, x2, x3)  =  goal1_in_gaa(x1)
U21_gaa(x1, x2, x3, x4)  =  U21_gaa(x1, x4)
s2t4_in_ga(x1, x2)  =  s2t4_in_ga(x1)
0  =  0
s2t4_out_ga(x1, x2)  =  s2t4_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x1, x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x1, x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x1, x4)
goal1_out_gaa(x1, x2, x3)  =  goal1_out_gaa(x1)
U22_gaa(x1, x2, x3, x4)  =  U22_gaa(x1, x4)
U23_gaa(x1, x2, x3, x4)  =  U23_gaa(x1, x4)
tappend38_in_aaa(x1, x2, x3)  =  tappend38_in_aaa
tappend38_out_aaa(x1, x2, x3)  =  tappend38_out_aaa
U4_aaa(x1, x2, x3)  =  U4_aaa(x3)
tappend38_in_gaa(x1, x2, x3)  =  tappend38_in_gaa(x1)
nil  =  nil
tappend38_out_gaa(x1, x2, x3)  =  tappend38_out_gaa(x1)
node(x1, x2, x3)  =  node(x1, x2, x3)
U4_gaa(x1, x2, x3)  =  U4_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x1, x2, x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x1, x2, x3, x6)
U7_gaa(x1, x2, x3, x4)  =  U7_gaa(x1, x2, x4)
tappend151_in_gaa(x1, x2, x3)  =  tappend151_in_gaa(x1)
tappend151_out_gaa(x1, x2, x3)  =  tappend151_out_gaa(x1)
U13_gaa(x1, x2, x3)  =  U13_gaa(x3)
U14_gaa(x1, x2, x3, x4, x5, x6)  =  U14_gaa(x1, x2, x3, x6)
U15_gaa(x1, x2, x3, x4, x5, x6)  =  U15_gaa(x1, x2, x3, x6)
U16_gaa(x1, x2)  =  U16_gaa(x2)
U17_gaa(x1, x2, x3, x4, x5)  =  U17_gaa(x1, x2, x3, x5)
U18_gaa(x1, x2, x3, x4, x5)  =  U18_gaa(x1, x2, x3, x5)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x4, x5, x7)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x4, x5, x7)
U10_gaa(x1, x2, x3, x4)  =  U10_gaa(x1, x2, x4)
U11_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_gaa(x1, x2, x3, x4, x5, x7)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x4, x5, x7)
U5_aaa(x1, x2, x3, x4, x5, x6)  =  U5_aaa(x6)
U6_aaa(x1, x2, x3, x4, x5, x6)  =  U6_aaa(x6)
U7_aaa(x1, x2, x3, x4)  =  U7_aaa(x4)
U8_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_aaa(x7)
tappend151_in_aaa(x1, x2, x3)  =  tappend151_in_aaa
tappend151_out_aaa(x1, x2, x3)  =  tappend151_out_aaa
U13_aaa(x1, x2, x3)  =  U13_aaa(x3)
U14_aaa(x1, x2, x3, x4, x5, x6)  =  U14_aaa(x6)
U15_aaa(x1, x2, x3, x4, x5, x6)  =  U15_aaa(x6)
U16_aaa(x1, x2)  =  U16_aaa(x2)
U17_aaa(x1, x2, x3, x4, x5)  =  U17_aaa(x5)
U18_aaa(x1, x2, x3, x4, x5)  =  U18_aaa(x5)
U9_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_aaa(x7)
U10_aaa(x1, x2, x3, x4)  =  U10_aaa(x4)
U11_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_aaa(x7)
U12_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_aaa(x7)
U24_gaa(x1, x2, x3, x4)  =  U24_gaa(x1, x4)
U25_gaa(x1, x2, x3, x4)  =  U25_gaa(x1, x4)
U26_gaa(x1, x2, x3, x4)  =  U26_gaa(x1, x4)
U27_gaa(x1, x2, x3, x4)  =  U27_gaa(x1, x4)
U28_gaa(x1, x2, x3, x4)  =  U28_gaa(x1, x4)
tlast39_in_aa(x1, x2)  =  tlast39_in_aa
tlast39_out_aa(x1, x2)  =  tlast39_out_aa
U19_aa(x1, x2, x3, x4, x5)  =  U19_aa(x5)
U20_aa(x1, x2, x3, x4, x5)  =  U20_aa(x5)
U29_gaa(x1, x2, x3, x4)  =  U29_gaa(x1, x4)
U30_gaa(x1, x2, x3, x4)  =  U30_gaa(x1, x4)
U31_gaa(x1, x2, x3, x4)  =  U31_gaa(x1, x4)
TAPPEND38_IN_GAA(x1, x2, x3)  =  TAPPEND38_IN_GAA(x1)

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

(38) UsableRulesProof (EQUIVALENT transformation)

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

(39) Obligation:

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

TAPPEND38_IN_GAA(nil, T89, node(X217, nil, nil)) → TAPPEND38_IN_GAA(nil, T89, X217)

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

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

(40) PiDPToQDPProof (SOUND transformation)

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

(41) Obligation:

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

TAPPEND38_IN_GAA(nil) → TAPPEND38_IN_GAA(nil)

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

(42) 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 = TAPPEND38_IN_GAA(nil) evaluates to t =TAPPEND38_IN_GAA(nil)

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 TAPPEND38_IN_GAA(nil) to TAPPEND38_IN_GAA(nil).



(43) FALSE

(44) Obligation:

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

TAPPEND38_IN_GAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_GAA(T107, T108, X217)

The TRS R consists of the following rules:

goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)

The argument filtering Pi contains the following mapping:
goal1_in_gaa(x1, x2, x3)  =  goal1_in_gaa(x1)
U21_gaa(x1, x2, x3, x4)  =  U21_gaa(x1, x4)
s2t4_in_ga(x1, x2)  =  s2t4_in_ga(x1)
0  =  0
s2t4_out_ga(x1, x2)  =  s2t4_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x1, x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x1, x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x1, x4)
goal1_out_gaa(x1, x2, x3)  =  goal1_out_gaa(x1)
U22_gaa(x1, x2, x3, x4)  =  U22_gaa(x1, x4)
U23_gaa(x1, x2, x3, x4)  =  U23_gaa(x1, x4)
tappend38_in_aaa(x1, x2, x3)  =  tappend38_in_aaa
tappend38_out_aaa(x1, x2, x3)  =  tappend38_out_aaa
U4_aaa(x1, x2, x3)  =  U4_aaa(x3)
tappend38_in_gaa(x1, x2, x3)  =  tappend38_in_gaa(x1)
nil  =  nil
tappend38_out_gaa(x1, x2, x3)  =  tappend38_out_gaa(x1)
node(x1, x2, x3)  =  node(x1, x2, x3)
U4_gaa(x1, x2, x3)  =  U4_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x1, x2, x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x1, x2, x3, x6)
U7_gaa(x1, x2, x3, x4)  =  U7_gaa(x1, x2, x4)
tappend151_in_gaa(x1, x2, x3)  =  tappend151_in_gaa(x1)
tappend151_out_gaa(x1, x2, x3)  =  tappend151_out_gaa(x1)
U13_gaa(x1, x2, x3)  =  U13_gaa(x3)
U14_gaa(x1, x2, x3, x4, x5, x6)  =  U14_gaa(x1, x2, x3, x6)
U15_gaa(x1, x2, x3, x4, x5, x6)  =  U15_gaa(x1, x2, x3, x6)
U16_gaa(x1, x2)  =  U16_gaa(x2)
U17_gaa(x1, x2, x3, x4, x5)  =  U17_gaa(x1, x2, x3, x5)
U18_gaa(x1, x2, x3, x4, x5)  =  U18_gaa(x1, x2, x3, x5)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x4, x5, x7)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x4, x5, x7)
U10_gaa(x1, x2, x3, x4)  =  U10_gaa(x1, x2, x4)
U11_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_gaa(x1, x2, x3, x4, x5, x7)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x4, x5, x7)
U5_aaa(x1, x2, x3, x4, x5, x6)  =  U5_aaa(x6)
U6_aaa(x1, x2, x3, x4, x5, x6)  =  U6_aaa(x6)
U7_aaa(x1, x2, x3, x4)  =  U7_aaa(x4)
U8_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_aaa(x7)
tappend151_in_aaa(x1, x2, x3)  =  tappend151_in_aaa
tappend151_out_aaa(x1, x2, x3)  =  tappend151_out_aaa
U13_aaa(x1, x2, x3)  =  U13_aaa(x3)
U14_aaa(x1, x2, x3, x4, x5, x6)  =  U14_aaa(x6)
U15_aaa(x1, x2, x3, x4, x5, x6)  =  U15_aaa(x6)
U16_aaa(x1, x2)  =  U16_aaa(x2)
U17_aaa(x1, x2, x3, x4, x5)  =  U17_aaa(x5)
U18_aaa(x1, x2, x3, x4, x5)  =  U18_aaa(x5)
U9_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_aaa(x7)
U10_aaa(x1, x2, x3, x4)  =  U10_aaa(x4)
U11_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_aaa(x7)
U12_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_aaa(x7)
U24_gaa(x1, x2, x3, x4)  =  U24_gaa(x1, x4)
U25_gaa(x1, x2, x3, x4)  =  U25_gaa(x1, x4)
U26_gaa(x1, x2, x3, x4)  =  U26_gaa(x1, x4)
U27_gaa(x1, x2, x3, x4)  =  U27_gaa(x1, x4)
U28_gaa(x1, x2, x3, x4)  =  U28_gaa(x1, x4)
tlast39_in_aa(x1, x2)  =  tlast39_in_aa
tlast39_out_aa(x1, x2)  =  tlast39_out_aa
U19_aa(x1, x2, x3, x4, x5)  =  U19_aa(x5)
U20_aa(x1, x2, x3, x4, x5)  =  U20_aa(x5)
U29_gaa(x1, x2, x3, x4)  =  U29_gaa(x1, x4)
U30_gaa(x1, x2, x3, x4)  =  U30_gaa(x1, x4)
U31_gaa(x1, x2, x3, x4)  =  U31_gaa(x1, x4)
TAPPEND38_IN_GAA(x1, x2, x3)  =  TAPPEND38_IN_GAA(x1)

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

(45) UsableRulesProof (EQUIVALENT transformation)

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

(46) Obligation:

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

TAPPEND38_IN_GAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_GAA(T107, T108, X217)

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

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

(47) PiDPToQDPProof (SOUND transformation)

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

(48) Obligation:

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

TAPPEND38_IN_GAA(node(T107, T105, T106)) → TAPPEND38_IN_GAA(T107)

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

(49) QDPSizeChangeProof (EQUIVALENT transformation)

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

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

  • TAPPEND38_IN_GAA(node(T107, T105, T106)) → TAPPEND38_IN_GAA(T107)
    The graph contains the following edges 1 > 1

(50) TRUE

(51) Obligation:

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

TAPPEND38_IN_AAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_AAA(T107, T108, X217)

The TRS R consists of the following rules:

goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)

The argument filtering Pi contains the following mapping:
goal1_in_gaa(x1, x2, x3)  =  goal1_in_gaa(x1)
U21_gaa(x1, x2, x3, x4)  =  U21_gaa(x1, x4)
s2t4_in_ga(x1, x2)  =  s2t4_in_ga(x1)
0  =  0
s2t4_out_ga(x1, x2)  =  s2t4_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x1, x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x1, x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x1, x4)
goal1_out_gaa(x1, x2, x3)  =  goal1_out_gaa(x1)
U22_gaa(x1, x2, x3, x4)  =  U22_gaa(x1, x4)
U23_gaa(x1, x2, x3, x4)  =  U23_gaa(x1, x4)
tappend38_in_aaa(x1, x2, x3)  =  tappend38_in_aaa
tappend38_out_aaa(x1, x2, x3)  =  tappend38_out_aaa
U4_aaa(x1, x2, x3)  =  U4_aaa(x3)
tappend38_in_gaa(x1, x2, x3)  =  tappend38_in_gaa(x1)
nil  =  nil
tappend38_out_gaa(x1, x2, x3)  =  tappend38_out_gaa(x1)
node(x1, x2, x3)  =  node(x1, x2, x3)
U4_gaa(x1, x2, x3)  =  U4_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x1, x2, x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x1, x2, x3, x6)
U7_gaa(x1, x2, x3, x4)  =  U7_gaa(x1, x2, x4)
tappend151_in_gaa(x1, x2, x3)  =  tappend151_in_gaa(x1)
tappend151_out_gaa(x1, x2, x3)  =  tappend151_out_gaa(x1)
U13_gaa(x1, x2, x3)  =  U13_gaa(x3)
U14_gaa(x1, x2, x3, x4, x5, x6)  =  U14_gaa(x1, x2, x3, x6)
U15_gaa(x1, x2, x3, x4, x5, x6)  =  U15_gaa(x1, x2, x3, x6)
U16_gaa(x1, x2)  =  U16_gaa(x2)
U17_gaa(x1, x2, x3, x4, x5)  =  U17_gaa(x1, x2, x3, x5)
U18_gaa(x1, x2, x3, x4, x5)  =  U18_gaa(x1, x2, x3, x5)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x4, x5, x7)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x4, x5, x7)
U10_gaa(x1, x2, x3, x4)  =  U10_gaa(x1, x2, x4)
U11_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_gaa(x1, x2, x3, x4, x5, x7)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x4, x5, x7)
U5_aaa(x1, x2, x3, x4, x5, x6)  =  U5_aaa(x6)
U6_aaa(x1, x2, x3, x4, x5, x6)  =  U6_aaa(x6)
U7_aaa(x1, x2, x3, x4)  =  U7_aaa(x4)
U8_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_aaa(x7)
tappend151_in_aaa(x1, x2, x3)  =  tappend151_in_aaa
tappend151_out_aaa(x1, x2, x3)  =  tappend151_out_aaa
U13_aaa(x1, x2, x3)  =  U13_aaa(x3)
U14_aaa(x1, x2, x3, x4, x5, x6)  =  U14_aaa(x6)
U15_aaa(x1, x2, x3, x4, x5, x6)  =  U15_aaa(x6)
U16_aaa(x1, x2)  =  U16_aaa(x2)
U17_aaa(x1, x2, x3, x4, x5)  =  U17_aaa(x5)
U18_aaa(x1, x2, x3, x4, x5)  =  U18_aaa(x5)
U9_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_aaa(x7)
U10_aaa(x1, x2, x3, x4)  =  U10_aaa(x4)
U11_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_aaa(x7)
U12_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_aaa(x7)
U24_gaa(x1, x2, x3, x4)  =  U24_gaa(x1, x4)
U25_gaa(x1, x2, x3, x4)  =  U25_gaa(x1, x4)
U26_gaa(x1, x2, x3, x4)  =  U26_gaa(x1, x4)
U27_gaa(x1, x2, x3, x4)  =  U27_gaa(x1, x4)
U28_gaa(x1, x2, x3, x4)  =  U28_gaa(x1, x4)
tlast39_in_aa(x1, x2)  =  tlast39_in_aa
tlast39_out_aa(x1, x2)  =  tlast39_out_aa
U19_aa(x1, x2, x3, x4, x5)  =  U19_aa(x5)
U20_aa(x1, x2, x3, x4, x5)  =  U20_aa(x5)
U29_gaa(x1, x2, x3, x4)  =  U29_gaa(x1, x4)
U30_gaa(x1, x2, x3, x4)  =  U30_gaa(x1, x4)
U31_gaa(x1, x2, x3, x4)  =  U31_gaa(x1, x4)
TAPPEND38_IN_AAA(x1, x2, x3)  =  TAPPEND38_IN_AAA

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

(52) UsableRulesProof (EQUIVALENT transformation)

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

(53) Obligation:

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

TAPPEND38_IN_AAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_AAA(T107, T108, X217)

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

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

(54) PiDPToQDPProof (SOUND transformation)

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

(55) Obligation:

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

TAPPEND38_IN_AAATAPPEND38_IN_AAA

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

(56) 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 = TAPPEND38_IN_AAA evaluates to t =TAPPEND38_IN_AAA

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 TAPPEND38_IN_AAA to TAPPEND38_IN_AAA.



(57) FALSE

(58) Obligation:

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

S2T4_IN_GA(s(T16), node(nil, X52, X53)) → S2T4_IN_GA(T16, X53)
S2T4_IN_GA(s(T14), node(X38, X39, X38)) → S2T4_IN_GA(T14, X38)
S2T4_IN_GA(s(T18), node(X66, X67, nil)) → S2T4_IN_GA(T18, X66)

The TRS R consists of the following rules:

goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)

The argument filtering Pi contains the following mapping:
goal1_in_gaa(x1, x2, x3)  =  goal1_in_gaa(x1)
U21_gaa(x1, x2, x3, x4)  =  U21_gaa(x1, x4)
s2t4_in_ga(x1, x2)  =  s2t4_in_ga(x1)
0  =  0
s2t4_out_ga(x1, x2)  =  s2t4_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x1, x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x1, x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x1, x4)
goal1_out_gaa(x1, x2, x3)  =  goal1_out_gaa(x1)
U22_gaa(x1, x2, x3, x4)  =  U22_gaa(x1, x4)
U23_gaa(x1, x2, x3, x4)  =  U23_gaa(x1, x4)
tappend38_in_aaa(x1, x2, x3)  =  tappend38_in_aaa
tappend38_out_aaa(x1, x2, x3)  =  tappend38_out_aaa
U4_aaa(x1, x2, x3)  =  U4_aaa(x3)
tappend38_in_gaa(x1, x2, x3)  =  tappend38_in_gaa(x1)
nil  =  nil
tappend38_out_gaa(x1, x2, x3)  =  tappend38_out_gaa(x1)
node(x1, x2, x3)  =  node(x1, x2, x3)
U4_gaa(x1, x2, x3)  =  U4_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x1, x2, x3, x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x1, x2, x3, x6)
U7_gaa(x1, x2, x3, x4)  =  U7_gaa(x1, x2, x4)
tappend151_in_gaa(x1, x2, x3)  =  tappend151_in_gaa(x1)
tappend151_out_gaa(x1, x2, x3)  =  tappend151_out_gaa(x1)
U13_gaa(x1, x2, x3)  =  U13_gaa(x3)
U14_gaa(x1, x2, x3, x4, x5, x6)  =  U14_gaa(x1, x2, x3, x6)
U15_gaa(x1, x2, x3, x4, x5, x6)  =  U15_gaa(x1, x2, x3, x6)
U16_gaa(x1, x2)  =  U16_gaa(x2)
U17_gaa(x1, x2, x3, x4, x5)  =  U17_gaa(x1, x2, x3, x5)
U18_gaa(x1, x2, x3, x4, x5)  =  U18_gaa(x1, x2, x3, x5)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x4, x5, x7)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x4, x5, x7)
U10_gaa(x1, x2, x3, x4)  =  U10_gaa(x1, x2, x4)
U11_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_gaa(x1, x2, x3, x4, x5, x7)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x4, x5, x7)
U5_aaa(x1, x2, x3, x4, x5, x6)  =  U5_aaa(x6)
U6_aaa(x1, x2, x3, x4, x5, x6)  =  U6_aaa(x6)
U7_aaa(x1, x2, x3, x4)  =  U7_aaa(x4)
U8_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_aaa(x7)
tappend151_in_aaa(x1, x2, x3)  =  tappend151_in_aaa
tappend151_out_aaa(x1, x2, x3)  =  tappend151_out_aaa
U13_aaa(x1, x2, x3)  =  U13_aaa(x3)
U14_aaa(x1, x2, x3, x4, x5, x6)  =  U14_aaa(x6)
U15_aaa(x1, x2, x3, x4, x5, x6)  =  U15_aaa(x6)
U16_aaa(x1, x2)  =  U16_aaa(x2)
U17_aaa(x1, x2, x3, x4, x5)  =  U17_aaa(x5)
U18_aaa(x1, x2, x3, x4, x5)  =  U18_aaa(x5)
U9_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_aaa(x7)
U10_aaa(x1, x2, x3, x4)  =  U10_aaa(x4)
U11_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_aaa(x7)
U12_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_aaa(x7)
U24_gaa(x1, x2, x3, x4)  =  U24_gaa(x1, x4)
U25_gaa(x1, x2, x3, x4)  =  U25_gaa(x1, x4)
U26_gaa(x1, x2, x3, x4)  =  U26_gaa(x1, x4)
U27_gaa(x1, x2, x3, x4)  =  U27_gaa(x1, x4)
U28_gaa(x1, x2, x3, x4)  =  U28_gaa(x1, x4)
tlast39_in_aa(x1, x2)  =  tlast39_in_aa
tlast39_out_aa(x1, x2)  =  tlast39_out_aa
U19_aa(x1, x2, x3, x4, x5)  =  U19_aa(x5)
U20_aa(x1, x2, x3, x4, x5)  =  U20_aa(x5)
U29_gaa(x1, x2, x3, x4)  =  U29_gaa(x1, x4)
U30_gaa(x1, x2, x3, x4)  =  U30_gaa(x1, x4)
U31_gaa(x1, x2, x3, x4)  =  U31_gaa(x1, x4)
S2T4_IN_GA(x1, x2)  =  S2T4_IN_GA(x1)

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

(59) UsableRulesProof (EQUIVALENT transformation)

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

(60) Obligation:

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

S2T4_IN_GA(s(T16), node(nil, X52, X53)) → S2T4_IN_GA(T16, X53)
S2T4_IN_GA(s(T14), node(X38, X39, X38)) → S2T4_IN_GA(T14, X38)
S2T4_IN_GA(s(T18), node(X66, X67, nil)) → S2T4_IN_GA(T18, X66)

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

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

(61) PiDPToQDPProof (SOUND transformation)

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

(62) Obligation:

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

S2T4_IN_GA(s(T16)) → S2T4_IN_GA(T16)

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

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

  • S2T4_IN_GA(s(T16)) → S2T4_IN_GA(T16)
    The graph contains the following edges 1 > 1

(64) TRUE

(65) PrologToPiTRSProof (SOUND transformation)

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

goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)

The argument filtering Pi contains the following mapping:
goal1_in_gaa(x1, x2, x3)  =  goal1_in_gaa(x1)
U21_gaa(x1, x2, x3, x4)  =  U21_gaa(x4)
s2t4_in_ga(x1, x2)  =  s2t4_in_ga(x1)
0  =  0
s2t4_out_ga(x1, x2)  =  s2t4_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x4)
goal1_out_gaa(x1, x2, x3)  =  goal1_out_gaa
U22_gaa(x1, x2, x3, x4)  =  U22_gaa(x4)
U23_gaa(x1, x2, x3, x4)  =  U23_gaa(x4)
tappend38_in_aaa(x1, x2, x3)  =  tappend38_in_aaa
tappend38_out_aaa(x1, x2, x3)  =  tappend38_out_aaa
U4_aaa(x1, x2, x3)  =  U4_aaa(x3)
tappend38_in_gaa(x1, x2, x3)  =  tappend38_in_gaa(x1)
nil  =  nil
tappend38_out_gaa(x1, x2, x3)  =  tappend38_out_gaa
node(x1, x2, x3)  =  node(x1, x2, x3)
U4_gaa(x1, x2, x3)  =  U4_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
U7_gaa(x1, x2, x3, x4)  =  U7_gaa(x4)
tappend151_in_gaa(x1, x2, x3)  =  tappend151_in_gaa(x1)
tappend151_out_gaa(x1, x2, x3)  =  tappend151_out_gaa
U13_gaa(x1, x2, x3)  =  U13_gaa(x3)
U14_gaa(x1, x2, x3, x4, x5, x6)  =  U14_gaa(x6)
U15_gaa(x1, x2, x3, x4, x5, x6)  =  U15_gaa(x6)
U16_gaa(x1, x2)  =  U16_gaa(x2)
U17_gaa(x1, x2, x3, x4, x5)  =  U17_gaa(x5)
U18_gaa(x1, x2, x3, x4, x5)  =  U18_gaa(x5)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4)  =  U10_gaa(x4)
U11_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_gaa(x7)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
U5_aaa(x1, x2, x3, x4, x5, x6)  =  U5_aaa(x6)
U6_aaa(x1, x2, x3, x4, x5, x6)  =  U6_aaa(x6)
U7_aaa(x1, x2, x3, x4)  =  U7_aaa(x4)
U8_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_aaa(x7)
tappend151_in_aaa(x1, x2, x3)  =  tappend151_in_aaa
tappend151_out_aaa(x1, x2, x3)  =  tappend151_out_aaa
U13_aaa(x1, x2, x3)  =  U13_aaa(x3)
U14_aaa(x1, x2, x3, x4, x5, x6)  =  U14_aaa(x6)
U15_aaa(x1, x2, x3, x4, x5, x6)  =  U15_aaa(x6)
U16_aaa(x1, x2)  =  U16_aaa(x2)
U17_aaa(x1, x2, x3, x4, x5)  =  U17_aaa(x5)
U18_aaa(x1, x2, x3, x4, x5)  =  U18_aaa(x5)
U9_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_aaa(x7)
U10_aaa(x1, x2, x3, x4)  =  U10_aaa(x4)
U11_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_aaa(x7)
U12_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_aaa(x7)
U24_gaa(x1, x2, x3, x4)  =  U24_gaa(x4)
U25_gaa(x1, x2, x3, x4)  =  U25_gaa(x4)
U26_gaa(x1, x2, x3, x4)  =  U26_gaa(x4)
U27_gaa(x1, x2, x3, x4)  =  U27_gaa(x4)
U28_gaa(x1, x2, x3, x4)  =  U28_gaa(x4)
tlast39_in_aa(x1, x2)  =  tlast39_in_aa
tlast39_out_aa(x1, x2)  =  tlast39_out_aa
U19_aa(x1, x2, x3, x4, x5)  =  U19_aa(x5)
U20_aa(x1, x2, x3, x4, x5)  =  U20_aa(x5)
U29_gaa(x1, x2, x3, x4)  =  U29_gaa(x4)
U30_gaa(x1, x2, x3, x4)  =  U30_gaa(x4)
U31_gaa(x1, x2, x3, x4)  =  U31_gaa(x4)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(66) Obligation:

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

goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)

The argument filtering Pi contains the following mapping:
goal1_in_gaa(x1, x2, x3)  =  goal1_in_gaa(x1)
U21_gaa(x1, x2, x3, x4)  =  U21_gaa(x4)
s2t4_in_ga(x1, x2)  =  s2t4_in_ga(x1)
0  =  0
s2t4_out_ga(x1, x2)  =  s2t4_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x4)
goal1_out_gaa(x1, x2, x3)  =  goal1_out_gaa
U22_gaa(x1, x2, x3, x4)  =  U22_gaa(x4)
U23_gaa(x1, x2, x3, x4)  =  U23_gaa(x4)
tappend38_in_aaa(x1, x2, x3)  =  tappend38_in_aaa
tappend38_out_aaa(x1, x2, x3)  =  tappend38_out_aaa
U4_aaa(x1, x2, x3)  =  U4_aaa(x3)
tappend38_in_gaa(x1, x2, x3)  =  tappend38_in_gaa(x1)
nil  =  nil
tappend38_out_gaa(x1, x2, x3)  =  tappend38_out_gaa
node(x1, x2, x3)  =  node(x1, x2, x3)
U4_gaa(x1, x2, x3)  =  U4_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
U7_gaa(x1, x2, x3, x4)  =  U7_gaa(x4)
tappend151_in_gaa(x1, x2, x3)  =  tappend151_in_gaa(x1)
tappend151_out_gaa(x1, x2, x3)  =  tappend151_out_gaa
U13_gaa(x1, x2, x3)  =  U13_gaa(x3)
U14_gaa(x1, x2, x3, x4, x5, x6)  =  U14_gaa(x6)
U15_gaa(x1, x2, x3, x4, x5, x6)  =  U15_gaa(x6)
U16_gaa(x1, x2)  =  U16_gaa(x2)
U17_gaa(x1, x2, x3, x4, x5)  =  U17_gaa(x5)
U18_gaa(x1, x2, x3, x4, x5)  =  U18_gaa(x5)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4)  =  U10_gaa(x4)
U11_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_gaa(x7)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
U5_aaa(x1, x2, x3, x4, x5, x6)  =  U5_aaa(x6)
U6_aaa(x1, x2, x3, x4, x5, x6)  =  U6_aaa(x6)
U7_aaa(x1, x2, x3, x4)  =  U7_aaa(x4)
U8_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_aaa(x7)
tappend151_in_aaa(x1, x2, x3)  =  tappend151_in_aaa
tappend151_out_aaa(x1, x2, x3)  =  tappend151_out_aaa
U13_aaa(x1, x2, x3)  =  U13_aaa(x3)
U14_aaa(x1, x2, x3, x4, x5, x6)  =  U14_aaa(x6)
U15_aaa(x1, x2, x3, x4, x5, x6)  =  U15_aaa(x6)
U16_aaa(x1, x2)  =  U16_aaa(x2)
U17_aaa(x1, x2, x3, x4, x5)  =  U17_aaa(x5)
U18_aaa(x1, x2, x3, x4, x5)  =  U18_aaa(x5)
U9_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_aaa(x7)
U10_aaa(x1, x2, x3, x4)  =  U10_aaa(x4)
U11_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_aaa(x7)
U12_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_aaa(x7)
U24_gaa(x1, x2, x3, x4)  =  U24_gaa(x4)
U25_gaa(x1, x2, x3, x4)  =  U25_gaa(x4)
U26_gaa(x1, x2, x3, x4)  =  U26_gaa(x4)
U27_gaa(x1, x2, x3, x4)  =  U27_gaa(x4)
U28_gaa(x1, x2, x3, x4)  =  U28_gaa(x4)
tlast39_in_aa(x1, x2)  =  tlast39_in_aa
tlast39_out_aa(x1, x2)  =  tlast39_out_aa
U19_aa(x1, x2, x3, x4, x5)  =  U19_aa(x5)
U20_aa(x1, x2, x3, x4, x5)  =  U20_aa(x5)
U29_gaa(x1, x2, x3, x4)  =  U29_gaa(x4)
U30_gaa(x1, x2, x3, x4)  =  U30_gaa(x4)
U31_gaa(x1, x2, x3, x4)  =  U31_gaa(x4)

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

GOAL1_IN_GAA(T7, T10, T11) → U21_GAA(T7, T10, T11, s2t4_in_ga(T7, X21))
GOAL1_IN_GAA(T7, T10, T11) → S2T4_IN_GA(T7, X21)
S2T4_IN_GA(s(T14), node(X38, X39, X38)) → U1_GA(T14, X38, X39, s2t4_in_ga(T14, X38))
S2T4_IN_GA(s(T14), node(X38, X39, X38)) → S2T4_IN_GA(T14, X38)
S2T4_IN_GA(s(T16), node(nil, X52, X53)) → U2_GA(T16, X52, X53, s2t4_in_ga(T16, X53))
S2T4_IN_GA(s(T16), node(nil, X52, X53)) → S2T4_IN_GA(T16, X53)
S2T4_IN_GA(s(T18), node(X66, X67, nil)) → U3_GA(T18, X66, X67, s2t4_in_ga(T18, X66))
S2T4_IN_GA(s(T18), node(X66, X67, nil)) → S2T4_IN_GA(T18, X66)
GOAL1_IN_GAA(T7, T24, T25) → U22_GAA(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_GAA(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_GAA(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
U22_GAA(T7, T24, T25, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, X81)
TAPPEND38_IN_AAA(nil, T89, node(X217, nil, nil)) → U4_AAA(T89, X217, tappend38_in_gaa(nil, T89, X217))
TAPPEND38_IN_AAA(nil, T89, node(X217, nil, nil)) → TAPPEND38_IN_GAA(nil, T89, X217)
TAPPEND38_IN_GAA(nil, T89, node(X217, nil, nil)) → U4_GAA(T89, X217, tappend38_in_gaa(nil, T89, X217))
TAPPEND38_IN_GAA(nil, T89, node(X217, nil, nil)) → TAPPEND38_IN_GAA(nil, T89, X217)
TAPPEND38_IN_GAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_GAA(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
TAPPEND38_IN_GAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_GAA(T107, T108, X217)
TAPPEND38_IN_GAA(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_GAA(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_GAA(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_GAA(nil, X431, node(X432, nil, nil)) → U13_GAA(X431, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND151_IN_GAA(nil, X431, node(X432, nil, nil)) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_GAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_GAA(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
TAPPEND151_IN_GAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_GAA(T218, X431, X432)
TAPPEND151_IN_GAA(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_GAA(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
TAPPEND151_IN_GAA(nil, nil, node(nil, nil, X489)) → U16_GAA(X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND151_IN_GAA(nil, nil, node(nil, nil, X489)) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND151_IN_GAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_GAA(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
TAPPEND151_IN_GAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_GAA(T252, X486, X489)
TAPPEND151_IN_GAA(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_GAA(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_GAA(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → TAPPEND151_IN_GAA(T218, X431, X432)
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_GAA(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_GAA(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_GAA(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → TAPPEND151_IN_GAA(T252, X486, X489)
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_GAA(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
TAPPEND38_IN_AAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_AAA(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
TAPPEND38_IN_AAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_AAA(T107, T108, X217)
TAPPEND38_IN_AAA(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_AAA(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_AAA(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_AAA(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → TAPPEND151_IN_AAA(T218, X431, X432)
TAPPEND151_IN_AAA(nil, X431, node(X432, nil, nil)) → U13_AAA(X431, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND151_IN_AAA(nil, X431, node(X432, nil, nil)) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_AAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_AAA(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
TAPPEND151_IN_AAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_AAA(T218, X431, X432)
TAPPEND151_IN_AAA(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_AAA(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
TAPPEND151_IN_AAA(nil, nil, node(nil, nil, X489)) → U16_AAA(X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND151_IN_AAA(nil, nil, node(nil, nil, X489)) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND151_IN_AAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_AAA(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
TAPPEND151_IN_AAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_AAA(T252, X486, X489)
TAPPEND151_IN_AAA(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_AAA(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_AAA(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_AAA(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_AAA(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → TAPPEND151_IN_AAA(T252, X486, X489)
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_AAA(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
GOAL1_IN_GAA(T7, T24, T269) → U24_GAA(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_GAA(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_GAA(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U24_GAA(T7, T24, T269, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, node(nil, T269, nil))
GOAL1_IN_GAA(T7, T24, T274) → U26_GAA(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_GAA(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_GAA(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U26_GAA(T7, T24, T274, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, node(T275, T272, T273))
U27_GAA(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_GAA(T7, T24, T274, tlast39_in_aa(T274, T275))
U27_GAA(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → TLAST39_IN_AA(T274, T275)
TLAST39_IN_AA(T274, node(T275, T272, T273)) → U19_AA(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
TLAST39_IN_AA(T274, node(T275, T272, T273)) → TLAST39_IN_AA(T274, T275)
TLAST39_IN_AA(T280, node(T277, T278, T281)) → U20_AA(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
TLAST39_IN_AA(T280, node(T277, T278, T281)) → TLAST39_IN_AA(T280, T281)
GOAL1_IN_GAA(T7, T24, T280) → U29_GAA(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_GAA(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_GAA(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U29_GAA(T7, T24, T280, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, node(T277, T278, T281))
U30_GAA(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_GAA(T7, T24, T280, tlast39_in_aa(T280, T281))
U30_GAA(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → TLAST39_IN_AA(T280, T281)

The TRS R consists of the following rules:

goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)

The argument filtering Pi contains the following mapping:
goal1_in_gaa(x1, x2, x3)  =  goal1_in_gaa(x1)
U21_gaa(x1, x2, x3, x4)  =  U21_gaa(x4)
s2t4_in_ga(x1, x2)  =  s2t4_in_ga(x1)
0  =  0
s2t4_out_ga(x1, x2)  =  s2t4_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x4)
goal1_out_gaa(x1, x2, x3)  =  goal1_out_gaa
U22_gaa(x1, x2, x3, x4)  =  U22_gaa(x4)
U23_gaa(x1, x2, x3, x4)  =  U23_gaa(x4)
tappend38_in_aaa(x1, x2, x3)  =  tappend38_in_aaa
tappend38_out_aaa(x1, x2, x3)  =  tappend38_out_aaa
U4_aaa(x1, x2, x3)  =  U4_aaa(x3)
tappend38_in_gaa(x1, x2, x3)  =  tappend38_in_gaa(x1)
nil  =  nil
tappend38_out_gaa(x1, x2, x3)  =  tappend38_out_gaa
node(x1, x2, x3)  =  node(x1, x2, x3)
U4_gaa(x1, x2, x3)  =  U4_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
U7_gaa(x1, x2, x3, x4)  =  U7_gaa(x4)
tappend151_in_gaa(x1, x2, x3)  =  tappend151_in_gaa(x1)
tappend151_out_gaa(x1, x2, x3)  =  tappend151_out_gaa
U13_gaa(x1, x2, x3)  =  U13_gaa(x3)
U14_gaa(x1, x2, x3, x4, x5, x6)  =  U14_gaa(x6)
U15_gaa(x1, x2, x3, x4, x5, x6)  =  U15_gaa(x6)
U16_gaa(x1, x2)  =  U16_gaa(x2)
U17_gaa(x1, x2, x3, x4, x5)  =  U17_gaa(x5)
U18_gaa(x1, x2, x3, x4, x5)  =  U18_gaa(x5)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4)  =  U10_gaa(x4)
U11_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_gaa(x7)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
U5_aaa(x1, x2, x3, x4, x5, x6)  =  U5_aaa(x6)
U6_aaa(x1, x2, x3, x4, x5, x6)  =  U6_aaa(x6)
U7_aaa(x1, x2, x3, x4)  =  U7_aaa(x4)
U8_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_aaa(x7)
tappend151_in_aaa(x1, x2, x3)  =  tappend151_in_aaa
tappend151_out_aaa(x1, x2, x3)  =  tappend151_out_aaa
U13_aaa(x1, x2, x3)  =  U13_aaa(x3)
U14_aaa(x1, x2, x3, x4, x5, x6)  =  U14_aaa(x6)
U15_aaa(x1, x2, x3, x4, x5, x6)  =  U15_aaa(x6)
U16_aaa(x1, x2)  =  U16_aaa(x2)
U17_aaa(x1, x2, x3, x4, x5)  =  U17_aaa(x5)
U18_aaa(x1, x2, x3, x4, x5)  =  U18_aaa(x5)
U9_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_aaa(x7)
U10_aaa(x1, x2, x3, x4)  =  U10_aaa(x4)
U11_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_aaa(x7)
U12_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_aaa(x7)
U24_gaa(x1, x2, x3, x4)  =  U24_gaa(x4)
U25_gaa(x1, x2, x3, x4)  =  U25_gaa(x4)
U26_gaa(x1, x2, x3, x4)  =  U26_gaa(x4)
U27_gaa(x1, x2, x3, x4)  =  U27_gaa(x4)
U28_gaa(x1, x2, x3, x4)  =  U28_gaa(x4)
tlast39_in_aa(x1, x2)  =  tlast39_in_aa
tlast39_out_aa(x1, x2)  =  tlast39_out_aa
U19_aa(x1, x2, x3, x4, x5)  =  U19_aa(x5)
U20_aa(x1, x2, x3, x4, x5)  =  U20_aa(x5)
U29_gaa(x1, x2, x3, x4)  =  U29_gaa(x4)
U30_gaa(x1, x2, x3, x4)  =  U30_gaa(x4)
U31_gaa(x1, x2, x3, x4)  =  U31_gaa(x4)
GOAL1_IN_GAA(x1, x2, x3)  =  GOAL1_IN_GAA(x1)
U21_GAA(x1, x2, x3, x4)  =  U21_GAA(x4)
S2T4_IN_GA(x1, x2)  =  S2T4_IN_GA(x1)
U1_GA(x1, x2, x3, x4)  =  U1_GA(x4)
U2_GA(x1, x2, x3, x4)  =  U2_GA(x4)
U3_GA(x1, x2, x3, x4)  =  U3_GA(x4)
U22_GAA(x1, x2, x3, x4)  =  U22_GAA(x4)
U23_GAA(x1, x2, x3, x4)  =  U23_GAA(x4)
TAPPEND38_IN_AAA(x1, x2, x3)  =  TAPPEND38_IN_AAA
U4_AAA(x1, x2, x3)  =  U4_AAA(x3)
TAPPEND38_IN_GAA(x1, x2, x3)  =  TAPPEND38_IN_GAA(x1)
U4_GAA(x1, x2, x3)  =  U4_GAA(x3)
U5_GAA(x1, x2, x3, x4, x5, x6)  =  U5_GAA(x6)
U6_GAA(x1, x2, x3, x4, x5, x6)  =  U6_GAA(x6)
U7_GAA(x1, x2, x3, x4)  =  U7_GAA(x4)
TAPPEND151_IN_GAA(x1, x2, x3)  =  TAPPEND151_IN_GAA(x1)
U13_GAA(x1, x2, x3)  =  U13_GAA(x3)
U14_GAA(x1, x2, x3, x4, x5, x6)  =  U14_GAA(x6)
U15_GAA(x1, x2, x3, x4, x5, x6)  =  U15_GAA(x6)
U16_GAA(x1, x2)  =  U16_GAA(x2)
U17_GAA(x1, x2, x3, x4, x5)  =  U17_GAA(x5)
U18_GAA(x1, x2, x3, x4, x5)  =  U18_GAA(x5)
U8_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U8_GAA(x7)
U9_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U9_GAA(x7)
U10_GAA(x1, x2, x3, x4)  =  U10_GAA(x4)
U11_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U11_GAA(x7)
U12_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U12_GAA(x7)
U5_AAA(x1, x2, x3, x4, x5, x6)  =  U5_AAA(x6)
U6_AAA(x1, x2, x3, x4, x5, x6)  =  U6_AAA(x6)
U7_AAA(x1, x2, x3, x4)  =  U7_AAA(x4)
U8_AAA(x1, x2, x3, x4, x5, x6, x7)  =  U8_AAA(x7)
TAPPEND151_IN_AAA(x1, x2, x3)  =  TAPPEND151_IN_AAA
U13_AAA(x1, x2, x3)  =  U13_AAA(x3)
U14_AAA(x1, x2, x3, x4, x5, x6)  =  U14_AAA(x6)
U15_AAA(x1, x2, x3, x4, x5, x6)  =  U15_AAA(x6)
U16_AAA(x1, x2)  =  U16_AAA(x2)
U17_AAA(x1, x2, x3, x4, x5)  =  U17_AAA(x5)
U18_AAA(x1, x2, x3, x4, x5)  =  U18_AAA(x5)
U9_AAA(x1, x2, x3, x4, x5, x6, x7)  =  U9_AAA(x7)
U10_AAA(x1, x2, x3, x4)  =  U10_AAA(x4)
U11_AAA(x1, x2, x3, x4, x5, x6, x7)  =  U11_AAA(x7)
U12_AAA(x1, x2, x3, x4, x5, x6, x7)  =  U12_AAA(x7)
U24_GAA(x1, x2, x3, x4)  =  U24_GAA(x4)
U25_GAA(x1, x2, x3, x4)  =  U25_GAA(x4)
U26_GAA(x1, x2, x3, x4)  =  U26_GAA(x4)
U27_GAA(x1, x2, x3, x4)  =  U27_GAA(x4)
U28_GAA(x1, x2, x3, x4)  =  U28_GAA(x4)
TLAST39_IN_AA(x1, x2)  =  TLAST39_IN_AA
U19_AA(x1, x2, x3, x4, x5)  =  U19_AA(x5)
U20_AA(x1, x2, x3, x4, x5)  =  U20_AA(x5)
U29_GAA(x1, x2, x3, x4)  =  U29_GAA(x4)
U30_GAA(x1, x2, x3, x4)  =  U30_GAA(x4)
U31_GAA(x1, x2, x3, x4)  =  U31_GAA(x4)

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

(68) Obligation:

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

GOAL1_IN_GAA(T7, T10, T11) → U21_GAA(T7, T10, T11, s2t4_in_ga(T7, X21))
GOAL1_IN_GAA(T7, T10, T11) → S2T4_IN_GA(T7, X21)
S2T4_IN_GA(s(T14), node(X38, X39, X38)) → U1_GA(T14, X38, X39, s2t4_in_ga(T14, X38))
S2T4_IN_GA(s(T14), node(X38, X39, X38)) → S2T4_IN_GA(T14, X38)
S2T4_IN_GA(s(T16), node(nil, X52, X53)) → U2_GA(T16, X52, X53, s2t4_in_ga(T16, X53))
S2T4_IN_GA(s(T16), node(nil, X52, X53)) → S2T4_IN_GA(T16, X53)
S2T4_IN_GA(s(T18), node(X66, X67, nil)) → U3_GA(T18, X66, X67, s2t4_in_ga(T18, X66))
S2T4_IN_GA(s(T18), node(X66, X67, nil)) → S2T4_IN_GA(T18, X66)
GOAL1_IN_GAA(T7, T24, T25) → U22_GAA(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_GAA(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_GAA(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
U22_GAA(T7, T24, T25, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, X81)
TAPPEND38_IN_AAA(nil, T89, node(X217, nil, nil)) → U4_AAA(T89, X217, tappend38_in_gaa(nil, T89, X217))
TAPPEND38_IN_AAA(nil, T89, node(X217, nil, nil)) → TAPPEND38_IN_GAA(nil, T89, X217)
TAPPEND38_IN_GAA(nil, T89, node(X217, nil, nil)) → U4_GAA(T89, X217, tappend38_in_gaa(nil, T89, X217))
TAPPEND38_IN_GAA(nil, T89, node(X217, nil, nil)) → TAPPEND38_IN_GAA(nil, T89, X217)
TAPPEND38_IN_GAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_GAA(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
TAPPEND38_IN_GAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_GAA(T107, T108, X217)
TAPPEND38_IN_GAA(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_GAA(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_GAA(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_GAA(nil, X431, node(X432, nil, nil)) → U13_GAA(X431, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND151_IN_GAA(nil, X431, node(X432, nil, nil)) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_GAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_GAA(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
TAPPEND151_IN_GAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_GAA(T218, X431, X432)
TAPPEND151_IN_GAA(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_GAA(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
TAPPEND151_IN_GAA(nil, nil, node(nil, nil, X489)) → U16_GAA(X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND151_IN_GAA(nil, nil, node(nil, nil, X489)) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND151_IN_GAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_GAA(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
TAPPEND151_IN_GAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_GAA(T252, X486, X489)
TAPPEND151_IN_GAA(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_GAA(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_GAA(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → TAPPEND151_IN_GAA(T218, X431, X432)
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_GAA(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_GAA(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_GAA(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → TAPPEND151_IN_GAA(T252, X486, X489)
TAPPEND38_IN_GAA(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_GAA(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
TAPPEND38_IN_AAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_AAA(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
TAPPEND38_IN_AAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_AAA(T107, T108, X217)
TAPPEND38_IN_AAA(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_AAA(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_AAA(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_AAA(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → TAPPEND151_IN_AAA(T218, X431, X432)
TAPPEND151_IN_AAA(nil, X431, node(X432, nil, nil)) → U13_AAA(X431, X432, tappend151_in_gaa(nil, X431, X432))
TAPPEND151_IN_AAA(nil, X431, node(X432, nil, nil)) → TAPPEND151_IN_GAA(nil, X431, X432)
TAPPEND151_IN_AAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_AAA(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
TAPPEND151_IN_AAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_AAA(T218, X431, X432)
TAPPEND151_IN_AAA(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_AAA(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
TAPPEND151_IN_AAA(nil, nil, node(nil, nil, X489)) → U16_AAA(X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND151_IN_AAA(nil, nil, node(nil, nil, X489)) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND151_IN_AAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_AAA(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
TAPPEND151_IN_AAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_AAA(T252, X486, X489)
TAPPEND151_IN_AAA(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_AAA(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_AAA(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_AAA(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_AAA(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → TAPPEND151_IN_AAA(T252, X486, X489)
TAPPEND38_IN_AAA(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_AAA(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
GOAL1_IN_GAA(T7, T24, T269) → U24_GAA(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_GAA(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_GAA(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U24_GAA(T7, T24, T269, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, node(nil, T269, nil))
GOAL1_IN_GAA(T7, T24, T274) → U26_GAA(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_GAA(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_GAA(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U26_GAA(T7, T24, T274, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, node(T275, T272, T273))
U27_GAA(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_GAA(T7, T24, T274, tlast39_in_aa(T274, T275))
U27_GAA(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → TLAST39_IN_AA(T274, T275)
TLAST39_IN_AA(T274, node(T275, T272, T273)) → U19_AA(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
TLAST39_IN_AA(T274, node(T275, T272, T273)) → TLAST39_IN_AA(T274, T275)
TLAST39_IN_AA(T280, node(T277, T278, T281)) → U20_AA(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
TLAST39_IN_AA(T280, node(T277, T278, T281)) → TLAST39_IN_AA(T280, T281)
GOAL1_IN_GAA(T7, T24, T280) → U29_GAA(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_GAA(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_GAA(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U29_GAA(T7, T24, T280, s2t4_out_ga(T7, T23)) → TAPPEND38_IN_AAA(T23, T24, node(T277, T278, T281))
U30_GAA(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_GAA(T7, T24, T280, tlast39_in_aa(T280, T281))
U30_GAA(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → TLAST39_IN_AA(T280, T281)

The TRS R consists of the following rules:

goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)

The argument filtering Pi contains the following mapping:
goal1_in_gaa(x1, x2, x3)  =  goal1_in_gaa(x1)
U21_gaa(x1, x2, x3, x4)  =  U21_gaa(x4)
s2t4_in_ga(x1, x2)  =  s2t4_in_ga(x1)
0  =  0
s2t4_out_ga(x1, x2)  =  s2t4_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x4)
goal1_out_gaa(x1, x2, x3)  =  goal1_out_gaa
U22_gaa(x1, x2, x3, x4)  =  U22_gaa(x4)
U23_gaa(x1, x2, x3, x4)  =  U23_gaa(x4)
tappend38_in_aaa(x1, x2, x3)  =  tappend38_in_aaa
tappend38_out_aaa(x1, x2, x3)  =  tappend38_out_aaa
U4_aaa(x1, x2, x3)  =  U4_aaa(x3)
tappend38_in_gaa(x1, x2, x3)  =  tappend38_in_gaa(x1)
nil  =  nil
tappend38_out_gaa(x1, x2, x3)  =  tappend38_out_gaa
node(x1, x2, x3)  =  node(x1, x2, x3)
U4_gaa(x1, x2, x3)  =  U4_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
U7_gaa(x1, x2, x3, x4)  =  U7_gaa(x4)
tappend151_in_gaa(x1, x2, x3)  =  tappend151_in_gaa(x1)
tappend151_out_gaa(x1, x2, x3)  =  tappend151_out_gaa
U13_gaa(x1, x2, x3)  =  U13_gaa(x3)
U14_gaa(x1, x2, x3, x4, x5, x6)  =  U14_gaa(x6)
U15_gaa(x1, x2, x3, x4, x5, x6)  =  U15_gaa(x6)
U16_gaa(x1, x2)  =  U16_gaa(x2)
U17_gaa(x1, x2, x3, x4, x5)  =  U17_gaa(x5)
U18_gaa(x1, x2, x3, x4, x5)  =  U18_gaa(x5)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4)  =  U10_gaa(x4)
U11_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_gaa(x7)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
U5_aaa(x1, x2, x3, x4, x5, x6)  =  U5_aaa(x6)
U6_aaa(x1, x2, x3, x4, x5, x6)  =  U6_aaa(x6)
U7_aaa(x1, x2, x3, x4)  =  U7_aaa(x4)
U8_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_aaa(x7)
tappend151_in_aaa(x1, x2, x3)  =  tappend151_in_aaa
tappend151_out_aaa(x1, x2, x3)  =  tappend151_out_aaa
U13_aaa(x1, x2, x3)  =  U13_aaa(x3)
U14_aaa(x1, x2, x3, x4, x5, x6)  =  U14_aaa(x6)
U15_aaa(x1, x2, x3, x4, x5, x6)  =  U15_aaa(x6)
U16_aaa(x1, x2)  =  U16_aaa(x2)
U17_aaa(x1, x2, x3, x4, x5)  =  U17_aaa(x5)
U18_aaa(x1, x2, x3, x4, x5)  =  U18_aaa(x5)
U9_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_aaa(x7)
U10_aaa(x1, x2, x3, x4)  =  U10_aaa(x4)
U11_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_aaa(x7)
U12_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_aaa(x7)
U24_gaa(x1, x2, x3, x4)  =  U24_gaa(x4)
U25_gaa(x1, x2, x3, x4)  =  U25_gaa(x4)
U26_gaa(x1, x2, x3, x4)  =  U26_gaa(x4)
U27_gaa(x1, x2, x3, x4)  =  U27_gaa(x4)
U28_gaa(x1, x2, x3, x4)  =  U28_gaa(x4)
tlast39_in_aa(x1, x2)  =  tlast39_in_aa
tlast39_out_aa(x1, x2)  =  tlast39_out_aa
U19_aa(x1, x2, x3, x4, x5)  =  U19_aa(x5)
U20_aa(x1, x2, x3, x4, x5)  =  U20_aa(x5)
U29_gaa(x1, x2, x3, x4)  =  U29_gaa(x4)
U30_gaa(x1, x2, x3, x4)  =  U30_gaa(x4)
U31_gaa(x1, x2, x3, x4)  =  U31_gaa(x4)
GOAL1_IN_GAA(x1, x2, x3)  =  GOAL1_IN_GAA(x1)
U21_GAA(x1, x2, x3, x4)  =  U21_GAA(x4)
S2T4_IN_GA(x1, x2)  =  S2T4_IN_GA(x1)
U1_GA(x1, x2, x3, x4)  =  U1_GA(x4)
U2_GA(x1, x2, x3, x4)  =  U2_GA(x4)
U3_GA(x1, x2, x3, x4)  =  U3_GA(x4)
U22_GAA(x1, x2, x3, x4)  =  U22_GAA(x4)
U23_GAA(x1, x2, x3, x4)  =  U23_GAA(x4)
TAPPEND38_IN_AAA(x1, x2, x3)  =  TAPPEND38_IN_AAA
U4_AAA(x1, x2, x3)  =  U4_AAA(x3)
TAPPEND38_IN_GAA(x1, x2, x3)  =  TAPPEND38_IN_GAA(x1)
U4_GAA(x1, x2, x3)  =  U4_GAA(x3)
U5_GAA(x1, x2, x3, x4, x5, x6)  =  U5_GAA(x6)
U6_GAA(x1, x2, x3, x4, x5, x6)  =  U6_GAA(x6)
U7_GAA(x1, x2, x3, x4)  =  U7_GAA(x4)
TAPPEND151_IN_GAA(x1, x2, x3)  =  TAPPEND151_IN_GAA(x1)
U13_GAA(x1, x2, x3)  =  U13_GAA(x3)
U14_GAA(x1, x2, x3, x4, x5, x6)  =  U14_GAA(x6)
U15_GAA(x1, x2, x3, x4, x5, x6)  =  U15_GAA(x6)
U16_GAA(x1, x2)  =  U16_GAA(x2)
U17_GAA(x1, x2, x3, x4, x5)  =  U17_GAA(x5)
U18_GAA(x1, x2, x3, x4, x5)  =  U18_GAA(x5)
U8_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U8_GAA(x7)
U9_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U9_GAA(x7)
U10_GAA(x1, x2, x3, x4)  =  U10_GAA(x4)
U11_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U11_GAA(x7)
U12_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U12_GAA(x7)
U5_AAA(x1, x2, x3, x4, x5, x6)  =  U5_AAA(x6)
U6_AAA(x1, x2, x3, x4, x5, x6)  =  U6_AAA(x6)
U7_AAA(x1, x2, x3, x4)  =  U7_AAA(x4)
U8_AAA(x1, x2, x3, x4, x5, x6, x7)  =  U8_AAA(x7)
TAPPEND151_IN_AAA(x1, x2, x3)  =  TAPPEND151_IN_AAA
U13_AAA(x1, x2, x3)  =  U13_AAA(x3)
U14_AAA(x1, x2, x3, x4, x5, x6)  =  U14_AAA(x6)
U15_AAA(x1, x2, x3, x4, x5, x6)  =  U15_AAA(x6)
U16_AAA(x1, x2)  =  U16_AAA(x2)
U17_AAA(x1, x2, x3, x4, x5)  =  U17_AAA(x5)
U18_AAA(x1, x2, x3, x4, x5)  =  U18_AAA(x5)
U9_AAA(x1, x2, x3, x4, x5, x6, x7)  =  U9_AAA(x7)
U10_AAA(x1, x2, x3, x4)  =  U10_AAA(x4)
U11_AAA(x1, x2, x3, x4, x5, x6, x7)  =  U11_AAA(x7)
U12_AAA(x1, x2, x3, x4, x5, x6, x7)  =  U12_AAA(x7)
U24_GAA(x1, x2, x3, x4)  =  U24_GAA(x4)
U25_GAA(x1, x2, x3, x4)  =  U25_GAA(x4)
U26_GAA(x1, x2, x3, x4)  =  U26_GAA(x4)
U27_GAA(x1, x2, x3, x4)  =  U27_GAA(x4)
U28_GAA(x1, x2, x3, x4)  =  U28_GAA(x4)
TLAST39_IN_AA(x1, x2)  =  TLAST39_IN_AA
U19_AA(x1, x2, x3, x4, x5)  =  U19_AA(x5)
U20_AA(x1, x2, x3, x4, x5)  =  U20_AA(x5)
U29_GAA(x1, x2, x3, x4)  =  U29_GAA(x4)
U30_GAA(x1, x2, x3, x4)  =  U30_GAA(x4)
U31_GAA(x1, x2, x3, x4)  =  U31_GAA(x4)

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

(69) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 8 SCCs with 64 less nodes.

(70) Complex Obligation (AND)

(71) Obligation:

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

TLAST39_IN_AA(T280, node(T277, T278, T281)) → TLAST39_IN_AA(T280, T281)
TLAST39_IN_AA(T274, node(T275, T272, T273)) → TLAST39_IN_AA(T274, T275)

The TRS R consists of the following rules:

goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)

The argument filtering Pi contains the following mapping:
goal1_in_gaa(x1, x2, x3)  =  goal1_in_gaa(x1)
U21_gaa(x1, x2, x3, x4)  =  U21_gaa(x4)
s2t4_in_ga(x1, x2)  =  s2t4_in_ga(x1)
0  =  0
s2t4_out_ga(x1, x2)  =  s2t4_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x4)
goal1_out_gaa(x1, x2, x3)  =  goal1_out_gaa
U22_gaa(x1, x2, x3, x4)  =  U22_gaa(x4)
U23_gaa(x1, x2, x3, x4)  =  U23_gaa(x4)
tappend38_in_aaa(x1, x2, x3)  =  tappend38_in_aaa
tappend38_out_aaa(x1, x2, x3)  =  tappend38_out_aaa
U4_aaa(x1, x2, x3)  =  U4_aaa(x3)
tappend38_in_gaa(x1, x2, x3)  =  tappend38_in_gaa(x1)
nil  =  nil
tappend38_out_gaa(x1, x2, x3)  =  tappend38_out_gaa
node(x1, x2, x3)  =  node(x1, x2, x3)
U4_gaa(x1, x2, x3)  =  U4_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
U7_gaa(x1, x2, x3, x4)  =  U7_gaa(x4)
tappend151_in_gaa(x1, x2, x3)  =  tappend151_in_gaa(x1)
tappend151_out_gaa(x1, x2, x3)  =  tappend151_out_gaa
U13_gaa(x1, x2, x3)  =  U13_gaa(x3)
U14_gaa(x1, x2, x3, x4, x5, x6)  =  U14_gaa(x6)
U15_gaa(x1, x2, x3, x4, x5, x6)  =  U15_gaa(x6)
U16_gaa(x1, x2)  =  U16_gaa(x2)
U17_gaa(x1, x2, x3, x4, x5)  =  U17_gaa(x5)
U18_gaa(x1, x2, x3, x4, x5)  =  U18_gaa(x5)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4)  =  U10_gaa(x4)
U11_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_gaa(x7)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
U5_aaa(x1, x2, x3, x4, x5, x6)  =  U5_aaa(x6)
U6_aaa(x1, x2, x3, x4, x5, x6)  =  U6_aaa(x6)
U7_aaa(x1, x2, x3, x4)  =  U7_aaa(x4)
U8_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_aaa(x7)
tappend151_in_aaa(x1, x2, x3)  =  tappend151_in_aaa
tappend151_out_aaa(x1, x2, x3)  =  tappend151_out_aaa
U13_aaa(x1, x2, x3)  =  U13_aaa(x3)
U14_aaa(x1, x2, x3, x4, x5, x6)  =  U14_aaa(x6)
U15_aaa(x1, x2, x3, x4, x5, x6)  =  U15_aaa(x6)
U16_aaa(x1, x2)  =  U16_aaa(x2)
U17_aaa(x1, x2, x3, x4, x5)  =  U17_aaa(x5)
U18_aaa(x1, x2, x3, x4, x5)  =  U18_aaa(x5)
U9_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_aaa(x7)
U10_aaa(x1, x2, x3, x4)  =  U10_aaa(x4)
U11_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_aaa(x7)
U12_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_aaa(x7)
U24_gaa(x1, x2, x3, x4)  =  U24_gaa(x4)
U25_gaa(x1, x2, x3, x4)  =  U25_gaa(x4)
U26_gaa(x1, x2, x3, x4)  =  U26_gaa(x4)
U27_gaa(x1, x2, x3, x4)  =  U27_gaa(x4)
U28_gaa(x1, x2, x3, x4)  =  U28_gaa(x4)
tlast39_in_aa(x1, x2)  =  tlast39_in_aa
tlast39_out_aa(x1, x2)  =  tlast39_out_aa
U19_aa(x1, x2, x3, x4, x5)  =  U19_aa(x5)
U20_aa(x1, x2, x3, x4, x5)  =  U20_aa(x5)
U29_gaa(x1, x2, x3, x4)  =  U29_gaa(x4)
U30_gaa(x1, x2, x3, x4)  =  U30_gaa(x4)
U31_gaa(x1, x2, x3, x4)  =  U31_gaa(x4)
TLAST39_IN_AA(x1, x2)  =  TLAST39_IN_AA

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

(72) UsableRulesProof (EQUIVALENT transformation)

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

(73) Obligation:

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

TLAST39_IN_AA(T280, node(T277, T278, T281)) → TLAST39_IN_AA(T280, T281)
TLAST39_IN_AA(T274, node(T275, T272, T273)) → TLAST39_IN_AA(T274, T275)

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

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

(74) PiDPToQDPProof (SOUND transformation)

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

(75) Obligation:

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

TLAST39_IN_AATLAST39_IN_AA

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

(76) 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 = TLAST39_IN_AA evaluates to t =TLAST39_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 TLAST39_IN_AA to TLAST39_IN_AA.



(77) FALSE

(78) Obligation:

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

TAPPEND151_IN_GAA(nil, nil, node(nil, nil, X489)) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND151_IN_GAA(nil, X431, node(X432, nil, nil)) → TAPPEND151_IN_GAA(nil, X431, X432)

The TRS R consists of the following rules:

goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)

The argument filtering Pi contains the following mapping:
goal1_in_gaa(x1, x2, x3)  =  goal1_in_gaa(x1)
U21_gaa(x1, x2, x3, x4)  =  U21_gaa(x4)
s2t4_in_ga(x1, x2)  =  s2t4_in_ga(x1)
0  =  0
s2t4_out_ga(x1, x2)  =  s2t4_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x4)
goal1_out_gaa(x1, x2, x3)  =  goal1_out_gaa
U22_gaa(x1, x2, x3, x4)  =  U22_gaa(x4)
U23_gaa(x1, x2, x3, x4)  =  U23_gaa(x4)
tappend38_in_aaa(x1, x2, x3)  =  tappend38_in_aaa
tappend38_out_aaa(x1, x2, x3)  =  tappend38_out_aaa
U4_aaa(x1, x2, x3)  =  U4_aaa(x3)
tappend38_in_gaa(x1, x2, x3)  =  tappend38_in_gaa(x1)
nil  =  nil
tappend38_out_gaa(x1, x2, x3)  =  tappend38_out_gaa
node(x1, x2, x3)  =  node(x1, x2, x3)
U4_gaa(x1, x2, x3)  =  U4_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
U7_gaa(x1, x2, x3, x4)  =  U7_gaa(x4)
tappend151_in_gaa(x1, x2, x3)  =  tappend151_in_gaa(x1)
tappend151_out_gaa(x1, x2, x3)  =  tappend151_out_gaa
U13_gaa(x1, x2, x3)  =  U13_gaa(x3)
U14_gaa(x1, x2, x3, x4, x5, x6)  =  U14_gaa(x6)
U15_gaa(x1, x2, x3, x4, x5, x6)  =  U15_gaa(x6)
U16_gaa(x1, x2)  =  U16_gaa(x2)
U17_gaa(x1, x2, x3, x4, x5)  =  U17_gaa(x5)
U18_gaa(x1, x2, x3, x4, x5)  =  U18_gaa(x5)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4)  =  U10_gaa(x4)
U11_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_gaa(x7)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
U5_aaa(x1, x2, x3, x4, x5, x6)  =  U5_aaa(x6)
U6_aaa(x1, x2, x3, x4, x5, x6)  =  U6_aaa(x6)
U7_aaa(x1, x2, x3, x4)  =  U7_aaa(x4)
U8_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_aaa(x7)
tappend151_in_aaa(x1, x2, x3)  =  tappend151_in_aaa
tappend151_out_aaa(x1, x2, x3)  =  tappend151_out_aaa
U13_aaa(x1, x2, x3)  =  U13_aaa(x3)
U14_aaa(x1, x2, x3, x4, x5, x6)  =  U14_aaa(x6)
U15_aaa(x1, x2, x3, x4, x5, x6)  =  U15_aaa(x6)
U16_aaa(x1, x2)  =  U16_aaa(x2)
U17_aaa(x1, x2, x3, x4, x5)  =  U17_aaa(x5)
U18_aaa(x1, x2, x3, x4, x5)  =  U18_aaa(x5)
U9_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_aaa(x7)
U10_aaa(x1, x2, x3, x4)  =  U10_aaa(x4)
U11_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_aaa(x7)
U12_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_aaa(x7)
U24_gaa(x1, x2, x3, x4)  =  U24_gaa(x4)
U25_gaa(x1, x2, x3, x4)  =  U25_gaa(x4)
U26_gaa(x1, x2, x3, x4)  =  U26_gaa(x4)
U27_gaa(x1, x2, x3, x4)  =  U27_gaa(x4)
U28_gaa(x1, x2, x3, x4)  =  U28_gaa(x4)
tlast39_in_aa(x1, x2)  =  tlast39_in_aa
tlast39_out_aa(x1, x2)  =  tlast39_out_aa
U19_aa(x1, x2, x3, x4, x5)  =  U19_aa(x5)
U20_aa(x1, x2, x3, x4, x5)  =  U20_aa(x5)
U29_gaa(x1, x2, x3, x4)  =  U29_gaa(x4)
U30_gaa(x1, x2, x3, x4)  =  U30_gaa(x4)
U31_gaa(x1, x2, x3, x4)  =  U31_gaa(x4)
TAPPEND151_IN_GAA(x1, x2, x3)  =  TAPPEND151_IN_GAA(x1)

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

(79) UsableRulesProof (EQUIVALENT transformation)

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

(80) Obligation:

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

TAPPEND151_IN_GAA(nil, nil, node(nil, nil, X489)) → TAPPEND151_IN_GAA(nil, X486, X489)
TAPPEND151_IN_GAA(nil, X431, node(X432, nil, nil)) → TAPPEND151_IN_GAA(nil, X431, X432)

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

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

(81) PiDPToQDPProof (SOUND transformation)

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

(82) Obligation:

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

TAPPEND151_IN_GAA(nil) → TAPPEND151_IN_GAA(nil)

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

(83) 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 = TAPPEND151_IN_GAA(nil) evaluates to t =TAPPEND151_IN_GAA(nil)

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 TAPPEND151_IN_GAA(nil) to TAPPEND151_IN_GAA(nil).



(84) FALSE

(85) Obligation:

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

TAPPEND151_IN_AAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_AAA(T252, X486, X489)
TAPPEND151_IN_AAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_AAA(T218, X431, X432)

The TRS R consists of the following rules:

goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)

The argument filtering Pi contains the following mapping:
goal1_in_gaa(x1, x2, x3)  =  goal1_in_gaa(x1)
U21_gaa(x1, x2, x3, x4)  =  U21_gaa(x4)
s2t4_in_ga(x1, x2)  =  s2t4_in_ga(x1)
0  =  0
s2t4_out_ga(x1, x2)  =  s2t4_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x4)
goal1_out_gaa(x1, x2, x3)  =  goal1_out_gaa
U22_gaa(x1, x2, x3, x4)  =  U22_gaa(x4)
U23_gaa(x1, x2, x3, x4)  =  U23_gaa(x4)
tappend38_in_aaa(x1, x2, x3)  =  tappend38_in_aaa
tappend38_out_aaa(x1, x2, x3)  =  tappend38_out_aaa
U4_aaa(x1, x2, x3)  =  U4_aaa(x3)
tappend38_in_gaa(x1, x2, x3)  =  tappend38_in_gaa(x1)
nil  =  nil
tappend38_out_gaa(x1, x2, x3)  =  tappend38_out_gaa
node(x1, x2, x3)  =  node(x1, x2, x3)
U4_gaa(x1, x2, x3)  =  U4_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
U7_gaa(x1, x2, x3, x4)  =  U7_gaa(x4)
tappend151_in_gaa(x1, x2, x3)  =  tappend151_in_gaa(x1)
tappend151_out_gaa(x1, x2, x3)  =  tappend151_out_gaa
U13_gaa(x1, x2, x3)  =  U13_gaa(x3)
U14_gaa(x1, x2, x3, x4, x5, x6)  =  U14_gaa(x6)
U15_gaa(x1, x2, x3, x4, x5, x6)  =  U15_gaa(x6)
U16_gaa(x1, x2)  =  U16_gaa(x2)
U17_gaa(x1, x2, x3, x4, x5)  =  U17_gaa(x5)
U18_gaa(x1, x2, x3, x4, x5)  =  U18_gaa(x5)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4)  =  U10_gaa(x4)
U11_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_gaa(x7)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
U5_aaa(x1, x2, x3, x4, x5, x6)  =  U5_aaa(x6)
U6_aaa(x1, x2, x3, x4, x5, x6)  =  U6_aaa(x6)
U7_aaa(x1, x2, x3, x4)  =  U7_aaa(x4)
U8_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_aaa(x7)
tappend151_in_aaa(x1, x2, x3)  =  tappend151_in_aaa
tappend151_out_aaa(x1, x2, x3)  =  tappend151_out_aaa
U13_aaa(x1, x2, x3)  =  U13_aaa(x3)
U14_aaa(x1, x2, x3, x4, x5, x6)  =  U14_aaa(x6)
U15_aaa(x1, x2, x3, x4, x5, x6)  =  U15_aaa(x6)
U16_aaa(x1, x2)  =  U16_aaa(x2)
U17_aaa(x1, x2, x3, x4, x5)  =  U17_aaa(x5)
U18_aaa(x1, x2, x3, x4, x5)  =  U18_aaa(x5)
U9_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_aaa(x7)
U10_aaa(x1, x2, x3, x4)  =  U10_aaa(x4)
U11_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_aaa(x7)
U12_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_aaa(x7)
U24_gaa(x1, x2, x3, x4)  =  U24_gaa(x4)
U25_gaa(x1, x2, x3, x4)  =  U25_gaa(x4)
U26_gaa(x1, x2, x3, x4)  =  U26_gaa(x4)
U27_gaa(x1, x2, x3, x4)  =  U27_gaa(x4)
U28_gaa(x1, x2, x3, x4)  =  U28_gaa(x4)
tlast39_in_aa(x1, x2)  =  tlast39_in_aa
tlast39_out_aa(x1, x2)  =  tlast39_out_aa
U19_aa(x1, x2, x3, x4, x5)  =  U19_aa(x5)
U20_aa(x1, x2, x3, x4, x5)  =  U20_aa(x5)
U29_gaa(x1, x2, x3, x4)  =  U29_gaa(x4)
U30_gaa(x1, x2, x3, x4)  =  U30_gaa(x4)
U31_gaa(x1, x2, x3, x4)  =  U31_gaa(x4)
TAPPEND151_IN_AAA(x1, x2, x3)  =  TAPPEND151_IN_AAA

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

(86) UsableRulesProof (EQUIVALENT transformation)

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

(87) Obligation:

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

TAPPEND151_IN_AAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_AAA(T252, X486, X489)
TAPPEND151_IN_AAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_AAA(T218, X431, X432)

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

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

(88) PiDPToQDPProof (SOUND transformation)

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

(89) Obligation:

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

TAPPEND151_IN_AAATAPPEND151_IN_AAA

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

(90) 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 = TAPPEND151_IN_AAA evaluates to t =TAPPEND151_IN_AAA

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 TAPPEND151_IN_AAA to TAPPEND151_IN_AAA.



(91) FALSE

(92) Obligation:

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

TAPPEND151_IN_GAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_GAA(T252, X486, X489)
TAPPEND151_IN_GAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_GAA(T218, X431, X432)

The TRS R consists of the following rules:

goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)

The argument filtering Pi contains the following mapping:
goal1_in_gaa(x1, x2, x3)  =  goal1_in_gaa(x1)
U21_gaa(x1, x2, x3, x4)  =  U21_gaa(x4)
s2t4_in_ga(x1, x2)  =  s2t4_in_ga(x1)
0  =  0
s2t4_out_ga(x1, x2)  =  s2t4_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x4)
goal1_out_gaa(x1, x2, x3)  =  goal1_out_gaa
U22_gaa(x1, x2, x3, x4)  =  U22_gaa(x4)
U23_gaa(x1, x2, x3, x4)  =  U23_gaa(x4)
tappend38_in_aaa(x1, x2, x3)  =  tappend38_in_aaa
tappend38_out_aaa(x1, x2, x3)  =  tappend38_out_aaa
U4_aaa(x1, x2, x3)  =  U4_aaa(x3)
tappend38_in_gaa(x1, x2, x3)  =  tappend38_in_gaa(x1)
nil  =  nil
tappend38_out_gaa(x1, x2, x3)  =  tappend38_out_gaa
node(x1, x2, x3)  =  node(x1, x2, x3)
U4_gaa(x1, x2, x3)  =  U4_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
U7_gaa(x1, x2, x3, x4)  =  U7_gaa(x4)
tappend151_in_gaa(x1, x2, x3)  =  tappend151_in_gaa(x1)
tappend151_out_gaa(x1, x2, x3)  =  tappend151_out_gaa
U13_gaa(x1, x2, x3)  =  U13_gaa(x3)
U14_gaa(x1, x2, x3, x4, x5, x6)  =  U14_gaa(x6)
U15_gaa(x1, x2, x3, x4, x5, x6)  =  U15_gaa(x6)
U16_gaa(x1, x2)  =  U16_gaa(x2)
U17_gaa(x1, x2, x3, x4, x5)  =  U17_gaa(x5)
U18_gaa(x1, x2, x3, x4, x5)  =  U18_gaa(x5)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4)  =  U10_gaa(x4)
U11_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_gaa(x7)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
U5_aaa(x1, x2, x3, x4, x5, x6)  =  U5_aaa(x6)
U6_aaa(x1, x2, x3, x4, x5, x6)  =  U6_aaa(x6)
U7_aaa(x1, x2, x3, x4)  =  U7_aaa(x4)
U8_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_aaa(x7)
tappend151_in_aaa(x1, x2, x3)  =  tappend151_in_aaa
tappend151_out_aaa(x1, x2, x3)  =  tappend151_out_aaa
U13_aaa(x1, x2, x3)  =  U13_aaa(x3)
U14_aaa(x1, x2, x3, x4, x5, x6)  =  U14_aaa(x6)
U15_aaa(x1, x2, x3, x4, x5, x6)  =  U15_aaa(x6)
U16_aaa(x1, x2)  =  U16_aaa(x2)
U17_aaa(x1, x2, x3, x4, x5)  =  U17_aaa(x5)
U18_aaa(x1, x2, x3, x4, x5)  =  U18_aaa(x5)
U9_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_aaa(x7)
U10_aaa(x1, x2, x3, x4)  =  U10_aaa(x4)
U11_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_aaa(x7)
U12_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_aaa(x7)
U24_gaa(x1, x2, x3, x4)  =  U24_gaa(x4)
U25_gaa(x1, x2, x3, x4)  =  U25_gaa(x4)
U26_gaa(x1, x2, x3, x4)  =  U26_gaa(x4)
U27_gaa(x1, x2, x3, x4)  =  U27_gaa(x4)
U28_gaa(x1, x2, x3, x4)  =  U28_gaa(x4)
tlast39_in_aa(x1, x2)  =  tlast39_in_aa
tlast39_out_aa(x1, x2)  =  tlast39_out_aa
U19_aa(x1, x2, x3, x4, x5)  =  U19_aa(x5)
U20_aa(x1, x2, x3, x4, x5)  =  U20_aa(x5)
U29_gaa(x1, x2, x3, x4)  =  U29_gaa(x4)
U30_gaa(x1, x2, x3, x4)  =  U30_gaa(x4)
U31_gaa(x1, x2, x3, x4)  =  U31_gaa(x4)
TAPPEND151_IN_GAA(x1, x2, x3)  =  TAPPEND151_IN_GAA(x1)

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

(93) UsableRulesProof (EQUIVALENT transformation)

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

(94) Obligation:

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

TAPPEND151_IN_GAA(node(T249, T250, T252), T249, node(T249, T250, X489)) → TAPPEND151_IN_GAA(T252, X486, X489)
TAPPEND151_IN_GAA(node(T218, T216, T217), X431, node(X432, T216, T217)) → TAPPEND151_IN_GAA(T218, X431, X432)

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

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

(95) PiDPToQDPProof (SOUND transformation)

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

(96) Obligation:

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

TAPPEND151_IN_GAA(node(T249, T250, T252)) → TAPPEND151_IN_GAA(T252)
TAPPEND151_IN_GAA(node(T218, T216, T217)) → TAPPEND151_IN_GAA(T218)

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

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

  • TAPPEND151_IN_GAA(node(T249, T250, T252)) → TAPPEND151_IN_GAA(T252)
    The graph contains the following edges 1 > 1

  • TAPPEND151_IN_GAA(node(T218, T216, T217)) → TAPPEND151_IN_GAA(T218)
    The graph contains the following edges 1 > 1

(98) TRUE

(99) Obligation:

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

TAPPEND38_IN_GAA(nil, T89, node(X217, nil, nil)) → TAPPEND38_IN_GAA(nil, T89, X217)

The TRS R consists of the following rules:

goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)

The argument filtering Pi contains the following mapping:
goal1_in_gaa(x1, x2, x3)  =  goal1_in_gaa(x1)
U21_gaa(x1, x2, x3, x4)  =  U21_gaa(x4)
s2t4_in_ga(x1, x2)  =  s2t4_in_ga(x1)
0  =  0
s2t4_out_ga(x1, x2)  =  s2t4_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x4)
goal1_out_gaa(x1, x2, x3)  =  goal1_out_gaa
U22_gaa(x1, x2, x3, x4)  =  U22_gaa(x4)
U23_gaa(x1, x2, x3, x4)  =  U23_gaa(x4)
tappend38_in_aaa(x1, x2, x3)  =  tappend38_in_aaa
tappend38_out_aaa(x1, x2, x3)  =  tappend38_out_aaa
U4_aaa(x1, x2, x3)  =  U4_aaa(x3)
tappend38_in_gaa(x1, x2, x3)  =  tappend38_in_gaa(x1)
nil  =  nil
tappend38_out_gaa(x1, x2, x3)  =  tappend38_out_gaa
node(x1, x2, x3)  =  node(x1, x2, x3)
U4_gaa(x1, x2, x3)  =  U4_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
U7_gaa(x1, x2, x3, x4)  =  U7_gaa(x4)
tappend151_in_gaa(x1, x2, x3)  =  tappend151_in_gaa(x1)
tappend151_out_gaa(x1, x2, x3)  =  tappend151_out_gaa
U13_gaa(x1, x2, x3)  =  U13_gaa(x3)
U14_gaa(x1, x2, x3, x4, x5, x6)  =  U14_gaa(x6)
U15_gaa(x1, x2, x3, x4, x5, x6)  =  U15_gaa(x6)
U16_gaa(x1, x2)  =  U16_gaa(x2)
U17_gaa(x1, x2, x3, x4, x5)  =  U17_gaa(x5)
U18_gaa(x1, x2, x3, x4, x5)  =  U18_gaa(x5)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4)  =  U10_gaa(x4)
U11_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_gaa(x7)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
U5_aaa(x1, x2, x3, x4, x5, x6)  =  U5_aaa(x6)
U6_aaa(x1, x2, x3, x4, x5, x6)  =  U6_aaa(x6)
U7_aaa(x1, x2, x3, x4)  =  U7_aaa(x4)
U8_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_aaa(x7)
tappend151_in_aaa(x1, x2, x3)  =  tappend151_in_aaa
tappend151_out_aaa(x1, x2, x3)  =  tappend151_out_aaa
U13_aaa(x1, x2, x3)  =  U13_aaa(x3)
U14_aaa(x1, x2, x3, x4, x5, x6)  =  U14_aaa(x6)
U15_aaa(x1, x2, x3, x4, x5, x6)  =  U15_aaa(x6)
U16_aaa(x1, x2)  =  U16_aaa(x2)
U17_aaa(x1, x2, x3, x4, x5)  =  U17_aaa(x5)
U18_aaa(x1, x2, x3, x4, x5)  =  U18_aaa(x5)
U9_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_aaa(x7)
U10_aaa(x1, x2, x3, x4)  =  U10_aaa(x4)
U11_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_aaa(x7)
U12_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_aaa(x7)
U24_gaa(x1, x2, x3, x4)  =  U24_gaa(x4)
U25_gaa(x1, x2, x3, x4)  =  U25_gaa(x4)
U26_gaa(x1, x2, x3, x4)  =  U26_gaa(x4)
U27_gaa(x1, x2, x3, x4)  =  U27_gaa(x4)
U28_gaa(x1, x2, x3, x4)  =  U28_gaa(x4)
tlast39_in_aa(x1, x2)  =  tlast39_in_aa
tlast39_out_aa(x1, x2)  =  tlast39_out_aa
U19_aa(x1, x2, x3, x4, x5)  =  U19_aa(x5)
U20_aa(x1, x2, x3, x4, x5)  =  U20_aa(x5)
U29_gaa(x1, x2, x3, x4)  =  U29_gaa(x4)
U30_gaa(x1, x2, x3, x4)  =  U30_gaa(x4)
U31_gaa(x1, x2, x3, x4)  =  U31_gaa(x4)
TAPPEND38_IN_GAA(x1, x2, x3)  =  TAPPEND38_IN_GAA(x1)

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

(100) UsableRulesProof (EQUIVALENT transformation)

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

(101) Obligation:

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

TAPPEND38_IN_GAA(nil, T89, node(X217, nil, nil)) → TAPPEND38_IN_GAA(nil, T89, X217)

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

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

(102) PiDPToQDPProof (SOUND transformation)

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

(103) Obligation:

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

TAPPEND38_IN_GAA(nil) → TAPPEND38_IN_GAA(nil)

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

(104) 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 = TAPPEND38_IN_GAA(nil) evaluates to t =TAPPEND38_IN_GAA(nil)

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 TAPPEND38_IN_GAA(nil) to TAPPEND38_IN_GAA(nil).



(105) FALSE

(106) Obligation:

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

TAPPEND38_IN_GAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_GAA(T107, T108, X217)

The TRS R consists of the following rules:

goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)

The argument filtering Pi contains the following mapping:
goal1_in_gaa(x1, x2, x3)  =  goal1_in_gaa(x1)
U21_gaa(x1, x2, x3, x4)  =  U21_gaa(x4)
s2t4_in_ga(x1, x2)  =  s2t4_in_ga(x1)
0  =  0
s2t4_out_ga(x1, x2)  =  s2t4_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x4)
goal1_out_gaa(x1, x2, x3)  =  goal1_out_gaa
U22_gaa(x1, x2, x3, x4)  =  U22_gaa(x4)
U23_gaa(x1, x2, x3, x4)  =  U23_gaa(x4)
tappend38_in_aaa(x1, x2, x3)  =  tappend38_in_aaa
tappend38_out_aaa(x1, x2, x3)  =  tappend38_out_aaa
U4_aaa(x1, x2, x3)  =  U4_aaa(x3)
tappend38_in_gaa(x1, x2, x3)  =  tappend38_in_gaa(x1)
nil  =  nil
tappend38_out_gaa(x1, x2, x3)  =  tappend38_out_gaa
node(x1, x2, x3)  =  node(x1, x2, x3)
U4_gaa(x1, x2, x3)  =  U4_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
U7_gaa(x1, x2, x3, x4)  =  U7_gaa(x4)
tappend151_in_gaa(x1, x2, x3)  =  tappend151_in_gaa(x1)
tappend151_out_gaa(x1, x2, x3)  =  tappend151_out_gaa
U13_gaa(x1, x2, x3)  =  U13_gaa(x3)
U14_gaa(x1, x2, x3, x4, x5, x6)  =  U14_gaa(x6)
U15_gaa(x1, x2, x3, x4, x5, x6)  =  U15_gaa(x6)
U16_gaa(x1, x2)  =  U16_gaa(x2)
U17_gaa(x1, x2, x3, x4, x5)  =  U17_gaa(x5)
U18_gaa(x1, x2, x3, x4, x5)  =  U18_gaa(x5)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4)  =  U10_gaa(x4)
U11_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_gaa(x7)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
U5_aaa(x1, x2, x3, x4, x5, x6)  =  U5_aaa(x6)
U6_aaa(x1, x2, x3, x4, x5, x6)  =  U6_aaa(x6)
U7_aaa(x1, x2, x3, x4)  =  U7_aaa(x4)
U8_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_aaa(x7)
tappend151_in_aaa(x1, x2, x3)  =  tappend151_in_aaa
tappend151_out_aaa(x1, x2, x3)  =  tappend151_out_aaa
U13_aaa(x1, x2, x3)  =  U13_aaa(x3)
U14_aaa(x1, x2, x3, x4, x5, x6)  =  U14_aaa(x6)
U15_aaa(x1, x2, x3, x4, x5, x6)  =  U15_aaa(x6)
U16_aaa(x1, x2)  =  U16_aaa(x2)
U17_aaa(x1, x2, x3, x4, x5)  =  U17_aaa(x5)
U18_aaa(x1, x2, x3, x4, x5)  =  U18_aaa(x5)
U9_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_aaa(x7)
U10_aaa(x1, x2, x3, x4)  =  U10_aaa(x4)
U11_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_aaa(x7)
U12_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_aaa(x7)
U24_gaa(x1, x2, x3, x4)  =  U24_gaa(x4)
U25_gaa(x1, x2, x3, x4)  =  U25_gaa(x4)
U26_gaa(x1, x2, x3, x4)  =  U26_gaa(x4)
U27_gaa(x1, x2, x3, x4)  =  U27_gaa(x4)
U28_gaa(x1, x2, x3, x4)  =  U28_gaa(x4)
tlast39_in_aa(x1, x2)  =  tlast39_in_aa
tlast39_out_aa(x1, x2)  =  tlast39_out_aa
U19_aa(x1, x2, x3, x4, x5)  =  U19_aa(x5)
U20_aa(x1, x2, x3, x4, x5)  =  U20_aa(x5)
U29_gaa(x1, x2, x3, x4)  =  U29_gaa(x4)
U30_gaa(x1, x2, x3, x4)  =  U30_gaa(x4)
U31_gaa(x1, x2, x3, x4)  =  U31_gaa(x4)
TAPPEND38_IN_GAA(x1, x2, x3)  =  TAPPEND38_IN_GAA(x1)

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

(107) UsableRulesProof (EQUIVALENT transformation)

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

(108) Obligation:

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

TAPPEND38_IN_GAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_GAA(T107, T108, X217)

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

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

(109) PiDPToQDPProof (SOUND transformation)

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

(110) Obligation:

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

TAPPEND38_IN_GAA(node(T107, T105, T106)) → TAPPEND38_IN_GAA(T107)

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

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

  • TAPPEND38_IN_GAA(node(T107, T105, T106)) → TAPPEND38_IN_GAA(T107)
    The graph contains the following edges 1 > 1

(112) TRUE

(113) Obligation:

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

TAPPEND38_IN_AAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_AAA(T107, T108, X217)

The TRS R consists of the following rules:

goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)

The argument filtering Pi contains the following mapping:
goal1_in_gaa(x1, x2, x3)  =  goal1_in_gaa(x1)
U21_gaa(x1, x2, x3, x4)  =  U21_gaa(x4)
s2t4_in_ga(x1, x2)  =  s2t4_in_ga(x1)
0  =  0
s2t4_out_ga(x1, x2)  =  s2t4_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x4)
goal1_out_gaa(x1, x2, x3)  =  goal1_out_gaa
U22_gaa(x1, x2, x3, x4)  =  U22_gaa(x4)
U23_gaa(x1, x2, x3, x4)  =  U23_gaa(x4)
tappend38_in_aaa(x1, x2, x3)  =  tappend38_in_aaa
tappend38_out_aaa(x1, x2, x3)  =  tappend38_out_aaa
U4_aaa(x1, x2, x3)  =  U4_aaa(x3)
tappend38_in_gaa(x1, x2, x3)  =  tappend38_in_gaa(x1)
nil  =  nil
tappend38_out_gaa(x1, x2, x3)  =  tappend38_out_gaa
node(x1, x2, x3)  =  node(x1, x2, x3)
U4_gaa(x1, x2, x3)  =  U4_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
U7_gaa(x1, x2, x3, x4)  =  U7_gaa(x4)
tappend151_in_gaa(x1, x2, x3)  =  tappend151_in_gaa(x1)
tappend151_out_gaa(x1, x2, x3)  =  tappend151_out_gaa
U13_gaa(x1, x2, x3)  =  U13_gaa(x3)
U14_gaa(x1, x2, x3, x4, x5, x6)  =  U14_gaa(x6)
U15_gaa(x1, x2, x3, x4, x5, x6)  =  U15_gaa(x6)
U16_gaa(x1, x2)  =  U16_gaa(x2)
U17_gaa(x1, x2, x3, x4, x5)  =  U17_gaa(x5)
U18_gaa(x1, x2, x3, x4, x5)  =  U18_gaa(x5)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4)  =  U10_gaa(x4)
U11_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_gaa(x7)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
U5_aaa(x1, x2, x3, x4, x5, x6)  =  U5_aaa(x6)
U6_aaa(x1, x2, x3, x4, x5, x6)  =  U6_aaa(x6)
U7_aaa(x1, x2, x3, x4)  =  U7_aaa(x4)
U8_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_aaa(x7)
tappend151_in_aaa(x1, x2, x3)  =  tappend151_in_aaa
tappend151_out_aaa(x1, x2, x3)  =  tappend151_out_aaa
U13_aaa(x1, x2, x3)  =  U13_aaa(x3)
U14_aaa(x1, x2, x3, x4, x5, x6)  =  U14_aaa(x6)
U15_aaa(x1, x2, x3, x4, x5, x6)  =  U15_aaa(x6)
U16_aaa(x1, x2)  =  U16_aaa(x2)
U17_aaa(x1, x2, x3, x4, x5)  =  U17_aaa(x5)
U18_aaa(x1, x2, x3, x4, x5)  =  U18_aaa(x5)
U9_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_aaa(x7)
U10_aaa(x1, x2, x3, x4)  =  U10_aaa(x4)
U11_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_aaa(x7)
U12_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_aaa(x7)
U24_gaa(x1, x2, x3, x4)  =  U24_gaa(x4)
U25_gaa(x1, x2, x3, x4)  =  U25_gaa(x4)
U26_gaa(x1, x2, x3, x4)  =  U26_gaa(x4)
U27_gaa(x1, x2, x3, x4)  =  U27_gaa(x4)
U28_gaa(x1, x2, x3, x4)  =  U28_gaa(x4)
tlast39_in_aa(x1, x2)  =  tlast39_in_aa
tlast39_out_aa(x1, x2)  =  tlast39_out_aa
U19_aa(x1, x2, x3, x4, x5)  =  U19_aa(x5)
U20_aa(x1, x2, x3, x4, x5)  =  U20_aa(x5)
U29_gaa(x1, x2, x3, x4)  =  U29_gaa(x4)
U30_gaa(x1, x2, x3, x4)  =  U30_gaa(x4)
U31_gaa(x1, x2, x3, x4)  =  U31_gaa(x4)
TAPPEND38_IN_AAA(x1, x2, x3)  =  TAPPEND38_IN_AAA

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

(114) UsableRulesProof (EQUIVALENT transformation)

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

(115) Obligation:

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

TAPPEND38_IN_AAA(node(T107, T105, T106), T108, node(X217, T105, T106)) → TAPPEND38_IN_AAA(T107, T108, X217)

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

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

(116) PiDPToQDPProof (SOUND transformation)

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

(117) Obligation:

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

TAPPEND38_IN_AAATAPPEND38_IN_AAA

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

(118) 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 = TAPPEND38_IN_AAA evaluates to t =TAPPEND38_IN_AAA

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 TAPPEND38_IN_AAA to TAPPEND38_IN_AAA.



(119) FALSE

(120) Obligation:

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

S2T4_IN_GA(s(T16), node(nil, X52, X53)) → S2T4_IN_GA(T16, X53)
S2T4_IN_GA(s(T14), node(X38, X39, X38)) → S2T4_IN_GA(T14, X38)
S2T4_IN_GA(s(T18), node(X66, X67, nil)) → S2T4_IN_GA(T18, X66)

The TRS R consists of the following rules:

goal1_in_gaa(T7, T10, T11) → U21_gaa(T7, T10, T11, s2t4_in_ga(T7, X21))
s2t4_in_ga(0, nil) → s2t4_out_ga(0, nil)
s2t4_in_ga(s(T14), node(X38, X39, X38)) → U1_ga(T14, X38, X39, s2t4_in_ga(T14, X38))
s2t4_in_ga(s(T16), node(nil, X52, X53)) → U2_ga(T16, X52, X53, s2t4_in_ga(T16, X53))
s2t4_in_ga(s(T18), node(X66, X67, nil)) → U3_ga(T18, X66, X67, s2t4_in_ga(T18, X66))
s2t4_in_ga(T19, node(nil, X74, nil)) → s2t4_out_ga(T19, node(nil, X74, nil))
U3_ga(T18, X66, X67, s2t4_out_ga(T18, X66)) → s2t4_out_ga(s(T18), node(X66, X67, nil))
U2_ga(T16, X52, X53, s2t4_out_ga(T16, X53)) → s2t4_out_ga(s(T16), node(nil, X52, X53))
U1_ga(T14, X38, X39, s2t4_out_ga(T14, X38)) → s2t4_out_ga(s(T14), node(X38, X39, X38))
U21_gaa(T7, T10, T11, s2t4_out_ga(T7, X21)) → goal1_out_gaa(T7, T10, T11)
goal1_in_gaa(T7, T24, T25) → U22_gaa(T7, T24, T25, s2t4_in_ga(T7, T23))
U22_gaa(T7, T24, T25, s2t4_out_ga(T7, T23)) → U23_gaa(T7, T24, T25, tappend38_in_aaa(T23, T24, X81))
tappend38_in_aaa(nil, T30, node(nil, T30, nil)) → tappend38_out_aaa(nil, T30, node(nil, T30, nil))
tappend38_in_aaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_aaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_aaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_aaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_aaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_aaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_aaa(nil, T89, node(X217, nil, nil)) → U4_aaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(nil, T30, node(nil, T30, nil)) → tappend38_out_gaa(nil, T30, node(nil, T30, nil))
tappend38_in_gaa(nil, T32, node(node(nil, T32, nil), nil, nil)) → tappend38_out_gaa(nil, T32, node(node(nil, T32, nil), nil, nil))
tappend38_in_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44)) → tappend38_out_gaa(node(nil, T43, T44), T32, node(node(nil, T32, nil), T43, T44))
tappend38_in_gaa(nil, T57, node(nil, nil, node(nil, T57, nil))) → tappend38_out_gaa(nil, T57, node(nil, nil, node(nil, T57, nil)))
tappend38_in_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil))) → tappend38_out_gaa(node(T70, T71, nil), T57, node(T70, T71, node(nil, T57, nil)))
tappend38_in_gaa(nil, T89, node(X217, nil, nil)) → U4_gaa(T89, X217, tappend38_in_gaa(nil, T89, X217))
tappend38_in_gaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_gaa(T107, T105, T106, T108, X217, tappend38_in_gaa(T107, T108, X217))
tappend38_in_gaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_gaa(T126, T124, T125, T127, X217, tappend38_in_gaa(T126, T127, X217))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_gaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(nil, X300, X300) → tappend151_out_gaa(nil, X300, X300)
tappend151_in_gaa(nil, X313, node(X313, nil, nil)) → tappend151_out_gaa(nil, X313, node(X313, nil, nil))
tappend151_in_gaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_gaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_gaa(nil, X370, node(nil, nil, X370)) → tappend151_out_gaa(nil, X370, node(nil, nil, X370))
tappend151_in_gaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_gaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_gaa(nil, X431, node(X432, nil, nil)) → U13_gaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
tappend151_in_gaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_gaa(T218, T216, T217, X431, X432, tappend151_in_gaa(T218, X431, X432))
tappend151_in_gaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_gaa(T234, T232, T233, X431, X432, tappend151_in_gaa(T234, X431, X432))
tappend151_in_gaa(nil, nil, node(nil, nil, X489)) → U16_gaa(X489, tappend151_in_gaa(nil, X486, X489))
tappend151_in_gaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_gaa(T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
tappend151_in_gaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_gaa(T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U18_gaa(T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend151_out_gaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_gaa(T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend151_out_gaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U16_gaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_gaa(nil, nil, node(nil, nil, X489))
U15_gaa(T234, T232, T233, X431, X432, tappend151_out_gaa(T234, X431, X432)) → tappend151_out_gaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_gaa(T218, T216, T217, X431, X432, tappend151_out_gaa(T218, X431, X432)) → tappend151_out_gaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U13_gaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_gaa(nil, X431, node(X432, nil, nil))
U7_gaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_in_gaa(T218, X431, X432))
U8_gaa(T145, T146, T218, T216, T217, X432, tappend151_out_gaa(T218, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_in_gaa(T234, X431, X432))
U9_gaa(T145, T146, T234, T232, T233, X432, tappend151_out_gaa(T234, X431, X432)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_gaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_gaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_in_gaa(T252, X486, X489))
U11_gaa(T145, T146, T249, T250, T252, X489, tappend151_out_gaa(T252, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_in_gaa(T268, X486, X489))
U12_gaa(T145, T146, T265, T266, T268, X489, tappend151_out_gaa(T268, X486, X489)) → tappend38_out_gaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_gaa(T126, T124, T125, T127, X217, tappend38_out_gaa(T126, T127, X217)) → tappend38_out_gaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_gaa(T107, T105, T106, T108, X217, tappend38_out_gaa(T107, T108, X217)) → tappend38_out_gaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U4_gaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_gaa(nil, T89, node(X217, nil, nil))
U4_aaa(T89, X217, tappend38_out_gaa(nil, T89, X217)) → tappend38_out_aaa(nil, T89, node(X217, nil, nil))
tappend38_in_aaa(node(T107, T105, T106), T108, node(X217, T105, T106)) → U5_aaa(T107, T105, T106, T108, X217, tappend38_in_aaa(T107, T108, X217))
tappend38_in_aaa(node(T126, T124, T125), T127, node(X217, T124, T125)) → U6_aaa(T126, T124, T125, T127, X217, tappend38_in_aaa(T126, T127, X217))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, X300))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X313, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(nil, T160, T161)), T145, node(node(nil, T145, nil), T146, node(X313, T160, T161)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370))) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T186, T187, nil)), T145, node(node(nil, T145, nil), T146, node(T186, T187, X370)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil))) → U7_aaa(T145, T146, X432, tappend151_in_gaa(nil, X431, X432))
U7_aaa(T145, T146, X432, tappend151_out_gaa(nil, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(X432, nil, nil)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217))) → U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(nil, X300, X300) → tappend151_out_aaa(nil, X300, X300)
tappend151_in_aaa(nil, X313, node(X313, nil, nil)) → tappend151_out_aaa(nil, X313, node(X313, nil, nil))
tappend151_in_aaa(node(nil, T160, T161), X313, node(X313, T160, T161)) → tappend151_out_aaa(node(nil, T160, T161), X313, node(X313, T160, T161))
tappend151_in_aaa(nil, X370, node(nil, nil, X370)) → tappend151_out_aaa(nil, X370, node(nil, nil, X370))
tappend151_in_aaa(node(T186, T187, nil), X370, node(T186, T187, X370)) → tappend151_out_aaa(node(T186, T187, nil), X370, node(T186, T187, X370))
tappend151_in_aaa(nil, X431, node(X432, nil, nil)) → U13_aaa(X431, X432, tappend151_in_gaa(nil, X431, X432))
U13_aaa(X431, X432, tappend151_out_gaa(nil, X431, X432)) → tappend151_out_aaa(nil, X431, node(X432, nil, nil))
tappend151_in_aaa(node(T218, T216, T217), X431, node(X432, T216, T217)) → U14_aaa(T218, T216, T217, X431, X432, tappend151_in_aaa(T218, X431, X432))
tappend151_in_aaa(node(T234, T232, T233), X431, node(X432, T232, T233)) → U15_aaa(T234, T232, T233, X431, X432, tappend151_in_aaa(T234, X431, X432))
tappend151_in_aaa(nil, nil, node(nil, nil, X489)) → U16_aaa(X489, tappend151_in_gaa(nil, X486, X489))
U16_aaa(X489, tappend151_out_gaa(nil, X486, X489)) → tappend151_out_aaa(nil, nil, node(nil, nil, X489))
tappend151_in_aaa(node(T249, T250, T252), T249, node(T249, T250, X489)) → U17_aaa(T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
tappend151_in_aaa(node(T265, T266, T268), T265, node(T265, T266, X489)) → U18_aaa(T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U18_aaa(T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend151_out_aaa(node(T265, T266, T268), T265, node(T265, T266, X489))
U17_aaa(T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend151_out_aaa(node(T249, T250, T252), T249, node(T249, T250, X489))
U15_aaa(T234, T232, T233, X431, X432, tappend151_out_aaa(T234, X431, X432)) → tappend151_out_aaa(node(T234, T232, T233), X431, node(X432, T232, T233))
U14_aaa(T218, T216, T217, X431, X432, tappend151_out_aaa(T218, X431, X432)) → tappend151_out_aaa(node(T218, T216, T217), X431, node(X432, T216, T217))
U8_aaa(T145, T146, T218, T216, T217, X432, tappend151_out_aaa(T218, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T218, T216, T217)), T145, node(node(nil, T145, nil), T146, node(X432, T216, T217)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233))) → U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_in_aaa(T234, X431, X432))
U9_aaa(T145, T146, T234, T232, T233, X432, tappend151_out_aaa(T234, X431, X432)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T234, T232, T233)), T145, node(node(nil, T145, nil), T146, node(X432, T232, T233)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489))) → U10_aaa(T145, T146, X489, tappend151_in_gaa(nil, X486, X489))
U10_aaa(T145, T146, X489, tappend151_out_gaa(nil, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, nil), T145, node(node(nil, T145, nil), T146, node(nil, nil, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489))) → U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_in_aaa(T252, X486, X489))
U11_aaa(T145, T146, T249, T250, T252, X489, tappend151_out_aaa(T252, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T249, T250, T252)), T145, node(node(nil, T145, nil), T146, node(T249, T250, X489)))
tappend38_in_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489))) → U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_in_aaa(T268, X486, X489))
U12_aaa(T145, T146, T265, T266, T268, X489, tappend151_out_aaa(T268, X486, X489)) → tappend38_out_aaa(node(node(nil, T145, nil), T146, node(T265, T266, T268)), T145, node(node(nil, T145, nil), T146, node(T265, T266, X489)))
U6_aaa(T126, T124, T125, T127, X217, tappend38_out_aaa(T126, T127, X217)) → tappend38_out_aaa(node(T126, T124, T125), T127, node(X217, T124, T125))
U5_aaa(T107, T105, T106, T108, X217, tappend38_out_aaa(T107, T108, X217)) → tappend38_out_aaa(node(T107, T105, T106), T108, node(X217, T105, T106))
U23_gaa(T7, T24, T25, tappend38_out_aaa(T23, T24, X81)) → goal1_out_gaa(T7, T24, T25)
goal1_in_gaa(T7, T24, T269) → U24_gaa(T7, T24, T269, s2t4_in_ga(T7, T23))
U24_gaa(T7, T24, T269, s2t4_out_ga(T7, T23)) → U25_gaa(T7, T24, T269, tappend38_in_aaa(T23, T24, node(nil, T269, nil)))
U25_gaa(T7, T24, T269, tappend38_out_aaa(T23, T24, node(nil, T269, nil))) → goal1_out_gaa(T7, T24, T269)
goal1_in_gaa(T7, T24, T274) → U26_gaa(T7, T24, T274, s2t4_in_ga(T7, T23))
U26_gaa(T7, T24, T274, s2t4_out_ga(T7, T23)) → U27_gaa(T7, T24, T274, tappend38_in_aaa(T23, T24, node(T275, T272, T273)))
U27_gaa(T7, T24, T274, tappend38_out_aaa(T23, T24, node(T275, T272, T273))) → U28_gaa(T7, T24, T274, tlast39_in_aa(T274, T275))
tlast39_in_aa(T269, node(nil, T269, nil)) → tlast39_out_aa(T269, node(nil, T269, nil))
tlast39_in_aa(T274, node(T275, T272, T273)) → U19_aa(T274, T275, T272, T273, tlast39_in_aa(T274, T275))
tlast39_in_aa(T280, node(T277, T278, T281)) → U20_aa(T280, T277, T278, T281, tlast39_in_aa(T280, T281))
U20_aa(T280, T277, T278, T281, tlast39_out_aa(T280, T281)) → tlast39_out_aa(T280, node(T277, T278, T281))
U19_aa(T274, T275, T272, T273, tlast39_out_aa(T274, T275)) → tlast39_out_aa(T274, node(T275, T272, T273))
U28_gaa(T7, T24, T274, tlast39_out_aa(T274, T275)) → goal1_out_gaa(T7, T24, T274)
goal1_in_gaa(T7, T24, T280) → U29_gaa(T7, T24, T280, s2t4_in_ga(T7, T23))
U29_gaa(T7, T24, T280, s2t4_out_ga(T7, T23)) → U30_gaa(T7, T24, T280, tappend38_in_aaa(T23, T24, node(T277, T278, T281)))
U30_gaa(T7, T24, T280, tappend38_out_aaa(T23, T24, node(T277, T278, T281))) → U31_gaa(T7, T24, T280, tlast39_in_aa(T280, T281))
U31_gaa(T7, T24, T280, tlast39_out_aa(T280, T281)) → goal1_out_gaa(T7, T24, T280)

The argument filtering Pi contains the following mapping:
goal1_in_gaa(x1, x2, x3)  =  goal1_in_gaa(x1)
U21_gaa(x1, x2, x3, x4)  =  U21_gaa(x4)
s2t4_in_ga(x1, x2)  =  s2t4_in_ga(x1)
0  =  0
s2t4_out_ga(x1, x2)  =  s2t4_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
U2_ga(x1, x2, x3, x4)  =  U2_ga(x4)
U3_ga(x1, x2, x3, x4)  =  U3_ga(x4)
goal1_out_gaa(x1, x2, x3)  =  goal1_out_gaa
U22_gaa(x1, x2, x3, x4)  =  U22_gaa(x4)
U23_gaa(x1, x2, x3, x4)  =  U23_gaa(x4)
tappend38_in_aaa(x1, x2, x3)  =  tappend38_in_aaa
tappend38_out_aaa(x1, x2, x3)  =  tappend38_out_aaa
U4_aaa(x1, x2, x3)  =  U4_aaa(x3)
tappend38_in_gaa(x1, x2, x3)  =  tappend38_in_gaa(x1)
nil  =  nil
tappend38_out_gaa(x1, x2, x3)  =  tappend38_out_gaa
node(x1, x2, x3)  =  node(x1, x2, x3)
U4_gaa(x1, x2, x3)  =  U4_gaa(x3)
U5_gaa(x1, x2, x3, x4, x5, x6)  =  U5_gaa(x6)
U6_gaa(x1, x2, x3, x4, x5, x6)  =  U6_gaa(x6)
U7_gaa(x1, x2, x3, x4)  =  U7_gaa(x4)
tappend151_in_gaa(x1, x2, x3)  =  tappend151_in_gaa(x1)
tappend151_out_gaa(x1, x2, x3)  =  tappend151_out_gaa
U13_gaa(x1, x2, x3)  =  U13_gaa(x3)
U14_gaa(x1, x2, x3, x4, x5, x6)  =  U14_gaa(x6)
U15_gaa(x1, x2, x3, x4, x5, x6)  =  U15_gaa(x6)
U16_gaa(x1, x2)  =  U16_gaa(x2)
U17_gaa(x1, x2, x3, x4, x5)  =  U17_gaa(x5)
U18_gaa(x1, x2, x3, x4, x5)  =  U18_gaa(x5)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4)  =  U10_gaa(x4)
U11_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_gaa(x7)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
U5_aaa(x1, x2, x3, x4, x5, x6)  =  U5_aaa(x6)
U6_aaa(x1, x2, x3, x4, x5, x6)  =  U6_aaa(x6)
U7_aaa(x1, x2, x3, x4)  =  U7_aaa(x4)
U8_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_aaa(x7)
tappend151_in_aaa(x1, x2, x3)  =  tappend151_in_aaa
tappend151_out_aaa(x1, x2, x3)  =  tappend151_out_aaa
U13_aaa(x1, x2, x3)  =  U13_aaa(x3)
U14_aaa(x1, x2, x3, x4, x5, x6)  =  U14_aaa(x6)
U15_aaa(x1, x2, x3, x4, x5, x6)  =  U15_aaa(x6)
U16_aaa(x1, x2)  =  U16_aaa(x2)
U17_aaa(x1, x2, x3, x4, x5)  =  U17_aaa(x5)
U18_aaa(x1, x2, x3, x4, x5)  =  U18_aaa(x5)
U9_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_aaa(x7)
U10_aaa(x1, x2, x3, x4)  =  U10_aaa(x4)
U11_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U11_aaa(x7)
U12_aaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_aaa(x7)
U24_gaa(x1, x2, x3, x4)  =  U24_gaa(x4)
U25_gaa(x1, x2, x3, x4)  =  U25_gaa(x4)
U26_gaa(x1, x2, x3, x4)  =  U26_gaa(x4)
U27_gaa(x1, x2, x3, x4)  =  U27_gaa(x4)
U28_gaa(x1, x2, x3, x4)  =  U28_gaa(x4)
tlast39_in_aa(x1, x2)  =  tlast39_in_aa
tlast39_out_aa(x1, x2)  =  tlast39_out_aa
U19_aa(x1, x2, x3, x4, x5)  =  U19_aa(x5)
U20_aa(x1, x2, x3, x4, x5)  =  U20_aa(x5)
U29_gaa(x1, x2, x3, x4)  =  U29_gaa(x4)
U30_gaa(x1, x2, x3, x4)  =  U30_gaa(x4)
U31_gaa(x1, x2, x3, x4)  =  U31_gaa(x4)
S2T4_IN_GA(x1, x2)  =  S2T4_IN_GA(x1)

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

(121) UsableRulesProof (EQUIVALENT transformation)

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

(122) Obligation:

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

S2T4_IN_GA(s(T16), node(nil, X52, X53)) → S2T4_IN_GA(T16, X53)
S2T4_IN_GA(s(T14), node(X38, X39, X38)) → S2T4_IN_GA(T14, X38)
S2T4_IN_GA(s(T18), node(X66, X67, nil)) → S2T4_IN_GA(T18, X66)

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

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

(123) PiDPToQDPProof (SOUND transformation)

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

(124) Obligation:

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

S2T4_IN_GA(s(T16)) → S2T4_IN_GA(T16)

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

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

  • S2T4_IN_GA(s(T16)) → S2T4_IN_GA(T16)
    The graph contains the following edges 1 > 1

(126) TRUE