(0) Obligation:

Clauses:

qs([], []).
qs(.(X, Xs), Ys) :- ','(part(X, Xs, Littles, Bigs), ','(qs(Littles, Ls), ','(qs(Bigs, Bs), app(Ls, .(X, Bs), Ys)))).
part(X, .(Y, Xs), .(Y, Ls), Bs) :- ','(less(X, Y), part(X, Xs, Ls, Bs)).
part(X, .(Y, Xs), Ls, .(Y, Bs)) :- part(X, Xs, Ls, Bs).
part(X1, [], [], []).
app([], X, X).
app(.(X, Xs), Ys, .(X, Zs)) :- app(Xs, Ys, Zs).
less(0, s(X2)).
less(s(X), s(Y)) :- less(X, Y).

Queries:

qs(a,g).

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph.

(2) Obligation:

Clauses:

less13(0, s(T38)).
less13(s(T45), s(T46)) :- less13(T45, T46).
part23(T70, .(T73, T74), .(T73, X123), X124) :- less13(T70, T73).
part23(T70, .(T73, T77), .(T73, X123), X124) :- ','(less13(T70, T73), part23(T70, T77, X123, X124)).
part23(T95, .(T96, T98), X174, .(T96, X175)) :- part23(T95, T98, X174, X175).
part23(T104, [], [], []).
part44(T148, .(T149, T150), .(T149, X282), X283) :- less13(T148, T149).
part44(T153, .(T149, T154), .(T149, X282), X283) :- ','(less13(T153, T149), part23(T153, T154, X282, X283)).
part44(T175, .(T173, T176), X333, .(T173, X334)) :- part44(T175, T176, X333, X334).
part44(T182, [], [], []).
p43(T122, T123, X230, X231, X232, X233, X234) :- part44(T122, T123, X230, X231).
p43(T129, T123, T127, T128, X232, X233, X234) :- ','(part44(T129, T123, T127, T128), qs60(T127, X232)).
p43(T185, T123, T127, T184, T183, X233, X234) :- ','(part44(T185, T123, T127, T184), ','(qs60(T127, T183), qs60(T184, X233))).
p43(T199, T123, T127, T184, T198, T197, X234) :- ','(part44(T199, T123, T127, T184), ','(qs60(T127, T198), ','(qs60(T184, T197), app71(T198, T199, T197, X234)))).
qs60([], []).
qs60(.(T192, T193), X370) :- p43(T192, T193, X366, X367, X368, X369, X370).
app71([], T212, T213, .(T212, T213)).
app71(.(T222, T226), T227, T228, .(T222, X403)) :- app71(T226, T227, T228, X403).
qs39(T122, T123, X234) :- p43(T122, T123, X230, X231, X232, X233, X234).
qs100([]).
app131([], T421, T422, .(T421, T422)).
app131(.(T433, T438), T435, T439, .(T433, T437)) :- app131(T438, T435, T439, T437).
app157([], T530, T531, .(T530, T531)).
app157(.(T542, T547), T548, T549, .(T542, T546)) :- app157(T547, T548, T549, T546).
qs1([], []).
qs1(.(T24, .(T25, T26)), []) :- less13(T24, T25).
qs1(.(T29, .(T31, T30)), []) :- ','(less13(T29, T31), part23(T29, T30, X49, X50)).
qs1(.(T29, .(T54, T30)), []) :- ','(less13(T29, T54), ','(part23(T29, T30, T52, T53), qs39(T54, T52, X11))).
qs1(.(T29, .(T54, T30)), []) :- ','(less13(T29, T54), ','(part23(T29, T30, T52, T108), ','(qs39(T54, T52, T107), qs60(T108, X12)))).
qs1(.(T264, .(T266, T265)), []) :- part44(T264, T265, X454, X455).
qs1(.(T273, .(T272, T265)), []) :- ','(part44(T273, T265, T270, T271), qs60(T270, X11)).
qs1(.(T280, .(T278, T265)), []) :- ','(part44(T280, T265, T270, T279), ','(qs60(T270, T277), qs39(T278, T279, X12))).
qs1(.(T305, []), []) :- qs100(X11).
qs1(.(T305, []), []) :- ','(qs100(T309), qs100(X12)).
qs1(.(T347, .(T348, T349)), T329) :- less13(T347, T348).
qs1(.(T352, .(T354, T353)), T329) :- ','(less13(T352, T354), part23(T352, T353, X581, X582)).
qs1(.(T352, .(T363, T353)), T329) :- ','(less13(T352, T363), ','(part23(T352, T353, T361, T362), qs39(T363, T361, X543))).
qs1(.(T352, .(T363, T353)), T329) :- ','(less13(T352, T363), ','(part23(T352, T353, T361, T371), ','(qs39(T363, T361, T370), qs60(T371, X544)))).
qs1(.(T390, .(T363, T353)), .(T390, T391)) :- ','(less13(T390, T363), ','(part23(T390, T353, T361, T371), ','(qs39(T363, T361, []), qs60(T371, T391)))).
qs1(.(T404, .(T363, T353)), .(T402, T406)) :- ','(less13(T404, T363), ','(part23(T404, T353, T361, T371), ','(qs39(T363, T361, .(T402, T407)), ','(qs60(T371, T408), app131(T407, T404, T408, T406))))).
qs1(.(T459, .(T461, T460)), T329) :- part44(T459, T460, X705, X706).
qs1(.(T468, .(T467, T460)), T329) :- ','(part44(T468, T460, T465, T466), qs60(T465, X543)).
qs1(.(T476, .(T474, T460)), T329) :- ','(part44(T476, T460, T465, T475), ','(qs60(T465, T473), qs39(T474, T475, X544))).
qs1(.(T498, .(T474, T460)), .(T498, T499)) :- ','(part44(T498, T460, T465, T475), ','(qs60(T465, []), qs39(T474, T475, T499))).
qs1(.(T516, .(T474, T460)), .(T510, T514)) :- ','(part44(T516, T460, T465, T475), ','(qs60(T465, .(T510, T515)), ','(qs39(T474, T475, T517), app157(T515, T516, T517, T514)))).
qs1(.(T557, []), T329) :- qs100(X543).
qs1(.(T557, []), T329) :- ','(qs100(T560), qs100(X544)).
qs1(.(T557, []), T329) :- ','(qs100(T560), ','(qs100(T563), app157(T560, T557, T563, T329))).

Queries:

qs1(a,g).

(3) PrologToPiTRSProof (SOUND transformation)

We use the technique of [LOPSTR]. With regard to the inferred argument filtering the predicates were used in the following modes:
qs1_in: (f,b)
less13_in: (f,f) (b,f)
part23_in: (b,f,f,f)
qs39_in: (f,f,f) (f,f,b)
p43_in: (f,f,f,f,f,f,f) (f,f,f,f,f,f,b)
part44_in: (f,f,f,f) (b,f,f,f)
qs60_in: (f,f) (f,b)
app71_in: (f,f,f,f) (f,f,f,b)
app131_in: (f,b,f,b)
app157_in: (f,f,f,b) (b,f,b,b)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag(x2)
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x1, x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa(x1)
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x1, x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x1, x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x4, x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x4, x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x4, x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x4, x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x4, x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x4, x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x4, x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x4, x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x4, x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x1, x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x1, x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x3, x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x7, x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag(x7)
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x7, x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x7, x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x7, x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x7, x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x7, x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x7, x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3, x4)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x5, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag(x3)
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x1, x4, x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag(x2)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x3, x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x4, x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x4, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x4, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x4, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x4, x5, x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x2, x3, x4)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x3, x5, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x4, x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x4, x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x4, x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x4, x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x4, x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x4, x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x1, x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x1, x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa(x1)
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x1, x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x1, x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x1, x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x1, x4, x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x4, x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x4, x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x4, x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x4, x5, x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3, x4)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x5, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x2, x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x2, x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x1, x2, x3, x4)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x1, x2, x4, x5, x6)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

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

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag(x2)
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x1, x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa(x1)
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x1, x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x1, x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x4, x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x4, x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x4, x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x4, x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x4, x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x4, x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x4, x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x4, x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x4, x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x1, x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x1, x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x3, x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x7, x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag(x7)
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x7, x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x7, x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x7, x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x7, x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x7, x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x7, x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3, x4)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x5, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag(x3)
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x1, x4, x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag(x2)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x3, x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x4, x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x4, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x4, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x4, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x4, x5, x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x2, x3, x4)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x3, x5, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x4, x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x4, x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x4, x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x4, x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x4, x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x4, x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x1, x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x1, x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa(x1)
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x1, x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x1, x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x1, x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x1, x4, x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x4, x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x4, x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x4, x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x4, x5, x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3, x4)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x5, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x2, x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x2, x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x1, x2, x3, x4)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x1, x2, x4, x5, x6)

(5) DependencyPairsProof (EQUIVALENT transformation)

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

QS1_IN_AG(.(T24, .(T25, T26)), []) → U25_AG(T24, T25, T26, less13_in_aa(T24, T25))
QS1_IN_AG(.(T24, .(T25, T26)), []) → LESS13_IN_AA(T24, T25)
LESS13_IN_AA(s(T45), s(T46)) → U1_AA(T45, T46, less13_in_aa(T45, T46))
LESS13_IN_AA(s(T45), s(T46)) → LESS13_IN_AA(T45, T46)
QS1_IN_AG(.(T29, .(T31, T30)), []) → U26_AG(T29, T31, T30, less13_in_aa(T29, T31))
U26_AG(T29, T31, T30, less13_out_aa(T29, T31)) → U27_AG(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
U26_AG(T29, T31, T30, less13_out_aa(T29, T31)) → PART23_IN_GAAA(T29, T30, X49, X50)
PART23_IN_GAAA(T70, .(T73, T74), .(T73, X123), X124) → U2_GAAA(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
PART23_IN_GAAA(T70, .(T73, T74), .(T73, X123), X124) → LESS13_IN_GA(T70, T73)
LESS13_IN_GA(s(T45), s(T46)) → U1_GA(T45, T46, less13_in_ga(T45, T46))
LESS13_IN_GA(s(T45), s(T46)) → LESS13_IN_GA(T45, T46)
PART23_IN_GAAA(T70, .(T73, T77), .(T73, X123), X124) → U3_GAAA(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_GAAA(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_GAAA(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
U3_GAAA(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → PART23_IN_GAAA(T70, T77, X123, X124)
PART23_IN_GAAA(T95, .(T96, T98), X174, .(T96, X175)) → U5_GAAA(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
PART23_IN_GAAA(T95, .(T96, T98), X174, .(T96, X175)) → PART23_IN_GAAA(T95, T98, X174, X175)
QS1_IN_AG(.(T29, .(T54, T30)), []) → U28_AG(T29, T54, T30, less13_in_aa(T29, T54))
U28_AG(T29, T54, T30, less13_out_aa(T29, T54)) → U29_AG(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U28_AG(T29, T54, T30, less13_out_aa(T29, T54)) → PART23_IN_GAAA(T29, T30, T52, T53)
U29_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_AG(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
U29_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → QS39_IN_AAA(T54, T52, X11)
QS39_IN_AAA(T122, T123, X234) → U22_AAA(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
QS39_IN_AAA(T122, T123, X234) → P43_IN_AAAAAAA(T122, T123, X230, X231, X232, X233, X234)
P43_IN_AAAAAAA(T122, T123, X230, X231, X232, X233, X234) → U10_AAAAAAA(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
P43_IN_AAAAAAA(T122, T123, X230, X231, X232, X233, X234) → PART44_IN_AAAA(T122, T123, X230, X231)
PART44_IN_AAAA(T148, .(T149, T150), .(T149, X282), X283) → U6_AAAA(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
PART44_IN_AAAA(T148, .(T149, T150), .(T149, X282), X283) → LESS13_IN_AA(T148, T149)
PART44_IN_AAAA(T153, .(T149, T154), .(T149, X282), X283) → U7_AAAA(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_AAAA(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_AAAA(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U7_AAAA(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → PART23_IN_GAAA(T153, T154, X282, X283)
PART44_IN_AAAA(T175, .(T173, T176), X333, .(T173, X334)) → U9_AAAA(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
PART44_IN_AAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_AAAA(T175, T176, X333, X334)
P43_IN_AAAAAAA(T129, T123, T127, T128, X232, X233, X234) → U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → QS60_IN_AA(T127, X232)
QS60_IN_AA(.(T192, T193), X370) → U20_AA(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
QS60_IN_AA(.(T192, T193), X370) → P43_IN_AAAAAAA(T192, T193, X366, X367, X368, X369, X370)
P43_IN_AAAAAAA(T185, T123, T127, T184, T183, X233, X234) → U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → QS60_IN_AA(T127, T183)
U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → QS60_IN_AA(T184, X233)
P43_IN_AAAAAAA(T199, T123, T127, T184, T198, T197, X234) → U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → QS60_IN_AA(T127, T198)
U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → QS60_IN_AA(T184, T197)
U18_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
U18_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → APP71_IN_AAAA(T198, T199, T197, X234)
APP71_IN_AAAA(.(T222, T226), T227, T228, .(T222, X403)) → U21_AAAA(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
APP71_IN_AAAA(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAA(T226, T227, T228, X403)
U28_AG(T29, T54, T30, less13_out_aa(T29, T54)) → U31_AG(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_AG(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U31_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → QS39_IN_AAA(T54, T52, T107)
U32_AG(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_AG(T29, T54, T30, qs60_in_aa(T108, X12))
U32_AG(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → QS60_IN_AA(T108, X12)
QS1_IN_AG(.(T264, .(T266, T265)), []) → U34_AG(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
QS1_IN_AG(.(T264, .(T266, T265)), []) → PART44_IN_AAAA(T264, T265, X454, X455)
QS1_IN_AG(.(T273, .(T272, T265)), []) → U35_AG(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_AG(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_AG(T273, T272, T265, qs60_in_aa(T270, X11))
U35_AG(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → QS60_IN_AA(T270, X11)
QS1_IN_AG(.(T280, .(T278, T265)), []) → U37_AG(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_AG(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_AG(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U37_AG(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → QS60_IN_AA(T270, T277)
U38_AG(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_AG(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U38_AG(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → QS39_IN_AAA(T278, T279, X12)
QS1_IN_AG(.(T305, []), []) → U40_AG(T305, qs100_in_a(X11))
QS1_IN_AG(.(T305, []), []) → QS100_IN_A(X11)
QS1_IN_AG(.(T305, []), []) → U41_AG(T305, qs100_in_a(T309))
U41_AG(T305, qs100_out_a(T309)) → U42_AG(T305, qs100_in_a(X12))
U41_AG(T305, qs100_out_a(T309)) → QS100_IN_A(X12)
QS1_IN_AG(.(T347, .(T348, T349)), T329) → U43_AG(T347, T348, T349, T329, less13_in_aa(T347, T348))
QS1_IN_AG(.(T347, .(T348, T349)), T329) → LESS13_IN_AA(T347, T348)
QS1_IN_AG(.(T352, .(T354, T353)), T329) → U44_AG(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_AG(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_AG(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U44_AG(T352, T354, T353, T329, less13_out_aa(T352, T354)) → PART23_IN_GAAA(T352, T353, X581, X582)
QS1_IN_AG(.(T352, .(T363, T353)), T329) → U46_AG(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_AG(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_AG(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U46_AG(T352, T363, T353, T329, less13_out_aa(T352, T363)) → PART23_IN_GAAA(T352, T353, T361, T362)
U47_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_AG(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U47_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → QS39_IN_AAA(T363, T361, X543)
U46_AG(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_AG(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_AG(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U49_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → QS39_IN_AAA(T363, T361, T370)
U50_AG(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_AG(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U50_AG(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → QS60_IN_AA(T371, X544)
QS1_IN_AG(.(T390, .(T363, T353)), .(T390, T391)) → U52_AG(T390, T363, T353, T391, less13_in_ga(T390, T363))
QS1_IN_AG(.(T390, .(T363, T353)), .(T390, T391)) → LESS13_IN_GA(T390, T363)
U52_AG(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_AG(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U52_AG(T390, T363, T353, T391, less13_out_ga(T390, T363)) → PART23_IN_GAAA(T390, T353, T361, T371)
U53_AG(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_AG(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
U53_AG(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → QS39_IN_AAG(T363, T361, [])
QS39_IN_AAG(T122, T123, X234) → U22_AAG(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
QS39_IN_AAG(T122, T123, X234) → P43_IN_AAAAAAG(T122, T123, X230, X231, X232, X233, X234)
P43_IN_AAAAAAG(T122, T123, X230, X231, X232, X233, X234) → U10_AAAAAAG(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
P43_IN_AAAAAAG(T122, T123, X230, X231, X232, X233, X234) → PART44_IN_AAAA(T122, T123, X230, X231)
P43_IN_AAAAAAG(T129, T123, T127, T128, X232, X233, X234) → U11_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U11_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → QS60_IN_AA(T127, X232)
P43_IN_AAAAAAG(T185, T123, T127, T184, T183, X233, X234) → U13_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U13_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → QS60_IN_AA(T127, T183)
U14_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U14_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → QS60_IN_AA(T184, X233)
P43_IN_AAAAAAG(T199, T123, T127, T184, T198, T197, X234) → U16_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U16_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → QS60_IN_AA(T127, T198)
U17_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U17_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → QS60_IN_AA(T184, T197)
U18_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
U18_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → APP71_IN_AAAG(T198, T199, T197, X234)
APP71_IN_AAAG(.(T222, T226), T227, T228, .(T222, X403)) → U21_AAAG(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
APP71_IN_AAAG(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAG(T226, T227, T228, X403)
U54_AG(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_AG(T390, T363, T353, T391, qs60_in_ag(T371, T391))
U54_AG(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → QS60_IN_AG(T371, T391)
QS60_IN_AG(.(T192, T193), X370) → U20_AG(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
QS60_IN_AG(.(T192, T193), X370) → P43_IN_AAAAAAG(T192, T193, X366, X367, X368, X369, X370)
QS1_IN_AG(.(T404, .(T363, T353)), .(T402, T406)) → U56_AG(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
QS1_IN_AG(.(T404, .(T363, T353)), .(T402, T406)) → LESS13_IN_AA(T404, T363)
U56_AG(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_AG(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U56_AG(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → PART23_IN_GAAA(T404, T353, T361, T371)
U57_AG(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_AG(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U57_AG(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → QS39_IN_AAA(T363, T361, .(T402, T407))
U58_AG(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_AG(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U58_AG(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → QS60_IN_AA(T371, T408)
U59_AG(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_AG(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
U59_AG(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → APP131_IN_AGAG(T407, T404, T408, T406)
APP131_IN_AGAG(.(T433, T438), T435, T439, .(T433, T437)) → U23_AGAG(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
APP131_IN_AGAG(.(T433, T438), T435, T439, .(T433, T437)) → APP131_IN_AGAG(T438, T435, T439, T437)
QS1_IN_AG(.(T459, .(T461, T460)), T329) → U61_AG(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
QS1_IN_AG(.(T459, .(T461, T460)), T329) → PART44_IN_AAAA(T459, T460, X705, X706)
QS1_IN_AG(.(T468, .(T467, T460)), T329) → U62_AG(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_AG(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_AG(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U62_AG(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → QS60_IN_AA(T465, X543)
QS1_IN_AG(.(T476, .(T474, T460)), T329) → U64_AG(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_AG(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_AG(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U64_AG(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → QS60_IN_AA(T465, T473)
U65_AG(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_AG(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U65_AG(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → QS39_IN_AAA(T474, T475, X544)
QS1_IN_AG(.(T498, .(T474, T460)), .(T498, T499)) → U67_AG(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
QS1_IN_AG(.(T498, .(T474, T460)), .(T498, T499)) → PART44_IN_GAAA(T498, T460, T465, T475)
PART44_IN_GAAA(T148, .(T149, T150), .(T149, X282), X283) → U6_GAAA(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
PART44_IN_GAAA(T148, .(T149, T150), .(T149, X282), X283) → LESS13_IN_GA(T148, T149)
PART44_IN_GAAA(T153, .(T149, T154), .(T149, X282), X283) → U7_GAAA(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_GAAA(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_GAAA(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U7_GAAA(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → PART23_IN_GAAA(T153, T154, X282, X283)
PART44_IN_GAAA(T175, .(T173, T176), X333, .(T173, X334)) → U9_GAAA(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
PART44_IN_GAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_GAAA(T175, T176, X333, X334)
U67_AG(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_AG(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U67_AG(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → QS60_IN_AG(T465, [])
U68_AG(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_AG(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U68_AG(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → QS39_IN_AAG(T474, T475, T499)
QS1_IN_AG(.(T516, .(T474, T460)), .(T510, T514)) → U70_AG(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
QS1_IN_AG(.(T516, .(T474, T460)), .(T510, T514)) → PART44_IN_AAAA(T516, T460, T465, T475)
U70_AG(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_AG(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U70_AG(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → QS60_IN_AA(T465, .(T510, T515))
U71_AG(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_AG(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U71_AG(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → QS39_IN_AAA(T474, T475, T517)
U72_AG(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_AG(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
U72_AG(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → APP157_IN_AAAG(T515, T516, T517, T514)
APP157_IN_AAAG(.(T542, T547), T548, T549, .(T542, T546)) → U24_AAAG(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
APP157_IN_AAAG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_AAAG(T547, T548, T549, T546)
QS1_IN_AG(.(T557, []), T329) → U74_AG(T557, T329, qs100_in_a(X543))
QS1_IN_AG(.(T557, []), T329) → QS100_IN_A(X543)
QS1_IN_AG(.(T557, []), T329) → U75_AG(T557, T329, qs100_in_a(T560))
U75_AG(T557, T329, qs100_out_a(T560)) → U76_AG(T557, T329, qs100_in_a(X544))
U75_AG(T557, T329, qs100_out_a(T560)) → QS100_IN_A(X544)
U75_AG(T557, T329, qs100_out_a(T560)) → U77_AG(T557, T329, T560, qs100_in_a(T563))
U77_AG(T557, T329, T560, qs100_out_a(T563)) → U78_AG(T557, T329, app157_in_gagg(T560, T557, T563, T329))
U77_AG(T557, T329, T560, qs100_out_a(T563)) → APP157_IN_GAGG(T560, T557, T563, T329)
APP157_IN_GAGG(.(T542, T547), T548, T549, .(T542, T546)) → U24_GAGG(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
APP157_IN_GAGG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_GAGG(T547, T548, T549, T546)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag(x2)
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x1, x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa(x1)
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x1, x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x1, x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x4, x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x4, x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x4, x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x4, x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x4, x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x4, x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x4, x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x4, x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x4, x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x1, x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x1, x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x3, x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x7, x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag(x7)
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x7, x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x7, x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x7, x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x7, x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x7, x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x7, x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3, x4)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x5, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag(x3)
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x1, x4, x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag(x2)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x3, x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x4, x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x4, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x4, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x4, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x4, x5, x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x2, x3, x4)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x3, x5, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x4, x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x4, x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x4, x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x4, x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x4, x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x4, x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x1, x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x1, x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa(x1)
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x1, x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x1, x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x1, x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x1, x4, x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x4, x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x4, x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x4, x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x4, x5, x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3, x4)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x5, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x2, x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x2, x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x1, x2, x3, x4)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x1, x2, x4, x5, x6)
QS1_IN_AG(x1, x2)  =  QS1_IN_AG(x2)
U25_AG(x1, x2, x3, x4)  =  U25_AG(x4)
LESS13_IN_AA(x1, x2)  =  LESS13_IN_AA
U1_AA(x1, x2, x3)  =  U1_AA(x3)
U26_AG(x1, x2, x3, x4)  =  U26_AG(x4)
U27_AG(x1, x2, x3, x4)  =  U27_AG(x4)
PART23_IN_GAAA(x1, x2, x3, x4)  =  PART23_IN_GAAA(x1)
U2_GAAA(x1, x2, x3, x4, x5, x6)  =  U2_GAAA(x1, x6)
LESS13_IN_GA(x1, x2)  =  LESS13_IN_GA(x1)
U1_GA(x1, x2, x3)  =  U1_GA(x1, x3)
U3_GAAA(x1, x2, x3, x4, x5, x6)  =  U3_GAAA(x1, x6)
U4_GAAA(x1, x2, x3, x4, x5, x6)  =  U4_GAAA(x1, x6)
U5_GAAA(x1, x2, x3, x4, x5, x6)  =  U5_GAAA(x1, x6)
U28_AG(x1, x2, x3, x4)  =  U28_AG(x4)
U29_AG(x1, x2, x3, x4)  =  U29_AG(x4)
U30_AG(x1, x2, x3, x4)  =  U30_AG(x4)
QS39_IN_AAA(x1, x2, x3)  =  QS39_IN_AAA
U22_AAA(x1, x2, x3, x4)  =  U22_AAA(x4)
P43_IN_AAAAAAA(x1, x2, x3, x4, x5, x6, x7)  =  P43_IN_AAAAAAA
U10_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_AAAAAAA(x8)
PART44_IN_AAAA(x1, x2, x3, x4)  =  PART44_IN_AAAA
U6_AAAA(x1, x2, x3, x4, x5, x6)  =  U6_AAAA(x6)
U7_AAAA(x1, x2, x3, x4, x5, x6)  =  U7_AAAA(x6)
U8_AAAA(x1, x2, x3, x4, x5, x6)  =  U8_AAAA(x6)
U9_AAAA(x1, x2, x3, x4, x5, x6)  =  U9_AAAA(x6)
U11_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_AAAAAAA(x8)
U12_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_AAAAAAA(x8)
QS60_IN_AA(x1, x2)  =  QS60_IN_AA
U20_AA(x1, x2, x3, x4)  =  U20_AA(x4)
U13_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_AAAAAAA(x8)
U14_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_AAAAAAA(x8)
U15_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_AAAAAAA(x8)
U16_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_AAAAAAA(x8)
U17_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_AAAAAAA(x8)
U18_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_AAAAAAA(x8)
U19_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_AAAAAAA(x8)
APP71_IN_AAAA(x1, x2, x3, x4)  =  APP71_IN_AAAA
U21_AAAA(x1, x2, x3, x4, x5, x6)  =  U21_AAAA(x6)
U31_AG(x1, x2, x3, x4)  =  U31_AG(x4)
U32_AG(x1, x2, x3, x4, x5)  =  U32_AG(x5)
U33_AG(x1, x2, x3, x4)  =  U33_AG(x4)
U34_AG(x1, x2, x3, x4)  =  U34_AG(x4)
U35_AG(x1, x2, x3, x4)  =  U35_AG(x4)
U36_AG(x1, x2, x3, x4)  =  U36_AG(x4)
U37_AG(x1, x2, x3, x4)  =  U37_AG(x4)
U38_AG(x1, x2, x3, x4, x5)  =  U38_AG(x5)
U39_AG(x1, x2, x3, x4)  =  U39_AG(x4)
U40_AG(x1, x2)  =  U40_AG(x2)
QS100_IN_A(x1)  =  QS100_IN_A
U41_AG(x1, x2)  =  U41_AG(x2)
U42_AG(x1, x2)  =  U42_AG(x2)
U43_AG(x1, x2, x3, x4, x5)  =  U43_AG(x4, x5)
U44_AG(x1, x2, x3, x4, x5)  =  U44_AG(x4, x5)
U45_AG(x1, x2, x3, x4, x5)  =  U45_AG(x4, x5)
U46_AG(x1, x2, x3, x4, x5)  =  U46_AG(x4, x5)
U47_AG(x1, x2, x3, x4, x5)  =  U47_AG(x4, x5)
U48_AG(x1, x2, x3, x4, x5)  =  U48_AG(x4, x5)
U49_AG(x1, x2, x3, x4, x5)  =  U49_AG(x4, x5)
U50_AG(x1, x2, x3, x4, x5, x6)  =  U50_AG(x4, x6)
U51_AG(x1, x2, x3, x4, x5)  =  U51_AG(x4, x5)
U52_AG(x1, x2, x3, x4, x5)  =  U52_AG(x1, x4, x5)
U53_AG(x1, x2, x3, x4, x5)  =  U53_AG(x1, x4, x5)
U54_AG(x1, x2, x3, x4, x5, x6)  =  U54_AG(x1, x4, x6)
QS39_IN_AAG(x1, x2, x3)  =  QS39_IN_AAG(x3)
U22_AAG(x1, x2, x3, x4)  =  U22_AAG(x3, x4)
P43_IN_AAAAAAG(x1, x2, x3, x4, x5, x6, x7)  =  P43_IN_AAAAAAG(x7)
U10_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_AAAAAAG(x7, x8)
U11_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_AAAAAAG(x7, x8)
U12_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_AAAAAAG(x7, x8)
U13_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_AAAAAAG(x7, x8)
U14_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_AAAAAAG(x7, x8)
U15_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_AAAAAAG(x7, x8)
U16_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_AAAAAAG(x7, x8)
U17_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_AAAAAAG(x7, x8)
U18_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_AAAAAAG(x7, x8)
U19_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_AAAAAAG(x7, x8)
APP71_IN_AAAG(x1, x2, x3, x4)  =  APP71_IN_AAAG(x4)
U21_AAAG(x1, x2, x3, x4, x5, x6)  =  U21_AAAG(x1, x5, x6)
U55_AG(x1, x2, x3, x4, x5)  =  U55_AG(x1, x4, x5)
QS60_IN_AG(x1, x2)  =  QS60_IN_AG(x2)
U20_AG(x1, x2, x3, x4)  =  U20_AG(x3, x4)
U56_AG(x1, x2, x3, x4, x5, x6)  =  U56_AG(x4, x5, x6)
U57_AG(x1, x2, x3, x4, x5, x6)  =  U57_AG(x1, x4, x5, x6)
U58_AG(x1, x2, x3, x4, x5, x6, x7)  =  U58_AG(x1, x4, x5, x7)
U59_AG(x1, x2, x3, x4, x5, x6, x7)  =  U59_AG(x1, x4, x5, x7)
U60_AG(x1, x2, x3, x4, x5, x6)  =  U60_AG(x4, x5, x6)
APP131_IN_AGAG(x1, x2, x3, x4)  =  APP131_IN_AGAG(x2, x4)
U23_AGAG(x1, x2, x3, x4, x5, x6)  =  U23_AGAG(x1, x3, x5, x6)
U61_AG(x1, x2, x3, x4, x5)  =  U61_AG(x4, x5)
U62_AG(x1, x2, x3, x4, x5)  =  U62_AG(x4, x5)
U63_AG(x1, x2, x3, x4, x5)  =  U63_AG(x4, x5)
U64_AG(x1, x2, x3, x4, x5)  =  U64_AG(x4, x5)
U65_AG(x1, x2, x3, x4, x5, x6)  =  U65_AG(x4, x6)
U66_AG(x1, x2, x3, x4, x5)  =  U66_AG(x4, x5)
U67_AG(x1, x2, x3, x4, x5)  =  U67_AG(x1, x4, x5)
PART44_IN_GAAA(x1, x2, x3, x4)  =  PART44_IN_GAAA(x1)
U6_GAAA(x1, x2, x3, x4, x5, x6)  =  U6_GAAA(x1, x6)
U7_GAAA(x1, x2, x3, x4, x5, x6)  =  U7_GAAA(x1, x6)
U8_GAAA(x1, x2, x3, x4, x5, x6)  =  U8_GAAA(x1, x6)
U9_GAAA(x1, x2, x3, x4, x5, x6)  =  U9_GAAA(x1, x6)
U68_AG(x1, x2, x3, x4, x5, x6)  =  U68_AG(x1, x4, x6)
U69_AG(x1, x2, x3, x4, x5)  =  U69_AG(x1, x4, x5)
U70_AG(x1, x2, x3, x4, x5, x6)  =  U70_AG(x4, x5, x6)
U71_AG(x1, x2, x3, x4, x5, x6, x7)  =  U71_AG(x4, x5, x7)
U72_AG(x1, x2, x3, x4, x5, x6, x7)  =  U72_AG(x4, x5, x7)
U73_AG(x1, x2, x3, x4, x5, x6)  =  U73_AG(x4, x5, x6)
APP157_IN_AAAG(x1, x2, x3, x4)  =  APP157_IN_AAAG(x4)
U24_AAAG(x1, x2, x3, x4, x5, x6)  =  U24_AAAG(x1, x5, x6)
U74_AG(x1, x2, x3)  =  U74_AG(x2, x3)
U75_AG(x1, x2, x3)  =  U75_AG(x2, x3)
U76_AG(x1, x2, x3)  =  U76_AG(x2, x3)
U77_AG(x1, x2, x3, x4)  =  U77_AG(x2, x3, x4)
U78_AG(x1, x2, x3)  =  U78_AG(x2, x3)
APP157_IN_GAGG(x1, x2, x3, x4)  =  APP157_IN_GAGG(x1, x3, x4)
U24_GAGG(x1, x2, x3, x4, x5, x6)  =  U24_GAGG(x1, x2, x4, x5, x6)

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

(6) Obligation:

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

QS1_IN_AG(.(T24, .(T25, T26)), []) → U25_AG(T24, T25, T26, less13_in_aa(T24, T25))
QS1_IN_AG(.(T24, .(T25, T26)), []) → LESS13_IN_AA(T24, T25)
LESS13_IN_AA(s(T45), s(T46)) → U1_AA(T45, T46, less13_in_aa(T45, T46))
LESS13_IN_AA(s(T45), s(T46)) → LESS13_IN_AA(T45, T46)
QS1_IN_AG(.(T29, .(T31, T30)), []) → U26_AG(T29, T31, T30, less13_in_aa(T29, T31))
U26_AG(T29, T31, T30, less13_out_aa(T29, T31)) → U27_AG(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
U26_AG(T29, T31, T30, less13_out_aa(T29, T31)) → PART23_IN_GAAA(T29, T30, X49, X50)
PART23_IN_GAAA(T70, .(T73, T74), .(T73, X123), X124) → U2_GAAA(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
PART23_IN_GAAA(T70, .(T73, T74), .(T73, X123), X124) → LESS13_IN_GA(T70, T73)
LESS13_IN_GA(s(T45), s(T46)) → U1_GA(T45, T46, less13_in_ga(T45, T46))
LESS13_IN_GA(s(T45), s(T46)) → LESS13_IN_GA(T45, T46)
PART23_IN_GAAA(T70, .(T73, T77), .(T73, X123), X124) → U3_GAAA(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_GAAA(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_GAAA(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
U3_GAAA(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → PART23_IN_GAAA(T70, T77, X123, X124)
PART23_IN_GAAA(T95, .(T96, T98), X174, .(T96, X175)) → U5_GAAA(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
PART23_IN_GAAA(T95, .(T96, T98), X174, .(T96, X175)) → PART23_IN_GAAA(T95, T98, X174, X175)
QS1_IN_AG(.(T29, .(T54, T30)), []) → U28_AG(T29, T54, T30, less13_in_aa(T29, T54))
U28_AG(T29, T54, T30, less13_out_aa(T29, T54)) → U29_AG(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U28_AG(T29, T54, T30, less13_out_aa(T29, T54)) → PART23_IN_GAAA(T29, T30, T52, T53)
U29_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_AG(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
U29_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → QS39_IN_AAA(T54, T52, X11)
QS39_IN_AAA(T122, T123, X234) → U22_AAA(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
QS39_IN_AAA(T122, T123, X234) → P43_IN_AAAAAAA(T122, T123, X230, X231, X232, X233, X234)
P43_IN_AAAAAAA(T122, T123, X230, X231, X232, X233, X234) → U10_AAAAAAA(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
P43_IN_AAAAAAA(T122, T123, X230, X231, X232, X233, X234) → PART44_IN_AAAA(T122, T123, X230, X231)
PART44_IN_AAAA(T148, .(T149, T150), .(T149, X282), X283) → U6_AAAA(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
PART44_IN_AAAA(T148, .(T149, T150), .(T149, X282), X283) → LESS13_IN_AA(T148, T149)
PART44_IN_AAAA(T153, .(T149, T154), .(T149, X282), X283) → U7_AAAA(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_AAAA(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_AAAA(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U7_AAAA(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → PART23_IN_GAAA(T153, T154, X282, X283)
PART44_IN_AAAA(T175, .(T173, T176), X333, .(T173, X334)) → U9_AAAA(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
PART44_IN_AAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_AAAA(T175, T176, X333, X334)
P43_IN_AAAAAAA(T129, T123, T127, T128, X232, X233, X234) → U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → QS60_IN_AA(T127, X232)
QS60_IN_AA(.(T192, T193), X370) → U20_AA(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
QS60_IN_AA(.(T192, T193), X370) → P43_IN_AAAAAAA(T192, T193, X366, X367, X368, X369, X370)
P43_IN_AAAAAAA(T185, T123, T127, T184, T183, X233, X234) → U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → QS60_IN_AA(T127, T183)
U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → QS60_IN_AA(T184, X233)
P43_IN_AAAAAAA(T199, T123, T127, T184, T198, T197, X234) → U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → QS60_IN_AA(T127, T198)
U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → QS60_IN_AA(T184, T197)
U18_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
U18_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → APP71_IN_AAAA(T198, T199, T197, X234)
APP71_IN_AAAA(.(T222, T226), T227, T228, .(T222, X403)) → U21_AAAA(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
APP71_IN_AAAA(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAA(T226, T227, T228, X403)
U28_AG(T29, T54, T30, less13_out_aa(T29, T54)) → U31_AG(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_AG(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U31_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → QS39_IN_AAA(T54, T52, T107)
U32_AG(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_AG(T29, T54, T30, qs60_in_aa(T108, X12))
U32_AG(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → QS60_IN_AA(T108, X12)
QS1_IN_AG(.(T264, .(T266, T265)), []) → U34_AG(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
QS1_IN_AG(.(T264, .(T266, T265)), []) → PART44_IN_AAAA(T264, T265, X454, X455)
QS1_IN_AG(.(T273, .(T272, T265)), []) → U35_AG(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_AG(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_AG(T273, T272, T265, qs60_in_aa(T270, X11))
U35_AG(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → QS60_IN_AA(T270, X11)
QS1_IN_AG(.(T280, .(T278, T265)), []) → U37_AG(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_AG(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_AG(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U37_AG(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → QS60_IN_AA(T270, T277)
U38_AG(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_AG(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U38_AG(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → QS39_IN_AAA(T278, T279, X12)
QS1_IN_AG(.(T305, []), []) → U40_AG(T305, qs100_in_a(X11))
QS1_IN_AG(.(T305, []), []) → QS100_IN_A(X11)
QS1_IN_AG(.(T305, []), []) → U41_AG(T305, qs100_in_a(T309))
U41_AG(T305, qs100_out_a(T309)) → U42_AG(T305, qs100_in_a(X12))
U41_AG(T305, qs100_out_a(T309)) → QS100_IN_A(X12)
QS1_IN_AG(.(T347, .(T348, T349)), T329) → U43_AG(T347, T348, T349, T329, less13_in_aa(T347, T348))
QS1_IN_AG(.(T347, .(T348, T349)), T329) → LESS13_IN_AA(T347, T348)
QS1_IN_AG(.(T352, .(T354, T353)), T329) → U44_AG(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_AG(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_AG(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U44_AG(T352, T354, T353, T329, less13_out_aa(T352, T354)) → PART23_IN_GAAA(T352, T353, X581, X582)
QS1_IN_AG(.(T352, .(T363, T353)), T329) → U46_AG(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_AG(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_AG(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U46_AG(T352, T363, T353, T329, less13_out_aa(T352, T363)) → PART23_IN_GAAA(T352, T353, T361, T362)
U47_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_AG(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U47_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → QS39_IN_AAA(T363, T361, X543)
U46_AG(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_AG(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_AG(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U49_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → QS39_IN_AAA(T363, T361, T370)
U50_AG(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_AG(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U50_AG(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → QS60_IN_AA(T371, X544)
QS1_IN_AG(.(T390, .(T363, T353)), .(T390, T391)) → U52_AG(T390, T363, T353, T391, less13_in_ga(T390, T363))
QS1_IN_AG(.(T390, .(T363, T353)), .(T390, T391)) → LESS13_IN_GA(T390, T363)
U52_AG(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_AG(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U52_AG(T390, T363, T353, T391, less13_out_ga(T390, T363)) → PART23_IN_GAAA(T390, T353, T361, T371)
U53_AG(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_AG(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
U53_AG(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → QS39_IN_AAG(T363, T361, [])
QS39_IN_AAG(T122, T123, X234) → U22_AAG(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
QS39_IN_AAG(T122, T123, X234) → P43_IN_AAAAAAG(T122, T123, X230, X231, X232, X233, X234)
P43_IN_AAAAAAG(T122, T123, X230, X231, X232, X233, X234) → U10_AAAAAAG(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
P43_IN_AAAAAAG(T122, T123, X230, X231, X232, X233, X234) → PART44_IN_AAAA(T122, T123, X230, X231)
P43_IN_AAAAAAG(T129, T123, T127, T128, X232, X233, X234) → U11_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U11_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → QS60_IN_AA(T127, X232)
P43_IN_AAAAAAG(T185, T123, T127, T184, T183, X233, X234) → U13_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U13_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → QS60_IN_AA(T127, T183)
U14_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U14_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → QS60_IN_AA(T184, X233)
P43_IN_AAAAAAG(T199, T123, T127, T184, T198, T197, X234) → U16_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U16_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → QS60_IN_AA(T127, T198)
U17_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U17_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → QS60_IN_AA(T184, T197)
U18_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
U18_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → APP71_IN_AAAG(T198, T199, T197, X234)
APP71_IN_AAAG(.(T222, T226), T227, T228, .(T222, X403)) → U21_AAAG(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
APP71_IN_AAAG(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAG(T226, T227, T228, X403)
U54_AG(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_AG(T390, T363, T353, T391, qs60_in_ag(T371, T391))
U54_AG(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → QS60_IN_AG(T371, T391)
QS60_IN_AG(.(T192, T193), X370) → U20_AG(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
QS60_IN_AG(.(T192, T193), X370) → P43_IN_AAAAAAG(T192, T193, X366, X367, X368, X369, X370)
QS1_IN_AG(.(T404, .(T363, T353)), .(T402, T406)) → U56_AG(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
QS1_IN_AG(.(T404, .(T363, T353)), .(T402, T406)) → LESS13_IN_AA(T404, T363)
U56_AG(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_AG(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U56_AG(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → PART23_IN_GAAA(T404, T353, T361, T371)
U57_AG(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_AG(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U57_AG(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → QS39_IN_AAA(T363, T361, .(T402, T407))
U58_AG(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_AG(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U58_AG(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → QS60_IN_AA(T371, T408)
U59_AG(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_AG(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
U59_AG(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → APP131_IN_AGAG(T407, T404, T408, T406)
APP131_IN_AGAG(.(T433, T438), T435, T439, .(T433, T437)) → U23_AGAG(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
APP131_IN_AGAG(.(T433, T438), T435, T439, .(T433, T437)) → APP131_IN_AGAG(T438, T435, T439, T437)
QS1_IN_AG(.(T459, .(T461, T460)), T329) → U61_AG(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
QS1_IN_AG(.(T459, .(T461, T460)), T329) → PART44_IN_AAAA(T459, T460, X705, X706)
QS1_IN_AG(.(T468, .(T467, T460)), T329) → U62_AG(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_AG(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_AG(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U62_AG(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → QS60_IN_AA(T465, X543)
QS1_IN_AG(.(T476, .(T474, T460)), T329) → U64_AG(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_AG(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_AG(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U64_AG(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → QS60_IN_AA(T465, T473)
U65_AG(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_AG(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U65_AG(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → QS39_IN_AAA(T474, T475, X544)
QS1_IN_AG(.(T498, .(T474, T460)), .(T498, T499)) → U67_AG(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
QS1_IN_AG(.(T498, .(T474, T460)), .(T498, T499)) → PART44_IN_GAAA(T498, T460, T465, T475)
PART44_IN_GAAA(T148, .(T149, T150), .(T149, X282), X283) → U6_GAAA(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
PART44_IN_GAAA(T148, .(T149, T150), .(T149, X282), X283) → LESS13_IN_GA(T148, T149)
PART44_IN_GAAA(T153, .(T149, T154), .(T149, X282), X283) → U7_GAAA(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_GAAA(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_GAAA(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U7_GAAA(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → PART23_IN_GAAA(T153, T154, X282, X283)
PART44_IN_GAAA(T175, .(T173, T176), X333, .(T173, X334)) → U9_GAAA(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
PART44_IN_GAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_GAAA(T175, T176, X333, X334)
U67_AG(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_AG(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U67_AG(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → QS60_IN_AG(T465, [])
U68_AG(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_AG(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U68_AG(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → QS39_IN_AAG(T474, T475, T499)
QS1_IN_AG(.(T516, .(T474, T460)), .(T510, T514)) → U70_AG(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
QS1_IN_AG(.(T516, .(T474, T460)), .(T510, T514)) → PART44_IN_AAAA(T516, T460, T465, T475)
U70_AG(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_AG(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U70_AG(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → QS60_IN_AA(T465, .(T510, T515))
U71_AG(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_AG(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U71_AG(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → QS39_IN_AAA(T474, T475, T517)
U72_AG(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_AG(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
U72_AG(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → APP157_IN_AAAG(T515, T516, T517, T514)
APP157_IN_AAAG(.(T542, T547), T548, T549, .(T542, T546)) → U24_AAAG(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
APP157_IN_AAAG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_AAAG(T547, T548, T549, T546)
QS1_IN_AG(.(T557, []), T329) → U74_AG(T557, T329, qs100_in_a(X543))
QS1_IN_AG(.(T557, []), T329) → QS100_IN_A(X543)
QS1_IN_AG(.(T557, []), T329) → U75_AG(T557, T329, qs100_in_a(T560))
U75_AG(T557, T329, qs100_out_a(T560)) → U76_AG(T557, T329, qs100_in_a(X544))
U75_AG(T557, T329, qs100_out_a(T560)) → QS100_IN_A(X544)
U75_AG(T557, T329, qs100_out_a(T560)) → U77_AG(T557, T329, T560, qs100_in_a(T563))
U77_AG(T557, T329, T560, qs100_out_a(T563)) → U78_AG(T557, T329, app157_in_gagg(T560, T557, T563, T329))
U77_AG(T557, T329, T560, qs100_out_a(T563)) → APP157_IN_GAGG(T560, T557, T563, T329)
APP157_IN_GAGG(.(T542, T547), T548, T549, .(T542, T546)) → U24_GAGG(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
APP157_IN_GAGG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_GAGG(T547, T548, T549, T546)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag(x2)
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x1, x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa(x1)
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x1, x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x1, x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x4, x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x4, x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x4, x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x4, x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x4, x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x4, x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x4, x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x4, x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x4, x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x1, x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x1, x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x3, x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x7, x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag(x7)
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x7, x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x7, x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x7, x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x7, x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x7, x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x7, x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3, x4)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x5, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag(x3)
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x1, x4, x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag(x2)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x3, x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x4, x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x4, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x4, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x4, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x4, x5, x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x2, x3, x4)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x3, x5, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x4, x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x4, x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x4, x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x4, x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x4, x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x4, x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x1, x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x1, x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa(x1)
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x1, x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x1, x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x1, x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x1, x4, x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x4, x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x4, x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x4, x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x4, x5, x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3, x4)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x5, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x2, x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x2, x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x1, x2, x3, x4)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x1, x2, x4, x5, x6)
QS1_IN_AG(x1, x2)  =  QS1_IN_AG(x2)
U25_AG(x1, x2, x3, x4)  =  U25_AG(x4)
LESS13_IN_AA(x1, x2)  =  LESS13_IN_AA
U1_AA(x1, x2, x3)  =  U1_AA(x3)
U26_AG(x1, x2, x3, x4)  =  U26_AG(x4)
U27_AG(x1, x2, x3, x4)  =  U27_AG(x4)
PART23_IN_GAAA(x1, x2, x3, x4)  =  PART23_IN_GAAA(x1)
U2_GAAA(x1, x2, x3, x4, x5, x6)  =  U2_GAAA(x1, x6)
LESS13_IN_GA(x1, x2)  =  LESS13_IN_GA(x1)
U1_GA(x1, x2, x3)  =  U1_GA(x1, x3)
U3_GAAA(x1, x2, x3, x4, x5, x6)  =  U3_GAAA(x1, x6)
U4_GAAA(x1, x2, x3, x4, x5, x6)  =  U4_GAAA(x1, x6)
U5_GAAA(x1, x2, x3, x4, x5, x6)  =  U5_GAAA(x1, x6)
U28_AG(x1, x2, x3, x4)  =  U28_AG(x4)
U29_AG(x1, x2, x3, x4)  =  U29_AG(x4)
U30_AG(x1, x2, x3, x4)  =  U30_AG(x4)
QS39_IN_AAA(x1, x2, x3)  =  QS39_IN_AAA
U22_AAA(x1, x2, x3, x4)  =  U22_AAA(x4)
P43_IN_AAAAAAA(x1, x2, x3, x4, x5, x6, x7)  =  P43_IN_AAAAAAA
U10_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_AAAAAAA(x8)
PART44_IN_AAAA(x1, x2, x3, x4)  =  PART44_IN_AAAA
U6_AAAA(x1, x2, x3, x4, x5, x6)  =  U6_AAAA(x6)
U7_AAAA(x1, x2, x3, x4, x5, x6)  =  U7_AAAA(x6)
U8_AAAA(x1, x2, x3, x4, x5, x6)  =  U8_AAAA(x6)
U9_AAAA(x1, x2, x3, x4, x5, x6)  =  U9_AAAA(x6)
U11_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_AAAAAAA(x8)
U12_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_AAAAAAA(x8)
QS60_IN_AA(x1, x2)  =  QS60_IN_AA
U20_AA(x1, x2, x3, x4)  =  U20_AA(x4)
U13_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_AAAAAAA(x8)
U14_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_AAAAAAA(x8)
U15_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_AAAAAAA(x8)
U16_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_AAAAAAA(x8)
U17_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_AAAAAAA(x8)
U18_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_AAAAAAA(x8)
U19_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_AAAAAAA(x8)
APP71_IN_AAAA(x1, x2, x3, x4)  =  APP71_IN_AAAA
U21_AAAA(x1, x2, x3, x4, x5, x6)  =  U21_AAAA(x6)
U31_AG(x1, x2, x3, x4)  =  U31_AG(x4)
U32_AG(x1, x2, x3, x4, x5)  =  U32_AG(x5)
U33_AG(x1, x2, x3, x4)  =  U33_AG(x4)
U34_AG(x1, x2, x3, x4)  =  U34_AG(x4)
U35_AG(x1, x2, x3, x4)  =  U35_AG(x4)
U36_AG(x1, x2, x3, x4)  =  U36_AG(x4)
U37_AG(x1, x2, x3, x4)  =  U37_AG(x4)
U38_AG(x1, x2, x3, x4, x5)  =  U38_AG(x5)
U39_AG(x1, x2, x3, x4)  =  U39_AG(x4)
U40_AG(x1, x2)  =  U40_AG(x2)
QS100_IN_A(x1)  =  QS100_IN_A
U41_AG(x1, x2)  =  U41_AG(x2)
U42_AG(x1, x2)  =  U42_AG(x2)
U43_AG(x1, x2, x3, x4, x5)  =  U43_AG(x4, x5)
U44_AG(x1, x2, x3, x4, x5)  =  U44_AG(x4, x5)
U45_AG(x1, x2, x3, x4, x5)  =  U45_AG(x4, x5)
U46_AG(x1, x2, x3, x4, x5)  =  U46_AG(x4, x5)
U47_AG(x1, x2, x3, x4, x5)  =  U47_AG(x4, x5)
U48_AG(x1, x2, x3, x4, x5)  =  U48_AG(x4, x5)
U49_AG(x1, x2, x3, x4, x5)  =  U49_AG(x4, x5)
U50_AG(x1, x2, x3, x4, x5, x6)  =  U50_AG(x4, x6)
U51_AG(x1, x2, x3, x4, x5)  =  U51_AG(x4, x5)
U52_AG(x1, x2, x3, x4, x5)  =  U52_AG(x1, x4, x5)
U53_AG(x1, x2, x3, x4, x5)  =  U53_AG(x1, x4, x5)
U54_AG(x1, x2, x3, x4, x5, x6)  =  U54_AG(x1, x4, x6)
QS39_IN_AAG(x1, x2, x3)  =  QS39_IN_AAG(x3)
U22_AAG(x1, x2, x3, x4)  =  U22_AAG(x3, x4)
P43_IN_AAAAAAG(x1, x2, x3, x4, x5, x6, x7)  =  P43_IN_AAAAAAG(x7)
U10_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_AAAAAAG(x7, x8)
U11_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_AAAAAAG(x7, x8)
U12_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_AAAAAAG(x7, x8)
U13_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_AAAAAAG(x7, x8)
U14_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_AAAAAAG(x7, x8)
U15_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_AAAAAAG(x7, x8)
U16_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_AAAAAAG(x7, x8)
U17_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_AAAAAAG(x7, x8)
U18_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_AAAAAAG(x7, x8)
U19_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_AAAAAAG(x7, x8)
APP71_IN_AAAG(x1, x2, x3, x4)  =  APP71_IN_AAAG(x4)
U21_AAAG(x1, x2, x3, x4, x5, x6)  =  U21_AAAG(x1, x5, x6)
U55_AG(x1, x2, x3, x4, x5)  =  U55_AG(x1, x4, x5)
QS60_IN_AG(x1, x2)  =  QS60_IN_AG(x2)
U20_AG(x1, x2, x3, x4)  =  U20_AG(x3, x4)
U56_AG(x1, x2, x3, x4, x5, x6)  =  U56_AG(x4, x5, x6)
U57_AG(x1, x2, x3, x4, x5, x6)  =  U57_AG(x1, x4, x5, x6)
U58_AG(x1, x2, x3, x4, x5, x6, x7)  =  U58_AG(x1, x4, x5, x7)
U59_AG(x1, x2, x3, x4, x5, x6, x7)  =  U59_AG(x1, x4, x5, x7)
U60_AG(x1, x2, x3, x4, x5, x6)  =  U60_AG(x4, x5, x6)
APP131_IN_AGAG(x1, x2, x3, x4)  =  APP131_IN_AGAG(x2, x4)
U23_AGAG(x1, x2, x3, x4, x5, x6)  =  U23_AGAG(x1, x3, x5, x6)
U61_AG(x1, x2, x3, x4, x5)  =  U61_AG(x4, x5)
U62_AG(x1, x2, x3, x4, x5)  =  U62_AG(x4, x5)
U63_AG(x1, x2, x3, x4, x5)  =  U63_AG(x4, x5)
U64_AG(x1, x2, x3, x4, x5)  =  U64_AG(x4, x5)
U65_AG(x1, x2, x3, x4, x5, x6)  =  U65_AG(x4, x6)
U66_AG(x1, x2, x3, x4, x5)  =  U66_AG(x4, x5)
U67_AG(x1, x2, x3, x4, x5)  =  U67_AG(x1, x4, x5)
PART44_IN_GAAA(x1, x2, x3, x4)  =  PART44_IN_GAAA(x1)
U6_GAAA(x1, x2, x3, x4, x5, x6)  =  U6_GAAA(x1, x6)
U7_GAAA(x1, x2, x3, x4, x5, x6)  =  U7_GAAA(x1, x6)
U8_GAAA(x1, x2, x3, x4, x5, x6)  =  U8_GAAA(x1, x6)
U9_GAAA(x1, x2, x3, x4, x5, x6)  =  U9_GAAA(x1, x6)
U68_AG(x1, x2, x3, x4, x5, x6)  =  U68_AG(x1, x4, x6)
U69_AG(x1, x2, x3, x4, x5)  =  U69_AG(x1, x4, x5)
U70_AG(x1, x2, x3, x4, x5, x6)  =  U70_AG(x4, x5, x6)
U71_AG(x1, x2, x3, x4, x5, x6, x7)  =  U71_AG(x4, x5, x7)
U72_AG(x1, x2, x3, x4, x5, x6, x7)  =  U72_AG(x4, x5, x7)
U73_AG(x1, x2, x3, x4, x5, x6)  =  U73_AG(x4, x5, x6)
APP157_IN_AAAG(x1, x2, x3, x4)  =  APP157_IN_AAAG(x4)
U24_AAAG(x1, x2, x3, x4, x5, x6)  =  U24_AAAG(x1, x5, x6)
U74_AG(x1, x2, x3)  =  U74_AG(x2, x3)
U75_AG(x1, x2, x3)  =  U75_AG(x2, x3)
U76_AG(x1, x2, x3)  =  U76_AG(x2, x3)
U77_AG(x1, x2, x3, x4)  =  U77_AG(x2, x3, x4)
U78_AG(x1, x2, x3)  =  U78_AG(x2, x3)
APP157_IN_GAGG(x1, x2, x3, x4)  =  APP157_IN_GAGG(x1, x3, x4)
U24_GAGG(x1, x2, x3, x4, x5, x6)  =  U24_GAGG(x1, x2, x4, x5, x6)

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

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 11 SCCs with 149 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

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

APP157_IN_GAGG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_GAGG(T547, T548, T549, T546)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag(x2)
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x1, x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa(x1)
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x1, x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x1, x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x4, x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x4, x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x4, x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x4, x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x4, x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x4, x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x4, x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x4, x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x4, x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x1, x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x1, x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x3, x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x7, x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag(x7)
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x7, x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x7, x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x7, x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x7, x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x7, x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x7, x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3, x4)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x5, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag(x3)
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x1, x4, x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag(x2)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x3, x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x4, x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x4, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x4, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x4, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x4, x5, x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x2, x3, x4)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x3, x5, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x4, x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x4, x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x4, x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x4, x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x4, x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x4, x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x1, x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x1, x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa(x1)
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x1, x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x1, x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x1, x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x1, x4, x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x4, x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x4, x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x4, x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x4, x5, x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3, x4)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x5, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x2, x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x2, x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x1, x2, x3, x4)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x1, x2, x4, x5, x6)
APP157_IN_GAGG(x1, x2, x3, x4)  =  APP157_IN_GAGG(x1, x3, x4)

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

(10) UsableRulesProof (EQUIVALENT transformation)

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

(11) Obligation:

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

APP157_IN_GAGG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_GAGG(T547, T548, T549, T546)

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

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

(12) PiDPToQDPProof (SOUND transformation)

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

(13) Obligation:

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

APP157_IN_GAGG(.(T542, T547), T549, .(T542, T546)) → APP157_IN_GAGG(T547, T549, T546)

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

(14) QDPSizeChangeProof (EQUIVALENT transformation)

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

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

  • APP157_IN_GAGG(.(T542, T547), T549, .(T542, T546)) → APP157_IN_GAGG(T547, T549, T546)
    The graph contains the following edges 1 > 1, 2 >= 2, 3 > 3

(15) YES

(16) Obligation:

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

APP157_IN_AAAG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_AAAG(T547, T548, T549, T546)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag(x2)
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x1, x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa(x1)
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x1, x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x1, x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x4, x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x4, x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x4, x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x4, x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x4, x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x4, x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x4, x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x4, x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x4, x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x1, x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x1, x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x3, x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x7, x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag(x7)
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x7, x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x7, x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x7, x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x7, x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x7, x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x7, x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3, x4)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x5, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag(x3)
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x1, x4, x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag(x2)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x3, x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x4, x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x4, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x4, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x4, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x4, x5, x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x2, x3, x4)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x3, x5, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x4, x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x4, x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x4, x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x4, x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x4, x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x4, x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x1, x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x1, x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa(x1)
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x1, x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x1, x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x1, x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x1, x4, x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x4, x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x4, x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x4, x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x4, x5, x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3, x4)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x5, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x2, x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x2, x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x1, x2, x3, x4)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x1, x2, x4, x5, x6)
APP157_IN_AAAG(x1, x2, x3, x4)  =  APP157_IN_AAAG(x4)

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

(17) UsableRulesProof (EQUIVALENT transformation)

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

(18) Obligation:

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

APP157_IN_AAAG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_AAAG(T547, T548, T549, T546)

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

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

(19) PiDPToQDPProof (SOUND transformation)

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

(20) Obligation:

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

APP157_IN_AAAG(.(T542, T546)) → APP157_IN_AAAG(T546)

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

(21) QDPSizeChangeProof (EQUIVALENT transformation)

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

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

  • APP157_IN_AAAG(.(T542, T546)) → APP157_IN_AAAG(T546)
    The graph contains the following edges 1 > 1

(22) YES

(23) Obligation:

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

APP131_IN_AGAG(.(T433, T438), T435, T439, .(T433, T437)) → APP131_IN_AGAG(T438, T435, T439, T437)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag(x2)
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x1, x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa(x1)
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x1, x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x1, x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x4, x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x4, x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x4, x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x4, x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x4, x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x4, x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x4, x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x4, x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x4, x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x1, x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x1, x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x3, x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x7, x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag(x7)
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x7, x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x7, x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x7, x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x7, x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x7, x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x7, x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3, x4)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x5, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag(x3)
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x1, x4, x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag(x2)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x3, x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x4, x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x4, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x4, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x4, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x4, x5, x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x2, x3, x4)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x3, x5, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x4, x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x4, x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x4, x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x4, x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x4, x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x4, x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x1, x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x1, x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa(x1)
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x1, x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x1, x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x1, x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x1, x4, x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x4, x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x4, x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x4, x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x4, x5, x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3, x4)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x5, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x2, x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x2, x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x1, x2, x3, x4)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x1, x2, x4, x5, x6)
APP131_IN_AGAG(x1, x2, x3, x4)  =  APP131_IN_AGAG(x2, x4)

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:

APP131_IN_AGAG(.(T433, T438), T435, T439, .(T433, T437)) → APP131_IN_AGAG(T438, T435, T439, T437)

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

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:

APP131_IN_AGAG(T435, .(T433, T437)) → APP131_IN_AGAG(T435, T437)

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

(28) QDPSizeChangeProof (EQUIVALENT transformation)

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

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

  • APP131_IN_AGAG(T435, .(T433, T437)) → APP131_IN_AGAG(T435, T437)
    The graph contains the following edges 1 >= 1, 2 > 2

(29) YES

(30) Obligation:

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

APP71_IN_AAAG(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAG(T226, T227, T228, X403)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag(x2)
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x1, x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa(x1)
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x1, x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x1, x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x4, x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x4, x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x4, x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x4, x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x4, x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x4, x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x4, x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x4, x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x4, x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x1, x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x1, x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x3, x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x7, x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag(x7)
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x7, x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x7, x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x7, x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x7, x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x7, x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x7, x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3, x4)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x5, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag(x3)
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x1, x4, x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag(x2)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x3, x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x4, x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x4, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x4, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x4, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x4, x5, x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x2, x3, x4)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x3, x5, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x4, x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x4, x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x4, x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x4, x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x4, x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x4, x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x1, x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x1, x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa(x1)
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x1, x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x1, x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x1, x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x1, x4, x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x4, x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x4, x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x4, x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x4, x5, x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3, x4)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x5, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x2, x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x2, x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x1, x2, x3, x4)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x1, x2, x4, x5, x6)
APP71_IN_AAAG(x1, x2, x3, x4)  =  APP71_IN_AAAG(x4)

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:

APP71_IN_AAAG(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAG(T226, T227, T228, X403)

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

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:

APP71_IN_AAAG(.(T222, X403)) → APP71_IN_AAAG(X403)

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:

  • APP71_IN_AAAG(.(T222, X403)) → APP71_IN_AAAG(X403)
    The graph contains the following edges 1 > 1

(36) YES

(37) Obligation:

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

APP71_IN_AAAA(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAA(T226, T227, T228, X403)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag(x2)
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x1, x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa(x1)
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x1, x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x1, x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x4, x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x4, x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x4, x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x4, x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x4, x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x4, x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x4, x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x4, x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x4, x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x1, x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x1, x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x3, x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x7, x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag(x7)
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x7, x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x7, x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x7, x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x7, x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x7, x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x7, x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3, x4)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x5, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag(x3)
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x1, x4, x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag(x2)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x3, x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x4, x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x4, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x4, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x4, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x4, x5, x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x2, x3, x4)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x3, x5, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x4, x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x4, x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x4, x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x4, x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x4, x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x4, x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x1, x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x1, x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa(x1)
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x1, x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x1, x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x1, x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x1, x4, x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x4, x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x4, x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x4, x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x4, x5, x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3, x4)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x5, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x2, x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x2, x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x1, x2, x3, x4)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x1, x2, x4, x5, x6)
APP71_IN_AAAA(x1, x2, x3, x4)  =  APP71_IN_AAAA

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:

APP71_IN_AAAA(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAA(T226, T227, T228, X403)

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

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:

APP71_IN_AAAAAPP71_IN_AAAA

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

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




Rewriting sequence

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



(43) NO

(44) Obligation:

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

LESS13_IN_GA(s(T45), s(T46)) → LESS13_IN_GA(T45, T46)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag(x2)
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x1, x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa(x1)
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x1, x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x1, x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x4, x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x4, x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x4, x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x4, x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x4, x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x4, x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x4, x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x4, x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x4, x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x1, x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x1, x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x3, x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x7, x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag(x7)
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x7, x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x7, x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x7, x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x7, x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x7, x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x7, x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3, x4)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x5, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag(x3)
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x1, x4, x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag(x2)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x3, x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x4, x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x4, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x4, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x4, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x4, x5, x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x2, x3, x4)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x3, x5, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x4, x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x4, x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x4, x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x4, x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x4, x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x4, x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x1, x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x1, x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa(x1)
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x1, x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x1, x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x1, x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x1, x4, x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x4, x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x4, x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x4, x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x4, x5, x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3, x4)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x5, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x2, x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x2, x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x1, x2, x3, x4)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x1, x2, x4, x5, x6)
LESS13_IN_GA(x1, x2)  =  LESS13_IN_GA(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:

LESS13_IN_GA(s(T45), s(T46)) → LESS13_IN_GA(T45, T46)

R is empty.
The argument filtering Pi contains the following mapping:
s(x1)  =  s(x1)
LESS13_IN_GA(x1, x2)  =  LESS13_IN_GA(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:

LESS13_IN_GA(s(T45)) → LESS13_IN_GA(T45)

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:

  • LESS13_IN_GA(s(T45)) → LESS13_IN_GA(T45)
    The graph contains the following edges 1 > 1

(50) YES

(51) Obligation:

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

PART23_IN_GAAA(T70, .(T73, T77), .(T73, X123), X124) → U3_GAAA(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_GAAA(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → PART23_IN_GAAA(T70, T77, X123, X124)
PART23_IN_GAAA(T95, .(T96, T98), X174, .(T96, X175)) → PART23_IN_GAAA(T95, T98, X174, X175)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag(x2)
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x1, x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa(x1)
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x1, x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x1, x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x4, x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x4, x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x4, x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x4, x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x4, x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x4, x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x4, x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x4, x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x4, x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x1, x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x1, x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x3, x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x7, x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag(x7)
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x7, x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x7, x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x7, x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x7, x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x7, x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x7, x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3, x4)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x5, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag(x3)
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x1, x4, x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag(x2)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x3, x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x4, x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x4, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x4, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x4, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x4, x5, x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x2, x3, x4)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x3, x5, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x4, x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x4, x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x4, x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x4, x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x4, x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x4, x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x1, x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x1, x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa(x1)
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x1, x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x1, x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x1, x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x1, x4, x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x4, x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x4, x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x4, x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x4, x5, x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3, x4)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x5, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x2, x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x2, x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x1, x2, x3, x4)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x1, x2, x4, x5, x6)
PART23_IN_GAAA(x1, x2, x3, x4)  =  PART23_IN_GAAA(x1)
U3_GAAA(x1, x2, x3, x4, x5, x6)  =  U3_GAAA(x1, x6)

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:

PART23_IN_GAAA(T70, .(T73, T77), .(T73, X123), X124) → U3_GAAA(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_GAAA(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → PART23_IN_GAAA(T70, T77, X123, X124)
PART23_IN_GAAA(T95, .(T96, T98), X174, .(T96, X175)) → PART23_IN_GAAA(T95, T98, X174, X175)

The TRS R consists of the following rules:

less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))

The argument filtering Pi contains the following mapping:
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
.(x1, x2)  =  .(x1, x2)
PART23_IN_GAAA(x1, x2, x3, x4)  =  PART23_IN_GAAA(x1)
U3_GAAA(x1, x2, x3, x4, x5, x6)  =  U3_GAAA(x1, x6)

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:

PART23_IN_GAAA(T70) → U3_GAAA(T70, less13_in_ga(T70))
U3_GAAA(T70, less13_out_ga(T70)) → PART23_IN_GAAA(T70)
PART23_IN_GAAA(T95) → PART23_IN_GAAA(T95)

The TRS R consists of the following rules:

less13_in_ga(0) → less13_out_ga(0)
less13_in_ga(s(T45)) → U1_ga(T45, less13_in_ga(T45))
U1_ga(T45, less13_out_ga(T45)) → less13_out_ga(s(T45))

The set Q consists of the following terms:

less13_in_ga(x0)
U1_ga(x0, x1)

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

(56) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule PART23_IN_GAAA(T70) → U3_GAAA(T70, less13_in_ga(T70)) at position [1] we obtained the following new rules [LPAR04]:

PART23_IN_GAAA(0) → U3_GAAA(0, less13_out_ga(0))
PART23_IN_GAAA(s(x0)) → U3_GAAA(s(x0), U1_ga(x0, less13_in_ga(x0)))

(57) Obligation:

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

U3_GAAA(T70, less13_out_ga(T70)) → PART23_IN_GAAA(T70)
PART23_IN_GAAA(T95) → PART23_IN_GAAA(T95)
PART23_IN_GAAA(0) → U3_GAAA(0, less13_out_ga(0))
PART23_IN_GAAA(s(x0)) → U3_GAAA(s(x0), U1_ga(x0, less13_in_ga(x0)))

The TRS R consists of the following rules:

less13_in_ga(0) → less13_out_ga(0)
less13_in_ga(s(T45)) → U1_ga(T45, less13_in_ga(T45))
U1_ga(T45, less13_out_ga(T45)) → less13_out_ga(s(T45))

The set Q consists of the following terms:

less13_in_ga(x0)
U1_ga(x0, x1)

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

(58) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule U3_GAAA(T70, less13_out_ga(T70)) → PART23_IN_GAAA(T70) we obtained the following new rules [LPAR04]:

U3_GAAA(0, less13_out_ga(0)) → PART23_IN_GAAA(0)
U3_GAAA(s(z0), less13_out_ga(s(z0))) → PART23_IN_GAAA(s(z0))

(59) Obligation:

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

PART23_IN_GAAA(T95) → PART23_IN_GAAA(T95)
PART23_IN_GAAA(0) → U3_GAAA(0, less13_out_ga(0))
PART23_IN_GAAA(s(x0)) → U3_GAAA(s(x0), U1_ga(x0, less13_in_ga(x0)))
U3_GAAA(0, less13_out_ga(0)) → PART23_IN_GAAA(0)
U3_GAAA(s(z0), less13_out_ga(s(z0))) → PART23_IN_GAAA(s(z0))

The TRS R consists of the following rules:

less13_in_ga(0) → less13_out_ga(0)
less13_in_ga(s(T45)) → U1_ga(T45, less13_in_ga(T45))
U1_ga(T45, less13_out_ga(T45)) → less13_out_ga(s(T45))

The set Q consists of the following terms:

less13_in_ga(x0)
U1_ga(x0, x1)

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

(60) 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 = PART23_IN_GAAA(T95) evaluates to t =PART23_IN_GAAA(T95)

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 PART23_IN_GAAA(T95) to PART23_IN_GAAA(T95).



(61) NO

(62) Obligation:

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

PART44_IN_GAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_GAAA(T175, T176, X333, X334)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag(x2)
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x1, x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa(x1)
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x1, x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x1, x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x4, x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x4, x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x4, x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x4, x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x4, x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x4, x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x4, x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x4, x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x4, x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x1, x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x1, x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x3, x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x7, x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag(x7)
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x7, x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x7, x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x7, x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x7, x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x7, x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x7, x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3, x4)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x5, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag(x3)
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x1, x4, x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag(x2)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x3, x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x4, x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x4, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x4, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x4, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x4, x5, x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x2, x3, x4)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x3, x5, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x4, x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x4, x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x4, x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x4, x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x4, x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x4, x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x1, x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x1, x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa(x1)
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x1, x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x1, x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x1, x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x1, x4, x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x4, x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x4, x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x4, x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x4, x5, x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3, x4)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x5, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x2, x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x2, x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x1, x2, x3, x4)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x1, x2, x4, x5, x6)
PART44_IN_GAAA(x1, x2, x3, x4)  =  PART44_IN_GAAA(x1)

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

(63) UsableRulesProof (EQUIVALENT transformation)

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

(64) Obligation:

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

PART44_IN_GAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_GAAA(T175, T176, X333, X334)

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

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

(65) PiDPToQDPProof (SOUND transformation)

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

(66) Obligation:

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

PART44_IN_GAAA(T175) → PART44_IN_GAAA(T175)

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

(67) 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 = PART44_IN_GAAA(T175) evaluates to t =PART44_IN_GAAA(T175)

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 PART44_IN_GAAA(T175) to PART44_IN_GAAA(T175).



(68) NO

(69) Obligation:

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

LESS13_IN_AA(s(T45), s(T46)) → LESS13_IN_AA(T45, T46)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag(x2)
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x1, x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa(x1)
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x1, x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x1, x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x4, x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x4, x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x4, x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x4, x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x4, x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x4, x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x4, x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x4, x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x4, x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x1, x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x1, x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x3, x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x7, x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag(x7)
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x7, x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x7, x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x7, x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x7, x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x7, x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x7, x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3, x4)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x5, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag(x3)
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x1, x4, x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag(x2)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x3, x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x4, x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x4, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x4, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x4, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x4, x5, x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x2, x3, x4)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x3, x5, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x4, x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x4, x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x4, x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x4, x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x4, x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x4, x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x1, x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x1, x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa(x1)
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x1, x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x1, x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x1, x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x1, x4, x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x4, x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x4, x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x4, x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x4, x5, x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3, x4)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x5, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x2, x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x2, x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x1, x2, x3, x4)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x1, x2, x4, x5, x6)
LESS13_IN_AA(x1, x2)  =  LESS13_IN_AA

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

(70) UsableRulesProof (EQUIVALENT transformation)

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

(71) Obligation:

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

LESS13_IN_AA(s(T45), s(T46)) → LESS13_IN_AA(T45, T46)

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

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

(72) PiDPToQDPProof (SOUND transformation)

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

(73) Obligation:

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

LESS13_IN_AALESS13_IN_AA

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

(74) 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 = LESS13_IN_AA evaluates to t =LESS13_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 LESS13_IN_AA to LESS13_IN_AA.



(75) NO

(76) Obligation:

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

PART44_IN_AAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_AAAA(T175, T176, X333, X334)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag(x2)
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x1, x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa(x1)
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x1, x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x1, x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x4, x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x4, x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x4, x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x4, x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x4, x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x4, x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x4, x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x4, x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x4, x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x1, x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x1, x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x3, x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x7, x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag(x7)
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x7, x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x7, x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x7, x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x7, x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x7, x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x7, x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3, x4)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x5, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag(x3)
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x1, x4, x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag(x2)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x3, x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x4, x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x4, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x4, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x4, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x4, x5, x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x2, x3, x4)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x3, x5, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x4, x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x4, x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x4, x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x4, x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x4, x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x4, x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x1, x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x1, x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa(x1)
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x1, x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x1, x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x1, x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x1, x4, x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x4, x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x4, x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x4, x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x4, x5, x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3, x4)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x5, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x2, x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x2, x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x1, x2, x3, x4)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x1, x2, x4, x5, x6)
PART44_IN_AAAA(x1, x2, x3, x4)  =  PART44_IN_AAAA

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

(77) UsableRulesProof (EQUIVALENT transformation)

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

(78) Obligation:

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

PART44_IN_AAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_AAAA(T175, T176, X333, X334)

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

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

(79) PiDPToQDPProof (SOUND transformation)

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

(80) Obligation:

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

PART44_IN_AAAAPART44_IN_AAAA

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

(81) 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 = PART44_IN_AAAA evaluates to t =PART44_IN_AAAA

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




Rewriting sequence

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



(82) NO

(83) Obligation:

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

P43_IN_AAAAAAA(T129, T123, T127, T128, X232, X233, X234) → U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → QS60_IN_AA(T127, X232)
QS60_IN_AA(.(T192, T193), X370) → P43_IN_AAAAAAA(T192, T193, X366, X367, X368, X369, X370)
P43_IN_AAAAAAA(T185, T123, T127, T184, T183, X233, X234) → U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → QS60_IN_AA(T184, X233)
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → QS60_IN_AA(T127, T183)
P43_IN_AAAAAAA(T199, T123, T127, T184, T198, T197, X234) → U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → QS60_IN_AA(T184, T197)
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → QS60_IN_AA(T127, T198)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag(x2)
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x1, x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa(x1)
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x1, x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x1, x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x4, x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x4, x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x4, x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x4, x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x4, x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x4, x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x4, x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x4, x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x4, x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x1, x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x1, x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x3, x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x7, x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag(x7)
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x7, x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x7, x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x7, x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x7, x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x7, x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x7, x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3, x4)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x5, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag(x3)
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x1, x4, x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag(x2)
U20_ag(x1, x2, x3, x4)  =  U20_ag(x3, x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x4, x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x4, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x4, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x4, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x4, x5, x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x2, x3, x4)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x3, x5, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x4, x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x4, x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x4, x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x4, x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x4, x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x4, x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x1, x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x1, x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa(x1)
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x1, x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x1, x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x1, x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x1, x4, x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x4, x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x4, x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x4, x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x4, x5, x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3, x4)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x5, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x2, x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x2, x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x2, x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x1, x2, x3, x4)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x1, x2, x4, x5, x6)
P43_IN_AAAAAAA(x1, x2, x3, x4, x5, x6, x7)  =  P43_IN_AAAAAAA
U11_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_AAAAAAA(x8)
QS60_IN_AA(x1, x2)  =  QS60_IN_AA
U13_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_AAAAAAA(x8)
U14_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_AAAAAAA(x8)
U16_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_AAAAAAA(x8)
U17_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_AAAAAAA(x8)

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

(84) UsableRulesProof (EQUIVALENT transformation)

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

(85) Obligation:

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

P43_IN_AAAAAAA(T129, T123, T127, T128, X232, X233, X234) → U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → QS60_IN_AA(T127, X232)
QS60_IN_AA(.(T192, T193), X370) → P43_IN_AAAAAAA(T192, T193, X366, X367, X368, X369, X370)
P43_IN_AAAAAAA(T185, T123, T127, T184, T183, X233, X234) → U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → QS60_IN_AA(T184, X233)
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → QS60_IN_AA(T127, T183)
P43_IN_AAAAAAA(T199, T123, T127, T184, T198, T197, X234) → U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → QS60_IN_AA(T184, T197)
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → QS60_IN_AA(T127, T198)

The TRS R consists of the following rules:

part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))

The argument filtering Pi contains the following mapping:
[]  =  []
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x1, x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga(x1)
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x1, x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa(x1)
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x1, x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x1, x6)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
P43_IN_AAAAAAA(x1, x2, x3, x4, x5, x6, x7)  =  P43_IN_AAAAAAA
U11_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_AAAAAAA(x8)
QS60_IN_AA(x1, x2)  =  QS60_IN_AA
U13_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_AAAAAAA(x8)
U14_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_AAAAAAA(x8)
U16_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_AAAAAAA(x8)
U17_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_AAAAAAA(x8)

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

(86) PiDPToQDPProof (SOUND transformation)

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

(87) Obligation:

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

P43_IN_AAAAAAAU11_AAAAAAA(part44_in_aaaa)
U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
QS60_IN_AAP43_IN_AAAAAAA
P43_IN_AAAAAAAU13_AAAAAAA(part44_in_aaaa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_in_aa)
U14_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U13_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAAU16_AAAAAAA(part44_in_aaaa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_in_aa)
U17_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → QS60_IN_AA

The TRS R consists of the following rules:

part44_in_aaaaU6_aaaa(less13_in_aa)
part44_in_aaaaU7_aaaa(less13_in_aa)
part44_in_aaaaU9_aaaa(part44_in_aaaa)
part44_in_aaaapart44_out_aaaa
qs60_in_aaqs60_out_aa
qs60_in_aaU20_aa(p43_in_aaaaaaa)
U6_aaaa(less13_out_aa(T148)) → part44_out_aaaa
U7_aaaa(less13_out_aa(T153)) → U8_aaaa(part23_in_gaaa(T153))
U9_aaaa(part44_out_aaaa) → part44_out_aaaa
U20_aa(p43_out_aaaaaaa) → qs60_out_aa
less13_in_aaless13_out_aa(0)
less13_in_aaU1_aa(less13_in_aa)
U8_aaaa(part23_out_gaaa(T153)) → part44_out_aaaa
p43_in_aaaaaaaU10_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU11_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU13_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU16_aaaaaaa(part44_in_aaaa)
U1_aa(less13_out_aa(T45)) → less13_out_aa(s(T45))
part23_in_gaaa(T70) → U2_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T70) → U3_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T95) → U5_gaaa(T95, part23_in_gaaa(T95))
part23_in_gaaa(T104) → part23_out_gaaa(T104)
U10_aaaaaaa(part44_out_aaaa) → p43_out_aaaaaaa
U11_aaaaaaa(part44_out_aaaa) → U12_aaaaaaa(qs60_in_aa)
U13_aaaaaaa(part44_out_aaaa) → U14_aaaaaaa(qs60_in_aa)
U16_aaaaaaa(part44_out_aaaa) → U17_aaaaaaa(qs60_in_aa)
U2_gaaa(T70, less13_out_ga(T70)) → part23_out_gaaa(T70)
U3_gaaa(T70, less13_out_ga(T70)) → U4_gaaa(T70, part23_in_gaaa(T70))
U5_gaaa(T95, part23_out_gaaa(T95)) → part23_out_gaaa(T95)
U12_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U14_aaaaaaa(qs60_out_aa) → U15_aaaaaaa(qs60_in_aa)
U17_aaaaaaa(qs60_out_aa) → U18_aaaaaaa(qs60_in_aa)
less13_in_ga(0) → less13_out_ga(0)
less13_in_ga(s(T45)) → U1_ga(T45, less13_in_ga(T45))
U4_gaaa(T70, part23_out_gaaa(T70)) → part23_out_gaaa(T70)
U15_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U18_aaaaaaa(qs60_out_aa) → U19_aaaaaaa(app71_in_aaaa)
U1_ga(T45, less13_out_ga(T45)) → less13_out_ga(s(T45))
U19_aaaaaaa(app71_out_aaaa) → p43_out_aaaaaaa
app71_in_aaaaapp71_out_aaaa
app71_in_aaaaU21_aaaa(app71_in_aaaa)
U21_aaaa(app71_out_aaaa) → app71_out_aaaa

The set Q consists of the following terms:

part44_in_aaaa
qs60_in_aa
U6_aaaa(x0)
U7_aaaa(x0)
U9_aaaa(x0)
U20_aa(x0)
less13_in_aa
U8_aaaa(x0)
p43_in_aaaaaaa
U1_aa(x0)
part23_in_gaaa(x0)
U10_aaaaaaa(x0)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
U2_gaaa(x0, x1)
U3_gaaa(x0, x1)
U5_gaaa(x0, x1)
U12_aaaaaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
less13_in_ga(x0)
U4_gaaa(x0, x1)
U15_aaaaaaa(x0)
U18_aaaaaaa(x0)
U1_ga(x0, x1)
U19_aaaaaaa(x0)
app71_in_aaaa
U21_aaaa(x0)

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

(88) Narrowing (SOUND transformation)

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

P43_IN_AAAAAAAU11_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU11_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU11_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU11_AAAAAAA(part44_out_aaaa)

(89) Obligation:

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

U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
QS60_IN_AAP43_IN_AAAAAAA
P43_IN_AAAAAAAU13_AAAAAAA(part44_in_aaaa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_in_aa)
U14_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U13_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAAU16_AAAAAAA(part44_in_aaaa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_in_aa)
U17_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAAU11_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU11_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU11_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU11_AAAAAAA(part44_out_aaaa)

The TRS R consists of the following rules:

part44_in_aaaaU6_aaaa(less13_in_aa)
part44_in_aaaaU7_aaaa(less13_in_aa)
part44_in_aaaaU9_aaaa(part44_in_aaaa)
part44_in_aaaapart44_out_aaaa
qs60_in_aaqs60_out_aa
qs60_in_aaU20_aa(p43_in_aaaaaaa)
U6_aaaa(less13_out_aa(T148)) → part44_out_aaaa
U7_aaaa(less13_out_aa(T153)) → U8_aaaa(part23_in_gaaa(T153))
U9_aaaa(part44_out_aaaa) → part44_out_aaaa
U20_aa(p43_out_aaaaaaa) → qs60_out_aa
less13_in_aaless13_out_aa(0)
less13_in_aaU1_aa(less13_in_aa)
U8_aaaa(part23_out_gaaa(T153)) → part44_out_aaaa
p43_in_aaaaaaaU10_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU11_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU13_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU16_aaaaaaa(part44_in_aaaa)
U1_aa(less13_out_aa(T45)) → less13_out_aa(s(T45))
part23_in_gaaa(T70) → U2_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T70) → U3_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T95) → U5_gaaa(T95, part23_in_gaaa(T95))
part23_in_gaaa(T104) → part23_out_gaaa(T104)
U10_aaaaaaa(part44_out_aaaa) → p43_out_aaaaaaa
U11_aaaaaaa(part44_out_aaaa) → U12_aaaaaaa(qs60_in_aa)
U13_aaaaaaa(part44_out_aaaa) → U14_aaaaaaa(qs60_in_aa)
U16_aaaaaaa(part44_out_aaaa) → U17_aaaaaaa(qs60_in_aa)
U2_gaaa(T70, less13_out_ga(T70)) → part23_out_gaaa(T70)
U3_gaaa(T70, less13_out_ga(T70)) → U4_gaaa(T70, part23_in_gaaa(T70))
U5_gaaa(T95, part23_out_gaaa(T95)) → part23_out_gaaa(T95)
U12_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U14_aaaaaaa(qs60_out_aa) → U15_aaaaaaa(qs60_in_aa)
U17_aaaaaaa(qs60_out_aa) → U18_aaaaaaa(qs60_in_aa)
less13_in_ga(0) → less13_out_ga(0)
less13_in_ga(s(T45)) → U1_ga(T45, less13_in_ga(T45))
U4_gaaa(T70, part23_out_gaaa(T70)) → part23_out_gaaa(T70)
U15_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U18_aaaaaaa(qs60_out_aa) → U19_aaaaaaa(app71_in_aaaa)
U1_ga(T45, less13_out_ga(T45)) → less13_out_ga(s(T45))
U19_aaaaaaa(app71_out_aaaa) → p43_out_aaaaaaa
app71_in_aaaaapp71_out_aaaa
app71_in_aaaaU21_aaaa(app71_in_aaaa)
U21_aaaa(app71_out_aaaa) → app71_out_aaaa

The set Q consists of the following terms:

part44_in_aaaa
qs60_in_aa
U6_aaaa(x0)
U7_aaaa(x0)
U9_aaaa(x0)
U20_aa(x0)
less13_in_aa
U8_aaaa(x0)
p43_in_aaaaaaa
U1_aa(x0)
part23_in_gaaa(x0)
U10_aaaaaaa(x0)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
U2_gaaa(x0, x1)
U3_gaaa(x0, x1)
U5_gaaa(x0, x1)
U12_aaaaaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
less13_in_ga(x0)
U4_gaaa(x0, x1)
U15_aaaaaaa(x0)
U18_aaaaaaa(x0)
U1_ga(x0, x1)
U19_aaaaaaa(x0)
app71_in_aaaa
U21_aaaa(x0)

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

(90) Narrowing (SOUND transformation)

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

P43_IN_AAAAAAAU13_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU13_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU13_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU13_AAAAAAA(part44_out_aaaa)

(91) Obligation:

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

U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
QS60_IN_AAP43_IN_AAAAAAA
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_in_aa)
U14_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U13_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAAU16_AAAAAAA(part44_in_aaaa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_in_aa)
U17_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAAU11_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU11_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU11_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU11_AAAAAAA(part44_out_aaaa)
P43_IN_AAAAAAAU13_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU13_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU13_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU13_AAAAAAA(part44_out_aaaa)

The TRS R consists of the following rules:

part44_in_aaaaU6_aaaa(less13_in_aa)
part44_in_aaaaU7_aaaa(less13_in_aa)
part44_in_aaaaU9_aaaa(part44_in_aaaa)
part44_in_aaaapart44_out_aaaa
qs60_in_aaqs60_out_aa
qs60_in_aaU20_aa(p43_in_aaaaaaa)
U6_aaaa(less13_out_aa(T148)) → part44_out_aaaa
U7_aaaa(less13_out_aa(T153)) → U8_aaaa(part23_in_gaaa(T153))
U9_aaaa(part44_out_aaaa) → part44_out_aaaa
U20_aa(p43_out_aaaaaaa) → qs60_out_aa
less13_in_aaless13_out_aa(0)
less13_in_aaU1_aa(less13_in_aa)
U8_aaaa(part23_out_gaaa(T153)) → part44_out_aaaa
p43_in_aaaaaaaU10_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU11_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU13_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU16_aaaaaaa(part44_in_aaaa)
U1_aa(less13_out_aa(T45)) → less13_out_aa(s(T45))
part23_in_gaaa(T70) → U2_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T70) → U3_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T95) → U5_gaaa(T95, part23_in_gaaa(T95))
part23_in_gaaa(T104) → part23_out_gaaa(T104)
U10_aaaaaaa(part44_out_aaaa) → p43_out_aaaaaaa
U11_aaaaaaa(part44_out_aaaa) → U12_aaaaaaa(qs60_in_aa)
U13_aaaaaaa(part44_out_aaaa) → U14_aaaaaaa(qs60_in_aa)
U16_aaaaaaa(part44_out_aaaa) → U17_aaaaaaa(qs60_in_aa)
U2_gaaa(T70, less13_out_ga(T70)) → part23_out_gaaa(T70)
U3_gaaa(T70, less13_out_ga(T70)) → U4_gaaa(T70, part23_in_gaaa(T70))
U5_gaaa(T95, part23_out_gaaa(T95)) → part23_out_gaaa(T95)
U12_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U14_aaaaaaa(qs60_out_aa) → U15_aaaaaaa(qs60_in_aa)
U17_aaaaaaa(qs60_out_aa) → U18_aaaaaaa(qs60_in_aa)
less13_in_ga(0) → less13_out_ga(0)
less13_in_ga(s(T45)) → U1_ga(T45, less13_in_ga(T45))
U4_gaaa(T70, part23_out_gaaa(T70)) → part23_out_gaaa(T70)
U15_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U18_aaaaaaa(qs60_out_aa) → U19_aaaaaaa(app71_in_aaaa)
U1_ga(T45, less13_out_ga(T45)) → less13_out_ga(s(T45))
U19_aaaaaaa(app71_out_aaaa) → p43_out_aaaaaaa
app71_in_aaaaapp71_out_aaaa
app71_in_aaaaU21_aaaa(app71_in_aaaa)
U21_aaaa(app71_out_aaaa) → app71_out_aaaa

The set Q consists of the following terms:

part44_in_aaaa
qs60_in_aa
U6_aaaa(x0)
U7_aaaa(x0)
U9_aaaa(x0)
U20_aa(x0)
less13_in_aa
U8_aaaa(x0)
p43_in_aaaaaaa
U1_aa(x0)
part23_in_gaaa(x0)
U10_aaaaaaa(x0)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
U2_gaaa(x0, x1)
U3_gaaa(x0, x1)
U5_gaaa(x0, x1)
U12_aaaaaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
less13_in_ga(x0)
U4_gaaa(x0, x1)
U15_aaaaaaa(x0)
U18_aaaaaaa(x0)
U1_ga(x0, x1)
U19_aaaaaaa(x0)
app71_in_aaaa
U21_aaaa(x0)

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

(92) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_in_aa) at position [0] we obtained the following new rules [LPAR04]:

U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_out_aa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(U20_aa(p43_in_aaaaaaa))

(93) Obligation:

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

U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
QS60_IN_AAP43_IN_AAAAAAA
U14_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U13_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAAU16_AAAAAAA(part44_in_aaaa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_in_aa)
U17_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAAU11_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU11_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU11_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU11_AAAAAAA(part44_out_aaaa)
P43_IN_AAAAAAAU13_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU13_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU13_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU13_AAAAAAA(part44_out_aaaa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_out_aa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(U20_aa(p43_in_aaaaaaa))

The TRS R consists of the following rules:

part44_in_aaaaU6_aaaa(less13_in_aa)
part44_in_aaaaU7_aaaa(less13_in_aa)
part44_in_aaaaU9_aaaa(part44_in_aaaa)
part44_in_aaaapart44_out_aaaa
qs60_in_aaqs60_out_aa
qs60_in_aaU20_aa(p43_in_aaaaaaa)
U6_aaaa(less13_out_aa(T148)) → part44_out_aaaa
U7_aaaa(less13_out_aa(T153)) → U8_aaaa(part23_in_gaaa(T153))
U9_aaaa(part44_out_aaaa) → part44_out_aaaa
U20_aa(p43_out_aaaaaaa) → qs60_out_aa
less13_in_aaless13_out_aa(0)
less13_in_aaU1_aa(less13_in_aa)
U8_aaaa(part23_out_gaaa(T153)) → part44_out_aaaa
p43_in_aaaaaaaU10_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU11_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU13_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU16_aaaaaaa(part44_in_aaaa)
U1_aa(less13_out_aa(T45)) → less13_out_aa(s(T45))
part23_in_gaaa(T70) → U2_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T70) → U3_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T95) → U5_gaaa(T95, part23_in_gaaa(T95))
part23_in_gaaa(T104) → part23_out_gaaa(T104)
U10_aaaaaaa(part44_out_aaaa) → p43_out_aaaaaaa
U11_aaaaaaa(part44_out_aaaa) → U12_aaaaaaa(qs60_in_aa)
U13_aaaaaaa(part44_out_aaaa) → U14_aaaaaaa(qs60_in_aa)
U16_aaaaaaa(part44_out_aaaa) → U17_aaaaaaa(qs60_in_aa)
U2_gaaa(T70, less13_out_ga(T70)) → part23_out_gaaa(T70)
U3_gaaa(T70, less13_out_ga(T70)) → U4_gaaa(T70, part23_in_gaaa(T70))
U5_gaaa(T95, part23_out_gaaa(T95)) → part23_out_gaaa(T95)
U12_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U14_aaaaaaa(qs60_out_aa) → U15_aaaaaaa(qs60_in_aa)
U17_aaaaaaa(qs60_out_aa) → U18_aaaaaaa(qs60_in_aa)
less13_in_ga(0) → less13_out_ga(0)
less13_in_ga(s(T45)) → U1_ga(T45, less13_in_ga(T45))
U4_gaaa(T70, part23_out_gaaa(T70)) → part23_out_gaaa(T70)
U15_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U18_aaaaaaa(qs60_out_aa) → U19_aaaaaaa(app71_in_aaaa)
U1_ga(T45, less13_out_ga(T45)) → less13_out_ga(s(T45))
U19_aaaaaaa(app71_out_aaaa) → p43_out_aaaaaaa
app71_in_aaaaapp71_out_aaaa
app71_in_aaaaU21_aaaa(app71_in_aaaa)
U21_aaaa(app71_out_aaaa) → app71_out_aaaa

The set Q consists of the following terms:

part44_in_aaaa
qs60_in_aa
U6_aaaa(x0)
U7_aaaa(x0)
U9_aaaa(x0)
U20_aa(x0)
less13_in_aa
U8_aaaa(x0)
p43_in_aaaaaaa
U1_aa(x0)
part23_in_gaaa(x0)
U10_aaaaaaa(x0)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
U2_gaaa(x0, x1)
U3_gaaa(x0, x1)
U5_gaaa(x0, x1)
U12_aaaaaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
less13_in_ga(x0)
U4_gaaa(x0, x1)
U15_aaaaaaa(x0)
U18_aaaaaaa(x0)
U1_ga(x0, x1)
U19_aaaaaaa(x0)
app71_in_aaaa
U21_aaaa(x0)

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

(94) Narrowing (SOUND transformation)

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

P43_IN_AAAAAAAU16_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU16_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU16_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU16_AAAAAAA(part44_out_aaaa)

(95) Obligation:

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

U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
QS60_IN_AAP43_IN_AAAAAAA
U14_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U13_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_in_aa)
U17_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAAU11_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU11_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU11_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU11_AAAAAAA(part44_out_aaaa)
P43_IN_AAAAAAAU13_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU13_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU13_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU13_AAAAAAA(part44_out_aaaa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_out_aa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(U20_aa(p43_in_aaaaaaa))
P43_IN_AAAAAAAU16_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU16_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU16_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU16_AAAAAAA(part44_out_aaaa)

The TRS R consists of the following rules:

part44_in_aaaaU6_aaaa(less13_in_aa)
part44_in_aaaaU7_aaaa(less13_in_aa)
part44_in_aaaaU9_aaaa(part44_in_aaaa)
part44_in_aaaapart44_out_aaaa
qs60_in_aaqs60_out_aa
qs60_in_aaU20_aa(p43_in_aaaaaaa)
U6_aaaa(less13_out_aa(T148)) → part44_out_aaaa
U7_aaaa(less13_out_aa(T153)) → U8_aaaa(part23_in_gaaa(T153))
U9_aaaa(part44_out_aaaa) → part44_out_aaaa
U20_aa(p43_out_aaaaaaa) → qs60_out_aa
less13_in_aaless13_out_aa(0)
less13_in_aaU1_aa(less13_in_aa)
U8_aaaa(part23_out_gaaa(T153)) → part44_out_aaaa
p43_in_aaaaaaaU10_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU11_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU13_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU16_aaaaaaa(part44_in_aaaa)
U1_aa(less13_out_aa(T45)) → less13_out_aa(s(T45))
part23_in_gaaa(T70) → U2_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T70) → U3_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T95) → U5_gaaa(T95, part23_in_gaaa(T95))
part23_in_gaaa(T104) → part23_out_gaaa(T104)
U10_aaaaaaa(part44_out_aaaa) → p43_out_aaaaaaa
U11_aaaaaaa(part44_out_aaaa) → U12_aaaaaaa(qs60_in_aa)
U13_aaaaaaa(part44_out_aaaa) → U14_aaaaaaa(qs60_in_aa)
U16_aaaaaaa(part44_out_aaaa) → U17_aaaaaaa(qs60_in_aa)
U2_gaaa(T70, less13_out_ga(T70)) → part23_out_gaaa(T70)
U3_gaaa(T70, less13_out_ga(T70)) → U4_gaaa(T70, part23_in_gaaa(T70))
U5_gaaa(T95, part23_out_gaaa(T95)) → part23_out_gaaa(T95)
U12_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U14_aaaaaaa(qs60_out_aa) → U15_aaaaaaa(qs60_in_aa)
U17_aaaaaaa(qs60_out_aa) → U18_aaaaaaa(qs60_in_aa)
less13_in_ga(0) → less13_out_ga(0)
less13_in_ga(s(T45)) → U1_ga(T45, less13_in_ga(T45))
U4_gaaa(T70, part23_out_gaaa(T70)) → part23_out_gaaa(T70)
U15_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U18_aaaaaaa(qs60_out_aa) → U19_aaaaaaa(app71_in_aaaa)
U1_ga(T45, less13_out_ga(T45)) → less13_out_ga(s(T45))
U19_aaaaaaa(app71_out_aaaa) → p43_out_aaaaaaa
app71_in_aaaaapp71_out_aaaa
app71_in_aaaaU21_aaaa(app71_in_aaaa)
U21_aaaa(app71_out_aaaa) → app71_out_aaaa

The set Q consists of the following terms:

part44_in_aaaa
qs60_in_aa
U6_aaaa(x0)
U7_aaaa(x0)
U9_aaaa(x0)
U20_aa(x0)
less13_in_aa
U8_aaaa(x0)
p43_in_aaaaaaa
U1_aa(x0)
part23_in_gaaa(x0)
U10_aaaaaaa(x0)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
U2_gaaa(x0, x1)
U3_gaaa(x0, x1)
U5_gaaa(x0, x1)
U12_aaaaaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
less13_in_ga(x0)
U4_gaaa(x0, x1)
U15_aaaaaaa(x0)
U18_aaaaaaa(x0)
U1_ga(x0, x1)
U19_aaaaaaa(x0)
app71_in_aaaa
U21_aaaa(x0)

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

(96) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_in_aa) at position [0] we obtained the following new rules [LPAR04]:

U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_out_aa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(U20_aa(p43_in_aaaaaaa))

(97) Obligation:

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

U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
QS60_IN_AAP43_IN_AAAAAAA
U14_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U13_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
U17_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAAU11_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU11_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU11_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU11_AAAAAAA(part44_out_aaaa)
P43_IN_AAAAAAAU13_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU13_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU13_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU13_AAAAAAA(part44_out_aaaa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_out_aa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(U20_aa(p43_in_aaaaaaa))
P43_IN_AAAAAAAU16_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU16_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU16_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU16_AAAAAAA(part44_out_aaaa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_out_aa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(U20_aa(p43_in_aaaaaaa))

The TRS R consists of the following rules:

part44_in_aaaaU6_aaaa(less13_in_aa)
part44_in_aaaaU7_aaaa(less13_in_aa)
part44_in_aaaaU9_aaaa(part44_in_aaaa)
part44_in_aaaapart44_out_aaaa
qs60_in_aaqs60_out_aa
qs60_in_aaU20_aa(p43_in_aaaaaaa)
U6_aaaa(less13_out_aa(T148)) → part44_out_aaaa
U7_aaaa(less13_out_aa(T153)) → U8_aaaa(part23_in_gaaa(T153))
U9_aaaa(part44_out_aaaa) → part44_out_aaaa
U20_aa(p43_out_aaaaaaa) → qs60_out_aa
less13_in_aaless13_out_aa(0)
less13_in_aaU1_aa(less13_in_aa)
U8_aaaa(part23_out_gaaa(T153)) → part44_out_aaaa
p43_in_aaaaaaaU10_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU11_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU13_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU16_aaaaaaa(part44_in_aaaa)
U1_aa(less13_out_aa(T45)) → less13_out_aa(s(T45))
part23_in_gaaa(T70) → U2_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T70) → U3_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T95) → U5_gaaa(T95, part23_in_gaaa(T95))
part23_in_gaaa(T104) → part23_out_gaaa(T104)
U10_aaaaaaa(part44_out_aaaa) → p43_out_aaaaaaa
U11_aaaaaaa(part44_out_aaaa) → U12_aaaaaaa(qs60_in_aa)
U13_aaaaaaa(part44_out_aaaa) → U14_aaaaaaa(qs60_in_aa)
U16_aaaaaaa(part44_out_aaaa) → U17_aaaaaaa(qs60_in_aa)
U2_gaaa(T70, less13_out_ga(T70)) → part23_out_gaaa(T70)
U3_gaaa(T70, less13_out_ga(T70)) → U4_gaaa(T70, part23_in_gaaa(T70))
U5_gaaa(T95, part23_out_gaaa(T95)) → part23_out_gaaa(T95)
U12_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U14_aaaaaaa(qs60_out_aa) → U15_aaaaaaa(qs60_in_aa)
U17_aaaaaaa(qs60_out_aa) → U18_aaaaaaa(qs60_in_aa)
less13_in_ga(0) → less13_out_ga(0)
less13_in_ga(s(T45)) → U1_ga(T45, less13_in_ga(T45))
U4_gaaa(T70, part23_out_gaaa(T70)) → part23_out_gaaa(T70)
U15_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U18_aaaaaaa(qs60_out_aa) → U19_aaaaaaa(app71_in_aaaa)
U1_ga(T45, less13_out_ga(T45)) → less13_out_ga(s(T45))
U19_aaaaaaa(app71_out_aaaa) → p43_out_aaaaaaa
app71_in_aaaaapp71_out_aaaa
app71_in_aaaaU21_aaaa(app71_in_aaaa)
U21_aaaa(app71_out_aaaa) → app71_out_aaaa

The set Q consists of the following terms:

part44_in_aaaa
qs60_in_aa
U6_aaaa(x0)
U7_aaaa(x0)
U9_aaaa(x0)
U20_aa(x0)
less13_in_aa
U8_aaaa(x0)
p43_in_aaaaaaa
U1_aa(x0)
part23_in_gaaa(x0)
U10_aaaaaaa(x0)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
U2_gaaa(x0, x1)
U3_gaaa(x0, x1)
U5_gaaa(x0, x1)
U12_aaaaaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
less13_in_ga(x0)
U4_gaaa(x0, x1)
U15_aaaaaaa(x0)
U18_aaaaaaa(x0)
U1_ga(x0, x1)
U19_aaaaaaa(x0)
app71_in_aaaa
U21_aaaa(x0)

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

(98) NonTerminationProof (EQUIVALENT transformation)

We used the non-termination processor [FROCOS05] to show that the DP problem is infinite.
Found a loop by narrowing to the left:

s = QS60_IN_AA evaluates to t =QS60_IN_AA

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




Rewriting sequence

QS60_IN_AAP43_IN_AAAAAAA
with rule QS60_IN_AAP43_IN_AAAAAAA at position [] and matcher [ ]

P43_IN_AAAAAAAU11_AAAAAAA(part44_out_aaaa)
with rule P43_IN_AAAAAAAU11_AAAAAAA(part44_out_aaaa) at position [] and matcher [ ]

U11_AAAAAAA(part44_out_aaaa)QS60_IN_AA
with rule U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA

Now applying the matcher to the start term leads to a term which is equal to the last term in the rewriting sequence


All these steps are and every following step will be a correct step w.r.t to Q.



(99) NO

(100) PrologToPiTRSProof (SOUND transformation)

We use the technique of [LOPSTR]. With regard to the inferred argument filtering the predicates were used in the following modes:
qs1_in: (f,b)
less13_in: (f,f) (b,f)
part23_in: (b,f,f,f)
qs39_in: (f,f,f) (f,f,b)
p43_in: (f,f,f,f,f,f,f) (f,f,f,f,f,f,b)
part44_in: (f,f,f,f) (b,f,f,f)
qs60_in: (f,f) (f,b)
app71_in: (f,f,f,f) (f,f,f,b)
app131_in: (f,b,f,b)
app157_in: (f,f,f,b) (b,f,b,b)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag
U20_ag(x1, x2, x3, x4)  =  U20_ag(x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x3)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x2)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x6)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(101) Obligation:

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

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag
U20_ag(x1, x2, x3, x4)  =  U20_ag(x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x3)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x2)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x6)

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

QS1_IN_AG(.(T24, .(T25, T26)), []) → U25_AG(T24, T25, T26, less13_in_aa(T24, T25))
QS1_IN_AG(.(T24, .(T25, T26)), []) → LESS13_IN_AA(T24, T25)
LESS13_IN_AA(s(T45), s(T46)) → U1_AA(T45, T46, less13_in_aa(T45, T46))
LESS13_IN_AA(s(T45), s(T46)) → LESS13_IN_AA(T45, T46)
QS1_IN_AG(.(T29, .(T31, T30)), []) → U26_AG(T29, T31, T30, less13_in_aa(T29, T31))
U26_AG(T29, T31, T30, less13_out_aa(T29, T31)) → U27_AG(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
U26_AG(T29, T31, T30, less13_out_aa(T29, T31)) → PART23_IN_GAAA(T29, T30, X49, X50)
PART23_IN_GAAA(T70, .(T73, T74), .(T73, X123), X124) → U2_GAAA(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
PART23_IN_GAAA(T70, .(T73, T74), .(T73, X123), X124) → LESS13_IN_GA(T70, T73)
LESS13_IN_GA(s(T45), s(T46)) → U1_GA(T45, T46, less13_in_ga(T45, T46))
LESS13_IN_GA(s(T45), s(T46)) → LESS13_IN_GA(T45, T46)
PART23_IN_GAAA(T70, .(T73, T77), .(T73, X123), X124) → U3_GAAA(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_GAAA(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_GAAA(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
U3_GAAA(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → PART23_IN_GAAA(T70, T77, X123, X124)
PART23_IN_GAAA(T95, .(T96, T98), X174, .(T96, X175)) → U5_GAAA(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
PART23_IN_GAAA(T95, .(T96, T98), X174, .(T96, X175)) → PART23_IN_GAAA(T95, T98, X174, X175)
QS1_IN_AG(.(T29, .(T54, T30)), []) → U28_AG(T29, T54, T30, less13_in_aa(T29, T54))
U28_AG(T29, T54, T30, less13_out_aa(T29, T54)) → U29_AG(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U28_AG(T29, T54, T30, less13_out_aa(T29, T54)) → PART23_IN_GAAA(T29, T30, T52, T53)
U29_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_AG(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
U29_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → QS39_IN_AAA(T54, T52, X11)
QS39_IN_AAA(T122, T123, X234) → U22_AAA(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
QS39_IN_AAA(T122, T123, X234) → P43_IN_AAAAAAA(T122, T123, X230, X231, X232, X233, X234)
P43_IN_AAAAAAA(T122, T123, X230, X231, X232, X233, X234) → U10_AAAAAAA(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
P43_IN_AAAAAAA(T122, T123, X230, X231, X232, X233, X234) → PART44_IN_AAAA(T122, T123, X230, X231)
PART44_IN_AAAA(T148, .(T149, T150), .(T149, X282), X283) → U6_AAAA(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
PART44_IN_AAAA(T148, .(T149, T150), .(T149, X282), X283) → LESS13_IN_AA(T148, T149)
PART44_IN_AAAA(T153, .(T149, T154), .(T149, X282), X283) → U7_AAAA(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_AAAA(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_AAAA(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U7_AAAA(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → PART23_IN_GAAA(T153, T154, X282, X283)
PART44_IN_AAAA(T175, .(T173, T176), X333, .(T173, X334)) → U9_AAAA(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
PART44_IN_AAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_AAAA(T175, T176, X333, X334)
P43_IN_AAAAAAA(T129, T123, T127, T128, X232, X233, X234) → U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → QS60_IN_AA(T127, X232)
QS60_IN_AA(.(T192, T193), X370) → U20_AA(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
QS60_IN_AA(.(T192, T193), X370) → P43_IN_AAAAAAA(T192, T193, X366, X367, X368, X369, X370)
P43_IN_AAAAAAA(T185, T123, T127, T184, T183, X233, X234) → U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → QS60_IN_AA(T127, T183)
U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → QS60_IN_AA(T184, X233)
P43_IN_AAAAAAA(T199, T123, T127, T184, T198, T197, X234) → U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → QS60_IN_AA(T127, T198)
U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → QS60_IN_AA(T184, T197)
U18_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
U18_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → APP71_IN_AAAA(T198, T199, T197, X234)
APP71_IN_AAAA(.(T222, T226), T227, T228, .(T222, X403)) → U21_AAAA(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
APP71_IN_AAAA(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAA(T226, T227, T228, X403)
U28_AG(T29, T54, T30, less13_out_aa(T29, T54)) → U31_AG(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_AG(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U31_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → QS39_IN_AAA(T54, T52, T107)
U32_AG(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_AG(T29, T54, T30, qs60_in_aa(T108, X12))
U32_AG(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → QS60_IN_AA(T108, X12)
QS1_IN_AG(.(T264, .(T266, T265)), []) → U34_AG(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
QS1_IN_AG(.(T264, .(T266, T265)), []) → PART44_IN_AAAA(T264, T265, X454, X455)
QS1_IN_AG(.(T273, .(T272, T265)), []) → U35_AG(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_AG(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_AG(T273, T272, T265, qs60_in_aa(T270, X11))
U35_AG(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → QS60_IN_AA(T270, X11)
QS1_IN_AG(.(T280, .(T278, T265)), []) → U37_AG(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_AG(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_AG(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U37_AG(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → QS60_IN_AA(T270, T277)
U38_AG(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_AG(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U38_AG(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → QS39_IN_AAA(T278, T279, X12)
QS1_IN_AG(.(T305, []), []) → U40_AG(T305, qs100_in_a(X11))
QS1_IN_AG(.(T305, []), []) → QS100_IN_A(X11)
QS1_IN_AG(.(T305, []), []) → U41_AG(T305, qs100_in_a(T309))
U41_AG(T305, qs100_out_a(T309)) → U42_AG(T305, qs100_in_a(X12))
U41_AG(T305, qs100_out_a(T309)) → QS100_IN_A(X12)
QS1_IN_AG(.(T347, .(T348, T349)), T329) → U43_AG(T347, T348, T349, T329, less13_in_aa(T347, T348))
QS1_IN_AG(.(T347, .(T348, T349)), T329) → LESS13_IN_AA(T347, T348)
QS1_IN_AG(.(T352, .(T354, T353)), T329) → U44_AG(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_AG(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_AG(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U44_AG(T352, T354, T353, T329, less13_out_aa(T352, T354)) → PART23_IN_GAAA(T352, T353, X581, X582)
QS1_IN_AG(.(T352, .(T363, T353)), T329) → U46_AG(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_AG(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_AG(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U46_AG(T352, T363, T353, T329, less13_out_aa(T352, T363)) → PART23_IN_GAAA(T352, T353, T361, T362)
U47_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_AG(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U47_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → QS39_IN_AAA(T363, T361, X543)
U46_AG(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_AG(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_AG(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U49_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → QS39_IN_AAA(T363, T361, T370)
U50_AG(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_AG(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U50_AG(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → QS60_IN_AA(T371, X544)
QS1_IN_AG(.(T390, .(T363, T353)), .(T390, T391)) → U52_AG(T390, T363, T353, T391, less13_in_ga(T390, T363))
QS1_IN_AG(.(T390, .(T363, T353)), .(T390, T391)) → LESS13_IN_GA(T390, T363)
U52_AG(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_AG(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U52_AG(T390, T363, T353, T391, less13_out_ga(T390, T363)) → PART23_IN_GAAA(T390, T353, T361, T371)
U53_AG(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_AG(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
U53_AG(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → QS39_IN_AAG(T363, T361, [])
QS39_IN_AAG(T122, T123, X234) → U22_AAG(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
QS39_IN_AAG(T122, T123, X234) → P43_IN_AAAAAAG(T122, T123, X230, X231, X232, X233, X234)
P43_IN_AAAAAAG(T122, T123, X230, X231, X232, X233, X234) → U10_AAAAAAG(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
P43_IN_AAAAAAG(T122, T123, X230, X231, X232, X233, X234) → PART44_IN_AAAA(T122, T123, X230, X231)
P43_IN_AAAAAAG(T129, T123, T127, T128, X232, X233, X234) → U11_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U11_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → QS60_IN_AA(T127, X232)
P43_IN_AAAAAAG(T185, T123, T127, T184, T183, X233, X234) → U13_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U13_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → QS60_IN_AA(T127, T183)
U14_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U14_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → QS60_IN_AA(T184, X233)
P43_IN_AAAAAAG(T199, T123, T127, T184, T198, T197, X234) → U16_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U16_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → QS60_IN_AA(T127, T198)
U17_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U17_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → QS60_IN_AA(T184, T197)
U18_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
U18_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → APP71_IN_AAAG(T198, T199, T197, X234)
APP71_IN_AAAG(.(T222, T226), T227, T228, .(T222, X403)) → U21_AAAG(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
APP71_IN_AAAG(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAG(T226, T227, T228, X403)
U54_AG(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_AG(T390, T363, T353, T391, qs60_in_ag(T371, T391))
U54_AG(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → QS60_IN_AG(T371, T391)
QS60_IN_AG(.(T192, T193), X370) → U20_AG(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
QS60_IN_AG(.(T192, T193), X370) → P43_IN_AAAAAAG(T192, T193, X366, X367, X368, X369, X370)
QS1_IN_AG(.(T404, .(T363, T353)), .(T402, T406)) → U56_AG(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
QS1_IN_AG(.(T404, .(T363, T353)), .(T402, T406)) → LESS13_IN_AA(T404, T363)
U56_AG(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_AG(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U56_AG(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → PART23_IN_GAAA(T404, T353, T361, T371)
U57_AG(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_AG(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U57_AG(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → QS39_IN_AAA(T363, T361, .(T402, T407))
U58_AG(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_AG(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U58_AG(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → QS60_IN_AA(T371, T408)
U59_AG(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_AG(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
U59_AG(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → APP131_IN_AGAG(T407, T404, T408, T406)
APP131_IN_AGAG(.(T433, T438), T435, T439, .(T433, T437)) → U23_AGAG(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
APP131_IN_AGAG(.(T433, T438), T435, T439, .(T433, T437)) → APP131_IN_AGAG(T438, T435, T439, T437)
QS1_IN_AG(.(T459, .(T461, T460)), T329) → U61_AG(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
QS1_IN_AG(.(T459, .(T461, T460)), T329) → PART44_IN_AAAA(T459, T460, X705, X706)
QS1_IN_AG(.(T468, .(T467, T460)), T329) → U62_AG(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_AG(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_AG(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U62_AG(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → QS60_IN_AA(T465, X543)
QS1_IN_AG(.(T476, .(T474, T460)), T329) → U64_AG(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_AG(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_AG(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U64_AG(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → QS60_IN_AA(T465, T473)
U65_AG(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_AG(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U65_AG(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → QS39_IN_AAA(T474, T475, X544)
QS1_IN_AG(.(T498, .(T474, T460)), .(T498, T499)) → U67_AG(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
QS1_IN_AG(.(T498, .(T474, T460)), .(T498, T499)) → PART44_IN_GAAA(T498, T460, T465, T475)
PART44_IN_GAAA(T148, .(T149, T150), .(T149, X282), X283) → U6_GAAA(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
PART44_IN_GAAA(T148, .(T149, T150), .(T149, X282), X283) → LESS13_IN_GA(T148, T149)
PART44_IN_GAAA(T153, .(T149, T154), .(T149, X282), X283) → U7_GAAA(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_GAAA(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_GAAA(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U7_GAAA(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → PART23_IN_GAAA(T153, T154, X282, X283)
PART44_IN_GAAA(T175, .(T173, T176), X333, .(T173, X334)) → U9_GAAA(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
PART44_IN_GAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_GAAA(T175, T176, X333, X334)
U67_AG(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_AG(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U67_AG(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → QS60_IN_AG(T465, [])
U68_AG(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_AG(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U68_AG(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → QS39_IN_AAG(T474, T475, T499)
QS1_IN_AG(.(T516, .(T474, T460)), .(T510, T514)) → U70_AG(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
QS1_IN_AG(.(T516, .(T474, T460)), .(T510, T514)) → PART44_IN_AAAA(T516, T460, T465, T475)
U70_AG(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_AG(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U70_AG(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → QS60_IN_AA(T465, .(T510, T515))
U71_AG(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_AG(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U71_AG(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → QS39_IN_AAA(T474, T475, T517)
U72_AG(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_AG(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
U72_AG(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → APP157_IN_AAAG(T515, T516, T517, T514)
APP157_IN_AAAG(.(T542, T547), T548, T549, .(T542, T546)) → U24_AAAG(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
APP157_IN_AAAG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_AAAG(T547, T548, T549, T546)
QS1_IN_AG(.(T557, []), T329) → U74_AG(T557, T329, qs100_in_a(X543))
QS1_IN_AG(.(T557, []), T329) → QS100_IN_A(X543)
QS1_IN_AG(.(T557, []), T329) → U75_AG(T557, T329, qs100_in_a(T560))
U75_AG(T557, T329, qs100_out_a(T560)) → U76_AG(T557, T329, qs100_in_a(X544))
U75_AG(T557, T329, qs100_out_a(T560)) → QS100_IN_A(X544)
U75_AG(T557, T329, qs100_out_a(T560)) → U77_AG(T557, T329, T560, qs100_in_a(T563))
U77_AG(T557, T329, T560, qs100_out_a(T563)) → U78_AG(T557, T329, app157_in_gagg(T560, T557, T563, T329))
U77_AG(T557, T329, T560, qs100_out_a(T563)) → APP157_IN_GAGG(T560, T557, T563, T329)
APP157_IN_GAGG(.(T542, T547), T548, T549, .(T542, T546)) → U24_GAGG(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
APP157_IN_GAGG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_GAGG(T547, T548, T549, T546)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag
U20_ag(x1, x2, x3, x4)  =  U20_ag(x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x3)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x2)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x6)
QS1_IN_AG(x1, x2)  =  QS1_IN_AG(x2)
U25_AG(x1, x2, x3, x4)  =  U25_AG(x4)
LESS13_IN_AA(x1, x2)  =  LESS13_IN_AA
U1_AA(x1, x2, x3)  =  U1_AA(x3)
U26_AG(x1, x2, x3, x4)  =  U26_AG(x4)
U27_AG(x1, x2, x3, x4)  =  U27_AG(x4)
PART23_IN_GAAA(x1, x2, x3, x4)  =  PART23_IN_GAAA(x1)
U2_GAAA(x1, x2, x3, x4, x5, x6)  =  U2_GAAA(x6)
LESS13_IN_GA(x1, x2)  =  LESS13_IN_GA(x1)
U1_GA(x1, x2, x3)  =  U1_GA(x3)
U3_GAAA(x1, x2, x3, x4, x5, x6)  =  U3_GAAA(x1, x6)
U4_GAAA(x1, x2, x3, x4, x5, x6)  =  U4_GAAA(x6)
U5_GAAA(x1, x2, x3, x4, x5, x6)  =  U5_GAAA(x6)
U28_AG(x1, x2, x3, x4)  =  U28_AG(x4)
U29_AG(x1, x2, x3, x4)  =  U29_AG(x4)
U30_AG(x1, x2, x3, x4)  =  U30_AG(x4)
QS39_IN_AAA(x1, x2, x3)  =  QS39_IN_AAA
U22_AAA(x1, x2, x3, x4)  =  U22_AAA(x4)
P43_IN_AAAAAAA(x1, x2, x3, x4, x5, x6, x7)  =  P43_IN_AAAAAAA
U10_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_AAAAAAA(x8)
PART44_IN_AAAA(x1, x2, x3, x4)  =  PART44_IN_AAAA
U6_AAAA(x1, x2, x3, x4, x5, x6)  =  U6_AAAA(x6)
U7_AAAA(x1, x2, x3, x4, x5, x6)  =  U7_AAAA(x6)
U8_AAAA(x1, x2, x3, x4, x5, x6)  =  U8_AAAA(x6)
U9_AAAA(x1, x2, x3, x4, x5, x6)  =  U9_AAAA(x6)
U11_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_AAAAAAA(x8)
U12_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_AAAAAAA(x8)
QS60_IN_AA(x1, x2)  =  QS60_IN_AA
U20_AA(x1, x2, x3, x4)  =  U20_AA(x4)
U13_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_AAAAAAA(x8)
U14_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_AAAAAAA(x8)
U15_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_AAAAAAA(x8)
U16_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_AAAAAAA(x8)
U17_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_AAAAAAA(x8)
U18_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_AAAAAAA(x8)
U19_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_AAAAAAA(x8)
APP71_IN_AAAA(x1, x2, x3, x4)  =  APP71_IN_AAAA
U21_AAAA(x1, x2, x3, x4, x5, x6)  =  U21_AAAA(x6)
U31_AG(x1, x2, x3, x4)  =  U31_AG(x4)
U32_AG(x1, x2, x3, x4, x5)  =  U32_AG(x5)
U33_AG(x1, x2, x3, x4)  =  U33_AG(x4)
U34_AG(x1, x2, x3, x4)  =  U34_AG(x4)
U35_AG(x1, x2, x3, x4)  =  U35_AG(x4)
U36_AG(x1, x2, x3, x4)  =  U36_AG(x4)
U37_AG(x1, x2, x3, x4)  =  U37_AG(x4)
U38_AG(x1, x2, x3, x4, x5)  =  U38_AG(x5)
U39_AG(x1, x2, x3, x4)  =  U39_AG(x4)
U40_AG(x1, x2)  =  U40_AG(x2)
QS100_IN_A(x1)  =  QS100_IN_A
U41_AG(x1, x2)  =  U41_AG(x2)
U42_AG(x1, x2)  =  U42_AG(x2)
U43_AG(x1, x2, x3, x4, x5)  =  U43_AG(x5)
U44_AG(x1, x2, x3, x4, x5)  =  U44_AG(x5)
U45_AG(x1, x2, x3, x4, x5)  =  U45_AG(x5)
U46_AG(x1, x2, x3, x4, x5)  =  U46_AG(x5)
U47_AG(x1, x2, x3, x4, x5)  =  U47_AG(x5)
U48_AG(x1, x2, x3, x4, x5)  =  U48_AG(x5)
U49_AG(x1, x2, x3, x4, x5)  =  U49_AG(x5)
U50_AG(x1, x2, x3, x4, x5, x6)  =  U50_AG(x6)
U51_AG(x1, x2, x3, x4, x5)  =  U51_AG(x5)
U52_AG(x1, x2, x3, x4, x5)  =  U52_AG(x1, x4, x5)
U53_AG(x1, x2, x3, x4, x5)  =  U53_AG(x4, x5)
U54_AG(x1, x2, x3, x4, x5, x6)  =  U54_AG(x4, x6)
QS39_IN_AAG(x1, x2, x3)  =  QS39_IN_AAG(x3)
U22_AAG(x1, x2, x3, x4)  =  U22_AAG(x4)
P43_IN_AAAAAAG(x1, x2, x3, x4, x5, x6, x7)  =  P43_IN_AAAAAAG(x7)
U10_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_AAAAAAG(x8)
U11_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_AAAAAAG(x8)
U12_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_AAAAAAG(x8)
U13_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_AAAAAAG(x8)
U14_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_AAAAAAG(x8)
U15_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_AAAAAAG(x8)
U16_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_AAAAAAG(x7, x8)
U17_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_AAAAAAG(x7, x8)
U18_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_AAAAAAG(x7, x8)
U19_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_AAAAAAG(x8)
APP71_IN_AAAG(x1, x2, x3, x4)  =  APP71_IN_AAAG(x4)
U21_AAAG(x1, x2, x3, x4, x5, x6)  =  U21_AAAG(x1, x6)
U55_AG(x1, x2, x3, x4, x5)  =  U55_AG(x5)
QS60_IN_AG(x1, x2)  =  QS60_IN_AG(x2)
U20_AG(x1, x2, x3, x4)  =  U20_AG(x4)
U56_AG(x1, x2, x3, x4, x5, x6)  =  U56_AG(x5, x6)
U57_AG(x1, x2, x3, x4, x5, x6)  =  U57_AG(x1, x5, x6)
U58_AG(x1, x2, x3, x4, x5, x6, x7)  =  U58_AG(x1, x5, x7)
U59_AG(x1, x2, x3, x4, x5, x6, x7)  =  U59_AG(x1, x5, x7)
U60_AG(x1, x2, x3, x4, x5, x6)  =  U60_AG(x6)
APP131_IN_AGAG(x1, x2, x3, x4)  =  APP131_IN_AGAG(x2, x4)
U23_AGAG(x1, x2, x3, x4, x5, x6)  =  U23_AGAG(x1, x6)
U61_AG(x1, x2, x3, x4, x5)  =  U61_AG(x5)
U62_AG(x1, x2, x3, x4, x5)  =  U62_AG(x5)
U63_AG(x1, x2, x3, x4, x5)  =  U63_AG(x5)
U64_AG(x1, x2, x3, x4, x5)  =  U64_AG(x5)
U65_AG(x1, x2, x3, x4, x5, x6)  =  U65_AG(x6)
U66_AG(x1, x2, x3, x4, x5)  =  U66_AG(x5)
U67_AG(x1, x2, x3, x4, x5)  =  U67_AG(x4, x5)
PART44_IN_GAAA(x1, x2, x3, x4)  =  PART44_IN_GAAA(x1)
U6_GAAA(x1, x2, x3, x4, x5, x6)  =  U6_GAAA(x6)
U7_GAAA(x1, x2, x3, x4, x5, x6)  =  U7_GAAA(x1, x6)
U8_GAAA(x1, x2, x3, x4, x5, x6)  =  U8_GAAA(x6)
U9_GAAA(x1, x2, x3, x4, x5, x6)  =  U9_GAAA(x6)
U68_AG(x1, x2, x3, x4, x5, x6)  =  U68_AG(x4, x6)
U69_AG(x1, x2, x3, x4, x5)  =  U69_AG(x5)
U70_AG(x1, x2, x3, x4, x5, x6)  =  U70_AG(x5, x6)
U71_AG(x1, x2, x3, x4, x5, x6, x7)  =  U71_AG(x5, x7)
U72_AG(x1, x2, x3, x4, x5, x6, x7)  =  U72_AG(x5, x7)
U73_AG(x1, x2, x3, x4, x5, x6)  =  U73_AG(x6)
APP157_IN_AAAG(x1, x2, x3, x4)  =  APP157_IN_AAAG(x4)
U24_AAAG(x1, x2, x3, x4, x5, x6)  =  U24_AAAG(x1, x6)
U74_AG(x1, x2, x3)  =  U74_AG(x3)
U75_AG(x1, x2, x3)  =  U75_AG(x2, x3)
U76_AG(x1, x2, x3)  =  U76_AG(x3)
U77_AG(x1, x2, x3, x4)  =  U77_AG(x2, x3, x4)
U78_AG(x1, x2, x3)  =  U78_AG(x3)
APP157_IN_GAGG(x1, x2, x3, x4)  =  APP157_IN_GAGG(x1, x3, x4)
U24_GAGG(x1, x2, x3, x4, x5, x6)  =  U24_GAGG(x6)

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

(103) Obligation:

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

QS1_IN_AG(.(T24, .(T25, T26)), []) → U25_AG(T24, T25, T26, less13_in_aa(T24, T25))
QS1_IN_AG(.(T24, .(T25, T26)), []) → LESS13_IN_AA(T24, T25)
LESS13_IN_AA(s(T45), s(T46)) → U1_AA(T45, T46, less13_in_aa(T45, T46))
LESS13_IN_AA(s(T45), s(T46)) → LESS13_IN_AA(T45, T46)
QS1_IN_AG(.(T29, .(T31, T30)), []) → U26_AG(T29, T31, T30, less13_in_aa(T29, T31))
U26_AG(T29, T31, T30, less13_out_aa(T29, T31)) → U27_AG(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
U26_AG(T29, T31, T30, less13_out_aa(T29, T31)) → PART23_IN_GAAA(T29, T30, X49, X50)
PART23_IN_GAAA(T70, .(T73, T74), .(T73, X123), X124) → U2_GAAA(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
PART23_IN_GAAA(T70, .(T73, T74), .(T73, X123), X124) → LESS13_IN_GA(T70, T73)
LESS13_IN_GA(s(T45), s(T46)) → U1_GA(T45, T46, less13_in_ga(T45, T46))
LESS13_IN_GA(s(T45), s(T46)) → LESS13_IN_GA(T45, T46)
PART23_IN_GAAA(T70, .(T73, T77), .(T73, X123), X124) → U3_GAAA(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_GAAA(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_GAAA(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
U3_GAAA(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → PART23_IN_GAAA(T70, T77, X123, X124)
PART23_IN_GAAA(T95, .(T96, T98), X174, .(T96, X175)) → U5_GAAA(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
PART23_IN_GAAA(T95, .(T96, T98), X174, .(T96, X175)) → PART23_IN_GAAA(T95, T98, X174, X175)
QS1_IN_AG(.(T29, .(T54, T30)), []) → U28_AG(T29, T54, T30, less13_in_aa(T29, T54))
U28_AG(T29, T54, T30, less13_out_aa(T29, T54)) → U29_AG(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U28_AG(T29, T54, T30, less13_out_aa(T29, T54)) → PART23_IN_GAAA(T29, T30, T52, T53)
U29_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_AG(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
U29_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → QS39_IN_AAA(T54, T52, X11)
QS39_IN_AAA(T122, T123, X234) → U22_AAA(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
QS39_IN_AAA(T122, T123, X234) → P43_IN_AAAAAAA(T122, T123, X230, X231, X232, X233, X234)
P43_IN_AAAAAAA(T122, T123, X230, X231, X232, X233, X234) → U10_AAAAAAA(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
P43_IN_AAAAAAA(T122, T123, X230, X231, X232, X233, X234) → PART44_IN_AAAA(T122, T123, X230, X231)
PART44_IN_AAAA(T148, .(T149, T150), .(T149, X282), X283) → U6_AAAA(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
PART44_IN_AAAA(T148, .(T149, T150), .(T149, X282), X283) → LESS13_IN_AA(T148, T149)
PART44_IN_AAAA(T153, .(T149, T154), .(T149, X282), X283) → U7_AAAA(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_AAAA(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_AAAA(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U7_AAAA(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → PART23_IN_GAAA(T153, T154, X282, X283)
PART44_IN_AAAA(T175, .(T173, T176), X333, .(T173, X334)) → U9_AAAA(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
PART44_IN_AAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_AAAA(T175, T176, X333, X334)
P43_IN_AAAAAAA(T129, T123, T127, T128, X232, X233, X234) → U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → QS60_IN_AA(T127, X232)
QS60_IN_AA(.(T192, T193), X370) → U20_AA(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
QS60_IN_AA(.(T192, T193), X370) → P43_IN_AAAAAAA(T192, T193, X366, X367, X368, X369, X370)
P43_IN_AAAAAAA(T185, T123, T127, T184, T183, X233, X234) → U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → QS60_IN_AA(T127, T183)
U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → QS60_IN_AA(T184, X233)
P43_IN_AAAAAAA(T199, T123, T127, T184, T198, T197, X234) → U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → QS60_IN_AA(T127, T198)
U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → QS60_IN_AA(T184, T197)
U18_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
U18_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → APP71_IN_AAAA(T198, T199, T197, X234)
APP71_IN_AAAA(.(T222, T226), T227, T228, .(T222, X403)) → U21_AAAA(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
APP71_IN_AAAA(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAA(T226, T227, T228, X403)
U28_AG(T29, T54, T30, less13_out_aa(T29, T54)) → U31_AG(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_AG(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U31_AG(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → QS39_IN_AAA(T54, T52, T107)
U32_AG(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_AG(T29, T54, T30, qs60_in_aa(T108, X12))
U32_AG(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → QS60_IN_AA(T108, X12)
QS1_IN_AG(.(T264, .(T266, T265)), []) → U34_AG(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
QS1_IN_AG(.(T264, .(T266, T265)), []) → PART44_IN_AAAA(T264, T265, X454, X455)
QS1_IN_AG(.(T273, .(T272, T265)), []) → U35_AG(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_AG(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_AG(T273, T272, T265, qs60_in_aa(T270, X11))
U35_AG(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → QS60_IN_AA(T270, X11)
QS1_IN_AG(.(T280, .(T278, T265)), []) → U37_AG(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_AG(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_AG(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U37_AG(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → QS60_IN_AA(T270, T277)
U38_AG(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_AG(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U38_AG(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → QS39_IN_AAA(T278, T279, X12)
QS1_IN_AG(.(T305, []), []) → U40_AG(T305, qs100_in_a(X11))
QS1_IN_AG(.(T305, []), []) → QS100_IN_A(X11)
QS1_IN_AG(.(T305, []), []) → U41_AG(T305, qs100_in_a(T309))
U41_AG(T305, qs100_out_a(T309)) → U42_AG(T305, qs100_in_a(X12))
U41_AG(T305, qs100_out_a(T309)) → QS100_IN_A(X12)
QS1_IN_AG(.(T347, .(T348, T349)), T329) → U43_AG(T347, T348, T349, T329, less13_in_aa(T347, T348))
QS1_IN_AG(.(T347, .(T348, T349)), T329) → LESS13_IN_AA(T347, T348)
QS1_IN_AG(.(T352, .(T354, T353)), T329) → U44_AG(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_AG(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_AG(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U44_AG(T352, T354, T353, T329, less13_out_aa(T352, T354)) → PART23_IN_GAAA(T352, T353, X581, X582)
QS1_IN_AG(.(T352, .(T363, T353)), T329) → U46_AG(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_AG(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_AG(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U46_AG(T352, T363, T353, T329, less13_out_aa(T352, T363)) → PART23_IN_GAAA(T352, T353, T361, T362)
U47_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_AG(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U47_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → QS39_IN_AAA(T363, T361, X543)
U46_AG(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_AG(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_AG(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U49_AG(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → QS39_IN_AAA(T363, T361, T370)
U50_AG(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_AG(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U50_AG(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → QS60_IN_AA(T371, X544)
QS1_IN_AG(.(T390, .(T363, T353)), .(T390, T391)) → U52_AG(T390, T363, T353, T391, less13_in_ga(T390, T363))
QS1_IN_AG(.(T390, .(T363, T353)), .(T390, T391)) → LESS13_IN_GA(T390, T363)
U52_AG(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_AG(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U52_AG(T390, T363, T353, T391, less13_out_ga(T390, T363)) → PART23_IN_GAAA(T390, T353, T361, T371)
U53_AG(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_AG(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
U53_AG(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → QS39_IN_AAG(T363, T361, [])
QS39_IN_AAG(T122, T123, X234) → U22_AAG(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
QS39_IN_AAG(T122, T123, X234) → P43_IN_AAAAAAG(T122, T123, X230, X231, X232, X233, X234)
P43_IN_AAAAAAG(T122, T123, X230, X231, X232, X233, X234) → U10_AAAAAAG(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
P43_IN_AAAAAAG(T122, T123, X230, X231, X232, X233, X234) → PART44_IN_AAAA(T122, T123, X230, X231)
P43_IN_AAAAAAG(T129, T123, T127, T128, X232, X233, X234) → U11_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U11_AAAAAAG(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → QS60_IN_AA(T127, X232)
P43_IN_AAAAAAG(T185, T123, T127, T184, T183, X233, X234) → U13_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U13_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → QS60_IN_AA(T127, T183)
U14_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U14_AAAAAAG(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → QS60_IN_AA(T184, X233)
P43_IN_AAAAAAG(T199, T123, T127, T184, T198, T197, X234) → U16_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U16_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → QS60_IN_AA(T127, T198)
U17_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U17_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → QS60_IN_AA(T184, T197)
U18_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
U18_AAAAAAG(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → APP71_IN_AAAG(T198, T199, T197, X234)
APP71_IN_AAAG(.(T222, T226), T227, T228, .(T222, X403)) → U21_AAAG(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
APP71_IN_AAAG(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAG(T226, T227, T228, X403)
U54_AG(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_AG(T390, T363, T353, T391, qs60_in_ag(T371, T391))
U54_AG(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → QS60_IN_AG(T371, T391)
QS60_IN_AG(.(T192, T193), X370) → U20_AG(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
QS60_IN_AG(.(T192, T193), X370) → P43_IN_AAAAAAG(T192, T193, X366, X367, X368, X369, X370)
QS1_IN_AG(.(T404, .(T363, T353)), .(T402, T406)) → U56_AG(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
QS1_IN_AG(.(T404, .(T363, T353)), .(T402, T406)) → LESS13_IN_AA(T404, T363)
U56_AG(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_AG(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U56_AG(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → PART23_IN_GAAA(T404, T353, T361, T371)
U57_AG(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_AG(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U57_AG(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → QS39_IN_AAA(T363, T361, .(T402, T407))
U58_AG(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_AG(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U58_AG(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → QS60_IN_AA(T371, T408)
U59_AG(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_AG(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
U59_AG(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → APP131_IN_AGAG(T407, T404, T408, T406)
APP131_IN_AGAG(.(T433, T438), T435, T439, .(T433, T437)) → U23_AGAG(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
APP131_IN_AGAG(.(T433, T438), T435, T439, .(T433, T437)) → APP131_IN_AGAG(T438, T435, T439, T437)
QS1_IN_AG(.(T459, .(T461, T460)), T329) → U61_AG(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
QS1_IN_AG(.(T459, .(T461, T460)), T329) → PART44_IN_AAAA(T459, T460, X705, X706)
QS1_IN_AG(.(T468, .(T467, T460)), T329) → U62_AG(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_AG(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_AG(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U62_AG(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → QS60_IN_AA(T465, X543)
QS1_IN_AG(.(T476, .(T474, T460)), T329) → U64_AG(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_AG(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_AG(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U64_AG(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → QS60_IN_AA(T465, T473)
U65_AG(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_AG(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U65_AG(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → QS39_IN_AAA(T474, T475, X544)
QS1_IN_AG(.(T498, .(T474, T460)), .(T498, T499)) → U67_AG(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
QS1_IN_AG(.(T498, .(T474, T460)), .(T498, T499)) → PART44_IN_GAAA(T498, T460, T465, T475)
PART44_IN_GAAA(T148, .(T149, T150), .(T149, X282), X283) → U6_GAAA(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
PART44_IN_GAAA(T148, .(T149, T150), .(T149, X282), X283) → LESS13_IN_GA(T148, T149)
PART44_IN_GAAA(T153, .(T149, T154), .(T149, X282), X283) → U7_GAAA(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_GAAA(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_GAAA(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U7_GAAA(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → PART23_IN_GAAA(T153, T154, X282, X283)
PART44_IN_GAAA(T175, .(T173, T176), X333, .(T173, X334)) → U9_GAAA(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
PART44_IN_GAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_GAAA(T175, T176, X333, X334)
U67_AG(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_AG(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U67_AG(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → QS60_IN_AG(T465, [])
U68_AG(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_AG(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U68_AG(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → QS39_IN_AAG(T474, T475, T499)
QS1_IN_AG(.(T516, .(T474, T460)), .(T510, T514)) → U70_AG(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
QS1_IN_AG(.(T516, .(T474, T460)), .(T510, T514)) → PART44_IN_AAAA(T516, T460, T465, T475)
U70_AG(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_AG(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U70_AG(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → QS60_IN_AA(T465, .(T510, T515))
U71_AG(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_AG(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U71_AG(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → QS39_IN_AAA(T474, T475, T517)
U72_AG(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_AG(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
U72_AG(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → APP157_IN_AAAG(T515, T516, T517, T514)
APP157_IN_AAAG(.(T542, T547), T548, T549, .(T542, T546)) → U24_AAAG(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
APP157_IN_AAAG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_AAAG(T547, T548, T549, T546)
QS1_IN_AG(.(T557, []), T329) → U74_AG(T557, T329, qs100_in_a(X543))
QS1_IN_AG(.(T557, []), T329) → QS100_IN_A(X543)
QS1_IN_AG(.(T557, []), T329) → U75_AG(T557, T329, qs100_in_a(T560))
U75_AG(T557, T329, qs100_out_a(T560)) → U76_AG(T557, T329, qs100_in_a(X544))
U75_AG(T557, T329, qs100_out_a(T560)) → QS100_IN_A(X544)
U75_AG(T557, T329, qs100_out_a(T560)) → U77_AG(T557, T329, T560, qs100_in_a(T563))
U77_AG(T557, T329, T560, qs100_out_a(T563)) → U78_AG(T557, T329, app157_in_gagg(T560, T557, T563, T329))
U77_AG(T557, T329, T560, qs100_out_a(T563)) → APP157_IN_GAGG(T560, T557, T563, T329)
APP157_IN_GAGG(.(T542, T547), T548, T549, .(T542, T546)) → U24_GAGG(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
APP157_IN_GAGG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_GAGG(T547, T548, T549, T546)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag
U20_ag(x1, x2, x3, x4)  =  U20_ag(x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x3)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x2)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x6)
QS1_IN_AG(x1, x2)  =  QS1_IN_AG(x2)
U25_AG(x1, x2, x3, x4)  =  U25_AG(x4)
LESS13_IN_AA(x1, x2)  =  LESS13_IN_AA
U1_AA(x1, x2, x3)  =  U1_AA(x3)
U26_AG(x1, x2, x3, x4)  =  U26_AG(x4)
U27_AG(x1, x2, x3, x4)  =  U27_AG(x4)
PART23_IN_GAAA(x1, x2, x3, x4)  =  PART23_IN_GAAA(x1)
U2_GAAA(x1, x2, x3, x4, x5, x6)  =  U2_GAAA(x6)
LESS13_IN_GA(x1, x2)  =  LESS13_IN_GA(x1)
U1_GA(x1, x2, x3)  =  U1_GA(x3)
U3_GAAA(x1, x2, x3, x4, x5, x6)  =  U3_GAAA(x1, x6)
U4_GAAA(x1, x2, x3, x4, x5, x6)  =  U4_GAAA(x6)
U5_GAAA(x1, x2, x3, x4, x5, x6)  =  U5_GAAA(x6)
U28_AG(x1, x2, x3, x4)  =  U28_AG(x4)
U29_AG(x1, x2, x3, x4)  =  U29_AG(x4)
U30_AG(x1, x2, x3, x4)  =  U30_AG(x4)
QS39_IN_AAA(x1, x2, x3)  =  QS39_IN_AAA
U22_AAA(x1, x2, x3, x4)  =  U22_AAA(x4)
P43_IN_AAAAAAA(x1, x2, x3, x4, x5, x6, x7)  =  P43_IN_AAAAAAA
U10_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_AAAAAAA(x8)
PART44_IN_AAAA(x1, x2, x3, x4)  =  PART44_IN_AAAA
U6_AAAA(x1, x2, x3, x4, x5, x6)  =  U6_AAAA(x6)
U7_AAAA(x1, x2, x3, x4, x5, x6)  =  U7_AAAA(x6)
U8_AAAA(x1, x2, x3, x4, x5, x6)  =  U8_AAAA(x6)
U9_AAAA(x1, x2, x3, x4, x5, x6)  =  U9_AAAA(x6)
U11_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_AAAAAAA(x8)
U12_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_AAAAAAA(x8)
QS60_IN_AA(x1, x2)  =  QS60_IN_AA
U20_AA(x1, x2, x3, x4)  =  U20_AA(x4)
U13_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_AAAAAAA(x8)
U14_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_AAAAAAA(x8)
U15_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_AAAAAAA(x8)
U16_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_AAAAAAA(x8)
U17_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_AAAAAAA(x8)
U18_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_AAAAAAA(x8)
U19_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_AAAAAAA(x8)
APP71_IN_AAAA(x1, x2, x3, x4)  =  APP71_IN_AAAA
U21_AAAA(x1, x2, x3, x4, x5, x6)  =  U21_AAAA(x6)
U31_AG(x1, x2, x3, x4)  =  U31_AG(x4)
U32_AG(x1, x2, x3, x4, x5)  =  U32_AG(x5)
U33_AG(x1, x2, x3, x4)  =  U33_AG(x4)
U34_AG(x1, x2, x3, x4)  =  U34_AG(x4)
U35_AG(x1, x2, x3, x4)  =  U35_AG(x4)
U36_AG(x1, x2, x3, x4)  =  U36_AG(x4)
U37_AG(x1, x2, x3, x4)  =  U37_AG(x4)
U38_AG(x1, x2, x3, x4, x5)  =  U38_AG(x5)
U39_AG(x1, x2, x3, x4)  =  U39_AG(x4)
U40_AG(x1, x2)  =  U40_AG(x2)
QS100_IN_A(x1)  =  QS100_IN_A
U41_AG(x1, x2)  =  U41_AG(x2)
U42_AG(x1, x2)  =  U42_AG(x2)
U43_AG(x1, x2, x3, x4, x5)  =  U43_AG(x5)
U44_AG(x1, x2, x3, x4, x5)  =  U44_AG(x5)
U45_AG(x1, x2, x3, x4, x5)  =  U45_AG(x5)
U46_AG(x1, x2, x3, x4, x5)  =  U46_AG(x5)
U47_AG(x1, x2, x3, x4, x5)  =  U47_AG(x5)
U48_AG(x1, x2, x3, x4, x5)  =  U48_AG(x5)
U49_AG(x1, x2, x3, x4, x5)  =  U49_AG(x5)
U50_AG(x1, x2, x3, x4, x5, x6)  =  U50_AG(x6)
U51_AG(x1, x2, x3, x4, x5)  =  U51_AG(x5)
U52_AG(x1, x2, x3, x4, x5)  =  U52_AG(x1, x4, x5)
U53_AG(x1, x2, x3, x4, x5)  =  U53_AG(x4, x5)
U54_AG(x1, x2, x3, x4, x5, x6)  =  U54_AG(x4, x6)
QS39_IN_AAG(x1, x2, x3)  =  QS39_IN_AAG(x3)
U22_AAG(x1, x2, x3, x4)  =  U22_AAG(x4)
P43_IN_AAAAAAG(x1, x2, x3, x4, x5, x6, x7)  =  P43_IN_AAAAAAG(x7)
U10_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_AAAAAAG(x8)
U11_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_AAAAAAG(x8)
U12_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_AAAAAAG(x8)
U13_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_AAAAAAG(x8)
U14_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_AAAAAAG(x8)
U15_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_AAAAAAG(x8)
U16_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_AAAAAAG(x7, x8)
U17_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_AAAAAAG(x7, x8)
U18_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_AAAAAAG(x7, x8)
U19_AAAAAAG(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_AAAAAAG(x8)
APP71_IN_AAAG(x1, x2, x3, x4)  =  APP71_IN_AAAG(x4)
U21_AAAG(x1, x2, x3, x4, x5, x6)  =  U21_AAAG(x1, x6)
U55_AG(x1, x2, x3, x4, x5)  =  U55_AG(x5)
QS60_IN_AG(x1, x2)  =  QS60_IN_AG(x2)
U20_AG(x1, x2, x3, x4)  =  U20_AG(x4)
U56_AG(x1, x2, x3, x4, x5, x6)  =  U56_AG(x5, x6)
U57_AG(x1, x2, x3, x4, x5, x6)  =  U57_AG(x1, x5, x6)
U58_AG(x1, x2, x3, x4, x5, x6, x7)  =  U58_AG(x1, x5, x7)
U59_AG(x1, x2, x3, x4, x5, x6, x7)  =  U59_AG(x1, x5, x7)
U60_AG(x1, x2, x3, x4, x5, x6)  =  U60_AG(x6)
APP131_IN_AGAG(x1, x2, x3, x4)  =  APP131_IN_AGAG(x2, x4)
U23_AGAG(x1, x2, x3, x4, x5, x6)  =  U23_AGAG(x1, x6)
U61_AG(x1, x2, x3, x4, x5)  =  U61_AG(x5)
U62_AG(x1, x2, x3, x4, x5)  =  U62_AG(x5)
U63_AG(x1, x2, x3, x4, x5)  =  U63_AG(x5)
U64_AG(x1, x2, x3, x4, x5)  =  U64_AG(x5)
U65_AG(x1, x2, x3, x4, x5, x6)  =  U65_AG(x6)
U66_AG(x1, x2, x3, x4, x5)  =  U66_AG(x5)
U67_AG(x1, x2, x3, x4, x5)  =  U67_AG(x4, x5)
PART44_IN_GAAA(x1, x2, x3, x4)  =  PART44_IN_GAAA(x1)
U6_GAAA(x1, x2, x3, x4, x5, x6)  =  U6_GAAA(x6)
U7_GAAA(x1, x2, x3, x4, x5, x6)  =  U7_GAAA(x1, x6)
U8_GAAA(x1, x2, x3, x4, x5, x6)  =  U8_GAAA(x6)
U9_GAAA(x1, x2, x3, x4, x5, x6)  =  U9_GAAA(x6)
U68_AG(x1, x2, x3, x4, x5, x6)  =  U68_AG(x4, x6)
U69_AG(x1, x2, x3, x4, x5)  =  U69_AG(x5)
U70_AG(x1, x2, x3, x4, x5, x6)  =  U70_AG(x5, x6)
U71_AG(x1, x2, x3, x4, x5, x6, x7)  =  U71_AG(x5, x7)
U72_AG(x1, x2, x3, x4, x5, x6, x7)  =  U72_AG(x5, x7)
U73_AG(x1, x2, x3, x4, x5, x6)  =  U73_AG(x6)
APP157_IN_AAAG(x1, x2, x3, x4)  =  APP157_IN_AAAG(x4)
U24_AAAG(x1, x2, x3, x4, x5, x6)  =  U24_AAAG(x1, x6)
U74_AG(x1, x2, x3)  =  U74_AG(x3)
U75_AG(x1, x2, x3)  =  U75_AG(x2, x3)
U76_AG(x1, x2, x3)  =  U76_AG(x3)
U77_AG(x1, x2, x3, x4)  =  U77_AG(x2, x3, x4)
U78_AG(x1, x2, x3)  =  U78_AG(x3)
APP157_IN_GAGG(x1, x2, x3, x4)  =  APP157_IN_GAGG(x1, x3, x4)
U24_GAGG(x1, x2, x3, x4, x5, x6)  =  U24_GAGG(x6)

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

(104) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 11 SCCs with 149 less nodes.

(105) Complex Obligation (AND)

(106) Obligation:

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

APP157_IN_GAGG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_GAGG(T547, T548, T549, T546)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag
U20_ag(x1, x2, x3, x4)  =  U20_ag(x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x3)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x2)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x6)
APP157_IN_GAGG(x1, x2, x3, x4)  =  APP157_IN_GAGG(x1, x3, x4)

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:

APP157_IN_GAGG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_GAGG(T547, T548, T549, T546)

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

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:

APP157_IN_GAGG(.(T542, T547), T549, .(T542, T546)) → APP157_IN_GAGG(T547, T549, T546)

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:

  • APP157_IN_GAGG(.(T542, T547), T549, .(T542, T546)) → APP157_IN_GAGG(T547, T549, T546)
    The graph contains the following edges 1 > 1, 2 >= 2, 3 > 3

(112) YES

(113) Obligation:

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

APP157_IN_AAAG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_AAAG(T547, T548, T549, T546)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag
U20_ag(x1, x2, x3, x4)  =  U20_ag(x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x3)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x2)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x6)
APP157_IN_AAAG(x1, x2, x3, x4)  =  APP157_IN_AAAG(x4)

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:

APP157_IN_AAAG(.(T542, T547), T548, T549, .(T542, T546)) → APP157_IN_AAAG(T547, T548, T549, T546)

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

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:

APP157_IN_AAAG(.(T542, T546)) → APP157_IN_AAAG(T546)

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

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

  • APP157_IN_AAAG(.(T542, T546)) → APP157_IN_AAAG(T546)
    The graph contains the following edges 1 > 1

(119) YES

(120) Obligation:

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

APP131_IN_AGAG(.(T433, T438), T435, T439, .(T433, T437)) → APP131_IN_AGAG(T438, T435, T439, T437)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag
U20_ag(x1, x2, x3, x4)  =  U20_ag(x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x3)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x2)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x6)
APP131_IN_AGAG(x1, x2, x3, x4)  =  APP131_IN_AGAG(x2, x4)

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:

APP131_IN_AGAG(.(T433, T438), T435, T439, .(T433, T437)) → APP131_IN_AGAG(T438, T435, T439, T437)

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

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:

APP131_IN_AGAG(T435, .(T433, T437)) → APP131_IN_AGAG(T435, T437)

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:

  • APP131_IN_AGAG(T435, .(T433, T437)) → APP131_IN_AGAG(T435, T437)
    The graph contains the following edges 1 >= 1, 2 > 2

(126) YES

(127) Obligation:

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

APP71_IN_AAAG(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAG(T226, T227, T228, X403)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag
U20_ag(x1, x2, x3, x4)  =  U20_ag(x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x3)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x2)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x6)
APP71_IN_AAAG(x1, x2, x3, x4)  =  APP71_IN_AAAG(x4)

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

(128) UsableRulesProof (EQUIVALENT transformation)

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

(129) Obligation:

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

APP71_IN_AAAG(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAG(T226, T227, T228, X403)

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

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

(130) PiDPToQDPProof (SOUND transformation)

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

(131) Obligation:

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

APP71_IN_AAAG(.(T222, X403)) → APP71_IN_AAAG(X403)

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

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

  • APP71_IN_AAAG(.(T222, X403)) → APP71_IN_AAAG(X403)
    The graph contains the following edges 1 > 1

(133) YES

(134) Obligation:

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

APP71_IN_AAAA(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAA(T226, T227, T228, X403)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag
U20_ag(x1, x2, x3, x4)  =  U20_ag(x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x3)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x2)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x6)
APP71_IN_AAAA(x1, x2, x3, x4)  =  APP71_IN_AAAA

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

(135) UsableRulesProof (EQUIVALENT transformation)

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

(136) Obligation:

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

APP71_IN_AAAA(.(T222, T226), T227, T228, .(T222, X403)) → APP71_IN_AAAA(T226, T227, T228, X403)

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

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

(137) PiDPToQDPProof (SOUND transformation)

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

(138) Obligation:

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

APP71_IN_AAAAAPP71_IN_AAAA

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

(139) 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 = APP71_IN_AAAA evaluates to t =APP71_IN_AAAA

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




Rewriting sequence

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



(140) NO

(141) Obligation:

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

LESS13_IN_GA(s(T45), s(T46)) → LESS13_IN_GA(T45, T46)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag
U20_ag(x1, x2, x3, x4)  =  U20_ag(x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x3)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x2)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x6)
LESS13_IN_GA(x1, x2)  =  LESS13_IN_GA(x1)

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

(142) UsableRulesProof (EQUIVALENT transformation)

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

(143) Obligation:

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

LESS13_IN_GA(s(T45), s(T46)) → LESS13_IN_GA(T45, T46)

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

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

(144) PiDPToQDPProof (SOUND transformation)

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

(145) Obligation:

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

LESS13_IN_GA(s(T45)) → LESS13_IN_GA(T45)

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

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

  • LESS13_IN_GA(s(T45)) → LESS13_IN_GA(T45)
    The graph contains the following edges 1 > 1

(147) YES

(148) Obligation:

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

PART23_IN_GAAA(T70, .(T73, T77), .(T73, X123), X124) → U3_GAAA(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_GAAA(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → PART23_IN_GAAA(T70, T77, X123, X124)
PART23_IN_GAAA(T95, .(T96, T98), X174, .(T96, X175)) → PART23_IN_GAAA(T95, T98, X174, X175)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag
U20_ag(x1, x2, x3, x4)  =  U20_ag(x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x3)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x2)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x6)
PART23_IN_GAAA(x1, x2, x3, x4)  =  PART23_IN_GAAA(x1)
U3_GAAA(x1, x2, x3, x4, x5, x6)  =  U3_GAAA(x1, x6)

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

(149) UsableRulesProof (EQUIVALENT transformation)

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

(150) Obligation:

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

PART23_IN_GAAA(T70, .(T73, T77), .(T73, X123), X124) → U3_GAAA(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_GAAA(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → PART23_IN_GAAA(T70, T77, X123, X124)
PART23_IN_GAAA(T95, .(T96, T98), X174, .(T96, X175)) → PART23_IN_GAAA(T95, T98, X174, X175)

The TRS R consists of the following rules:

less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))

The argument filtering Pi contains the following mapping:
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
.(x1, x2)  =  .(x1, x2)
PART23_IN_GAAA(x1, x2, x3, x4)  =  PART23_IN_GAAA(x1)
U3_GAAA(x1, x2, x3, x4, x5, x6)  =  U3_GAAA(x1, x6)

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

(151) PiDPToQDPProof (SOUND transformation)

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

(152) Obligation:

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

PART23_IN_GAAA(T70) → U3_GAAA(T70, less13_in_ga(T70))
U3_GAAA(T70, less13_out_ga) → PART23_IN_GAAA(T70)
PART23_IN_GAAA(T95) → PART23_IN_GAAA(T95)

The TRS R consists of the following rules:

less13_in_ga(0) → less13_out_ga
less13_in_ga(s(T45)) → U1_ga(less13_in_ga(T45))
U1_ga(less13_out_ga) → less13_out_ga

The set Q consists of the following terms:

less13_in_ga(x0)
U1_ga(x0)

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

(153) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule PART23_IN_GAAA(T70) → U3_GAAA(T70, less13_in_ga(T70)) at position [1] we obtained the following new rules [LPAR04]:

PART23_IN_GAAA(0) → U3_GAAA(0, less13_out_ga)
PART23_IN_GAAA(s(x0)) → U3_GAAA(s(x0), U1_ga(less13_in_ga(x0)))

(154) Obligation:

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

U3_GAAA(T70, less13_out_ga) → PART23_IN_GAAA(T70)
PART23_IN_GAAA(T95) → PART23_IN_GAAA(T95)
PART23_IN_GAAA(0) → U3_GAAA(0, less13_out_ga)
PART23_IN_GAAA(s(x0)) → U3_GAAA(s(x0), U1_ga(less13_in_ga(x0)))

The TRS R consists of the following rules:

less13_in_ga(0) → less13_out_ga
less13_in_ga(s(T45)) → U1_ga(less13_in_ga(T45))
U1_ga(less13_out_ga) → less13_out_ga

The set Q consists of the following terms:

less13_in_ga(x0)
U1_ga(x0)

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

(155) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule U3_GAAA(T70, less13_out_ga) → PART23_IN_GAAA(T70) we obtained the following new rules [LPAR04]:

U3_GAAA(0, less13_out_ga) → PART23_IN_GAAA(0)
U3_GAAA(s(z0), less13_out_ga) → PART23_IN_GAAA(s(z0))

(156) Obligation:

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

PART23_IN_GAAA(T95) → PART23_IN_GAAA(T95)
PART23_IN_GAAA(0) → U3_GAAA(0, less13_out_ga)
PART23_IN_GAAA(s(x0)) → U3_GAAA(s(x0), U1_ga(less13_in_ga(x0)))
U3_GAAA(0, less13_out_ga) → PART23_IN_GAAA(0)
U3_GAAA(s(z0), less13_out_ga) → PART23_IN_GAAA(s(z0))

The TRS R consists of the following rules:

less13_in_ga(0) → less13_out_ga
less13_in_ga(s(T45)) → U1_ga(less13_in_ga(T45))
U1_ga(less13_out_ga) → less13_out_ga

The set Q consists of the following terms:

less13_in_ga(x0)
U1_ga(x0)

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

(157) 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 = PART23_IN_GAAA(T95) evaluates to t =PART23_IN_GAAA(T95)

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 PART23_IN_GAAA(T95) to PART23_IN_GAAA(T95).



(158) NO

(159) Obligation:

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

PART44_IN_GAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_GAAA(T175, T176, X333, X334)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag
U20_ag(x1, x2, x3, x4)  =  U20_ag(x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x3)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x2)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x6)
PART44_IN_GAAA(x1, x2, x3, x4)  =  PART44_IN_GAAA(x1)

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

(160) UsableRulesProof (EQUIVALENT transformation)

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

(161) Obligation:

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

PART44_IN_GAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_GAAA(T175, T176, X333, X334)

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

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

(162) PiDPToQDPProof (SOUND transformation)

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

(163) Obligation:

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

PART44_IN_GAAA(T175) → PART44_IN_GAAA(T175)

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

(164) 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 = PART44_IN_GAAA(T175) evaluates to t =PART44_IN_GAAA(T175)

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 PART44_IN_GAAA(T175) to PART44_IN_GAAA(T175).



(165) NO

(166) Obligation:

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

LESS13_IN_AA(s(T45), s(T46)) → LESS13_IN_AA(T45, T46)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag
U20_ag(x1, x2, x3, x4)  =  U20_ag(x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x3)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x2)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x6)
LESS13_IN_AA(x1, x2)  =  LESS13_IN_AA

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

(167) UsableRulesProof (EQUIVALENT transformation)

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

(168) Obligation:

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

LESS13_IN_AA(s(T45), s(T46)) → LESS13_IN_AA(T45, T46)

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

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

(169) PiDPToQDPProof (SOUND transformation)

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

(170) Obligation:

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

LESS13_IN_AALESS13_IN_AA

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

(171) 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 = LESS13_IN_AA evaluates to t =LESS13_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 LESS13_IN_AA to LESS13_IN_AA.



(172) NO

(173) Obligation:

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

PART44_IN_AAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_AAAA(T175, T176, X333, X334)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag
U20_ag(x1, x2, x3, x4)  =  U20_ag(x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x3)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x2)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x6)
PART44_IN_AAAA(x1, x2, x3, x4)  =  PART44_IN_AAAA

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

(174) UsableRulesProof (EQUIVALENT transformation)

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

(175) Obligation:

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

PART44_IN_AAAA(T175, .(T173, T176), X333, .(T173, X334)) → PART44_IN_AAAA(T175, T176, X333, X334)

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

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

(176) PiDPToQDPProof (SOUND transformation)

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

(177) Obligation:

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

PART44_IN_AAAAPART44_IN_AAAA

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

(178) 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 = PART44_IN_AAAA evaluates to t =PART44_IN_AAAA

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




Rewriting sequence

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



(179) NO

(180) Obligation:

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

P43_IN_AAAAAAA(T129, T123, T127, T128, X232, X233, X234) → U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → QS60_IN_AA(T127, X232)
QS60_IN_AA(.(T192, T193), X370) → P43_IN_AAAAAAA(T192, T193, X366, X367, X368, X369, X370)
P43_IN_AAAAAAA(T185, T123, T127, T184, T183, X233, X234) → U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → QS60_IN_AA(T184, X233)
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → QS60_IN_AA(T127, T183)
P43_IN_AAAAAAA(T199, T123, T127, T184, T198, T197, X234) → U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → QS60_IN_AA(T184, T197)
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → QS60_IN_AA(T127, T198)

The TRS R consists of the following rules:

qs1_in_ag([], []) → qs1_out_ag([], [])
qs1_in_ag(.(T24, .(T25, T26)), []) → U25_ag(T24, T25, T26, less13_in_aa(T24, T25))
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
U25_ag(T24, T25, T26, less13_out_aa(T24, T25)) → qs1_out_ag(.(T24, .(T25, T26)), [])
qs1_in_ag(.(T29, .(T31, T30)), []) → U26_ag(T29, T31, T30, less13_in_aa(T29, T31))
U26_ag(T29, T31, T30, less13_out_aa(T29, T31)) → U27_ag(T29, T31, T30, part23_in_gaaa(T29, T30, X49, X50))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U27_ag(T29, T31, T30, part23_out_gaaa(T29, T30, X49, X50)) → qs1_out_ag(.(T29, .(T31, T30)), [])
qs1_in_ag(.(T29, .(T54, T30)), []) → U28_ag(T29, T54, T30, less13_in_aa(T29, T54))
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U29_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T53))
U29_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T53)) → U30_ag(T29, T54, T30, qs39_in_aaa(T54, T52, X11))
qs39_in_aaa(T122, T123, X234) → U22_aaa(T122, T123, X234, p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U22_aaa(T122, T123, X234, p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aaa(T122, T123, X234)
U30_ag(T29, T54, T30, qs39_out_aaa(T54, T52, X11)) → qs1_out_ag(.(T29, .(T54, T30)), [])
U28_ag(T29, T54, T30, less13_out_aa(T29, T54)) → U31_ag(T29, T54, T30, part23_in_gaaa(T29, T30, T52, T108))
U31_ag(T29, T54, T30, part23_out_gaaa(T29, T30, T52, T108)) → U32_ag(T29, T54, T30, T108, qs39_in_aaa(T54, T52, T107))
U32_ag(T29, T54, T30, T108, qs39_out_aaa(T54, T52, T107)) → U33_ag(T29, T54, T30, qs60_in_aa(T108, X12))
U33_ag(T29, T54, T30, qs60_out_aa(T108, X12)) → qs1_out_ag(.(T29, .(T54, T30)), [])
qs1_in_ag(.(T264, .(T266, T265)), []) → U34_ag(T264, T266, T265, part44_in_aaaa(T264, T265, X454, X455))
U34_ag(T264, T266, T265, part44_out_aaaa(T264, T265, X454, X455)) → qs1_out_ag(.(T264, .(T266, T265)), [])
qs1_in_ag(.(T273, .(T272, T265)), []) → U35_ag(T273, T272, T265, part44_in_aaaa(T273, T265, T270, T271))
U35_ag(T273, T272, T265, part44_out_aaaa(T273, T265, T270, T271)) → U36_ag(T273, T272, T265, qs60_in_aa(T270, X11))
U36_ag(T273, T272, T265, qs60_out_aa(T270, X11)) → qs1_out_ag(.(T273, .(T272, T265)), [])
qs1_in_ag(.(T280, .(T278, T265)), []) → U37_ag(T280, T278, T265, part44_in_aaaa(T280, T265, T270, T279))
U37_ag(T280, T278, T265, part44_out_aaaa(T280, T265, T270, T279)) → U38_ag(T280, T278, T265, T279, qs60_in_aa(T270, T277))
U38_ag(T280, T278, T265, T279, qs60_out_aa(T270, T277)) → U39_ag(T280, T278, T265, qs39_in_aaa(T278, T279, X12))
U39_ag(T280, T278, T265, qs39_out_aaa(T278, T279, X12)) → qs1_out_ag(.(T280, .(T278, T265)), [])
qs1_in_ag(.(T305, []), []) → U40_ag(T305, qs100_in_a(X11))
qs100_in_a([]) → qs100_out_a([])
U40_ag(T305, qs100_out_a(X11)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T305, []), []) → U41_ag(T305, qs100_in_a(T309))
U41_ag(T305, qs100_out_a(T309)) → U42_ag(T305, qs100_in_a(X12))
U42_ag(T305, qs100_out_a(X12)) → qs1_out_ag(.(T305, []), [])
qs1_in_ag(.(T347, .(T348, T349)), T329) → U43_ag(T347, T348, T349, T329, less13_in_aa(T347, T348))
U43_ag(T347, T348, T349, T329, less13_out_aa(T347, T348)) → qs1_out_ag(.(T347, .(T348, T349)), T329)
qs1_in_ag(.(T352, .(T354, T353)), T329) → U44_ag(T352, T354, T353, T329, less13_in_aa(T352, T354))
U44_ag(T352, T354, T353, T329, less13_out_aa(T352, T354)) → U45_ag(T352, T354, T353, T329, part23_in_gaaa(T352, T353, X581, X582))
U45_ag(T352, T354, T353, T329, part23_out_gaaa(T352, T353, X581, X582)) → qs1_out_ag(.(T352, .(T354, T353)), T329)
qs1_in_ag(.(T352, .(T363, T353)), T329) → U46_ag(T352, T363, T353, T329, less13_in_aa(T352, T363))
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U47_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T362))
U47_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T362)) → U48_ag(T352, T363, T353, T329, qs39_in_aaa(T363, T361, X543))
U48_ag(T352, T363, T353, T329, qs39_out_aaa(T363, T361, X543)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
U46_ag(T352, T363, T353, T329, less13_out_aa(T352, T363)) → U49_ag(T352, T363, T353, T329, part23_in_gaaa(T352, T353, T361, T371))
U49_ag(T352, T363, T353, T329, part23_out_gaaa(T352, T353, T361, T371)) → U50_ag(T352, T363, T353, T329, T371, qs39_in_aaa(T363, T361, T370))
U50_ag(T352, T363, T353, T329, T371, qs39_out_aaa(T363, T361, T370)) → U51_ag(T352, T363, T353, T329, qs60_in_aa(T371, X544))
U51_ag(T352, T363, T353, T329, qs60_out_aa(T371, X544)) → qs1_out_ag(.(T352, .(T363, T353)), T329)
qs1_in_ag(.(T390, .(T363, T353)), .(T390, T391)) → U52_ag(T390, T363, T353, T391, less13_in_ga(T390, T363))
U52_ag(T390, T363, T353, T391, less13_out_ga(T390, T363)) → U53_ag(T390, T363, T353, T391, part23_in_gaaa(T390, T353, T361, T371))
U53_ag(T390, T363, T353, T391, part23_out_gaaa(T390, T353, T361, T371)) → U54_ag(T390, T363, T353, T391, T371, qs39_in_aag(T363, T361, []))
qs39_in_aag(T122, T123, X234) → U22_aag(T122, T123, X234, p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234))
p43_in_aaaaaag(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
U10_aaaaaag(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)
p43_in_aaaaaag(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_aaaaaag(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U12_aaaaaag(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaag(T129, T123, T127, T128, X232, X233, X234)
p43_in_aaaaaag(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_aaaaaag(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U15_aaaaaag(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaag(T185, T123, T127, T184, T183, X233, X234)
p43_in_aaaaaag(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_aaaaaag(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
U18_aaaaaag(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_in_aaag(T198, T199, T197, X234))
app71_in_aaag([], T212, T213, .(T212, T213)) → app71_out_aaag([], T212, T213, .(T212, T213))
app71_in_aaag(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaag(T222, T226, T227, T228, X403, app71_in_aaag(T226, T227, T228, X403))
U21_aaag(T222, T226, T227, T228, X403, app71_out_aaag(T226, T227, T228, X403)) → app71_out_aaag(.(T222, T226), T227, T228, .(T222, X403))
U19_aaaaaag(T199, T123, T127, T184, T198, T197, X234, app71_out_aaag(T198, T199, T197, X234)) → p43_out_aaaaaag(T199, T123, T127, T184, T198, T197, X234)
U22_aag(T122, T123, X234, p43_out_aaaaaag(T122, T123, X230, X231, X232, X233, X234)) → qs39_out_aag(T122, T123, X234)
U54_ag(T390, T363, T353, T391, T371, qs39_out_aag(T363, T361, [])) → U55_ag(T390, T363, T353, T391, qs60_in_ag(T371, T391))
qs60_in_ag([], []) → qs60_out_ag([], [])
qs60_in_ag(.(T192, T193), X370) → U20_ag(T192, T193, X370, p43_in_aaaaaag(T192, T193, X366, X367, X368, X369, X370))
U20_ag(T192, T193, X370, p43_out_aaaaaag(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_ag(.(T192, T193), X370)
U55_ag(T390, T363, T353, T391, qs60_out_ag(T371, T391)) → qs1_out_ag(.(T390, .(T363, T353)), .(T390, T391))
qs1_in_ag(.(T404, .(T363, T353)), .(T402, T406)) → U56_ag(T404, T363, T353, T402, T406, less13_in_aa(T404, T363))
U56_ag(T404, T363, T353, T402, T406, less13_out_aa(T404, T363)) → U57_ag(T404, T363, T353, T402, T406, part23_in_gaaa(T404, T353, T361, T371))
U57_ag(T404, T363, T353, T402, T406, part23_out_gaaa(T404, T353, T361, T371)) → U58_ag(T404, T363, T353, T402, T406, T371, qs39_in_aaa(T363, T361, .(T402, T407)))
U58_ag(T404, T363, T353, T402, T406, T371, qs39_out_aaa(T363, T361, .(T402, T407))) → U59_ag(T404, T363, T353, T402, T406, T407, qs60_in_aa(T371, T408))
U59_ag(T404, T363, T353, T402, T406, T407, qs60_out_aa(T371, T408)) → U60_ag(T404, T363, T353, T402, T406, app131_in_agag(T407, T404, T408, T406))
app131_in_agag([], T421, T422, .(T421, T422)) → app131_out_agag([], T421, T422, .(T421, T422))
app131_in_agag(.(T433, T438), T435, T439, .(T433, T437)) → U23_agag(T433, T438, T435, T439, T437, app131_in_agag(T438, T435, T439, T437))
U23_agag(T433, T438, T435, T439, T437, app131_out_agag(T438, T435, T439, T437)) → app131_out_agag(.(T433, T438), T435, T439, .(T433, T437))
U60_ag(T404, T363, T353, T402, T406, app131_out_agag(T407, T404, T408, T406)) → qs1_out_ag(.(T404, .(T363, T353)), .(T402, T406))
qs1_in_ag(.(T459, .(T461, T460)), T329) → U61_ag(T459, T461, T460, T329, part44_in_aaaa(T459, T460, X705, X706))
U61_ag(T459, T461, T460, T329, part44_out_aaaa(T459, T460, X705, X706)) → qs1_out_ag(.(T459, .(T461, T460)), T329)
qs1_in_ag(.(T468, .(T467, T460)), T329) → U62_ag(T468, T467, T460, T329, part44_in_aaaa(T468, T460, T465, T466))
U62_ag(T468, T467, T460, T329, part44_out_aaaa(T468, T460, T465, T466)) → U63_ag(T468, T467, T460, T329, qs60_in_aa(T465, X543))
U63_ag(T468, T467, T460, T329, qs60_out_aa(T465, X543)) → qs1_out_ag(.(T468, .(T467, T460)), T329)
qs1_in_ag(.(T476, .(T474, T460)), T329) → U64_ag(T476, T474, T460, T329, part44_in_aaaa(T476, T460, T465, T475))
U64_ag(T476, T474, T460, T329, part44_out_aaaa(T476, T460, T465, T475)) → U65_ag(T476, T474, T460, T329, T475, qs60_in_aa(T465, T473))
U65_ag(T476, T474, T460, T329, T475, qs60_out_aa(T465, T473)) → U66_ag(T476, T474, T460, T329, qs39_in_aaa(T474, T475, X544))
U66_ag(T476, T474, T460, T329, qs39_out_aaa(T474, T475, X544)) → qs1_out_ag(.(T476, .(T474, T460)), T329)
qs1_in_ag(.(T498, .(T474, T460)), .(T498, T499)) → U67_ag(T498, T474, T460, T499, part44_in_gaaa(T498, T460, T465, T475))
part44_in_gaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_gaaa(T148, T149, T150, X282, X283, less13_in_ga(T148, T149))
U6_gaaa(T148, T149, T150, X282, X283, less13_out_ga(T148, T149)) → part44_out_gaaa(T148, .(T149, T150), .(T149, X282), X283)
part44_in_gaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_gaaa(T153, T149, T154, X282, X283, less13_in_ga(T153, T149))
U7_gaaa(T153, T149, T154, X282, X283, less13_out_ga(T153, T149)) → U8_gaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U8_gaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_gaaa(T153, .(T149, T154), .(T149, X282), X283)
part44_in_gaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_gaaa(T175, T173, T176, X333, X334, part44_in_gaaa(T175, T176, X333, X334))
part44_in_gaaa(T182, [], [], []) → part44_out_gaaa(T182, [], [], [])
U9_gaaa(T175, T173, T176, X333, X334, part44_out_gaaa(T175, T176, X333, X334)) → part44_out_gaaa(T175, .(T173, T176), X333, .(T173, X334))
U67_ag(T498, T474, T460, T499, part44_out_gaaa(T498, T460, T465, T475)) → U68_ag(T498, T474, T460, T499, T475, qs60_in_ag(T465, []))
U68_ag(T498, T474, T460, T499, T475, qs60_out_ag(T465, [])) → U69_ag(T498, T474, T460, T499, qs39_in_aag(T474, T475, T499))
U69_ag(T498, T474, T460, T499, qs39_out_aag(T474, T475, T499)) → qs1_out_ag(.(T498, .(T474, T460)), .(T498, T499))
qs1_in_ag(.(T516, .(T474, T460)), .(T510, T514)) → U70_ag(T516, T474, T460, T510, T514, part44_in_aaaa(T516, T460, T465, T475))
U70_ag(T516, T474, T460, T510, T514, part44_out_aaaa(T516, T460, T465, T475)) → U71_ag(T516, T474, T460, T510, T514, T475, qs60_in_aa(T465, .(T510, T515)))
U71_ag(T516, T474, T460, T510, T514, T475, qs60_out_aa(T465, .(T510, T515))) → U72_ag(T516, T474, T460, T510, T514, T515, qs39_in_aaa(T474, T475, T517))
U72_ag(T516, T474, T460, T510, T514, T515, qs39_out_aaa(T474, T475, T517)) → U73_ag(T516, T474, T460, T510, T514, app157_in_aaag(T515, T516, T517, T514))
app157_in_aaag([], T530, T531, .(T530, T531)) → app157_out_aaag([], T530, T531, .(T530, T531))
app157_in_aaag(.(T542, T547), T548, T549, .(T542, T546)) → U24_aaag(T542, T547, T548, T549, T546, app157_in_aaag(T547, T548, T549, T546))
U24_aaag(T542, T547, T548, T549, T546, app157_out_aaag(T547, T548, T549, T546)) → app157_out_aaag(.(T542, T547), T548, T549, .(T542, T546))
U73_ag(T516, T474, T460, T510, T514, app157_out_aaag(T515, T516, T517, T514)) → qs1_out_ag(.(T516, .(T474, T460)), .(T510, T514))
qs1_in_ag(.(T557, []), T329) → U74_ag(T557, T329, qs100_in_a(X543))
U74_ag(T557, T329, qs100_out_a(X543)) → qs1_out_ag(.(T557, []), T329)
qs1_in_ag(.(T557, []), T329) → U75_ag(T557, T329, qs100_in_a(T560))
U75_ag(T557, T329, qs100_out_a(T560)) → U76_ag(T557, T329, qs100_in_a(X544))
U76_ag(T557, T329, qs100_out_a(X544)) → qs1_out_ag(.(T557, []), T329)
U75_ag(T557, T329, qs100_out_a(T560)) → U77_ag(T557, T329, T560, qs100_in_a(T563))
U77_ag(T557, T329, T560, qs100_out_a(T563)) → U78_ag(T557, T329, app157_in_gagg(T560, T557, T563, T329))
app157_in_gagg([], T530, T531, .(T530, T531)) → app157_out_gagg([], T530, T531, .(T530, T531))
app157_in_gagg(.(T542, T547), T548, T549, .(T542, T546)) → U24_gagg(T542, T547, T548, T549, T546, app157_in_gagg(T547, T548, T549, T546))
U24_gagg(T542, T547, T548, T549, T546, app157_out_gagg(T547, T548, T549, T546)) → app157_out_gagg(.(T542, T547), T548, T549, .(T542, T546))
U78_ag(T557, T329, app157_out_gagg(T560, T557, T563, T329)) → qs1_out_ag(.(T557, []), T329)

The argument filtering Pi contains the following mapping:
qs1_in_ag(x1, x2)  =  qs1_in_ag(x2)
[]  =  []
qs1_out_ag(x1, x2)  =  qs1_out_ag
U25_ag(x1, x2, x3, x4)  =  U25_ag(x4)
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
U26_ag(x1, x2, x3, x4)  =  U26_ag(x4)
U27_ag(x1, x2, x3, x4)  =  U27_ag(x4)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x6)
U28_ag(x1, x2, x3, x4)  =  U28_ag(x4)
U29_ag(x1, x2, x3, x4)  =  U29_ag(x4)
U30_ag(x1, x2, x3, x4)  =  U30_ag(x4)
qs39_in_aaa(x1, x2, x3)  =  qs39_in_aaa
U22_aaa(x1, x2, x3, x4)  =  U22_aaa(x4)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
qs39_out_aaa(x1, x2, x3)  =  qs39_out_aaa
U31_ag(x1, x2, x3, x4)  =  U31_ag(x4)
U32_ag(x1, x2, x3, x4, x5)  =  U32_ag(x5)
U33_ag(x1, x2, x3, x4)  =  U33_ag(x4)
U34_ag(x1, x2, x3, x4)  =  U34_ag(x4)
U35_ag(x1, x2, x3, x4)  =  U35_ag(x4)
U36_ag(x1, x2, x3, x4)  =  U36_ag(x4)
U37_ag(x1, x2, x3, x4)  =  U37_ag(x4)
U38_ag(x1, x2, x3, x4, x5)  =  U38_ag(x5)
U39_ag(x1, x2, x3, x4)  =  U39_ag(x4)
U40_ag(x1, x2)  =  U40_ag(x2)
qs100_in_a(x1)  =  qs100_in_a
qs100_out_a(x1)  =  qs100_out_a(x1)
U41_ag(x1, x2)  =  U41_ag(x2)
U42_ag(x1, x2)  =  U42_ag(x2)
U43_ag(x1, x2, x3, x4, x5)  =  U43_ag(x5)
U44_ag(x1, x2, x3, x4, x5)  =  U44_ag(x5)
U45_ag(x1, x2, x3, x4, x5)  =  U45_ag(x5)
U46_ag(x1, x2, x3, x4, x5)  =  U46_ag(x5)
U47_ag(x1, x2, x3, x4, x5)  =  U47_ag(x5)
U48_ag(x1, x2, x3, x4, x5)  =  U48_ag(x5)
U49_ag(x1, x2, x3, x4, x5)  =  U49_ag(x5)
U50_ag(x1, x2, x3, x4, x5, x6)  =  U50_ag(x6)
U51_ag(x1, x2, x3, x4, x5)  =  U51_ag(x5)
U52_ag(x1, x2, x3, x4, x5)  =  U52_ag(x1, x4, x5)
U53_ag(x1, x2, x3, x4, x5)  =  U53_ag(x4, x5)
U54_ag(x1, x2, x3, x4, x5, x6)  =  U54_ag(x4, x6)
qs39_in_aag(x1, x2, x3)  =  qs39_in_aag(x3)
U22_aag(x1, x2, x3, x4)  =  U22_aag(x4)
p43_in_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaag(x7)
U10_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaag(x8)
p43_out_aaaaaag(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaag
U11_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaag(x8)
U12_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaag(x8)
U13_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaag(x8)
U14_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaag(x8)
U15_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaag(x8)
U16_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaag(x7, x8)
U17_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaag(x7, x8)
U18_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaag(x7, x8)
U19_aaaaaag(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaag(x8)
app71_in_aaag(x1, x2, x3, x4)  =  app71_in_aaag(x4)
app71_out_aaag(x1, x2, x3, x4)  =  app71_out_aaag(x1, x2, x3)
U21_aaag(x1, x2, x3, x4, x5, x6)  =  U21_aaag(x1, x6)
qs39_out_aag(x1, x2, x3)  =  qs39_out_aag
U55_ag(x1, x2, x3, x4, x5)  =  U55_ag(x5)
qs60_in_ag(x1, x2)  =  qs60_in_ag(x2)
qs60_out_ag(x1, x2)  =  qs60_out_ag
U20_ag(x1, x2, x3, x4)  =  U20_ag(x4)
U56_ag(x1, x2, x3, x4, x5, x6)  =  U56_ag(x5, x6)
U57_ag(x1, x2, x3, x4, x5, x6)  =  U57_ag(x1, x5, x6)
U58_ag(x1, x2, x3, x4, x5, x6, x7)  =  U58_ag(x1, x5, x7)
U59_ag(x1, x2, x3, x4, x5, x6, x7)  =  U59_ag(x1, x5, x7)
U60_ag(x1, x2, x3, x4, x5, x6)  =  U60_ag(x6)
app131_in_agag(x1, x2, x3, x4)  =  app131_in_agag(x2, x4)
app131_out_agag(x1, x2, x3, x4)  =  app131_out_agag(x1, x3)
U23_agag(x1, x2, x3, x4, x5, x6)  =  U23_agag(x1, x6)
U61_ag(x1, x2, x3, x4, x5)  =  U61_ag(x5)
U62_ag(x1, x2, x3, x4, x5)  =  U62_ag(x5)
U63_ag(x1, x2, x3, x4, x5)  =  U63_ag(x5)
U64_ag(x1, x2, x3, x4, x5)  =  U64_ag(x5)
U65_ag(x1, x2, x3, x4, x5, x6)  =  U65_ag(x6)
U66_ag(x1, x2, x3, x4, x5)  =  U66_ag(x5)
U67_ag(x1, x2, x3, x4, x5)  =  U67_ag(x4, x5)
part44_in_gaaa(x1, x2, x3, x4)  =  part44_in_gaaa(x1)
U6_gaaa(x1, x2, x3, x4, x5, x6)  =  U6_gaaa(x6)
part44_out_gaaa(x1, x2, x3, x4)  =  part44_out_gaaa
U7_gaaa(x1, x2, x3, x4, x5, x6)  =  U7_gaaa(x1, x6)
U8_gaaa(x1, x2, x3, x4, x5, x6)  =  U8_gaaa(x6)
U9_gaaa(x1, x2, x3, x4, x5, x6)  =  U9_gaaa(x6)
U68_ag(x1, x2, x3, x4, x5, x6)  =  U68_ag(x4, x6)
U69_ag(x1, x2, x3, x4, x5)  =  U69_ag(x5)
U70_ag(x1, x2, x3, x4, x5, x6)  =  U70_ag(x5, x6)
U71_ag(x1, x2, x3, x4, x5, x6, x7)  =  U71_ag(x5, x7)
U72_ag(x1, x2, x3, x4, x5, x6, x7)  =  U72_ag(x5, x7)
U73_ag(x1, x2, x3, x4, x5, x6)  =  U73_ag(x6)
app157_in_aaag(x1, x2, x3, x4)  =  app157_in_aaag(x4)
app157_out_aaag(x1, x2, x3, x4)  =  app157_out_aaag(x1, x2, x3)
U24_aaag(x1, x2, x3, x4, x5, x6)  =  U24_aaag(x1, x6)
U74_ag(x1, x2, x3)  =  U74_ag(x3)
U75_ag(x1, x2, x3)  =  U75_ag(x2, x3)
U76_ag(x1, x2, x3)  =  U76_ag(x3)
U77_ag(x1, x2, x3, x4)  =  U77_ag(x2, x3, x4)
U78_ag(x1, x2, x3)  =  U78_ag(x3)
app157_in_gagg(x1, x2, x3, x4)  =  app157_in_gagg(x1, x3, x4)
app157_out_gagg(x1, x2, x3, x4)  =  app157_out_gagg(x2)
U24_gagg(x1, x2, x3, x4, x5, x6)  =  U24_gagg(x6)
P43_IN_AAAAAAA(x1, x2, x3, x4, x5, x6, x7)  =  P43_IN_AAAAAAA
U11_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_AAAAAAA(x8)
QS60_IN_AA(x1, x2)  =  QS60_IN_AA
U13_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_AAAAAAA(x8)
U14_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_AAAAAAA(x8)
U16_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_AAAAAAA(x8)
U17_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_AAAAAAA(x8)

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

(181) UsableRulesProof (EQUIVALENT transformation)

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

(182) Obligation:

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

P43_IN_AAAAAAA(T129, T123, T127, T128, X232, X233, X234) → U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
U11_AAAAAAA(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → QS60_IN_AA(T127, X232)
QS60_IN_AA(.(T192, T193), X370) → P43_IN_AAAAAAA(T192, T193, X366, X367, X368, X369, X370)
P43_IN_AAAAAAA(T185, T123, T127, T184, T183, X233, X234) → U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U14_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → QS60_IN_AA(T184, X233)
U13_AAAAAAA(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → QS60_IN_AA(T127, T183)
P43_IN_AAAAAAA(T199, T123, T127, T184, T198, T197, X234) → U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U17_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → QS60_IN_AA(T184, T197)
U16_AAAAAAA(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → QS60_IN_AA(T127, T198)

The TRS R consists of the following rules:

part44_in_aaaa(T148, .(T149, T150), .(T149, X282), X283) → U6_aaaa(T148, T149, T150, X282, X283, less13_in_aa(T148, T149))
part44_in_aaaa(T153, .(T149, T154), .(T149, X282), X283) → U7_aaaa(T153, T149, T154, X282, X283, less13_in_aa(T153, T149))
part44_in_aaaa(T175, .(T173, T176), X333, .(T173, X334)) → U9_aaaa(T175, T173, T176, X333, X334, part44_in_aaaa(T175, T176, X333, X334))
part44_in_aaaa(T182, [], [], []) → part44_out_aaaa(T182, [], [], [])
qs60_in_aa([], []) → qs60_out_aa([], [])
qs60_in_aa(.(T192, T193), X370) → U20_aa(T192, T193, X370, p43_in_aaaaaaa(T192, T193, X366, X367, X368, X369, X370))
U6_aaaa(T148, T149, T150, X282, X283, less13_out_aa(T148, T149)) → part44_out_aaaa(T148, .(T149, T150), .(T149, X282), X283)
U7_aaaa(T153, T149, T154, X282, X283, less13_out_aa(T153, T149)) → U8_aaaa(T153, T149, T154, X282, X283, part23_in_gaaa(T153, T154, X282, X283))
U9_aaaa(T175, T173, T176, X333, X334, part44_out_aaaa(T175, T176, X333, X334)) → part44_out_aaaa(T175, .(T173, T176), X333, .(T173, X334))
U20_aa(T192, T193, X370, p43_out_aaaaaaa(T192, T193, X366, X367, X368, X369, X370)) → qs60_out_aa(.(T192, T193), X370)
less13_in_aa(0, s(T38)) → less13_out_aa(0, s(T38))
less13_in_aa(s(T45), s(T46)) → U1_aa(T45, T46, less13_in_aa(T45, T46))
U8_aaaa(T153, T149, T154, X282, X283, part23_out_gaaa(T153, T154, X282, X283)) → part44_out_aaaa(T153, .(T149, T154), .(T149, X282), X283)
p43_in_aaaaaaa(T122, T123, X230, X231, X232, X233, X234) → U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_in_aaaa(T122, T123, X230, X231))
p43_in_aaaaaaa(T129, T123, T127, T128, X232, X233, X234) → U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_in_aaaa(T129, T123, T127, T128))
p43_in_aaaaaaa(T185, T123, T127, T184, T183, X233, X234) → U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_in_aaaa(T185, T123, T127, T184))
p43_in_aaaaaaa(T199, T123, T127, T184, T198, T197, X234) → U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_in_aaaa(T199, T123, T127, T184))
U1_aa(T45, T46, less13_out_aa(T45, T46)) → less13_out_aa(s(T45), s(T46))
part23_in_gaaa(T70, .(T73, T74), .(T73, X123), X124) → U2_gaaa(T70, T73, T74, X123, X124, less13_in_ga(T70, T73))
part23_in_gaaa(T70, .(T73, T77), .(T73, X123), X124) → U3_gaaa(T70, T73, T77, X123, X124, less13_in_ga(T70, T73))
part23_in_gaaa(T95, .(T96, T98), X174, .(T96, X175)) → U5_gaaa(T95, T96, T98, X174, X175, part23_in_gaaa(T95, T98, X174, X175))
part23_in_gaaa(T104, [], [], []) → part23_out_gaaa(T104, [], [], [])
U10_aaaaaaa(T122, T123, X230, X231, X232, X233, X234, part44_out_aaaa(T122, T123, X230, X231)) → p43_out_aaaaaaa(T122, T123, X230, X231, X232, X233, X234)
U11_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, part44_out_aaaa(T129, T123, T127, T128)) → U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_in_aa(T127, X232))
U13_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, part44_out_aaaa(T185, T123, T127, T184)) → U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T127, T183))
U16_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, part44_out_aaaa(T199, T123, T127, T184)) → U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T127, T198))
U2_gaaa(T70, T73, T74, X123, X124, less13_out_ga(T70, T73)) → part23_out_gaaa(T70, .(T73, T74), .(T73, X123), X124)
U3_gaaa(T70, T73, T77, X123, X124, less13_out_ga(T70, T73)) → U4_gaaa(T70, T73, T77, X123, X124, part23_in_gaaa(T70, T77, X123, X124))
U5_gaaa(T95, T96, T98, X174, X175, part23_out_gaaa(T95, T98, X174, X175)) → part23_out_gaaa(T95, .(T96, T98), X174, .(T96, X175))
U12_aaaaaaa(T129, T123, T127, T128, X232, X233, X234, qs60_out_aa(T127, X232)) → p43_out_aaaaaaa(T129, T123, T127, T128, X232, X233, X234)
U14_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T127, T183)) → U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_in_aa(T184, X233))
U17_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T127, T198)) → U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_in_aa(T184, T197))
less13_in_ga(0, s(T38)) → less13_out_ga(0, s(T38))
less13_in_ga(s(T45), s(T46)) → U1_ga(T45, T46, less13_in_ga(T45, T46))
U4_gaaa(T70, T73, T77, X123, X124, part23_out_gaaa(T70, T77, X123, X124)) → part23_out_gaaa(T70, .(T73, T77), .(T73, X123), X124)
U15_aaaaaaa(T185, T123, T127, T184, T183, X233, X234, qs60_out_aa(T184, X233)) → p43_out_aaaaaaa(T185, T123, T127, T184, T183, X233, X234)
U18_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, qs60_out_aa(T184, T197)) → U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_in_aaaa(T198, T199, T197, X234))
U1_ga(T45, T46, less13_out_ga(T45, T46)) → less13_out_ga(s(T45), s(T46))
U19_aaaaaaa(T199, T123, T127, T184, T198, T197, X234, app71_out_aaaa(T198, T199, T197, X234)) → p43_out_aaaaaaa(T199, T123, T127, T184, T198, T197, X234)
app71_in_aaaa([], T212, T213, .(T212, T213)) → app71_out_aaaa([], T212, T213, .(T212, T213))
app71_in_aaaa(.(T222, T226), T227, T228, .(T222, X403)) → U21_aaaa(T222, T226, T227, T228, X403, app71_in_aaaa(T226, T227, T228, X403))
U21_aaaa(T222, T226, T227, T228, X403, app71_out_aaaa(T226, T227, T228, X403)) → app71_out_aaaa(.(T222, T226), T227, T228, .(T222, X403))

The argument filtering Pi contains the following mapping:
[]  =  []
less13_in_aa(x1, x2)  =  less13_in_aa
less13_out_aa(x1, x2)  =  less13_out_aa(x1)
U1_aa(x1, x2, x3)  =  U1_aa(x3)
part23_in_gaaa(x1, x2, x3, x4)  =  part23_in_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5, x6)  =  U2_gaaa(x6)
less13_in_ga(x1, x2)  =  less13_in_ga(x1)
0  =  0
less13_out_ga(x1, x2)  =  less13_out_ga
s(x1)  =  s(x1)
U1_ga(x1, x2, x3)  =  U1_ga(x3)
part23_out_gaaa(x1, x2, x3, x4)  =  part23_out_gaaa
U3_gaaa(x1, x2, x3, x4, x5, x6)  =  U3_gaaa(x1, x6)
U4_gaaa(x1, x2, x3, x4, x5, x6)  =  U4_gaaa(x6)
U5_gaaa(x1, x2, x3, x4, x5, x6)  =  U5_gaaa(x6)
p43_in_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_in_aaaaaaa
U10_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_aaaaaaa(x8)
part44_in_aaaa(x1, x2, x3, x4)  =  part44_in_aaaa
U6_aaaa(x1, x2, x3, x4, x5, x6)  =  U6_aaaa(x6)
part44_out_aaaa(x1, x2, x3, x4)  =  part44_out_aaaa
U7_aaaa(x1, x2, x3, x4, x5, x6)  =  U7_aaaa(x6)
U8_aaaa(x1, x2, x3, x4, x5, x6)  =  U8_aaaa(x6)
U9_aaaa(x1, x2, x3, x4, x5, x6)  =  U9_aaaa(x6)
p43_out_aaaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  p43_out_aaaaaaa
U11_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_aaaaaaa(x8)
U12_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U12_aaaaaaa(x8)
qs60_in_aa(x1, x2)  =  qs60_in_aa
qs60_out_aa(x1, x2)  =  qs60_out_aa
U20_aa(x1, x2, x3, x4)  =  U20_aa(x4)
U13_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaaaa(x8)
U14_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaaaa(x8)
U15_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U15_aaaaaaa(x8)
U16_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_aaaaaaa(x8)
U17_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_aaaaaaa(x8)
U18_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U18_aaaaaaa(x8)
U19_aaaaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U19_aaaaaaa(x8)
.(x1, x2)  =  .(x1, x2)
app71_in_aaaa(x1, x2, x3, x4)  =  app71_in_aaaa
app71_out_aaaa(x1, x2, x3, x4)  =  app71_out_aaaa
U21_aaaa(x1, x2, x3, x4, x5, x6)  =  U21_aaaa(x6)
P43_IN_AAAAAAA(x1, x2, x3, x4, x5, x6, x7)  =  P43_IN_AAAAAAA
U11_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_AAAAAAA(x8)
QS60_IN_AA(x1, x2)  =  QS60_IN_AA
U13_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_AAAAAAA(x8)
U14_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_AAAAAAA(x8)
U16_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U16_AAAAAAA(x8)
U17_AAAAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U17_AAAAAAA(x8)

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

(183) PiDPToQDPProof (SOUND transformation)

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

(184) Obligation:

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

P43_IN_AAAAAAAU11_AAAAAAA(part44_in_aaaa)
U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
QS60_IN_AAP43_IN_AAAAAAA
P43_IN_AAAAAAAU13_AAAAAAA(part44_in_aaaa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_in_aa)
U14_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U13_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAAU16_AAAAAAA(part44_in_aaaa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_in_aa)
U17_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → QS60_IN_AA

The TRS R consists of the following rules:

part44_in_aaaaU6_aaaa(less13_in_aa)
part44_in_aaaaU7_aaaa(less13_in_aa)
part44_in_aaaaU9_aaaa(part44_in_aaaa)
part44_in_aaaapart44_out_aaaa
qs60_in_aaqs60_out_aa
qs60_in_aaU20_aa(p43_in_aaaaaaa)
U6_aaaa(less13_out_aa(T148)) → part44_out_aaaa
U7_aaaa(less13_out_aa(T153)) → U8_aaaa(part23_in_gaaa(T153))
U9_aaaa(part44_out_aaaa) → part44_out_aaaa
U20_aa(p43_out_aaaaaaa) → qs60_out_aa
less13_in_aaless13_out_aa(0)
less13_in_aaU1_aa(less13_in_aa)
U8_aaaa(part23_out_gaaa) → part44_out_aaaa
p43_in_aaaaaaaU10_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU11_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU13_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU16_aaaaaaa(part44_in_aaaa)
U1_aa(less13_out_aa(T45)) → less13_out_aa(s(T45))
part23_in_gaaa(T70) → U2_gaaa(less13_in_ga(T70))
part23_in_gaaa(T70) → U3_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T95) → U5_gaaa(part23_in_gaaa(T95))
part23_in_gaaa(T104) → part23_out_gaaa
U10_aaaaaaa(part44_out_aaaa) → p43_out_aaaaaaa
U11_aaaaaaa(part44_out_aaaa) → U12_aaaaaaa(qs60_in_aa)
U13_aaaaaaa(part44_out_aaaa) → U14_aaaaaaa(qs60_in_aa)
U16_aaaaaaa(part44_out_aaaa) → U17_aaaaaaa(qs60_in_aa)
U2_gaaa(less13_out_ga) → part23_out_gaaa
U3_gaaa(T70, less13_out_ga) → U4_gaaa(part23_in_gaaa(T70))
U5_gaaa(part23_out_gaaa) → part23_out_gaaa
U12_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U14_aaaaaaa(qs60_out_aa) → U15_aaaaaaa(qs60_in_aa)
U17_aaaaaaa(qs60_out_aa) → U18_aaaaaaa(qs60_in_aa)
less13_in_ga(0) → less13_out_ga
less13_in_ga(s(T45)) → U1_ga(less13_in_ga(T45))
U4_gaaa(part23_out_gaaa) → part23_out_gaaa
U15_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U18_aaaaaaa(qs60_out_aa) → U19_aaaaaaa(app71_in_aaaa)
U1_ga(less13_out_ga) → less13_out_ga
U19_aaaaaaa(app71_out_aaaa) → p43_out_aaaaaaa
app71_in_aaaaapp71_out_aaaa
app71_in_aaaaU21_aaaa(app71_in_aaaa)
U21_aaaa(app71_out_aaaa) → app71_out_aaaa

The set Q consists of the following terms:

part44_in_aaaa
qs60_in_aa
U6_aaaa(x0)
U7_aaaa(x0)
U9_aaaa(x0)
U20_aa(x0)
less13_in_aa
U8_aaaa(x0)
p43_in_aaaaaaa
U1_aa(x0)
part23_in_gaaa(x0)
U10_aaaaaaa(x0)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
U2_gaaa(x0)
U3_gaaa(x0, x1)
U5_gaaa(x0)
U12_aaaaaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
less13_in_ga(x0)
U4_gaaa(x0)
U15_aaaaaaa(x0)
U18_aaaaaaa(x0)
U1_ga(x0)
U19_aaaaaaa(x0)
app71_in_aaaa
U21_aaaa(x0)

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

(185) Narrowing (SOUND transformation)

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

P43_IN_AAAAAAAU11_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU11_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU11_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU11_AAAAAAA(part44_out_aaaa)

(186) Obligation:

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

U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
QS60_IN_AAP43_IN_AAAAAAA
P43_IN_AAAAAAAU13_AAAAAAA(part44_in_aaaa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_in_aa)
U14_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U13_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAAU16_AAAAAAA(part44_in_aaaa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_in_aa)
U17_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAAU11_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU11_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU11_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU11_AAAAAAA(part44_out_aaaa)

The TRS R consists of the following rules:

part44_in_aaaaU6_aaaa(less13_in_aa)
part44_in_aaaaU7_aaaa(less13_in_aa)
part44_in_aaaaU9_aaaa(part44_in_aaaa)
part44_in_aaaapart44_out_aaaa
qs60_in_aaqs60_out_aa
qs60_in_aaU20_aa(p43_in_aaaaaaa)
U6_aaaa(less13_out_aa(T148)) → part44_out_aaaa
U7_aaaa(less13_out_aa(T153)) → U8_aaaa(part23_in_gaaa(T153))
U9_aaaa(part44_out_aaaa) → part44_out_aaaa
U20_aa(p43_out_aaaaaaa) → qs60_out_aa
less13_in_aaless13_out_aa(0)
less13_in_aaU1_aa(less13_in_aa)
U8_aaaa(part23_out_gaaa) → part44_out_aaaa
p43_in_aaaaaaaU10_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU11_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU13_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU16_aaaaaaa(part44_in_aaaa)
U1_aa(less13_out_aa(T45)) → less13_out_aa(s(T45))
part23_in_gaaa(T70) → U2_gaaa(less13_in_ga(T70))
part23_in_gaaa(T70) → U3_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T95) → U5_gaaa(part23_in_gaaa(T95))
part23_in_gaaa(T104) → part23_out_gaaa
U10_aaaaaaa(part44_out_aaaa) → p43_out_aaaaaaa
U11_aaaaaaa(part44_out_aaaa) → U12_aaaaaaa(qs60_in_aa)
U13_aaaaaaa(part44_out_aaaa) → U14_aaaaaaa(qs60_in_aa)
U16_aaaaaaa(part44_out_aaaa) → U17_aaaaaaa(qs60_in_aa)
U2_gaaa(less13_out_ga) → part23_out_gaaa
U3_gaaa(T70, less13_out_ga) → U4_gaaa(part23_in_gaaa(T70))
U5_gaaa(part23_out_gaaa) → part23_out_gaaa
U12_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U14_aaaaaaa(qs60_out_aa) → U15_aaaaaaa(qs60_in_aa)
U17_aaaaaaa(qs60_out_aa) → U18_aaaaaaa(qs60_in_aa)
less13_in_ga(0) → less13_out_ga
less13_in_ga(s(T45)) → U1_ga(less13_in_ga(T45))
U4_gaaa(part23_out_gaaa) → part23_out_gaaa
U15_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U18_aaaaaaa(qs60_out_aa) → U19_aaaaaaa(app71_in_aaaa)
U1_ga(less13_out_ga) → less13_out_ga
U19_aaaaaaa(app71_out_aaaa) → p43_out_aaaaaaa
app71_in_aaaaapp71_out_aaaa
app71_in_aaaaU21_aaaa(app71_in_aaaa)
U21_aaaa(app71_out_aaaa) → app71_out_aaaa

The set Q consists of the following terms:

part44_in_aaaa
qs60_in_aa
U6_aaaa(x0)
U7_aaaa(x0)
U9_aaaa(x0)
U20_aa(x0)
less13_in_aa
U8_aaaa(x0)
p43_in_aaaaaaa
U1_aa(x0)
part23_in_gaaa(x0)
U10_aaaaaaa(x0)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
U2_gaaa(x0)
U3_gaaa(x0, x1)
U5_gaaa(x0)
U12_aaaaaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
less13_in_ga(x0)
U4_gaaa(x0)
U15_aaaaaaa(x0)
U18_aaaaaaa(x0)
U1_ga(x0)
U19_aaaaaaa(x0)
app71_in_aaaa
U21_aaaa(x0)

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

(187) Narrowing (SOUND transformation)

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

P43_IN_AAAAAAAU13_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU13_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU13_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU13_AAAAAAA(part44_out_aaaa)

(188) Obligation:

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

U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
QS60_IN_AAP43_IN_AAAAAAA
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_in_aa)
U14_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U13_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAAU16_AAAAAAA(part44_in_aaaa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_in_aa)
U17_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAAU11_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU11_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU11_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU11_AAAAAAA(part44_out_aaaa)
P43_IN_AAAAAAAU13_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU13_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU13_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU13_AAAAAAA(part44_out_aaaa)

The TRS R consists of the following rules:

part44_in_aaaaU6_aaaa(less13_in_aa)
part44_in_aaaaU7_aaaa(less13_in_aa)
part44_in_aaaaU9_aaaa(part44_in_aaaa)
part44_in_aaaapart44_out_aaaa
qs60_in_aaqs60_out_aa
qs60_in_aaU20_aa(p43_in_aaaaaaa)
U6_aaaa(less13_out_aa(T148)) → part44_out_aaaa
U7_aaaa(less13_out_aa(T153)) → U8_aaaa(part23_in_gaaa(T153))
U9_aaaa(part44_out_aaaa) → part44_out_aaaa
U20_aa(p43_out_aaaaaaa) → qs60_out_aa
less13_in_aaless13_out_aa(0)
less13_in_aaU1_aa(less13_in_aa)
U8_aaaa(part23_out_gaaa) → part44_out_aaaa
p43_in_aaaaaaaU10_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU11_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU13_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU16_aaaaaaa(part44_in_aaaa)
U1_aa(less13_out_aa(T45)) → less13_out_aa(s(T45))
part23_in_gaaa(T70) → U2_gaaa(less13_in_ga(T70))
part23_in_gaaa(T70) → U3_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T95) → U5_gaaa(part23_in_gaaa(T95))
part23_in_gaaa(T104) → part23_out_gaaa
U10_aaaaaaa(part44_out_aaaa) → p43_out_aaaaaaa
U11_aaaaaaa(part44_out_aaaa) → U12_aaaaaaa(qs60_in_aa)
U13_aaaaaaa(part44_out_aaaa) → U14_aaaaaaa(qs60_in_aa)
U16_aaaaaaa(part44_out_aaaa) → U17_aaaaaaa(qs60_in_aa)
U2_gaaa(less13_out_ga) → part23_out_gaaa
U3_gaaa(T70, less13_out_ga) → U4_gaaa(part23_in_gaaa(T70))
U5_gaaa(part23_out_gaaa) → part23_out_gaaa
U12_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U14_aaaaaaa(qs60_out_aa) → U15_aaaaaaa(qs60_in_aa)
U17_aaaaaaa(qs60_out_aa) → U18_aaaaaaa(qs60_in_aa)
less13_in_ga(0) → less13_out_ga
less13_in_ga(s(T45)) → U1_ga(less13_in_ga(T45))
U4_gaaa(part23_out_gaaa) → part23_out_gaaa
U15_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U18_aaaaaaa(qs60_out_aa) → U19_aaaaaaa(app71_in_aaaa)
U1_ga(less13_out_ga) → less13_out_ga
U19_aaaaaaa(app71_out_aaaa) → p43_out_aaaaaaa
app71_in_aaaaapp71_out_aaaa
app71_in_aaaaU21_aaaa(app71_in_aaaa)
U21_aaaa(app71_out_aaaa) → app71_out_aaaa

The set Q consists of the following terms:

part44_in_aaaa
qs60_in_aa
U6_aaaa(x0)
U7_aaaa(x0)
U9_aaaa(x0)
U20_aa(x0)
less13_in_aa
U8_aaaa(x0)
p43_in_aaaaaaa
U1_aa(x0)
part23_in_gaaa(x0)
U10_aaaaaaa(x0)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
U2_gaaa(x0)
U3_gaaa(x0, x1)
U5_gaaa(x0)
U12_aaaaaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
less13_in_ga(x0)
U4_gaaa(x0)
U15_aaaaaaa(x0)
U18_aaaaaaa(x0)
U1_ga(x0)
U19_aaaaaaa(x0)
app71_in_aaaa
U21_aaaa(x0)

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

(189) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_in_aa) at position [0] we obtained the following new rules [LPAR04]:

U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_out_aa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(U20_aa(p43_in_aaaaaaa))

(190) Obligation:

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

U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
QS60_IN_AAP43_IN_AAAAAAA
U14_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U13_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAAU16_AAAAAAA(part44_in_aaaa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_in_aa)
U17_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAAU11_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU11_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU11_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU11_AAAAAAA(part44_out_aaaa)
P43_IN_AAAAAAAU13_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU13_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU13_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU13_AAAAAAA(part44_out_aaaa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_out_aa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(U20_aa(p43_in_aaaaaaa))

The TRS R consists of the following rules:

part44_in_aaaaU6_aaaa(less13_in_aa)
part44_in_aaaaU7_aaaa(less13_in_aa)
part44_in_aaaaU9_aaaa(part44_in_aaaa)
part44_in_aaaapart44_out_aaaa
qs60_in_aaqs60_out_aa
qs60_in_aaU20_aa(p43_in_aaaaaaa)
U6_aaaa(less13_out_aa(T148)) → part44_out_aaaa
U7_aaaa(less13_out_aa(T153)) → U8_aaaa(part23_in_gaaa(T153))
U9_aaaa(part44_out_aaaa) → part44_out_aaaa
U20_aa(p43_out_aaaaaaa) → qs60_out_aa
less13_in_aaless13_out_aa(0)
less13_in_aaU1_aa(less13_in_aa)
U8_aaaa(part23_out_gaaa) → part44_out_aaaa
p43_in_aaaaaaaU10_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU11_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU13_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU16_aaaaaaa(part44_in_aaaa)
U1_aa(less13_out_aa(T45)) → less13_out_aa(s(T45))
part23_in_gaaa(T70) → U2_gaaa(less13_in_ga(T70))
part23_in_gaaa(T70) → U3_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T95) → U5_gaaa(part23_in_gaaa(T95))
part23_in_gaaa(T104) → part23_out_gaaa
U10_aaaaaaa(part44_out_aaaa) → p43_out_aaaaaaa
U11_aaaaaaa(part44_out_aaaa) → U12_aaaaaaa(qs60_in_aa)
U13_aaaaaaa(part44_out_aaaa) → U14_aaaaaaa(qs60_in_aa)
U16_aaaaaaa(part44_out_aaaa) → U17_aaaaaaa(qs60_in_aa)
U2_gaaa(less13_out_ga) → part23_out_gaaa
U3_gaaa(T70, less13_out_ga) → U4_gaaa(part23_in_gaaa(T70))
U5_gaaa(part23_out_gaaa) → part23_out_gaaa
U12_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U14_aaaaaaa(qs60_out_aa) → U15_aaaaaaa(qs60_in_aa)
U17_aaaaaaa(qs60_out_aa) → U18_aaaaaaa(qs60_in_aa)
less13_in_ga(0) → less13_out_ga
less13_in_ga(s(T45)) → U1_ga(less13_in_ga(T45))
U4_gaaa(part23_out_gaaa) → part23_out_gaaa
U15_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U18_aaaaaaa(qs60_out_aa) → U19_aaaaaaa(app71_in_aaaa)
U1_ga(less13_out_ga) → less13_out_ga
U19_aaaaaaa(app71_out_aaaa) → p43_out_aaaaaaa
app71_in_aaaaapp71_out_aaaa
app71_in_aaaaU21_aaaa(app71_in_aaaa)
U21_aaaa(app71_out_aaaa) → app71_out_aaaa

The set Q consists of the following terms:

part44_in_aaaa
qs60_in_aa
U6_aaaa(x0)
U7_aaaa(x0)
U9_aaaa(x0)
U20_aa(x0)
less13_in_aa
U8_aaaa(x0)
p43_in_aaaaaaa
U1_aa(x0)
part23_in_gaaa(x0)
U10_aaaaaaa(x0)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
U2_gaaa(x0)
U3_gaaa(x0, x1)
U5_gaaa(x0)
U12_aaaaaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
less13_in_ga(x0)
U4_gaaa(x0)
U15_aaaaaaa(x0)
U18_aaaaaaa(x0)
U1_ga(x0)
U19_aaaaaaa(x0)
app71_in_aaaa
U21_aaaa(x0)

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

(191) Narrowing (SOUND transformation)

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

P43_IN_AAAAAAAU16_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU16_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU16_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU16_AAAAAAA(part44_out_aaaa)

(192) Obligation:

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

U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
QS60_IN_AAP43_IN_AAAAAAA
U14_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U13_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_in_aa)
U17_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAAU11_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU11_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU11_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU11_AAAAAAA(part44_out_aaaa)
P43_IN_AAAAAAAU13_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU13_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU13_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU13_AAAAAAA(part44_out_aaaa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_out_aa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(U20_aa(p43_in_aaaaaaa))
P43_IN_AAAAAAAU16_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU16_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU16_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU16_AAAAAAA(part44_out_aaaa)

The TRS R consists of the following rules:

part44_in_aaaaU6_aaaa(less13_in_aa)
part44_in_aaaaU7_aaaa(less13_in_aa)
part44_in_aaaaU9_aaaa(part44_in_aaaa)
part44_in_aaaapart44_out_aaaa
qs60_in_aaqs60_out_aa
qs60_in_aaU20_aa(p43_in_aaaaaaa)
U6_aaaa(less13_out_aa(T148)) → part44_out_aaaa
U7_aaaa(less13_out_aa(T153)) → U8_aaaa(part23_in_gaaa(T153))
U9_aaaa(part44_out_aaaa) → part44_out_aaaa
U20_aa(p43_out_aaaaaaa) → qs60_out_aa
less13_in_aaless13_out_aa(0)
less13_in_aaU1_aa(less13_in_aa)
U8_aaaa(part23_out_gaaa) → part44_out_aaaa
p43_in_aaaaaaaU10_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU11_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU13_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU16_aaaaaaa(part44_in_aaaa)
U1_aa(less13_out_aa(T45)) → less13_out_aa(s(T45))
part23_in_gaaa(T70) → U2_gaaa(less13_in_ga(T70))
part23_in_gaaa(T70) → U3_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T95) → U5_gaaa(part23_in_gaaa(T95))
part23_in_gaaa(T104) → part23_out_gaaa
U10_aaaaaaa(part44_out_aaaa) → p43_out_aaaaaaa
U11_aaaaaaa(part44_out_aaaa) → U12_aaaaaaa(qs60_in_aa)
U13_aaaaaaa(part44_out_aaaa) → U14_aaaaaaa(qs60_in_aa)
U16_aaaaaaa(part44_out_aaaa) → U17_aaaaaaa(qs60_in_aa)
U2_gaaa(less13_out_ga) → part23_out_gaaa
U3_gaaa(T70, less13_out_ga) → U4_gaaa(part23_in_gaaa(T70))
U5_gaaa(part23_out_gaaa) → part23_out_gaaa
U12_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U14_aaaaaaa(qs60_out_aa) → U15_aaaaaaa(qs60_in_aa)
U17_aaaaaaa(qs60_out_aa) → U18_aaaaaaa(qs60_in_aa)
less13_in_ga(0) → less13_out_ga
less13_in_ga(s(T45)) → U1_ga(less13_in_ga(T45))
U4_gaaa(part23_out_gaaa) → part23_out_gaaa
U15_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U18_aaaaaaa(qs60_out_aa) → U19_aaaaaaa(app71_in_aaaa)
U1_ga(less13_out_ga) → less13_out_ga
U19_aaaaaaa(app71_out_aaaa) → p43_out_aaaaaaa
app71_in_aaaaapp71_out_aaaa
app71_in_aaaaU21_aaaa(app71_in_aaaa)
U21_aaaa(app71_out_aaaa) → app71_out_aaaa

The set Q consists of the following terms:

part44_in_aaaa
qs60_in_aa
U6_aaaa(x0)
U7_aaaa(x0)
U9_aaaa(x0)
U20_aa(x0)
less13_in_aa
U8_aaaa(x0)
p43_in_aaaaaaa
U1_aa(x0)
part23_in_gaaa(x0)
U10_aaaaaaa(x0)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
U2_gaaa(x0)
U3_gaaa(x0, x1)
U5_gaaa(x0)
U12_aaaaaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
less13_in_ga(x0)
U4_gaaa(x0)
U15_aaaaaaa(x0)
U18_aaaaaaa(x0)
U1_ga(x0)
U19_aaaaaaa(x0)
app71_in_aaaa
U21_aaaa(x0)

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

(193) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_in_aa) at position [0] we obtained the following new rules [LPAR04]:

U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_out_aa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(U20_aa(p43_in_aaaaaaa))

(194) Obligation:

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

U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
QS60_IN_AAP43_IN_AAAAAAA
U14_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U13_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
U17_AAAAAAA(qs60_out_aa) → QS60_IN_AA
U16_AAAAAAA(part44_out_aaaa) → QS60_IN_AA
P43_IN_AAAAAAAU11_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU11_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU11_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU11_AAAAAAA(part44_out_aaaa)
P43_IN_AAAAAAAU13_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU13_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU13_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU13_AAAAAAA(part44_out_aaaa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(qs60_out_aa)
U13_AAAAAAA(part44_out_aaaa) → U14_AAAAAAA(U20_aa(p43_in_aaaaaaa))
P43_IN_AAAAAAAU16_AAAAAAA(U6_aaaa(less13_in_aa))
P43_IN_AAAAAAAU16_AAAAAAA(U7_aaaa(less13_in_aa))
P43_IN_AAAAAAAU16_AAAAAAA(U9_aaaa(part44_in_aaaa))
P43_IN_AAAAAAAU16_AAAAAAA(part44_out_aaaa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(qs60_out_aa)
U16_AAAAAAA(part44_out_aaaa) → U17_AAAAAAA(U20_aa(p43_in_aaaaaaa))

The TRS R consists of the following rules:

part44_in_aaaaU6_aaaa(less13_in_aa)
part44_in_aaaaU7_aaaa(less13_in_aa)
part44_in_aaaaU9_aaaa(part44_in_aaaa)
part44_in_aaaapart44_out_aaaa
qs60_in_aaqs60_out_aa
qs60_in_aaU20_aa(p43_in_aaaaaaa)
U6_aaaa(less13_out_aa(T148)) → part44_out_aaaa
U7_aaaa(less13_out_aa(T153)) → U8_aaaa(part23_in_gaaa(T153))
U9_aaaa(part44_out_aaaa) → part44_out_aaaa
U20_aa(p43_out_aaaaaaa) → qs60_out_aa
less13_in_aaless13_out_aa(0)
less13_in_aaU1_aa(less13_in_aa)
U8_aaaa(part23_out_gaaa) → part44_out_aaaa
p43_in_aaaaaaaU10_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU11_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU13_aaaaaaa(part44_in_aaaa)
p43_in_aaaaaaaU16_aaaaaaa(part44_in_aaaa)
U1_aa(less13_out_aa(T45)) → less13_out_aa(s(T45))
part23_in_gaaa(T70) → U2_gaaa(less13_in_ga(T70))
part23_in_gaaa(T70) → U3_gaaa(T70, less13_in_ga(T70))
part23_in_gaaa(T95) → U5_gaaa(part23_in_gaaa(T95))
part23_in_gaaa(T104) → part23_out_gaaa
U10_aaaaaaa(part44_out_aaaa) → p43_out_aaaaaaa
U11_aaaaaaa(part44_out_aaaa) → U12_aaaaaaa(qs60_in_aa)
U13_aaaaaaa(part44_out_aaaa) → U14_aaaaaaa(qs60_in_aa)
U16_aaaaaaa(part44_out_aaaa) → U17_aaaaaaa(qs60_in_aa)
U2_gaaa(less13_out_ga) → part23_out_gaaa
U3_gaaa(T70, less13_out_ga) → U4_gaaa(part23_in_gaaa(T70))
U5_gaaa(part23_out_gaaa) → part23_out_gaaa
U12_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U14_aaaaaaa(qs60_out_aa) → U15_aaaaaaa(qs60_in_aa)
U17_aaaaaaa(qs60_out_aa) → U18_aaaaaaa(qs60_in_aa)
less13_in_ga(0) → less13_out_ga
less13_in_ga(s(T45)) → U1_ga(less13_in_ga(T45))
U4_gaaa(part23_out_gaaa) → part23_out_gaaa
U15_aaaaaaa(qs60_out_aa) → p43_out_aaaaaaa
U18_aaaaaaa(qs60_out_aa) → U19_aaaaaaa(app71_in_aaaa)
U1_ga(less13_out_ga) → less13_out_ga
U19_aaaaaaa(app71_out_aaaa) → p43_out_aaaaaaa
app71_in_aaaaapp71_out_aaaa
app71_in_aaaaU21_aaaa(app71_in_aaaa)
U21_aaaa(app71_out_aaaa) → app71_out_aaaa

The set Q consists of the following terms:

part44_in_aaaa
qs60_in_aa
U6_aaaa(x0)
U7_aaaa(x0)
U9_aaaa(x0)
U20_aa(x0)
less13_in_aa
U8_aaaa(x0)
p43_in_aaaaaaa
U1_aa(x0)
part23_in_gaaa(x0)
U10_aaaaaaa(x0)
U11_aaaaaaa(x0)
U13_aaaaaaa(x0)
U16_aaaaaaa(x0)
U2_gaaa(x0)
U3_gaaa(x0, x1)
U5_gaaa(x0)
U12_aaaaaaa(x0)
U14_aaaaaaa(x0)
U17_aaaaaaa(x0)
less13_in_ga(x0)
U4_gaaa(x0)
U15_aaaaaaa(x0)
U18_aaaaaaa(x0)
U1_ga(x0)
U19_aaaaaaa(x0)
app71_in_aaaa
U21_aaaa(x0)

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

(195) NonTerminationProof (EQUIVALENT transformation)

We used the non-termination processor [FROCOS05] to show that the DP problem is infinite.
Found a loop by narrowing to the left:

s = QS60_IN_AA evaluates to t =QS60_IN_AA

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




Rewriting sequence

QS60_IN_AAP43_IN_AAAAAAA
with rule QS60_IN_AAP43_IN_AAAAAAA at position [] and matcher [ ]

P43_IN_AAAAAAAU11_AAAAAAA(part44_out_aaaa)
with rule P43_IN_AAAAAAAU11_AAAAAAA(part44_out_aaaa) at position [] and matcher [ ]

U11_AAAAAAA(part44_out_aaaa)QS60_IN_AA
with rule U11_AAAAAAA(part44_out_aaaa) → QS60_IN_AA

Now applying the matcher to the start term leads to a term which is equal to the last term in the rewriting sequence


All these steps are and every following step will be a correct step w.r.t to Q.



(196) NO