(0) Obligation:

Clauses:

mergesort([], [], Ls).
mergesort(.(X, []), .(X, []), Ls).
mergesort(.(X, .(Y, Xs)), Ys, .(H, Ls)) :- ','(split(.(X, .(Y, Xs)), X1s, X2s, .(H, Ls)), ','(mergesort(X1s, Y1s, Ls), ','(mergesort(X2s, Y2s, Ls), merge(Y1s, Y2s, Ys, .(H, Ls))))).
split([], [], [], Ls).
split(.(X, Xs), .(X, Ys), Zs, .(H, Ls)) :- split(Xs, Zs, Ys, Ls).
merge([], Xs, Xs, Ls).
merge(Xs, [], Xs, Ls).
merge(.(X, Xs), .(Y, Ys), .(X, Zs), .(H, Ls)) :- ','(le(X, Y), merge(Xs, .(Y, Ys), Zs, Ls)).
merge(.(X, Xs), .(Y, Ys), .(Y, Zs), .(H, Ls)) :- ','(gt(X, Y), merge(.(X, Xs), Ys, Zs, Ls)).
gt(s(X), s(Y)) :- gt(X, Y).
gt(s(0), 0).
le(s(X), s(Y)) :- le(X, Y).
le(0, s(0)).
le(0, 0).

Queries:

mergesort(g,a,a).

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph.

(2) Obligation:

Clauses:

split21([], [], [], T83).
split21(.(T92, T93), .(T92, X162), X163, .(T94, T96)) :- split21(T93, X163, X162, T96).
split17(T72, T73, .(T72, X124), X125, .(T74, T76)) :- split21(T73, X125, X124, T76).
mergesort33([], [], T123).
mergesort33(.(T132, []), .(T132, []), T133).
mergesort33(.(T144, .(T145, T146)), X234, .(T149, T150)) :- split17(T144, .(T145, T146), X230, X231, .(T149, T150)).
mergesort33(.(T144, .(T145, T146)), X234, .(T159, T158)) :- ','(split17(T144, .(T145, T146), T156, T157, .(T159, T158)), mergesort33(T156, X232, T158)).
mergesort33(.(T144, .(T145, T146)), X234, .(T169, T168)) :- ','(split17(T144, .(T145, T146), T156, T157, .(T169, T168)), ','(mergesort33(T156, T167, T168), mergesort33(T157, X233, T168))).
mergesort33(.(T144, .(T145, T146)), X234, .(T175, T176)) :- ','(split17(T144, .(T145, T146), T156, T157, .(T175, T176)), ','(mergesort33(T156, T167, T176), ','(mergesort33(T157, T174, T176), merge34(T167, T174, X234, T175, T176)))).
merge34([], T203, T203, T204, T205).
merge34(T218, [], T218, T219, T220).
merge34(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) :- p67(T249, T251, T250, T252, T256, T257).
merge34(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) :- p95(T473, T475, T474, T476, T480, T481).
le69(s(T270), s(T271)) :- le69(T270, T271).
le69(0, s(0)).
le69(0, 0).
p67(T249, T251, T250, T252, T256, T257) :- le69(T249, T251).
p67(T249, T292, [], T293, .(T292, T293), T294) :- le69(T249, T292).
p67(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) :- ','(le69(T249, T326), p67(T324, T326, T325, T327, T331, T332)).
p67(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) :- ','(le69(T249, T351), p95(T349, T351, T350, T352, T356, T357)).
gt97(s(T370), s(T371)) :- gt97(T370, T371).
gt97(s(0), 0).
p95(T349, T351, T350, T352, T356, T357) :- gt97(T349, T351).
p95(T392, T351, T393, [], .(T392, T393), T394) :- gt97(T392, T351).
p95(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) :- ','(gt97(T423, T351), p67(T423, T425, T424, T426, T430, T431)).
p95(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) :- ','(gt97(T448, T351), p95(T448, T450, T449, T451, T455, T456)).
mergesort1([], [], T5).
mergesort1(.(T8, []), .(T8, []), T9).
mergesort1(.(T43, .(T44, T45)), T49, .(T50, T48)) :- split17(T44, T45, X80, X79, T48).
mergesort1(.(T43, .(T44, T45)), T58, .(T59, T57)) :- ','(split17(T44, T45, T55, T56, T57), mergesort1(.(T43, T56), X38, T57)).
mergesort1(.(T43, .(T44, T45)), T105, .(T106, T104)) :- ','(split17(T44, T45, T55, T56, T104), ','(mergesort1(.(T43, T56), T103, T104), mergesort33(T55, X39, T104))).
mergesort1(.(T43, .(T44, T45)), T114, .(T115, T116)) :- ','(split17(T44, T45, T55, T56, T116), ','(mergesort1(.(T43, T56), T103, T116), ','(mergesort33(T55, T113, T116), merge34(T103, T113, T114, T115, T116)))).

Queries:

mergesort1(g,a,a).

(3) PrologToPiTRSProof (SOUND transformation)

We use the technique of [LOPSTR]. With regard to the inferred argument filtering the predicates were used in the following modes:
mergesort1_in: (b,f,f)
split17_in: (b,b,f,f,f)
split21_in: (b,f,f,f)
mergesort33_in: (b,f,f)
merge34_in: (f,f,f,f,f)
p67_in: (f,f,f,f,f,f) (f,b,f,f,f,f) (b,f,f,f,f,f)
le69_in: (f,f) (f,b) (b,f)
p95_in: (f,b,f,f,f,f) (b,f,f,f,f,f) (f,f,f,f,f,f)
gt97_in: (f,b) (b,f) (f,f)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x7)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

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

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x7)

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

MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_GAA(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T49, .(T50, T48)) → SPLIT17_IN_GGAAA(T44, T45, X80, X79, T48)
SPLIT17_IN_GGAAA(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_GGAAA(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
SPLIT17_IN_GGAAA(T72, T73, .(T72, X124), X125, .(T74, T76)) → SPLIT21_IN_GAAA(T73, X125, X124, T76)
SPLIT21_IN_GAAA(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_GAAA(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
SPLIT21_IN_GAAA(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → SPLIT21_IN_GAAA(T93, X163, X162, T96)
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_GAA(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_GAA(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_GAA(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
U30_GAA(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → MERGESORT1_IN_GAA(.(T43, T56), X38, T57)
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_GAA(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_GAA(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_GAA(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
U32_GAA(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → MERGESORT1_IN_GAA(.(T43, T56), T103, T104)
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_GAA(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_GAA(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_GAA(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U35_GAA(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → MERGESORT1_IN_GAA(.(T43, T56), T103, T116)
U36_GAA(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_GAA(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
U36_GAA(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → MERGESORT33_IN_GAA(T55, T113, T116)
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_GAA(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T149, T150)) → SPLIT17_IN_GGAAA(T144, .(T145, T146), X230, X231, .(T149, T150))
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_GAA(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_GAA(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_GAA(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
U4_GAA(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → MERGESORT33_IN_GAA(T156, X232, T158)
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_GAA(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_GAA(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
U6_GAA(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → MERGESORT33_IN_GAA(T156, T167, T168)
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_GAA(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_GAA(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_GAA(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U9_GAA(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → MERGESORT33_IN_GAA(T156, T167, T176)
U10_GAA(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_GAA(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U10_GAA(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → MERGESORT33_IN_GAA(T157, T174, T176)
U11_GAA(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_GAA(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
U11_GAA(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → MERGE34_IN_AAAAA(T167, T174, X234, T175, T176)
MERGE34_IN_AAAAA(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_AAAAA(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
MERGE34_IN_AAAAA(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → P67_IN_AAAAAA(T249, T251, T250, T252, T256, T257)
P67_IN_AAAAAA(T249, T251, T250, T252, T256, T257) → U16_AAAAAA(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
P67_IN_AAAAAA(T249, T251, T250, T252, T256, T257) → LE69_IN_AA(T249, T251)
LE69_IN_AA(s(T270), s(T271)) → U15_AA(T270, T271, le69_in_aa(T270, T271))
LE69_IN_AA(s(T270), s(T271)) → LE69_IN_AA(T270, T271)
P67_IN_AAAAAA(T249, T292, [], T293, .(T292, T293), T294) → U17_AAAAAA(T249, T292, T293, T294, le69_in_aa(T249, T292))
P67_IN_AAAAAA(T249, T292, [], T293, .(T292, T293), T294) → LE69_IN_AA(T249, T292)
P67_IN_AAAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_AAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
P67_IN_AAAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → LE69_IN_AA(T249, T326)
U18_AAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_AAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U18_AAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → P67_IN_AGAAAA(T324, T326, T325, T327, T331, T332)
P67_IN_AGAAAA(T249, T251, T250, T252, T256, T257) → U16_AGAAAA(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
P67_IN_AGAAAA(T249, T251, T250, T252, T256, T257) → LE69_IN_AG(T249, T251)
LE69_IN_AG(s(T270), s(T271)) → U15_AG(T270, T271, le69_in_ag(T270, T271))
LE69_IN_AG(s(T270), s(T271)) → LE69_IN_AG(T270, T271)
P67_IN_AGAAAA(T249, T292, [], T293, .(T292, T293), T294) → U17_AGAAAA(T249, T292, T293, T294, le69_in_ag(T249, T292))
P67_IN_AGAAAA(T249, T292, [], T293, .(T292, T293), T294) → LE69_IN_AG(T249, T292)
P67_IN_AGAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_AGAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
P67_IN_AGAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → LE69_IN_AG(T249, T326)
U18_AGAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_AGAAAA(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U18_AGAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → P67_IN_AGAAAA(T324, T326, T325, T327, T331, T332)
P67_IN_AGAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_AGAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
P67_IN_AGAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → LE69_IN_AG(T249, T351)
U20_AGAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_AGAAAA(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U20_AGAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357)
P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357) → U23_AGAAAA(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357) → GT97_IN_AG(T349, T351)
GT97_IN_AG(s(T370), s(T371)) → U22_AG(T370, T371, gt97_in_ag(T370, T371))
GT97_IN_AG(s(T370), s(T371)) → GT97_IN_AG(T370, T371)
P95_IN_AGAAAA(T392, T351, T393, [], .(T392, T393), T394) → U24_AGAAAA(T392, T351, T393, T394, gt97_in_ag(T392, T351))
P95_IN_AGAAAA(T392, T351, T393, [], .(T392, T393), T394) → GT97_IN_AG(T392, T351)
P95_IN_AGAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_AGAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
P95_IN_AGAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → GT97_IN_AG(T423, T351)
U25_AGAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_AGAAAA(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U25_AGAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → P67_IN_GAAAAA(T423, T425, T424, T426, T430, T431)
P67_IN_GAAAAA(T249, T251, T250, T252, T256, T257) → U16_GAAAAA(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
P67_IN_GAAAAA(T249, T251, T250, T252, T256, T257) → LE69_IN_GA(T249, T251)
LE69_IN_GA(s(T270), s(T271)) → U15_GA(T270, T271, le69_in_ga(T270, T271))
LE69_IN_GA(s(T270), s(T271)) → LE69_IN_GA(T270, T271)
P67_IN_GAAAAA(T249, T292, [], T293, .(T292, T293), T294) → U17_GAAAAA(T249, T292, T293, T294, le69_in_ga(T249, T292))
P67_IN_GAAAAA(T249, T292, [], T293, .(T292, T293), T294) → LE69_IN_GA(T249, T292)
P67_IN_GAAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_GAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
P67_IN_GAAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → LE69_IN_GA(T249, T326)
U18_GAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_GAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U18_GAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → P67_IN_AGAAAA(T324, T326, T325, T327, T331, T332)
P67_IN_GAAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_GAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
P67_IN_GAAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → LE69_IN_GA(T249, T351)
U20_GAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_GAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U20_GAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357)
P95_IN_AGAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_AGAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
P95_IN_AGAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → GT97_IN_AG(T448, T351)
U27_AGAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_AGAAAA(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U27_AGAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → P95_IN_GAAAAA(T448, T450, T449, T451, T455, T456)
P95_IN_GAAAAA(T349, T351, T350, T352, T356, T357) → U23_GAAAAA(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
P95_IN_GAAAAA(T349, T351, T350, T352, T356, T357) → GT97_IN_GA(T349, T351)
GT97_IN_GA(s(T370), s(T371)) → U22_GA(T370, T371, gt97_in_ga(T370, T371))
GT97_IN_GA(s(T370), s(T371)) → GT97_IN_GA(T370, T371)
P95_IN_GAAAAA(T392, T351, T393, [], .(T392, T393), T394) → U24_GAAAAA(T392, T351, T393, T394, gt97_in_ga(T392, T351))
P95_IN_GAAAAA(T392, T351, T393, [], .(T392, T393), T394) → GT97_IN_GA(T392, T351)
P95_IN_GAAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_GAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
P95_IN_GAAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → GT97_IN_GA(T423, T351)
U25_GAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_GAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U25_GAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → P67_IN_GAAAAA(T423, T425, T424, T426, T430, T431)
P95_IN_GAAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_GAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
P95_IN_GAAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → GT97_IN_GA(T448, T351)
U27_GAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_GAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U27_GAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448, T450, T449, T451, T455, T456)
P67_IN_AAAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_AAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
P67_IN_AAAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → LE69_IN_AA(T249, T351)
U20_AAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_AAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U20_AAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357)
MERGE34_IN_AAAAA(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_AAAAA(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
MERGE34_IN_AAAAA(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → P95_IN_AAAAAA(T473, T475, T474, T476, T480, T481)
P95_IN_AAAAAA(T349, T351, T350, T352, T356, T357) → U23_AAAAAA(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
P95_IN_AAAAAA(T349, T351, T350, T352, T356, T357) → GT97_IN_AA(T349, T351)
GT97_IN_AA(s(T370), s(T371)) → U22_AA(T370, T371, gt97_in_aa(T370, T371))
GT97_IN_AA(s(T370), s(T371)) → GT97_IN_AA(T370, T371)
P95_IN_AAAAAA(T392, T351, T393, [], .(T392, T393), T394) → U24_AAAAAA(T392, T351, T393, T394, gt97_in_aa(T392, T351))
P95_IN_AAAAAA(T392, T351, T393, [], .(T392, T393), T394) → GT97_IN_AA(T392, T351)
P95_IN_AAAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_AAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
P95_IN_AAAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → GT97_IN_AA(T423, T351)
U25_AAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_AAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U25_AAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → P67_IN_GAAAAA(T423, T425, T424, T426, T430, T431)
P95_IN_AAAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_AAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
P95_IN_AAAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → GT97_IN_AA(T448, T351)
U27_AAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_AAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U27_AAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → P95_IN_GAAAAA(T448, T450, T449, T451, T455, T456)
U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_GAA(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → MERGESORT33_IN_GAA(T157, X233, T168)
U37_GAA(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_GAA(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U37_GAA(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → MERGE34_IN_AAAAA(T103, T113, T114, T115, T116)
U33_GAA(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_GAA(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U33_GAA(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → MERGESORT33_IN_GAA(T55, X39, T104)

The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x7)
MERGESORT1_IN_GAA(x1, x2, x3)  =  MERGESORT1_IN_GAA(x1)
U29_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U29_GAA(x7)
SPLIT17_IN_GGAAA(x1, x2, x3, x4, x5)  =  SPLIT17_IN_GGAAA(x1, x2)
U2_GGAAA(x1, x2, x3, x4, x5, x6, x7)  =  U2_GGAAA(x1, x7)
SPLIT21_IN_GAAA(x1, x2, x3, x4)  =  SPLIT21_IN_GAAA(x1)
U1_GAAA(x1, x2, x3, x4, x5, x6, x7)  =  U1_GAAA(x1, x7)
U30_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U30_GAA(x1, x7)
U31_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U31_GAA(x7)
U32_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U32_GAA(x1, x7)
U33_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_GAA(x7, x8)
U35_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U35_GAA(x1, x7)
U36_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_GAA(x7, x8)
U37_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_GAA(x8)
MERGESORT33_IN_GAA(x1, x2, x3)  =  MERGESORT33_IN_GAA(x1)
U3_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U3_GAA(x7)
U4_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U4_GAA(x7)
U5_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U5_GAA(x7)
U6_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U6_GAA(x7)
U7_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_GAA(x7, x8)
U9_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U9_GAA(x7)
U10_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_GAA(x7, x8)
U11_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_GAA(x8)
U12_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U12_GAA(x7)
MERGE34_IN_AAAAA(x1, x2, x3, x4, x5)  =  MERGE34_IN_AAAAA
U13_AAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_AAAAA(x8)
P67_IN_AAAAAA(x1, x2, x3, x4, x5, x6)  =  P67_IN_AAAAAA
U16_AAAAAA(x1, x2, x3, x4, x5, x6, x7)  =  U16_AAAAAA(x7)
LE69_IN_AA(x1, x2)  =  LE69_IN_AA
U15_AA(x1, x2, x3)  =  U15_AA(x3)
U17_AAAAAA(x1, x2, x3, x4, x5)  =  U17_AAAAAA(x5)
U18_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_AAAAAA(x9)
U19_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_AAAAAA(x1, x2, x9)
P67_IN_AGAAAA(x1, x2, x3, x4, x5, x6)  =  P67_IN_AGAAAA(x2)
U16_AGAAAA(x1, x2, x3, x4, x5, x6, x7)  =  U16_AGAAAA(x7)
LE69_IN_AG(x1, x2)  =  LE69_IN_AG(x2)
U15_AG(x1, x2, x3)  =  U15_AG(x3)
U17_AGAAAA(x1, x2, x3, x4, x5)  =  U17_AGAAAA(x5)
U18_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_AGAAAA(x2, x9)
U19_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_AGAAAA(x1, x9)
U20_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_AGAAAA(x2, x9)
U21_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_AGAAAA(x1, x9)
P95_IN_AGAAAA(x1, x2, x3, x4, x5, x6)  =  P95_IN_AGAAAA(x2)
U23_AGAAAA(x1, x2, x3, x4, x5, x6, x7)  =  U23_AGAAAA(x7)
GT97_IN_AG(x1, x2)  =  GT97_IN_AG(x2)
U22_AG(x1, x2, x3)  =  U22_AG(x3)
U24_AGAAAA(x1, x2, x3, x4, x5)  =  U24_AGAAAA(x5)
U25_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_AGAAAA(x9)
U26_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_AGAAAA(x1, x9)
P67_IN_GAAAAA(x1, x2, x3, x4, x5, x6)  =  P67_IN_GAAAAA(x1)
U16_GAAAAA(x1, x2, x3, x4, x5, x6, x7)  =  U16_GAAAAA(x7)
LE69_IN_GA(x1, x2)  =  LE69_IN_GA(x1)
U15_GA(x1, x2, x3)  =  U15_GA(x3)
U17_GAAAAA(x1, x2, x3, x4, x5)  =  U17_GAAAAA(x5)
U18_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_GAAAAA(x9)
U19_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_GAAAAA(x2, x9)
U20_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_GAAAAA(x9)
U21_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_GAAAAA(x2, x9)
U27_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_AGAAAA(x9)
U28_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_AGAAAA(x1, x9)
P95_IN_GAAAAA(x1, x2, x3, x4, x5, x6)  =  P95_IN_GAAAAA(x1)
U23_GAAAAA(x1, x2, x3, x4, x5, x6, x7)  =  U23_GAAAAA(x7)
GT97_IN_GA(x1, x2)  =  GT97_IN_GA(x1)
U22_GA(x1, x2, x3)  =  U22_GA(x3)
U24_GAAAAA(x1, x2, x3, x4, x5)  =  U24_GAAAAA(x5)
U25_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_GAAAAA(x1, x9)
U26_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_GAAAAA(x2, x9)
U27_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_GAAAAA(x1, x9)
U28_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_GAAAAA(x2, x9)
U20_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_AAAAAA(x9)
U21_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_AAAAAA(x1, x2, x9)
U14_AAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_AAAAA(x8)
P95_IN_AAAAAA(x1, x2, x3, x4, x5, x6)  =  P95_IN_AAAAAA
U23_AAAAAA(x1, x2, x3, x4, x5, x6, x7)  =  U23_AAAAAA(x7)
GT97_IN_AA(x1, x2)  =  GT97_IN_AA
U22_AA(x1, x2, x3)  =  U22_AA(x3)
U24_AAAAAA(x1, x2, x3, x4, x5)  =  U24_AAAAAA(x5)
U25_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_AAAAAA(x9)
U26_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_AAAAAA(x1, x2, x9)
U27_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_AAAAAA(x9)
U28_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_AAAAAA(x1, x2, x9)
U8_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U8_GAA(x7)
U38_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U38_GAA(x7)
U34_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U34_GAA(x7)

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

(6) Obligation:

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

MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_GAA(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T49, .(T50, T48)) → SPLIT17_IN_GGAAA(T44, T45, X80, X79, T48)
SPLIT17_IN_GGAAA(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_GGAAA(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
SPLIT17_IN_GGAAA(T72, T73, .(T72, X124), X125, .(T74, T76)) → SPLIT21_IN_GAAA(T73, X125, X124, T76)
SPLIT21_IN_GAAA(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_GAAA(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
SPLIT21_IN_GAAA(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → SPLIT21_IN_GAAA(T93, X163, X162, T96)
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_GAA(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_GAA(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_GAA(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
U30_GAA(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → MERGESORT1_IN_GAA(.(T43, T56), X38, T57)
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_GAA(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_GAA(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_GAA(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
U32_GAA(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → MERGESORT1_IN_GAA(.(T43, T56), T103, T104)
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_GAA(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_GAA(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_GAA(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U35_GAA(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → MERGESORT1_IN_GAA(.(T43, T56), T103, T116)
U36_GAA(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_GAA(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
U36_GAA(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → MERGESORT33_IN_GAA(T55, T113, T116)
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_GAA(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T149, T150)) → SPLIT17_IN_GGAAA(T144, .(T145, T146), X230, X231, .(T149, T150))
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_GAA(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_GAA(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_GAA(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
U4_GAA(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → MERGESORT33_IN_GAA(T156, X232, T158)
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_GAA(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_GAA(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
U6_GAA(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → MERGESORT33_IN_GAA(T156, T167, T168)
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_GAA(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_GAA(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_GAA(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U9_GAA(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → MERGESORT33_IN_GAA(T156, T167, T176)
U10_GAA(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_GAA(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U10_GAA(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → MERGESORT33_IN_GAA(T157, T174, T176)
U11_GAA(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_GAA(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
U11_GAA(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → MERGE34_IN_AAAAA(T167, T174, X234, T175, T176)
MERGE34_IN_AAAAA(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_AAAAA(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
MERGE34_IN_AAAAA(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → P67_IN_AAAAAA(T249, T251, T250, T252, T256, T257)
P67_IN_AAAAAA(T249, T251, T250, T252, T256, T257) → U16_AAAAAA(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
P67_IN_AAAAAA(T249, T251, T250, T252, T256, T257) → LE69_IN_AA(T249, T251)
LE69_IN_AA(s(T270), s(T271)) → U15_AA(T270, T271, le69_in_aa(T270, T271))
LE69_IN_AA(s(T270), s(T271)) → LE69_IN_AA(T270, T271)
P67_IN_AAAAAA(T249, T292, [], T293, .(T292, T293), T294) → U17_AAAAAA(T249, T292, T293, T294, le69_in_aa(T249, T292))
P67_IN_AAAAAA(T249, T292, [], T293, .(T292, T293), T294) → LE69_IN_AA(T249, T292)
P67_IN_AAAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_AAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
P67_IN_AAAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → LE69_IN_AA(T249, T326)
U18_AAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_AAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U18_AAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → P67_IN_AGAAAA(T324, T326, T325, T327, T331, T332)
P67_IN_AGAAAA(T249, T251, T250, T252, T256, T257) → U16_AGAAAA(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
P67_IN_AGAAAA(T249, T251, T250, T252, T256, T257) → LE69_IN_AG(T249, T251)
LE69_IN_AG(s(T270), s(T271)) → U15_AG(T270, T271, le69_in_ag(T270, T271))
LE69_IN_AG(s(T270), s(T271)) → LE69_IN_AG(T270, T271)
P67_IN_AGAAAA(T249, T292, [], T293, .(T292, T293), T294) → U17_AGAAAA(T249, T292, T293, T294, le69_in_ag(T249, T292))
P67_IN_AGAAAA(T249, T292, [], T293, .(T292, T293), T294) → LE69_IN_AG(T249, T292)
P67_IN_AGAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_AGAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
P67_IN_AGAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → LE69_IN_AG(T249, T326)
U18_AGAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_AGAAAA(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U18_AGAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → P67_IN_AGAAAA(T324, T326, T325, T327, T331, T332)
P67_IN_AGAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_AGAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
P67_IN_AGAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → LE69_IN_AG(T249, T351)
U20_AGAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_AGAAAA(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U20_AGAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357)
P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357) → U23_AGAAAA(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357) → GT97_IN_AG(T349, T351)
GT97_IN_AG(s(T370), s(T371)) → U22_AG(T370, T371, gt97_in_ag(T370, T371))
GT97_IN_AG(s(T370), s(T371)) → GT97_IN_AG(T370, T371)
P95_IN_AGAAAA(T392, T351, T393, [], .(T392, T393), T394) → U24_AGAAAA(T392, T351, T393, T394, gt97_in_ag(T392, T351))
P95_IN_AGAAAA(T392, T351, T393, [], .(T392, T393), T394) → GT97_IN_AG(T392, T351)
P95_IN_AGAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_AGAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
P95_IN_AGAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → GT97_IN_AG(T423, T351)
U25_AGAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_AGAAAA(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U25_AGAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → P67_IN_GAAAAA(T423, T425, T424, T426, T430, T431)
P67_IN_GAAAAA(T249, T251, T250, T252, T256, T257) → U16_GAAAAA(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
P67_IN_GAAAAA(T249, T251, T250, T252, T256, T257) → LE69_IN_GA(T249, T251)
LE69_IN_GA(s(T270), s(T271)) → U15_GA(T270, T271, le69_in_ga(T270, T271))
LE69_IN_GA(s(T270), s(T271)) → LE69_IN_GA(T270, T271)
P67_IN_GAAAAA(T249, T292, [], T293, .(T292, T293), T294) → U17_GAAAAA(T249, T292, T293, T294, le69_in_ga(T249, T292))
P67_IN_GAAAAA(T249, T292, [], T293, .(T292, T293), T294) → LE69_IN_GA(T249, T292)
P67_IN_GAAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_GAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
P67_IN_GAAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → LE69_IN_GA(T249, T326)
U18_GAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_GAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U18_GAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → P67_IN_AGAAAA(T324, T326, T325, T327, T331, T332)
P67_IN_GAAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_GAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
P67_IN_GAAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → LE69_IN_GA(T249, T351)
U20_GAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_GAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U20_GAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357)
P95_IN_AGAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_AGAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
P95_IN_AGAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → GT97_IN_AG(T448, T351)
U27_AGAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_AGAAAA(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U27_AGAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → P95_IN_GAAAAA(T448, T450, T449, T451, T455, T456)
P95_IN_GAAAAA(T349, T351, T350, T352, T356, T357) → U23_GAAAAA(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
P95_IN_GAAAAA(T349, T351, T350, T352, T356, T357) → GT97_IN_GA(T349, T351)
GT97_IN_GA(s(T370), s(T371)) → U22_GA(T370, T371, gt97_in_ga(T370, T371))
GT97_IN_GA(s(T370), s(T371)) → GT97_IN_GA(T370, T371)
P95_IN_GAAAAA(T392, T351, T393, [], .(T392, T393), T394) → U24_GAAAAA(T392, T351, T393, T394, gt97_in_ga(T392, T351))
P95_IN_GAAAAA(T392, T351, T393, [], .(T392, T393), T394) → GT97_IN_GA(T392, T351)
P95_IN_GAAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_GAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
P95_IN_GAAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → GT97_IN_GA(T423, T351)
U25_GAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_GAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U25_GAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → P67_IN_GAAAAA(T423, T425, T424, T426, T430, T431)
P95_IN_GAAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_GAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
P95_IN_GAAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → GT97_IN_GA(T448, T351)
U27_GAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_GAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U27_GAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448, T450, T449, T451, T455, T456)
P67_IN_AAAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_AAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
P67_IN_AAAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → LE69_IN_AA(T249, T351)
U20_AAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_AAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U20_AAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357)
MERGE34_IN_AAAAA(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_AAAAA(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
MERGE34_IN_AAAAA(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → P95_IN_AAAAAA(T473, T475, T474, T476, T480, T481)
P95_IN_AAAAAA(T349, T351, T350, T352, T356, T357) → U23_AAAAAA(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
P95_IN_AAAAAA(T349, T351, T350, T352, T356, T357) → GT97_IN_AA(T349, T351)
GT97_IN_AA(s(T370), s(T371)) → U22_AA(T370, T371, gt97_in_aa(T370, T371))
GT97_IN_AA(s(T370), s(T371)) → GT97_IN_AA(T370, T371)
P95_IN_AAAAAA(T392, T351, T393, [], .(T392, T393), T394) → U24_AAAAAA(T392, T351, T393, T394, gt97_in_aa(T392, T351))
P95_IN_AAAAAA(T392, T351, T393, [], .(T392, T393), T394) → GT97_IN_AA(T392, T351)
P95_IN_AAAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_AAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
P95_IN_AAAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → GT97_IN_AA(T423, T351)
U25_AAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_AAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U25_AAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → P67_IN_GAAAAA(T423, T425, T424, T426, T430, T431)
P95_IN_AAAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_AAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
P95_IN_AAAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → GT97_IN_AA(T448, T351)
U27_AAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_AAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U27_AAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → P95_IN_GAAAAA(T448, T450, T449, T451, T455, T456)
U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_GAA(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → MERGESORT33_IN_GAA(T157, X233, T168)
U37_GAA(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_GAA(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U37_GAA(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → MERGE34_IN_AAAAA(T103, T113, T114, T115, T116)
U33_GAA(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_GAA(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U33_GAA(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → MERGESORT33_IN_GAA(T55, X39, T104)

The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x7)
MERGESORT1_IN_GAA(x1, x2, x3)  =  MERGESORT1_IN_GAA(x1)
U29_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U29_GAA(x7)
SPLIT17_IN_GGAAA(x1, x2, x3, x4, x5)  =  SPLIT17_IN_GGAAA(x1, x2)
U2_GGAAA(x1, x2, x3, x4, x5, x6, x7)  =  U2_GGAAA(x1, x7)
SPLIT21_IN_GAAA(x1, x2, x3, x4)  =  SPLIT21_IN_GAAA(x1)
U1_GAAA(x1, x2, x3, x4, x5, x6, x7)  =  U1_GAAA(x1, x7)
U30_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U30_GAA(x1, x7)
U31_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U31_GAA(x7)
U32_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U32_GAA(x1, x7)
U33_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_GAA(x7, x8)
U35_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U35_GAA(x1, x7)
U36_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_GAA(x7, x8)
U37_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_GAA(x8)
MERGESORT33_IN_GAA(x1, x2, x3)  =  MERGESORT33_IN_GAA(x1)
U3_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U3_GAA(x7)
U4_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U4_GAA(x7)
U5_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U5_GAA(x7)
U6_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U6_GAA(x7)
U7_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_GAA(x7, x8)
U9_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U9_GAA(x7)
U10_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_GAA(x7, x8)
U11_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_GAA(x8)
U12_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U12_GAA(x7)
MERGE34_IN_AAAAA(x1, x2, x3, x4, x5)  =  MERGE34_IN_AAAAA
U13_AAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_AAAAA(x8)
P67_IN_AAAAAA(x1, x2, x3, x4, x5, x6)  =  P67_IN_AAAAAA
U16_AAAAAA(x1, x2, x3, x4, x5, x6, x7)  =  U16_AAAAAA(x7)
LE69_IN_AA(x1, x2)  =  LE69_IN_AA
U15_AA(x1, x2, x3)  =  U15_AA(x3)
U17_AAAAAA(x1, x2, x3, x4, x5)  =  U17_AAAAAA(x5)
U18_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_AAAAAA(x9)
U19_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_AAAAAA(x1, x2, x9)
P67_IN_AGAAAA(x1, x2, x3, x4, x5, x6)  =  P67_IN_AGAAAA(x2)
U16_AGAAAA(x1, x2, x3, x4, x5, x6, x7)  =  U16_AGAAAA(x7)
LE69_IN_AG(x1, x2)  =  LE69_IN_AG(x2)
U15_AG(x1, x2, x3)  =  U15_AG(x3)
U17_AGAAAA(x1, x2, x3, x4, x5)  =  U17_AGAAAA(x5)
U18_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_AGAAAA(x2, x9)
U19_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_AGAAAA(x1, x9)
U20_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_AGAAAA(x2, x9)
U21_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_AGAAAA(x1, x9)
P95_IN_AGAAAA(x1, x2, x3, x4, x5, x6)  =  P95_IN_AGAAAA(x2)
U23_AGAAAA(x1, x2, x3, x4, x5, x6, x7)  =  U23_AGAAAA(x7)
GT97_IN_AG(x1, x2)  =  GT97_IN_AG(x2)
U22_AG(x1, x2, x3)  =  U22_AG(x3)
U24_AGAAAA(x1, x2, x3, x4, x5)  =  U24_AGAAAA(x5)
U25_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_AGAAAA(x9)
U26_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_AGAAAA(x1, x9)
P67_IN_GAAAAA(x1, x2, x3, x4, x5, x6)  =  P67_IN_GAAAAA(x1)
U16_GAAAAA(x1, x2, x3, x4, x5, x6, x7)  =  U16_GAAAAA(x7)
LE69_IN_GA(x1, x2)  =  LE69_IN_GA(x1)
U15_GA(x1, x2, x3)  =  U15_GA(x3)
U17_GAAAAA(x1, x2, x3, x4, x5)  =  U17_GAAAAA(x5)
U18_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_GAAAAA(x9)
U19_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_GAAAAA(x2, x9)
U20_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_GAAAAA(x9)
U21_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_GAAAAA(x2, x9)
U27_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_AGAAAA(x9)
U28_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_AGAAAA(x1, x9)
P95_IN_GAAAAA(x1, x2, x3, x4, x5, x6)  =  P95_IN_GAAAAA(x1)
U23_GAAAAA(x1, x2, x3, x4, x5, x6, x7)  =  U23_GAAAAA(x7)
GT97_IN_GA(x1, x2)  =  GT97_IN_GA(x1)
U22_GA(x1, x2, x3)  =  U22_GA(x3)
U24_GAAAAA(x1, x2, x3, x4, x5)  =  U24_GAAAAA(x5)
U25_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_GAAAAA(x1, x9)
U26_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_GAAAAA(x2, x9)
U27_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_GAAAAA(x1, x9)
U28_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_GAAAAA(x2, x9)
U20_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_AAAAAA(x9)
U21_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_AAAAAA(x1, x2, x9)
U14_AAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_AAAAA(x8)
P95_IN_AAAAAA(x1, x2, x3, x4, x5, x6)  =  P95_IN_AAAAAA
U23_AAAAAA(x1, x2, x3, x4, x5, x6, x7)  =  U23_AAAAAA(x7)
GT97_IN_AA(x1, x2)  =  GT97_IN_AA
U22_AA(x1, x2, x3)  =  U22_AA(x3)
U24_AAAAAA(x1, x2, x3, x4, x5)  =  U24_AAAAAA(x5)
U25_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_AAAAAA(x9)
U26_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_AAAAAA(x1, x2, x9)
U27_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_AAAAAA(x9)
U28_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_AAAAAA(x1, x2, x9)
U8_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U8_GAA(x7)
U38_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U38_GAA(x7)
U34_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U34_GAA(x7)

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

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 10 SCCs with 87 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

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

GT97_IN_AA(s(T370), s(T371)) → GT97_IN_AA(T370, T371)

The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x7)
GT97_IN_AA(x1, x2)  =  GT97_IN_AA

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

(10) UsableRulesProof (EQUIVALENT transformation)

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

(11) Obligation:

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

GT97_IN_AA(s(T370), s(T371)) → GT97_IN_AA(T370, T371)

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

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

(12) PiDPToQDPProof (SOUND transformation)

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

(13) Obligation:

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

GT97_IN_AAGT97_IN_AA

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

(14) NonTerminationProof (EQUIVALENT transformation)

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

s = GT97_IN_AA evaluates to t =GT97_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 GT97_IN_AA to GT97_IN_AA.



(15) NO

(16) Obligation:

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

GT97_IN_GA(s(T370), s(T371)) → GT97_IN_GA(T370, T371)

The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x7)
GT97_IN_GA(x1, x2)  =  GT97_IN_GA(x1)

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

(17) UsableRulesProof (EQUIVALENT transformation)

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

(18) Obligation:

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

GT97_IN_GA(s(T370), s(T371)) → GT97_IN_GA(T370, T371)

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

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

(19) PiDPToQDPProof (SOUND transformation)

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

(20) Obligation:

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

GT97_IN_GA(s(T370)) → GT97_IN_GA(T370)

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:

  • GT97_IN_GA(s(T370)) → GT97_IN_GA(T370)
    The graph contains the following edges 1 > 1

(22) YES

(23) Obligation:

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

LE69_IN_GA(s(T270), s(T271)) → LE69_IN_GA(T270, T271)

The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x7)
LE69_IN_GA(x1, x2)  =  LE69_IN_GA(x1)

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:

LE69_IN_GA(s(T270), s(T271)) → LE69_IN_GA(T270, T271)

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

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:

LE69_IN_GA(s(T270)) → LE69_IN_GA(T270)

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:

  • LE69_IN_GA(s(T270)) → LE69_IN_GA(T270)
    The graph contains the following edges 1 > 1

(29) YES

(30) Obligation:

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

GT97_IN_AG(s(T370), s(T371)) → GT97_IN_AG(T370, T371)

The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x7)
GT97_IN_AG(x1, x2)  =  GT97_IN_AG(x2)

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

(31) UsableRulesProof (EQUIVALENT transformation)

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

(32) Obligation:

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

GT97_IN_AG(s(T370), s(T371)) → GT97_IN_AG(T370, T371)

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

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:

GT97_IN_AG(s(T371)) → GT97_IN_AG(T371)

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:

  • GT97_IN_AG(s(T371)) → GT97_IN_AG(T371)
    The graph contains the following edges 1 > 1

(36) YES

(37) Obligation:

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

LE69_IN_AG(s(T270), s(T271)) → LE69_IN_AG(T270, T271)

The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x7)
LE69_IN_AG(x1, x2)  =  LE69_IN_AG(x2)

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:

LE69_IN_AG(s(T270), s(T271)) → LE69_IN_AG(T270, T271)

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

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:

LE69_IN_AG(s(T271)) → LE69_IN_AG(T271)

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

(42) QDPSizeChangeProof (EQUIVALENT transformation)

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

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

  • LE69_IN_AG(s(T271)) → LE69_IN_AG(T271)
    The graph contains the following edges 1 > 1

(43) YES

(44) Obligation:

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

P67_IN_AGAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_AGAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_AGAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → P67_IN_AGAAAA(T324, T326, T325, T327, T331, T332)
P67_IN_AGAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_AGAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_AGAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357)
P95_IN_AGAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_AGAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_AGAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → P67_IN_GAAAAA(T423, T425, T424, T426, T430, T431)
P67_IN_GAAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_GAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_GAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → P67_IN_AGAAAA(T324, T326, T325, T327, T331, T332)
P67_IN_GAAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_GAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_GAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357)
P95_IN_AGAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_AGAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_AGAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → P95_IN_GAAAAA(T448, T450, T449, T451, T455, T456)
P95_IN_GAAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_GAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_GAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → P67_IN_GAAAAA(T423, T425, T424, T426, T430, T431)
P95_IN_GAAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_GAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_GAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448, T450, T449, T451, T455, T456)

The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x7)
P67_IN_AGAAAA(x1, x2, x3, x4, x5, x6)  =  P67_IN_AGAAAA(x2)
U18_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_AGAAAA(x2, x9)
U20_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_AGAAAA(x2, x9)
P95_IN_AGAAAA(x1, x2, x3, x4, x5, x6)  =  P95_IN_AGAAAA(x2)
U25_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_AGAAAA(x9)
P67_IN_GAAAAA(x1, x2, x3, x4, x5, x6)  =  P67_IN_GAAAAA(x1)
U18_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_GAAAAA(x9)
U20_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_GAAAAA(x9)
U27_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_AGAAAA(x9)
P95_IN_GAAAAA(x1, x2, x3, x4, x5, x6)  =  P95_IN_GAAAAA(x1)
U25_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_GAAAAA(x1, x9)
U27_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_GAAAAA(x1, x9)

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:

P67_IN_AGAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_AGAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_AGAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → P67_IN_AGAAAA(T324, T326, T325, T327, T331, T332)
P67_IN_AGAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_AGAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_AGAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357)
P95_IN_AGAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_AGAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_AGAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → P67_IN_GAAAAA(T423, T425, T424, T426, T430, T431)
P67_IN_GAAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_GAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_GAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → P67_IN_AGAAAA(T324, T326, T325, T327, T331, T332)
P67_IN_GAAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_GAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_GAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357)
P95_IN_AGAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_AGAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_AGAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → P95_IN_GAAAAA(T448, T450, T449, T451, T455, T456)
P95_IN_GAAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_GAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_GAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → P67_IN_GAAAAA(T423, T425, T424, T426, T430, T431)
P95_IN_GAAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_GAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_GAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448, T450, T449, T451, T455, T456)

The TRS R consists of the following rules:

le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x2)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x2)
P67_IN_AGAAAA(x1, x2, x3, x4, x5, x6)  =  P67_IN_AGAAAA(x2)
U18_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_AGAAAA(x2, x9)
U20_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_AGAAAA(x2, x9)
P95_IN_AGAAAA(x1, x2, x3, x4, x5, x6)  =  P95_IN_AGAAAA(x2)
U25_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_AGAAAA(x9)
P67_IN_GAAAAA(x1, x2, x3, x4, x5, x6)  =  P67_IN_GAAAAA(x1)
U18_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_GAAAAA(x9)
U20_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_GAAAAA(x9)
U27_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_AGAAAA(x9)
P95_IN_GAAAAA(x1, x2, x3, x4, x5, x6)  =  P95_IN_GAAAAA(x1)
U25_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_GAAAAA(x1, x9)
U27_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_GAAAAA(x1, x9)

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:

P67_IN_AGAAAA(T326) → U18_AGAAAA(T326, le69_in_ag(T326))
U18_AGAAAA(T326, le69_out_ag(T249)) → P67_IN_AGAAAA(T326)
P67_IN_AGAAAA(T351) → U20_AGAAAA(T351, le69_in_ag(T351))
U20_AGAAAA(T351, le69_out_ag(T249)) → P95_IN_AGAAAA(T351)
P95_IN_AGAAAA(T351) → U25_AGAAAA(gt97_in_ag(T351))
U25_AGAAAA(gt97_out_ag(T423)) → P67_IN_GAAAAA(T423)
P67_IN_GAAAAA(T249) → U18_GAAAAA(le69_in_ga(T249))
U18_GAAAAA(le69_out_ga(T326)) → P67_IN_AGAAAA(T326)
P67_IN_GAAAAA(T249) → U20_GAAAAA(le69_in_ga(T249))
U20_GAAAAA(le69_out_ga(T351)) → P95_IN_AGAAAA(T351)
P95_IN_AGAAAA(T351) → U27_AGAAAA(gt97_in_ag(T351))
U27_AGAAAA(gt97_out_ag(T448)) → P95_IN_GAAAAA(T448)
P95_IN_GAAAAA(T423) → U25_GAAAAA(T423, gt97_in_ga(T423))
U25_GAAAAA(T423, gt97_out_ga(T351)) → P67_IN_GAAAAA(T423)
P95_IN_GAAAAA(T448) → U27_GAAAAA(T448, gt97_in_ga(T448))
U27_GAAAAA(T448, gt97_out_ga(T351)) → P95_IN_GAAAAA(T448)

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(49) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule P67_IN_AGAAAA(T326) → U18_AGAAAA(T326, le69_in_ag(T326)) at position [1] we obtained the following new rules [LPAR04]:

P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0))

(50) Obligation:

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

U18_AGAAAA(T326, le69_out_ag(T249)) → P67_IN_AGAAAA(T326)
P67_IN_AGAAAA(T351) → U20_AGAAAA(T351, le69_in_ag(T351))
U20_AGAAAA(T351, le69_out_ag(T249)) → P95_IN_AGAAAA(T351)
P95_IN_AGAAAA(T351) → U25_AGAAAA(gt97_in_ag(T351))
U25_AGAAAA(gt97_out_ag(T423)) → P67_IN_GAAAAA(T423)
P67_IN_GAAAAA(T249) → U18_GAAAAA(le69_in_ga(T249))
U18_GAAAAA(le69_out_ga(T326)) → P67_IN_AGAAAA(T326)
P67_IN_GAAAAA(T249) → U20_GAAAAA(le69_in_ga(T249))
U20_GAAAAA(le69_out_ga(T351)) → P95_IN_AGAAAA(T351)
P95_IN_AGAAAA(T351) → U27_AGAAAA(gt97_in_ag(T351))
U27_AGAAAA(gt97_out_ag(T448)) → P95_IN_GAAAAA(T448)
P95_IN_GAAAAA(T423) → U25_GAAAAA(T423, gt97_in_ga(T423))
U25_GAAAAA(T423, gt97_out_ga(T351)) → P67_IN_GAAAAA(T423)
P95_IN_GAAAAA(T448) → U27_GAAAAA(T448, gt97_in_ga(T448))
U27_GAAAAA(T448, gt97_out_ga(T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(51) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule P67_IN_AGAAAA(T351) → U20_AGAAAA(T351, le69_in_ag(T351)) at position [1] we obtained the following new rules [LPAR04]:

P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0))

(52) Obligation:

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

U18_AGAAAA(T326, le69_out_ag(T249)) → P67_IN_AGAAAA(T326)
U20_AGAAAA(T351, le69_out_ag(T249)) → P95_IN_AGAAAA(T351)
P95_IN_AGAAAA(T351) → U25_AGAAAA(gt97_in_ag(T351))
U25_AGAAAA(gt97_out_ag(T423)) → P67_IN_GAAAAA(T423)
P67_IN_GAAAAA(T249) → U18_GAAAAA(le69_in_ga(T249))
U18_GAAAAA(le69_out_ga(T326)) → P67_IN_AGAAAA(T326)
P67_IN_GAAAAA(T249) → U20_GAAAAA(le69_in_ga(T249))
U20_GAAAAA(le69_out_ga(T351)) → P95_IN_AGAAAA(T351)
P95_IN_AGAAAA(T351) → U27_AGAAAA(gt97_in_ag(T351))
U27_AGAAAA(gt97_out_ag(T448)) → P95_IN_GAAAAA(T448)
P95_IN_GAAAAA(T423) → U25_GAAAAA(T423, gt97_in_ga(T423))
U25_GAAAAA(T423, gt97_out_ga(T351)) → P67_IN_GAAAAA(T423)
P95_IN_GAAAAA(T448) → U27_GAAAAA(T448, gt97_in_ga(T448))
U27_GAAAAA(T448, gt97_out_ga(T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(53) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule P95_IN_AGAAAA(T351) → U25_AGAAAA(gt97_in_ag(T351)) at position [0] we obtained the following new rules [LPAR04]:

P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(U22_ag(gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(gt97_out_ag(s(0)))

(54) Obligation:

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

U18_AGAAAA(T326, le69_out_ag(T249)) → P67_IN_AGAAAA(T326)
U20_AGAAAA(T351, le69_out_ag(T249)) → P95_IN_AGAAAA(T351)
U25_AGAAAA(gt97_out_ag(T423)) → P67_IN_GAAAAA(T423)
P67_IN_GAAAAA(T249) → U18_GAAAAA(le69_in_ga(T249))
U18_GAAAAA(le69_out_ga(T326)) → P67_IN_AGAAAA(T326)
P67_IN_GAAAAA(T249) → U20_GAAAAA(le69_in_ga(T249))
U20_GAAAAA(le69_out_ga(T351)) → P95_IN_AGAAAA(T351)
P95_IN_AGAAAA(T351) → U27_AGAAAA(gt97_in_ag(T351))
U27_AGAAAA(gt97_out_ag(T448)) → P95_IN_GAAAAA(T448)
P95_IN_GAAAAA(T423) → U25_GAAAAA(T423, gt97_in_ga(T423))
U25_GAAAAA(T423, gt97_out_ga(T351)) → P67_IN_GAAAAA(T423)
P95_IN_GAAAAA(T448) → U27_GAAAAA(T448, gt97_in_ga(T448))
U27_GAAAAA(T448, gt97_out_ga(T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(U22_ag(gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(gt97_out_ag(s(0)))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(55) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule P67_IN_GAAAAA(T249) → U18_GAAAAA(le69_in_ga(T249)) at position [0] we obtained the following new rules [LPAR04]:

P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(le69_out_ga(s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(le69_out_ga(0))

(56) Obligation:

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

U18_AGAAAA(T326, le69_out_ag(T249)) → P67_IN_AGAAAA(T326)
U20_AGAAAA(T351, le69_out_ag(T249)) → P95_IN_AGAAAA(T351)
U25_AGAAAA(gt97_out_ag(T423)) → P67_IN_GAAAAA(T423)
U18_GAAAAA(le69_out_ga(T326)) → P67_IN_AGAAAA(T326)
P67_IN_GAAAAA(T249) → U20_GAAAAA(le69_in_ga(T249))
U20_GAAAAA(le69_out_ga(T351)) → P95_IN_AGAAAA(T351)
P95_IN_AGAAAA(T351) → U27_AGAAAA(gt97_in_ag(T351))
U27_AGAAAA(gt97_out_ag(T448)) → P95_IN_GAAAAA(T448)
P95_IN_GAAAAA(T423) → U25_GAAAAA(T423, gt97_in_ga(T423))
U25_GAAAAA(T423, gt97_out_ga(T351)) → P67_IN_GAAAAA(T423)
P95_IN_GAAAAA(T448) → U27_GAAAAA(T448, gt97_in_ga(T448))
U27_GAAAAA(T448, gt97_out_ga(T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(U22_ag(gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(gt97_out_ag(s(0)))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(le69_out_ga(s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(le69_out_ga(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(57) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule P67_IN_GAAAAA(T249) → U20_GAAAAA(le69_in_ga(T249)) at position [0] we obtained the following new rules [LPAR04]:

P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(le69_out_ga(s(0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(le69_out_ga(0))

(58) Obligation:

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

U18_AGAAAA(T326, le69_out_ag(T249)) → P67_IN_AGAAAA(T326)
U20_AGAAAA(T351, le69_out_ag(T249)) → P95_IN_AGAAAA(T351)
U25_AGAAAA(gt97_out_ag(T423)) → P67_IN_GAAAAA(T423)
U18_GAAAAA(le69_out_ga(T326)) → P67_IN_AGAAAA(T326)
U20_GAAAAA(le69_out_ga(T351)) → P95_IN_AGAAAA(T351)
P95_IN_AGAAAA(T351) → U27_AGAAAA(gt97_in_ag(T351))
U27_AGAAAA(gt97_out_ag(T448)) → P95_IN_GAAAAA(T448)
P95_IN_GAAAAA(T423) → U25_GAAAAA(T423, gt97_in_ga(T423))
U25_GAAAAA(T423, gt97_out_ga(T351)) → P67_IN_GAAAAA(T423)
P95_IN_GAAAAA(T448) → U27_GAAAAA(T448, gt97_in_ga(T448))
U27_GAAAAA(T448, gt97_out_ga(T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(U22_ag(gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(gt97_out_ag(s(0)))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(le69_out_ga(s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(le69_out_ga(0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(le69_out_ga(s(0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(le69_out_ga(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(59) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule P95_IN_AGAAAA(T351) → U27_AGAAAA(gt97_in_ag(T351)) at position [0] we obtained the following new rules [LPAR04]:

P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(U22_ag(gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(gt97_out_ag(s(0)))

(60) Obligation:

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

U18_AGAAAA(T326, le69_out_ag(T249)) → P67_IN_AGAAAA(T326)
U20_AGAAAA(T351, le69_out_ag(T249)) → P95_IN_AGAAAA(T351)
U25_AGAAAA(gt97_out_ag(T423)) → P67_IN_GAAAAA(T423)
U18_GAAAAA(le69_out_ga(T326)) → P67_IN_AGAAAA(T326)
U20_GAAAAA(le69_out_ga(T351)) → P95_IN_AGAAAA(T351)
U27_AGAAAA(gt97_out_ag(T448)) → P95_IN_GAAAAA(T448)
P95_IN_GAAAAA(T423) → U25_GAAAAA(T423, gt97_in_ga(T423))
U25_GAAAAA(T423, gt97_out_ga(T351)) → P67_IN_GAAAAA(T423)
P95_IN_GAAAAA(T448) → U27_GAAAAA(T448, gt97_in_ga(T448))
U27_GAAAAA(T448, gt97_out_ga(T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(U22_ag(gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(gt97_out_ag(s(0)))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(le69_out_ga(s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(le69_out_ga(0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(le69_out_ga(s(0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(le69_out_ga(0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(U22_ag(gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(gt97_out_ag(s(0)))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(61) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule P95_IN_GAAAAA(T423) → U25_GAAAAA(T423, gt97_in_ga(T423)) at position [1] we obtained the following new rules [LPAR04]:

P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(0))

(62) Obligation:

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

U18_AGAAAA(T326, le69_out_ag(T249)) → P67_IN_AGAAAA(T326)
U20_AGAAAA(T351, le69_out_ag(T249)) → P95_IN_AGAAAA(T351)
U25_AGAAAA(gt97_out_ag(T423)) → P67_IN_GAAAAA(T423)
U18_GAAAAA(le69_out_ga(T326)) → P67_IN_AGAAAA(T326)
U20_GAAAAA(le69_out_ga(T351)) → P95_IN_AGAAAA(T351)
U27_AGAAAA(gt97_out_ag(T448)) → P95_IN_GAAAAA(T448)
U25_GAAAAA(T423, gt97_out_ga(T351)) → P67_IN_GAAAAA(T423)
P95_IN_GAAAAA(T448) → U27_GAAAAA(T448, gt97_in_ga(T448))
U27_GAAAAA(T448, gt97_out_ga(T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(U22_ag(gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(gt97_out_ag(s(0)))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(le69_out_ga(s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(le69_out_ga(0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(le69_out_ga(s(0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(le69_out_ga(0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(U22_ag(gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(gt97_out_ag(s(0)))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(63) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule P95_IN_GAAAAA(T448) → U27_GAAAAA(T448, gt97_in_ga(T448)) at position [1] we obtained the following new rules [LPAR04]:

P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(0))

(64) Obligation:

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

U18_AGAAAA(T326, le69_out_ag(T249)) → P67_IN_AGAAAA(T326)
U20_AGAAAA(T351, le69_out_ag(T249)) → P95_IN_AGAAAA(T351)
U25_AGAAAA(gt97_out_ag(T423)) → P67_IN_GAAAAA(T423)
U18_GAAAAA(le69_out_ga(T326)) → P67_IN_AGAAAA(T326)
U20_GAAAAA(le69_out_ga(T351)) → P95_IN_AGAAAA(T351)
U27_AGAAAA(gt97_out_ag(T448)) → P95_IN_GAAAAA(T448)
U25_GAAAAA(T423, gt97_out_ga(T351)) → P67_IN_GAAAAA(T423)
U27_GAAAAA(T448, gt97_out_ga(T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(U22_ag(gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(gt97_out_ag(s(0)))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(le69_out_ga(s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(le69_out_ga(0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(le69_out_ga(s(0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(le69_out_ga(0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(U22_ag(gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(gt97_out_ag(s(0)))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(65) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule U18_AGAAAA(T326, le69_out_ag(T249)) → P67_IN_AGAAAA(T326) we obtained the following new rules [LPAR04]:

U18_AGAAAA(s(z0), le69_out_ag(x1)) → P67_IN_AGAAAA(s(z0))
U18_AGAAAA(s(0), le69_out_ag(0)) → P67_IN_AGAAAA(s(0))
U18_AGAAAA(0, le69_out_ag(0)) → P67_IN_AGAAAA(0)

(66) Obligation:

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

U20_AGAAAA(T351, le69_out_ag(T249)) → P95_IN_AGAAAA(T351)
U25_AGAAAA(gt97_out_ag(T423)) → P67_IN_GAAAAA(T423)
U18_GAAAAA(le69_out_ga(T326)) → P67_IN_AGAAAA(T326)
U20_GAAAAA(le69_out_ga(T351)) → P95_IN_AGAAAA(T351)
U27_AGAAAA(gt97_out_ag(T448)) → P95_IN_GAAAAA(T448)
U25_GAAAAA(T423, gt97_out_ga(T351)) → P67_IN_GAAAAA(T423)
U27_GAAAAA(T448, gt97_out_ga(T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(U22_ag(gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(gt97_out_ag(s(0)))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(le69_out_ga(s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(le69_out_ga(0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(le69_out_ga(s(0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(le69_out_ga(0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(U22_ag(gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(gt97_out_ag(s(0)))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(0))
U18_AGAAAA(s(z0), le69_out_ag(x1)) → P67_IN_AGAAAA(s(z0))
U18_AGAAAA(s(0), le69_out_ag(0)) → P67_IN_AGAAAA(s(0))
U18_AGAAAA(0, le69_out_ag(0)) → P67_IN_AGAAAA(0)

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(67) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule U20_AGAAAA(T351, le69_out_ag(T249)) → P95_IN_AGAAAA(T351) we obtained the following new rules [LPAR04]:

U20_AGAAAA(s(z0), le69_out_ag(x1)) → P95_IN_AGAAAA(s(z0))
U20_AGAAAA(s(0), le69_out_ag(0)) → P95_IN_AGAAAA(s(0))
U20_AGAAAA(0, le69_out_ag(0)) → P95_IN_AGAAAA(0)

(68) Obligation:

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

U25_AGAAAA(gt97_out_ag(T423)) → P67_IN_GAAAAA(T423)
U18_GAAAAA(le69_out_ga(T326)) → P67_IN_AGAAAA(T326)
U20_GAAAAA(le69_out_ga(T351)) → P95_IN_AGAAAA(T351)
U27_AGAAAA(gt97_out_ag(T448)) → P95_IN_GAAAAA(T448)
U25_GAAAAA(T423, gt97_out_ga(T351)) → P67_IN_GAAAAA(T423)
U27_GAAAAA(T448, gt97_out_ga(T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(U22_ag(gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(gt97_out_ag(s(0)))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(le69_out_ga(s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(le69_out_ga(0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(le69_out_ga(s(0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(le69_out_ga(0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(U22_ag(gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(gt97_out_ag(s(0)))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(0))
U18_AGAAAA(s(z0), le69_out_ag(x1)) → P67_IN_AGAAAA(s(z0))
U18_AGAAAA(s(0), le69_out_ag(0)) → P67_IN_AGAAAA(s(0))
U18_AGAAAA(0, le69_out_ag(0)) → P67_IN_AGAAAA(0)
U20_AGAAAA(s(z0), le69_out_ag(x1)) → P95_IN_AGAAAA(s(z0))
U20_AGAAAA(s(0), le69_out_ag(0)) → P95_IN_AGAAAA(s(0))
U20_AGAAAA(0, le69_out_ag(0)) → P95_IN_AGAAAA(0)

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(69) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule U25_GAAAAA(T423, gt97_out_ga(T351)) → P67_IN_GAAAAA(T423) we obtained the following new rules [LPAR04]:

U25_GAAAAA(s(z0), gt97_out_ga(x1)) → P67_IN_GAAAAA(s(z0))
U25_GAAAAA(s(0), gt97_out_ga(0)) → P67_IN_GAAAAA(s(0))

(70) Obligation:

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

U25_AGAAAA(gt97_out_ag(T423)) → P67_IN_GAAAAA(T423)
U18_GAAAAA(le69_out_ga(T326)) → P67_IN_AGAAAA(T326)
U20_GAAAAA(le69_out_ga(T351)) → P95_IN_AGAAAA(T351)
U27_AGAAAA(gt97_out_ag(T448)) → P95_IN_GAAAAA(T448)
U27_GAAAAA(T448, gt97_out_ga(T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(U22_ag(gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(gt97_out_ag(s(0)))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(le69_out_ga(s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(le69_out_ga(0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(le69_out_ga(s(0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(le69_out_ga(0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(U22_ag(gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(gt97_out_ag(s(0)))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(0))
U18_AGAAAA(s(z0), le69_out_ag(x1)) → P67_IN_AGAAAA(s(z0))
U18_AGAAAA(s(0), le69_out_ag(0)) → P67_IN_AGAAAA(s(0))
U18_AGAAAA(0, le69_out_ag(0)) → P67_IN_AGAAAA(0)
U20_AGAAAA(s(z0), le69_out_ag(x1)) → P95_IN_AGAAAA(s(z0))
U20_AGAAAA(s(0), le69_out_ag(0)) → P95_IN_AGAAAA(s(0))
U20_AGAAAA(0, le69_out_ag(0)) → P95_IN_AGAAAA(0)
U25_GAAAAA(s(z0), gt97_out_ga(x1)) → P67_IN_GAAAAA(s(z0))
U25_GAAAAA(s(0), gt97_out_ga(0)) → P67_IN_GAAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(71) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule U27_GAAAAA(T448, gt97_out_ga(T351)) → P95_IN_GAAAAA(T448) we obtained the following new rules [LPAR04]:

U27_GAAAAA(s(z0), gt97_out_ga(x1)) → P95_IN_GAAAAA(s(z0))
U27_GAAAAA(s(0), gt97_out_ga(0)) → P95_IN_GAAAAA(s(0))

(72) Obligation:

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

U25_AGAAAA(gt97_out_ag(T423)) → P67_IN_GAAAAA(T423)
U18_GAAAAA(le69_out_ga(T326)) → P67_IN_AGAAAA(T326)
U20_GAAAAA(le69_out_ga(T351)) → P95_IN_AGAAAA(T351)
U27_AGAAAA(gt97_out_ag(T448)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(U22_ag(gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(gt97_out_ag(s(0)))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(le69_out_ga(s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(le69_out_ga(0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(le69_out_ga(s(0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(le69_out_ga(0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(U22_ag(gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(gt97_out_ag(s(0)))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(0))
U18_AGAAAA(s(z0), le69_out_ag(x1)) → P67_IN_AGAAAA(s(z0))
U18_AGAAAA(s(0), le69_out_ag(0)) → P67_IN_AGAAAA(s(0))
U18_AGAAAA(0, le69_out_ag(0)) → P67_IN_AGAAAA(0)
U20_AGAAAA(s(z0), le69_out_ag(x1)) → P95_IN_AGAAAA(s(z0))
U20_AGAAAA(s(0), le69_out_ag(0)) → P95_IN_AGAAAA(s(0))
U20_AGAAAA(0, le69_out_ag(0)) → P95_IN_AGAAAA(0)
U25_GAAAAA(s(z0), gt97_out_ga(x1)) → P67_IN_GAAAAA(s(z0))
U25_GAAAAA(s(0), gt97_out_ga(0)) → P67_IN_GAAAAA(s(0))
U27_GAAAAA(s(z0), gt97_out_ga(x1)) → P95_IN_GAAAAA(s(z0))
U27_GAAAAA(s(0), gt97_out_ga(0)) → P95_IN_GAAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(73) ForwardInstantiation (EQUIVALENT transformation)

By forward instantiating [JAR06] the rule U25_AGAAAA(gt97_out_ag(T423)) → P67_IN_GAAAAA(T423) we obtained the following new rules [LPAR04]:

U25_AGAAAA(gt97_out_ag(s(y_0))) → P67_IN_GAAAAA(s(y_0))
U25_AGAAAA(gt97_out_ag(0)) → P67_IN_GAAAAA(0)

(74) Obligation:

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

U18_GAAAAA(le69_out_ga(T326)) → P67_IN_AGAAAA(T326)
U20_GAAAAA(le69_out_ga(T351)) → P95_IN_AGAAAA(T351)
U27_AGAAAA(gt97_out_ag(T448)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(U22_ag(gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(gt97_out_ag(s(0)))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(le69_out_ga(s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(le69_out_ga(0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(le69_out_ga(s(0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(le69_out_ga(0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(U22_ag(gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(gt97_out_ag(s(0)))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(0))
U18_AGAAAA(s(z0), le69_out_ag(x1)) → P67_IN_AGAAAA(s(z0))
U18_AGAAAA(s(0), le69_out_ag(0)) → P67_IN_AGAAAA(s(0))
U18_AGAAAA(0, le69_out_ag(0)) → P67_IN_AGAAAA(0)
U20_AGAAAA(s(z0), le69_out_ag(x1)) → P95_IN_AGAAAA(s(z0))
U20_AGAAAA(s(0), le69_out_ag(0)) → P95_IN_AGAAAA(s(0))
U20_AGAAAA(0, le69_out_ag(0)) → P95_IN_AGAAAA(0)
U25_GAAAAA(s(z0), gt97_out_ga(x1)) → P67_IN_GAAAAA(s(z0))
U25_GAAAAA(s(0), gt97_out_ga(0)) → P67_IN_GAAAAA(s(0))
U27_GAAAAA(s(z0), gt97_out_ga(x1)) → P95_IN_GAAAAA(s(z0))
U27_GAAAAA(s(0), gt97_out_ga(0)) → P95_IN_GAAAAA(s(0))
U25_AGAAAA(gt97_out_ag(s(y_0))) → P67_IN_GAAAAA(s(y_0))
U25_AGAAAA(gt97_out_ag(0)) → P67_IN_GAAAAA(0)

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(75) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 1 SCC with 5 less nodes.

(76) Obligation:

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

P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
U18_AGAAAA(s(z0), le69_out_ag(x1)) → P67_IN_AGAAAA(s(z0))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
U18_AGAAAA(s(0), le69_out_ag(0)) → P67_IN_AGAAAA(s(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
U20_AGAAAA(s(z0), le69_out_ag(x1)) → P95_IN_AGAAAA(s(z0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(U22_ag(gt97_in_ag(x0)))
U25_AGAAAA(gt97_out_ag(s(y_0))) → P67_IN_GAAAAA(s(y_0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(U15_ga(le69_in_ga(x0)))
U18_GAAAAA(le69_out_ga(T326)) → P67_IN_AGAAAA(T326)
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0))
U18_AGAAAA(0, le69_out_ag(0)) → P67_IN_AGAAAA(0)
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0))
U20_AGAAAA(0, le69_out_ag(0)) → P95_IN_AGAAAA(0)
P95_IN_AGAAAA(0) → U25_AGAAAA(gt97_out_ag(s(0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(gt97_out_ag(s(0)))
U27_AGAAAA(gt97_out_ag(T448)) → P95_IN_GAAAAA(T448)
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
U25_GAAAAA(s(z0), gt97_out_ga(x1)) → P67_IN_GAAAAA(s(z0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(U15_ga(le69_in_ga(x0)))
U20_GAAAAA(le69_out_ga(T351)) → P95_IN_AGAAAA(T351)
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(U22_ag(gt97_in_ag(x0)))
U25_GAAAAA(s(0), gt97_out_ga(0)) → P67_IN_GAAAAA(s(0))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
U27_GAAAAA(s(z0), gt97_out_ga(x1)) → P95_IN_GAAAAA(s(z0))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(0))
U27_GAAAAA(s(0), gt97_out_ga(0)) → P95_IN_GAAAAA(s(0))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0))
U20_AGAAAA(s(0), le69_out_ag(0)) → P95_IN_AGAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(77) ForwardInstantiation (EQUIVALENT transformation)

By forward instantiating [JAR06] the rule U18_GAAAAA(le69_out_ga(T326)) → P67_IN_AGAAAA(T326) we obtained the following new rules [LPAR04]:

U18_GAAAAA(le69_out_ga(s(y_0))) → P67_IN_AGAAAA(s(y_0))
U18_GAAAAA(le69_out_ga(s(0))) → P67_IN_AGAAAA(s(0))
U18_GAAAAA(le69_out_ga(0)) → P67_IN_AGAAAA(0)

(78) Obligation:

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

P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
U18_AGAAAA(s(z0), le69_out_ag(x1)) → P67_IN_AGAAAA(s(z0))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
U18_AGAAAA(s(0), le69_out_ag(0)) → P67_IN_AGAAAA(s(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
U20_AGAAAA(s(z0), le69_out_ag(x1)) → P95_IN_AGAAAA(s(z0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(U22_ag(gt97_in_ag(x0)))
U25_AGAAAA(gt97_out_ag(s(y_0))) → P67_IN_GAAAAA(s(y_0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0))
U18_AGAAAA(0, le69_out_ag(0)) → P67_IN_AGAAAA(0)
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0))
U20_AGAAAA(0, le69_out_ag(0)) → P95_IN_AGAAAA(0)
P95_IN_AGAAAA(0) → U25_AGAAAA(gt97_out_ag(s(0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(gt97_out_ag(s(0)))
U27_AGAAAA(gt97_out_ag(T448)) → P95_IN_GAAAAA(T448)
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
U25_GAAAAA(s(z0), gt97_out_ga(x1)) → P67_IN_GAAAAA(s(z0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(U15_ga(le69_in_ga(x0)))
U20_GAAAAA(le69_out_ga(T351)) → P95_IN_AGAAAA(T351)
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(U22_ag(gt97_in_ag(x0)))
U25_GAAAAA(s(0), gt97_out_ga(0)) → P67_IN_GAAAAA(s(0))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
U27_GAAAAA(s(z0), gt97_out_ga(x1)) → P95_IN_GAAAAA(s(z0))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(0))
U27_GAAAAA(s(0), gt97_out_ga(0)) → P95_IN_GAAAAA(s(0))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0))
U20_AGAAAA(s(0), le69_out_ag(0)) → P95_IN_AGAAAA(s(0))
U18_GAAAAA(le69_out_ga(s(y_0))) → P67_IN_AGAAAA(s(y_0))
U18_GAAAAA(le69_out_ga(s(0))) → P67_IN_AGAAAA(s(0))
U18_GAAAAA(le69_out_ga(0)) → P67_IN_AGAAAA(0)

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(79) ForwardInstantiation (EQUIVALENT transformation)

By forward instantiating [JAR06] the rule U27_AGAAAA(gt97_out_ag(T448)) → P95_IN_GAAAAA(T448) we obtained the following new rules [LPAR04]:

U27_AGAAAA(gt97_out_ag(s(y_0))) → P95_IN_GAAAAA(s(y_0))
U27_AGAAAA(gt97_out_ag(s(0))) → P95_IN_GAAAAA(s(0))

(80) Obligation:

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

P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
U18_AGAAAA(s(z0), le69_out_ag(x1)) → P67_IN_AGAAAA(s(z0))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
U18_AGAAAA(s(0), le69_out_ag(0)) → P67_IN_AGAAAA(s(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
U20_AGAAAA(s(z0), le69_out_ag(x1)) → P95_IN_AGAAAA(s(z0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(U22_ag(gt97_in_ag(x0)))
U25_AGAAAA(gt97_out_ag(s(y_0))) → P67_IN_GAAAAA(s(y_0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0))
U18_AGAAAA(0, le69_out_ag(0)) → P67_IN_AGAAAA(0)
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0))
U20_AGAAAA(0, le69_out_ag(0)) → P95_IN_AGAAAA(0)
P95_IN_AGAAAA(0) → U25_AGAAAA(gt97_out_ag(s(0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(gt97_out_ag(s(0)))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
U25_GAAAAA(s(z0), gt97_out_ga(x1)) → P67_IN_GAAAAA(s(z0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(U15_ga(le69_in_ga(x0)))
U20_GAAAAA(le69_out_ga(T351)) → P95_IN_AGAAAA(T351)
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(U22_ag(gt97_in_ag(x0)))
U25_GAAAAA(s(0), gt97_out_ga(0)) → P67_IN_GAAAAA(s(0))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
U27_GAAAAA(s(z0), gt97_out_ga(x1)) → P95_IN_GAAAAA(s(z0))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(0))
U27_GAAAAA(s(0), gt97_out_ga(0)) → P95_IN_GAAAAA(s(0))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0))
U20_AGAAAA(s(0), le69_out_ag(0)) → P95_IN_AGAAAA(s(0))
U18_GAAAAA(le69_out_ga(s(y_0))) → P67_IN_AGAAAA(s(y_0))
U18_GAAAAA(le69_out_ga(s(0))) → P67_IN_AGAAAA(s(0))
U18_GAAAAA(le69_out_ga(0)) → P67_IN_AGAAAA(0)
U27_AGAAAA(gt97_out_ag(s(y_0))) → P95_IN_GAAAAA(s(y_0))
U27_AGAAAA(gt97_out_ag(s(0))) → P95_IN_GAAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(81) ForwardInstantiation (EQUIVALENT transformation)

By forward instantiating [JAR06] the rule U20_GAAAAA(le69_out_ga(T351)) → P95_IN_AGAAAA(T351) we obtained the following new rules [LPAR04]:

U20_GAAAAA(le69_out_ga(s(y_0))) → P95_IN_AGAAAA(s(y_0))
U20_GAAAAA(le69_out_ga(0)) → P95_IN_AGAAAA(0)

(82) Obligation:

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

P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
U18_AGAAAA(s(z0), le69_out_ag(x1)) → P67_IN_AGAAAA(s(z0))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
U18_AGAAAA(s(0), le69_out_ag(0)) → P67_IN_AGAAAA(s(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
U20_AGAAAA(s(z0), le69_out_ag(x1)) → P95_IN_AGAAAA(s(z0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(U22_ag(gt97_in_ag(x0)))
U25_AGAAAA(gt97_out_ag(s(y_0))) → P67_IN_GAAAAA(s(y_0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0))
U18_AGAAAA(0, le69_out_ag(0)) → P67_IN_AGAAAA(0)
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0))
U20_AGAAAA(0, le69_out_ag(0)) → P95_IN_AGAAAA(0)
P95_IN_AGAAAA(0) → U25_AGAAAA(gt97_out_ag(s(0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(gt97_out_ag(s(0)))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
U25_GAAAAA(s(z0), gt97_out_ga(x1)) → P67_IN_GAAAAA(s(z0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(U15_ga(le69_in_ga(x0)))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(U22_ag(gt97_in_ag(x0)))
U25_GAAAAA(s(0), gt97_out_ga(0)) → P67_IN_GAAAAA(s(0))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
U27_GAAAAA(s(z0), gt97_out_ga(x1)) → P95_IN_GAAAAA(s(z0))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(0))
U27_GAAAAA(s(0), gt97_out_ga(0)) → P95_IN_GAAAAA(s(0))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0))
U20_AGAAAA(s(0), le69_out_ag(0)) → P95_IN_AGAAAA(s(0))
U18_GAAAAA(le69_out_ga(s(y_0))) → P67_IN_AGAAAA(s(y_0))
U18_GAAAAA(le69_out_ga(s(0))) → P67_IN_AGAAAA(s(0))
U18_GAAAAA(le69_out_ga(0)) → P67_IN_AGAAAA(0)
U27_AGAAAA(gt97_out_ag(s(y_0))) → P95_IN_GAAAAA(s(y_0))
U27_AGAAAA(gt97_out_ag(s(0))) → P95_IN_GAAAAA(s(0))
U20_GAAAAA(le69_out_ga(s(y_0))) → P95_IN_AGAAAA(s(y_0))
U20_GAAAAA(le69_out_ga(0)) → P95_IN_AGAAAA(0)

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(83) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


P95_IN_AGAAAA(0) → U25_AGAAAA(gt97_out_ag(s(0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(gt97_out_ag(s(0)))
The remaining pairs can at least be oriented weakly.
Used ordering: Polynomial interpretation [POLO]:

POL(0) = 1   
POL(P67_IN_AGAAAA(x1)) = x1   
POL(P67_IN_GAAAAA(x1)) = 0   
POL(P95_IN_AGAAAA(x1)) = x1   
POL(P95_IN_GAAAAA(x1)) = 0   
POL(U15_ag(x1)) = 0   
POL(U15_ga(x1)) = 0   
POL(U18_AGAAAA(x1, x2)) = x1   
POL(U18_GAAAAA(x1)) = x1   
POL(U20_AGAAAA(x1, x2)) = x1   
POL(U20_GAAAAA(x1)) = x1   
POL(U22_ag(x1)) = 0   
POL(U22_ga(x1)) = 0   
POL(U25_AGAAAA(x1)) = 0   
POL(U25_GAAAAA(x1, x2)) = 0   
POL(U27_AGAAAA(x1)) = 0   
POL(U27_GAAAAA(x1, x2)) = 0   
POL(gt97_in_ag(x1)) = 1   
POL(gt97_in_ga(x1)) = 1   
POL(gt97_out_ag(x1)) = 0   
POL(gt97_out_ga(x1)) = 0   
POL(le69_in_ag(x1)) = 1 + x1   
POL(le69_in_ga(x1)) = 0   
POL(le69_out_ag(x1)) = 1   
POL(le69_out_ga(x1)) = x1   
POL(s(x1)) = 0   

The following usable rules [FROCOS05] were oriented:

U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))

(84) Obligation:

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

P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
U18_AGAAAA(s(z0), le69_out_ag(x1)) → P67_IN_AGAAAA(s(z0))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
U18_AGAAAA(s(0), le69_out_ag(0)) → P67_IN_AGAAAA(s(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
U20_AGAAAA(s(z0), le69_out_ag(x1)) → P95_IN_AGAAAA(s(z0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(U22_ag(gt97_in_ag(x0)))
U25_AGAAAA(gt97_out_ag(s(y_0))) → P67_IN_GAAAAA(s(y_0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(U15_ga(le69_in_ga(x0)))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0))
U18_AGAAAA(0, le69_out_ag(0)) → P67_IN_AGAAAA(0)
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0))
U20_AGAAAA(0, le69_out_ag(0)) → P95_IN_AGAAAA(0)
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
U25_GAAAAA(s(z0), gt97_out_ga(x1)) → P67_IN_GAAAAA(s(z0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(U15_ga(le69_in_ga(x0)))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(U22_ag(gt97_in_ag(x0)))
U25_GAAAAA(s(0), gt97_out_ga(0)) → P67_IN_GAAAAA(s(0))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
U27_GAAAAA(s(z0), gt97_out_ga(x1)) → P95_IN_GAAAAA(s(z0))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(0))
U27_GAAAAA(s(0), gt97_out_ga(0)) → P95_IN_GAAAAA(s(0))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0))
U20_AGAAAA(s(0), le69_out_ag(0)) → P95_IN_AGAAAA(s(0))
U18_GAAAAA(le69_out_ga(s(y_0))) → P67_IN_AGAAAA(s(y_0))
U18_GAAAAA(le69_out_ga(s(0))) → P67_IN_AGAAAA(s(0))
U18_GAAAAA(le69_out_ga(0)) → P67_IN_AGAAAA(0)
U27_AGAAAA(gt97_out_ag(s(y_0))) → P95_IN_GAAAAA(s(y_0))
U27_AGAAAA(gt97_out_ag(s(0))) → P95_IN_GAAAAA(s(0))
U20_GAAAAA(le69_out_ga(s(y_0))) → P95_IN_AGAAAA(s(y_0))
U20_GAAAAA(le69_out_ga(0)) → P95_IN_AGAAAA(0)

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(85) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 2 SCCs with 4 less nodes.

(86) Complex Obligation (AND)

(87) Obligation:

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

U18_AGAAAA(0, le69_out_ag(0)) → P67_IN_AGAAAA(0)
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(88) UsableRulesProof (EQUIVALENT transformation)

As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R.

(89) Obligation:

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

U18_AGAAAA(0, le69_out_ag(0)) → P67_IN_AGAAAA(0)
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0))

R is empty.
The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(90) QReductionProof (EQUIVALENT transformation)

We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN].

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

(91) Obligation:

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

U18_AGAAAA(0, le69_out_ag(0)) → P67_IN_AGAAAA(0)
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0))

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

(92) 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 = P67_IN_AGAAAA(0) evaluates to t =P67_IN_AGAAAA(0)

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




Rewriting sequence

P67_IN_AGAAAA(0)U18_AGAAAA(0, le69_out_ag(0))
with rule P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0)) at position [] and matcher [ ]

U18_AGAAAA(0, le69_out_ag(0))P67_IN_AGAAAA(0)
with rule U18_AGAAAA(0, le69_out_ag(0)) → P67_IN_AGAAAA(0)

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.



(93) NO

(94) Obligation:

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

U18_AGAAAA(s(z0), le69_out_ag(x1)) → P67_IN_AGAAAA(s(z0))
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
U18_AGAAAA(s(0), le69_out_ag(0)) → P67_IN_AGAAAA(s(0))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
U20_AGAAAA(s(z0), le69_out_ag(x1)) → P95_IN_AGAAAA(s(z0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(U22_ag(gt97_in_ag(x0)))
U25_AGAAAA(gt97_out_ag(s(y_0))) → P67_IN_GAAAAA(s(y_0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(U15_ga(le69_in_ga(x0)))
U18_GAAAAA(le69_out_ga(s(y_0))) → P67_IN_AGAAAA(s(y_0))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0))
U20_AGAAAA(s(0), le69_out_ag(0)) → P95_IN_AGAAAA(s(0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(U22_ag(gt97_in_ag(x0)))
U27_AGAAAA(gt97_out_ag(s(y_0))) → P95_IN_GAAAAA(s(y_0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
U25_GAAAAA(s(z0), gt97_out_ga(x1)) → P67_IN_GAAAAA(s(z0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(U15_ga(le69_in_ga(x0)))
U20_GAAAAA(le69_out_ga(s(y_0))) → P95_IN_AGAAAA(s(y_0))
U25_GAAAAA(s(0), gt97_out_ga(0)) → P67_IN_GAAAAA(s(0))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
U27_GAAAAA(s(z0), gt97_out_ga(x1)) → P95_IN_GAAAAA(s(z0))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(0))
U27_GAAAAA(s(0), gt97_out_ga(0)) → P95_IN_GAAAAA(s(0))
U27_AGAAAA(gt97_out_ag(s(0))) → P95_IN_GAAAAA(s(0))
U18_GAAAAA(le69_out_ga(s(0))) → P67_IN_AGAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(95) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U18_GAAAAA(le69_out_ga(s(0))) → P67_IN_AGAAAA(s(0))
The remaining pairs can at least be oriented weakly.
Used ordering: Matrix interpretation [MATRO]:

POL(U18_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(s(x1)) =
/0\
\0/
+
/01\
\00/
·x1

POL(le69_out_ag(x1)) =
/0\
\0/
+
/10\
\00/
·x1

POL(P67_IN_AGAAAA(x1)) = 0 +
[0,0]
·x1

POL(U15_ag(x1)) =
/1\
\1/
+
/01\
\01/
·x1

POL(le69_in_ag(x1)) =
/0\
\1/
+
/00\
\01/
·x1

POL(0) =
/0\
\1/

POL(U20_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(P95_IN_AGAAAA(x1)) = 0 +
[0,0]
·x1

POL(U25_AGAAAA(x1)) = 0 +
[1,0]
·x1

POL(U22_ag(x1)) =
/0\
\0/
+
/01\
\00/
·x1

POL(gt97_in_ag(x1)) =
/1\
\0/
+
/00\
\00/
·x1

POL(gt97_out_ag(x1)) =
/0\
\0/
+
/10\
\01/
·x1

POL(P67_IN_GAAAAA(x1)) = 0 +
[1,0]
·x1

POL(U18_GAAAAA(x1)) = 0 +
[0,1]
·x1

POL(U15_ga(x1)) =
/0\
\0/
+
/00\
\10/
·x1

POL(le69_in_ga(x1)) =
/0\
\1/
+
/01\
\10/
·x1

POL(le69_out_ga(x1)) =
/0\
\0/
+
/01\
\10/
·x1

POL(U27_AGAAAA(x1)) = 0 +
[1,0]
·x1

POL(P95_IN_GAAAAA(x1)) = 0 +
[1,0]
·x1

POL(U25_GAAAAA(x1, x2)) = 0 +
[1,0]
·x1 +
[0,0]
·x2

POL(U22_ga(x1)) =
/0\
\0/
+
/01\
\01/
·x1

POL(gt97_in_ga(x1)) =
/1\
\0/
+
/10\
\01/
·x1

POL(gt97_out_ga(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(U20_GAAAAA(x1)) = 0 +
[0,0]
·x1

POL(U27_GAAAAA(x1, x2)) = 0 +
[1,0]
·x1 +
[0,0]
·x2

The following usable rules [FROCOS05] were oriented:

gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))

(96) Obligation:

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

U18_AGAAAA(s(z0), le69_out_ag(x1)) → P67_IN_AGAAAA(s(z0))
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
U18_AGAAAA(s(0), le69_out_ag(0)) → P67_IN_AGAAAA(s(0))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
U20_AGAAAA(s(z0), le69_out_ag(x1)) → P95_IN_AGAAAA(s(z0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(U22_ag(gt97_in_ag(x0)))
U25_AGAAAA(gt97_out_ag(s(y_0))) → P67_IN_GAAAAA(s(y_0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(U15_ga(le69_in_ga(x0)))
U18_GAAAAA(le69_out_ga(s(y_0))) → P67_IN_AGAAAA(s(y_0))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0))
U20_AGAAAA(s(0), le69_out_ag(0)) → P95_IN_AGAAAA(s(0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(U22_ag(gt97_in_ag(x0)))
U27_AGAAAA(gt97_out_ag(s(y_0))) → P95_IN_GAAAAA(s(y_0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
U25_GAAAAA(s(z0), gt97_out_ga(x1)) → P67_IN_GAAAAA(s(z0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(U15_ga(le69_in_ga(x0)))
U20_GAAAAA(le69_out_ga(s(y_0))) → P95_IN_AGAAAA(s(y_0))
U25_GAAAAA(s(0), gt97_out_ga(0)) → P67_IN_GAAAAA(s(0))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
U27_GAAAAA(s(z0), gt97_out_ga(x1)) → P95_IN_GAAAAA(s(z0))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(0))
U27_GAAAAA(s(0), gt97_out_ga(0)) → P95_IN_GAAAAA(s(0))
U27_AGAAAA(gt97_out_ag(s(0))) → P95_IN_GAAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(97) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U25_GAAAAA(s(0), gt97_out_ga(0)) → P67_IN_GAAAAA(s(0))
The remaining pairs can at least be oriented weakly.
Used ordering: Matrix interpretation [MATRO]:

POL(U18_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(s(x1)) =
/0\
\0/
+
/00\
\10/
·x1

POL(le69_out_ag(x1)) =
/0\
\1/
+
/01\
\00/
·x1

POL(P67_IN_AGAAAA(x1)) = 0 +
[0,0]
·x1

POL(U15_ag(x1)) =
/1\
\1/
+
/01\
\01/
·x1

POL(le69_in_ag(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(0) =
/1\
\0/

POL(U20_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(P95_IN_AGAAAA(x1)) = 0 +
[0,0]
·x1

POL(U25_AGAAAA(x1)) = 0 +
[0,0]
·x1

POL(U22_ag(x1)) =
/0\
\0/
+
/01\
\00/
·x1

POL(gt97_in_ag(x1)) =
/1\
\0/
+
/00\
\00/
·x1

POL(gt97_out_ag(x1)) =
/0\
\0/
+
/01\
\10/
·x1

POL(P67_IN_GAAAAA(x1)) = 0 +
[0,0]
·x1

POL(U18_GAAAAA(x1)) = 0 +
[0,0]
·x1

POL(U15_ga(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(le69_in_ga(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(le69_out_ga(x1)) =
/1\
\1/
+
/00\
\01/
·x1

POL(U27_AGAAAA(x1)) = 0 +
[1,0]
·x1

POL(P95_IN_GAAAAA(x1)) = 0 +
[0,1]
·x1

POL(U25_GAAAAA(x1, x2)) = 0 +
[0,1]
·x1 +
[0,0]
·x2

POL(U22_ga(x1)) =
/1\
\1/
+
/10\
\10/
·x1

POL(gt97_in_ga(x1)) =
/0\
\0/
+
/10\
\00/
·x1

POL(gt97_out_ga(x1)) =
/1\
\0/
+
/01\
\00/
·x1

POL(U20_GAAAAA(x1)) = 0 +
[0,0]
·x1

POL(U27_GAAAAA(x1, x2)) = 0 +
[0,1]
·x1 +
[0,0]
·x2

The following usable rules [FROCOS05] were oriented:

gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))

(98) Obligation:

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

U18_AGAAAA(s(z0), le69_out_ag(x1)) → P67_IN_AGAAAA(s(z0))
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
U18_AGAAAA(s(0), le69_out_ag(0)) → P67_IN_AGAAAA(s(0))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
U20_AGAAAA(s(z0), le69_out_ag(x1)) → P95_IN_AGAAAA(s(z0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(U22_ag(gt97_in_ag(x0)))
U25_AGAAAA(gt97_out_ag(s(y_0))) → P67_IN_GAAAAA(s(y_0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(U15_ga(le69_in_ga(x0)))
U18_GAAAAA(le69_out_ga(s(y_0))) → P67_IN_AGAAAA(s(y_0))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0))
U20_AGAAAA(s(0), le69_out_ag(0)) → P95_IN_AGAAAA(s(0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(U22_ag(gt97_in_ag(x0)))
U27_AGAAAA(gt97_out_ag(s(y_0))) → P95_IN_GAAAAA(s(y_0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
U25_GAAAAA(s(z0), gt97_out_ga(x1)) → P67_IN_GAAAAA(s(z0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(U15_ga(le69_in_ga(x0)))
U20_GAAAAA(le69_out_ga(s(y_0))) → P95_IN_AGAAAA(s(y_0))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
U27_GAAAAA(s(z0), gt97_out_ga(x1)) → P95_IN_GAAAAA(s(z0))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(0))
U27_GAAAAA(s(0), gt97_out_ga(0)) → P95_IN_GAAAAA(s(0))
U27_AGAAAA(gt97_out_ag(s(0))) → P95_IN_GAAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(99) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(0))
The remaining pairs can at least be oriented weakly.
Used ordering: Matrix interpretation [MATRO]:

POL(U18_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(s(x1)) =
/0\
\0/
+
/00\
\10/
·x1

POL(le69_out_ag(x1)) =
/0\
\1/
+
/10\
\00/
·x1

POL(P67_IN_AGAAAA(x1)) = 0 +
[0,0]
·x1

POL(U15_ag(x1)) =
/0\
\0/
+
/10\
\10/
·x1

POL(le69_in_ag(x1)) =
/0\
\0/
+
/10\
\00/
·x1

POL(0) =
/1\
\0/

POL(U20_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(P95_IN_AGAAAA(x1)) = 0 +
[0,0]
·x1

POL(U25_AGAAAA(x1)) = 0 +
[0,0]
·x1

POL(U22_ag(x1)) =
/0\
\0/
+
/00\
\10/
·x1

POL(gt97_in_ag(x1)) =
/0\
\0/
+
/00\
\10/
·x1

POL(gt97_out_ag(x1)) =
/0\
\0/
+
/10\
\01/
·x1

POL(P67_IN_GAAAAA(x1)) = 0 +
[0,0]
·x1

POL(U18_GAAAAA(x1)) = 0 +
[0,0]
·x1

POL(U15_ga(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(le69_in_ga(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(le69_out_ga(x1)) =
/1\
\0/
+
/01\
\10/
·x1

POL(U27_AGAAAA(x1)) = 0 +
[0,1]
·x1

POL(P95_IN_GAAAAA(x1)) = 0 +
[0,1]
·x1

POL(U25_GAAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(U22_ga(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(gt97_in_ga(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(gt97_out_ga(x1)) =
/1\
\0/
+
/00\
\10/
·x1

POL(U20_GAAAAA(x1)) = 0 +
[0,0]
·x1

POL(U27_GAAAAA(x1, x2)) = 0 +
[0,1]
·x1 +
[0,0]
·x2

The following usable rules [FROCOS05] were oriented:

gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))

(100) Obligation:

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

U18_AGAAAA(s(z0), le69_out_ag(x1)) → P67_IN_AGAAAA(s(z0))
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
U18_AGAAAA(s(0), le69_out_ag(0)) → P67_IN_AGAAAA(s(0))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
U20_AGAAAA(s(z0), le69_out_ag(x1)) → P95_IN_AGAAAA(s(z0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(U22_ag(gt97_in_ag(x0)))
U25_AGAAAA(gt97_out_ag(s(y_0))) → P67_IN_GAAAAA(s(y_0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(U15_ga(le69_in_ga(x0)))
U18_GAAAAA(le69_out_ga(s(y_0))) → P67_IN_AGAAAA(s(y_0))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0))
U20_AGAAAA(s(0), le69_out_ag(0)) → P95_IN_AGAAAA(s(0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(U22_ag(gt97_in_ag(x0)))
U27_AGAAAA(gt97_out_ag(s(y_0))) → P95_IN_GAAAAA(s(y_0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
U25_GAAAAA(s(z0), gt97_out_ga(x1)) → P67_IN_GAAAAA(s(z0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(U15_ga(le69_in_ga(x0)))
U20_GAAAAA(le69_out_ga(s(y_0))) → P95_IN_AGAAAA(s(y_0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
U27_GAAAAA(s(z0), gt97_out_ga(x1)) → P95_IN_GAAAAA(s(z0))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(0))
U27_GAAAAA(s(0), gt97_out_ga(0)) → P95_IN_GAAAAA(s(0))
U27_AGAAAA(gt97_out_ag(s(0))) → P95_IN_GAAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(101) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U27_AGAAAA(gt97_out_ag(s(0))) → P95_IN_GAAAAA(s(0))
The remaining pairs can at least be oriented weakly.
Used ordering: Matrix interpretation [MATRO]:

POL(U18_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(s(x1)) =
/0\
\0/
+
/01\
\00/
·x1

POL(le69_out_ag(x1)) =
/1\
\0/
+
/11\
\10/
·x1

POL(P67_IN_AGAAAA(x1)) = 0 +
[0,0]
·x1

POL(U15_ag(x1)) =
/0\
\1/
+
/01\
\11/
·x1

POL(le69_in_ag(x1)) =
/0\
\1/
+
/00\
\10/
·x1

POL(0) =
/0\
\1/

POL(U20_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(P95_IN_AGAAAA(x1)) = 0 +
[0,0]
·x1

POL(U25_AGAAAA(x1)) = 0 +
[0,0]
·x1

POL(U22_ag(x1)) =
/0\
\0/
+
/01\
\00/
·x1

POL(gt97_in_ag(x1)) =
/0\
\0/
+
/01\
\00/
·x1

POL(gt97_out_ag(x1)) =
/0\
\0/
+
/10\
\01/
·x1

POL(P67_IN_GAAAAA(x1)) = 0 +
[0,0]
·x1

POL(U18_GAAAAA(x1)) = 0 +
[0,0]
·x1

POL(U15_ga(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(le69_in_ga(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(le69_out_ga(x1)) =
/1\
\0/
+
/00\
\00/
·x1

POL(U27_AGAAAA(x1)) = 0 +
[1,0]
·x1

POL(P95_IN_GAAAAA(x1)) = 0 +
[0,0]
·x1

POL(U25_GAAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(U22_ga(x1)) =
/1\
\0/
+
/10\
\11/
·x1

POL(gt97_in_ga(x1)) =
/1\
\1/
+
/11\
\00/
·x1

POL(gt97_out_ga(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(U20_GAAAAA(x1)) = 0 +
[0,0]
·x1

POL(U27_GAAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

The following usable rules [FROCOS05] were oriented:

gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))

(102) Obligation:

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

U18_AGAAAA(s(z0), le69_out_ag(x1)) → P67_IN_AGAAAA(s(z0))
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
U18_AGAAAA(s(0), le69_out_ag(0)) → P67_IN_AGAAAA(s(0))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
U20_AGAAAA(s(z0), le69_out_ag(x1)) → P95_IN_AGAAAA(s(z0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(U22_ag(gt97_in_ag(x0)))
U25_AGAAAA(gt97_out_ag(s(y_0))) → P67_IN_GAAAAA(s(y_0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(U15_ga(le69_in_ga(x0)))
U18_GAAAAA(le69_out_ga(s(y_0))) → P67_IN_AGAAAA(s(y_0))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0))
U20_AGAAAA(s(0), le69_out_ag(0)) → P95_IN_AGAAAA(s(0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(U22_ag(gt97_in_ag(x0)))
U27_AGAAAA(gt97_out_ag(s(y_0))) → P95_IN_GAAAAA(s(y_0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
U25_GAAAAA(s(z0), gt97_out_ga(x1)) → P67_IN_GAAAAA(s(z0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(U15_ga(le69_in_ga(x0)))
U20_GAAAAA(le69_out_ga(s(y_0))) → P95_IN_AGAAAA(s(y_0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
U27_GAAAAA(s(z0), gt97_out_ga(x1)) → P95_IN_GAAAAA(s(z0))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(0))
U27_GAAAAA(s(0), gt97_out_ga(0)) → P95_IN_GAAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(103) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0))
The remaining pairs can at least be oriented weakly.
Used ordering: Matrix interpretation [MATRO]:

POL(U18_AGAAAA(x1, x2)) = 0 +
[0,1]
·x1 +
[0,0]
·x2

POL(s(x1)) =
/0\
\0/
+
/00\
\10/
·x1

POL(le69_out_ag(x1)) =
/0\
\1/
+
/00\
\10/
·x1

POL(P67_IN_AGAAAA(x1)) = 0 +
[0,1]
·x1

POL(U15_ag(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(le69_in_ag(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(0) =
/1\
\0/

POL(U20_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(P95_IN_AGAAAA(x1)) = 0 +
[0,0]
·x1

POL(U25_AGAAAA(x1)) = 0 +
[1,0]
·x1

POL(U22_ag(x1)) =
/0\
\0/
+
/01\
\00/
·x1

POL(gt97_in_ag(x1)) =
/1\
\0/
+
/00\
\00/
·x1

POL(gt97_out_ag(x1)) =
/0\
\0/
+
/01\
\10/
·x1

POL(P67_IN_GAAAAA(x1)) = 0 +
[0,1]
·x1

POL(U18_GAAAAA(x1)) = 0 +
[0,1]
·x1

POL(U15_ga(x1)) =
/0\
\0/
+
/00\
\10/
·x1

POL(le69_in_ga(x1)) =
/0\
\0/
+
/10\
\11/
·x1

POL(le69_out_ga(x1)) =
/0\
\0/
+
/10\
\01/
·x1

POL(U27_AGAAAA(x1)) = 0 +
[1,0]
·x1

POL(P95_IN_GAAAAA(x1)) = 0 +
[0,1]
·x1

POL(U25_GAAAAA(x1, x2)) = 0 +
[0,1]
·x1 +
[0,0]
·x2

POL(U22_ga(x1)) =
/1\
\1/
+
/00\
\00/
·x1

POL(gt97_in_ga(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(gt97_out_ga(x1)) =
/1\
\0/
+
/10\
\11/
·x1

POL(U20_GAAAAA(x1)) = 0 +
[0,0]
·x1

POL(U27_GAAAAA(x1, x2)) = 0 +
[0,1]
·x1 +
[0,0]
·x2

The following usable rules [FROCOS05] were oriented:

gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))

(104) Obligation:

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

U18_AGAAAA(s(z0), le69_out_ag(x1)) → P67_IN_AGAAAA(s(z0))
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
U18_AGAAAA(s(0), le69_out_ag(0)) → P67_IN_AGAAAA(s(0))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
U20_AGAAAA(s(z0), le69_out_ag(x1)) → P95_IN_AGAAAA(s(z0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(U22_ag(gt97_in_ag(x0)))
U25_AGAAAA(gt97_out_ag(s(y_0))) → P67_IN_GAAAAA(s(y_0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(U15_ga(le69_in_ga(x0)))
U18_GAAAAA(le69_out_ga(s(y_0))) → P67_IN_AGAAAA(s(y_0))
U20_AGAAAA(s(0), le69_out_ag(0)) → P95_IN_AGAAAA(s(0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(U22_ag(gt97_in_ag(x0)))
U27_AGAAAA(gt97_out_ag(s(y_0))) → P95_IN_GAAAAA(s(y_0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
U25_GAAAAA(s(z0), gt97_out_ga(x1)) → P67_IN_GAAAAA(s(z0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(U15_ga(le69_in_ga(x0)))
U20_GAAAAA(le69_out_ga(s(y_0))) → P95_IN_AGAAAA(s(y_0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
U27_GAAAAA(s(z0), gt97_out_ga(x1)) → P95_IN_GAAAAA(s(z0))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(0))
U27_GAAAAA(s(0), gt97_out_ga(0)) → P95_IN_GAAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(105) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U20_AGAAAA(s(0), le69_out_ag(0)) → P95_IN_AGAAAA(s(0))
The remaining pairs can at least be oriented weakly.
Used ordering: Polynomial interpretation [POLO]:

POL(0) = 1   
POL(P67_IN_AGAAAA(x1)) = 0   
POL(P67_IN_GAAAAA(x1)) = 0   
POL(P95_IN_AGAAAA(x1)) = 0   
POL(P95_IN_GAAAAA(x1)) = 0   
POL(U15_ag(x1)) = 0   
POL(U15_ga(x1)) = 0   
POL(U18_AGAAAA(x1, x2)) = 0   
POL(U18_GAAAAA(x1)) = 0   
POL(U20_AGAAAA(x1, x2)) = x2   
POL(U20_GAAAAA(x1)) = 0   
POL(U22_ag(x1)) = 0   
POL(U22_ga(x1)) = 0   
POL(U25_AGAAAA(x1)) = 0   
POL(U25_GAAAAA(x1, x2)) = 0   
POL(U27_AGAAAA(x1)) = 0   
POL(U27_GAAAAA(x1, x2)) = 0   
POL(gt97_in_ag(x1)) = 0   
POL(gt97_in_ga(x1)) = 1   
POL(gt97_out_ag(x1)) = 0   
POL(gt97_out_ga(x1)) = 0   
POL(le69_in_ag(x1)) = 0   
POL(le69_in_ga(x1)) = 0   
POL(le69_out_ag(x1)) = x1   
POL(le69_out_ga(x1)) = 0   
POL(s(x1)) = 0   

The following usable rules [FROCOS05] were oriented:

U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))

(106) Obligation:

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

U18_AGAAAA(s(z0), le69_out_ag(x1)) → P67_IN_AGAAAA(s(z0))
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
U18_AGAAAA(s(0), le69_out_ag(0)) → P67_IN_AGAAAA(s(0))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(le69_in_ag(x0)))
U20_AGAAAA(s(z0), le69_out_ag(x1)) → P95_IN_AGAAAA(s(z0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(U22_ag(gt97_in_ag(x0)))
U25_AGAAAA(gt97_out_ag(s(y_0))) → P67_IN_GAAAAA(s(y_0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(U15_ga(le69_in_ga(x0)))
U18_GAAAAA(le69_out_ga(s(y_0))) → P67_IN_AGAAAA(s(y_0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(U22_ag(gt97_in_ag(x0)))
U27_AGAAAA(gt97_out_ag(s(y_0))) → P95_IN_GAAAAA(s(y_0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
U25_GAAAAA(s(z0), gt97_out_ga(x1)) → P67_IN_GAAAAA(s(z0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(U15_ga(le69_in_ga(x0)))
U20_GAAAAA(le69_out_ga(s(y_0))) → P95_IN_AGAAAA(s(y_0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(gt97_in_ga(x0)))
U27_GAAAAA(s(z0), gt97_out_ga(x1)) → P95_IN_GAAAAA(s(z0))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(0))
U27_GAAAAA(s(0), gt97_out_ga(0)) → P95_IN_GAAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(107) 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 = P67_IN_AGAAAA(s(0)) evaluates to t =P67_IN_AGAAAA(s(0))

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




Rewriting sequence

P67_IN_AGAAAA(s(0))U18_AGAAAA(s(0), le69_out_ag(0))
with rule P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0)) at position [] and matcher [ ]

U18_AGAAAA(s(0), le69_out_ag(0))P67_IN_AGAAAA(s(0))
with rule U18_AGAAAA(s(z0), le69_out_ag(x1)) → P67_IN_AGAAAA(s(z0))

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.



(108) NO

(109) Obligation:

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

LE69_IN_AA(s(T270), s(T271)) → LE69_IN_AA(T270, T271)

The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x7)
LE69_IN_AA(x1, x2)  =  LE69_IN_AA

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

(110) UsableRulesProof (EQUIVALENT transformation)

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

(111) Obligation:

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

LE69_IN_AA(s(T270), s(T271)) → LE69_IN_AA(T270, T271)

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

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

(112) PiDPToQDPProof (SOUND transformation)

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

(113) Obligation:

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

LE69_IN_AALE69_IN_AA

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

(114) 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 = LE69_IN_AA evaluates to t =LE69_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 LE69_IN_AA to LE69_IN_AA.



(115) NO

(116) Obligation:

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

SPLIT21_IN_GAAA(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → SPLIT21_IN_GAAA(T93, X163, X162, T96)

The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x7)
SPLIT21_IN_GAAA(x1, x2, x3, x4)  =  SPLIT21_IN_GAAA(x1)

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

(117) UsableRulesProof (EQUIVALENT transformation)

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

(118) Obligation:

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

SPLIT21_IN_GAAA(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → SPLIT21_IN_GAAA(T93, X163, X162, T96)

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

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

(119) PiDPToQDPProof (SOUND transformation)

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

(120) Obligation:

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

SPLIT21_IN_GAAA(.(T92, T93)) → SPLIT21_IN_GAAA(T93)

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

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

  • SPLIT21_IN_GAAA(.(T92, T93)) → SPLIT21_IN_GAAA(T93)
    The graph contains the following edges 1 > 1

(122) YES

(123) Obligation:

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

MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_GAA(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_GAA(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → MERGESORT33_IN_GAA(T156, X232, T158)
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_GAA(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_GAA(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → MERGESORT33_IN_GAA(T157, X233, T168)
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_GAA(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_GAA(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_GAA(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_GAA(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → MERGESORT33_IN_GAA(T157, T174, T176)
U9_GAA(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → MERGESORT33_IN_GAA(T156, T167, T176)
U6_GAA(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → MERGESORT33_IN_GAA(T156, T167, T168)

The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x7)
MERGESORT33_IN_GAA(x1, x2, x3)  =  MERGESORT33_IN_GAA(x1)
U4_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U4_GAA(x7)
U6_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U6_GAA(x7)
U7_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_GAA(x7, x8)
U9_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U9_GAA(x7)
U10_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_GAA(x7, x8)

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

(124) UsableRulesProof (EQUIVALENT transformation)

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

(125) Obligation:

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

MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_GAA(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_GAA(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → MERGESORT33_IN_GAA(T156, X232, T158)
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_GAA(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_GAA(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → MERGESORT33_IN_GAA(T157, X233, T168)
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_GAA(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_GAA(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_GAA(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_GAA(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → MERGESORT33_IN_GAA(T157, T174, T176)
U9_GAA(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → MERGESORT33_IN_GAA(T156, T167, T176)
U6_GAA(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → MERGESORT33_IN_GAA(T156, T167, T168)

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The argument filtering Pi contains the following mapping:
[]  =  []
.(x1, x2)  =  .(x1, x2)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x3, x4)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
MERGESORT33_IN_GAA(x1, x2, x3)  =  MERGESORT33_IN_GAA(x1)
U4_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U4_GAA(x7)
U6_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U6_GAA(x7)
U7_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_GAA(x7, x8)
U9_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U9_GAA(x7)
U10_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_GAA(x7, x8)

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

(126) PiDPToQDPProof (SOUND transformation)

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

(127) Obligation:

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

MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(split17_in_ggaaa(T144, .(T145, T146)))
U4_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(split17_in_ggaaa(T144, .(T145, T146)))
U6_GAA(split17_out_ggaaa(T156, T157)) → U7_GAA(T157, mergesort33_in_gaa(T156))
U7_GAA(T157, mergesort33_out_gaa) → MERGESORT33_IN_GAA(T157)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(split17_in_ggaaa(T144, .(T145, T146)))
U9_GAA(split17_out_ggaaa(T156, T157)) → U10_GAA(T157, mergesort33_in_gaa(T156))
U10_GAA(T157, mergesort33_out_gaa) → MERGESORT33_IN_GAA(T157)
U9_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, split21_in_gaaa(T73))
mergesort33_in_gaa([]) → mergesort33_out_gaa
mergesort33_in_gaa(.(T132, [])) → mergesort33_out_gaa
mergesort33_in_gaa(.(T144, .(T145, T146))) → U3_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U4_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U6_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U9_gaa(split17_in_ggaaa(T144, .(T145, T146)))
U2_ggaaa(T72, split21_out_gaaa(X125, X124)) → split17_out_ggaaa(.(T72, X124), X125)
U3_gaa(split17_out_ggaaa(X230, X231)) → mergesort33_out_gaa
U4_gaa(split17_out_ggaaa(T156, T157)) → U5_gaa(mergesort33_in_gaa(T156))
U6_gaa(split17_out_ggaaa(T156, T157)) → U7_gaa(T157, mergesort33_in_gaa(T156))
U9_gaa(split17_out_ggaaa(T156, T157)) → U10_gaa(T157, mergesort33_in_gaa(T156))
split21_in_gaaa([]) → split21_out_gaaa([], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, split21_in_gaaa(T93))
U5_gaa(mergesort33_out_gaa) → mergesort33_out_gaa
U7_gaa(T157, mergesort33_out_gaa) → U8_gaa(mergesort33_in_gaa(T157))
U10_gaa(T157, mergesort33_out_gaa) → U11_gaa(mergesort33_in_gaa(T157))
U1_gaaa(T92, split21_out_gaaa(X163, X162)) → split21_out_gaaa(.(T92, X162), X163)
U8_gaa(mergesort33_out_gaa) → mergesort33_out_gaa
U11_gaa(mergesort33_out_gaa) → U12_gaa(merge34_in_aaaaa)
U12_gaa(merge34_out_aaaaa) → mergesort33_out_gaa
merge34_in_aaaaamerge34_out_aaaaa
merge34_in_aaaaaU13_aaaaa(p67_in_aaaaaa)
merge34_in_aaaaaU14_aaaaa(p95_in_aaaaaa)
U13_aaaaa(p67_out_aaaaaa(T249, T251)) → merge34_out_aaaaa
U14_aaaaa(p95_out_aaaaaa(T473, T475)) → merge34_out_aaaaa
p67_in_aaaaaaU16_aaaaaa(le69_in_aa)
p67_in_aaaaaaU17_aaaaaa(le69_in_aa)
p67_in_aaaaaaU18_aaaaaa(le69_in_aa)
p67_in_aaaaaaU20_aaaaaa(le69_in_aa)
p95_in_aaaaaaU23_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU24_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU25_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU27_aaaaaa(gt97_in_aa)
U16_aaaaaa(le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251)
U17_aaaaaa(le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292)
U18_aaaaaa(le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_aaaaaa(le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_aaaaaa(gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351)
U24_aaaaaa(gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351)
U25_aaaaaa(gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_aaaaaa(gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_aaU15_aa(le69_in_aa)
le69_in_aale69_out_aa(0, s(0))
le69_in_aale69_out_aa(0, 0)
U19_aaaaaa(T249, T326, p67_out_agaaaa(T324)) → p67_out_aaaaaa(T249, T326)
U21_aaaaaa(T249, T351, p95_out_agaaaa(T349)) → p67_out_aaaaaa(T249, T351)
gt97_in_aaU22_aa(gt97_in_aa)
gt97_in_aagt97_out_aa(s(0), 0)
U26_aaaaaa(T423, T351, p67_out_gaaaaa(T425)) → p95_out_aaaaaa(T423, T351)
U28_aaaaaa(T448, T351, p95_out_gaaaaa(T450)) → p95_out_aaaaaa(T448, T351)
U15_aa(le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
p67_in_agaaaa(T251) → U16_agaaaa(le69_in_ag(T251))
p67_in_agaaaa(T292) → U17_agaaaa(le69_in_ag(T292))
p67_in_agaaaa(T326) → U18_agaaaa(T326, le69_in_ag(T326))
p67_in_agaaaa(T351) → U20_agaaaa(T351, le69_in_ag(T351))
p95_in_agaaaa(T351) → U23_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U24_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U25_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U27_agaaaa(gt97_in_ag(T351))
U22_aa(gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
p67_in_gaaaaa(T249) → U16_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U17_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U18_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U20_gaaaaa(le69_in_ga(T249))
p95_in_gaaaaa(T349) → U23_gaaaaa(gt97_in_ga(T349))
p95_in_gaaaaa(T392) → U24_gaaaaa(gt97_in_ga(T392))
p95_in_gaaaaa(T423) → U25_gaaaaa(T423, gt97_in_ga(T423))
p95_in_gaaaaa(T448) → U27_gaaaaa(T448, gt97_in_ga(T448))
U16_agaaaa(le69_out_ag(T249)) → p67_out_agaaaa(T249)
U17_agaaaa(le69_out_ag(T249)) → p67_out_agaaaa(T249)
U18_agaaaa(T326, le69_out_ag(T249)) → U19_agaaaa(T249, p67_in_agaaaa(T326))
U20_agaaaa(T351, le69_out_ag(T249)) → U21_agaaaa(T249, p95_in_agaaaa(T351))
U23_agaaaa(gt97_out_ag(T349)) → p95_out_agaaaa(T349)
U24_agaaaa(gt97_out_ag(T392)) → p95_out_agaaaa(T392)
U25_agaaaa(gt97_out_ag(T423)) → U26_agaaaa(T423, p67_in_gaaaaa(T423))
U27_agaaaa(gt97_out_ag(T448)) → U28_agaaaa(T448, p95_in_gaaaaa(T448))
U16_gaaaaa(le69_out_ga(T251)) → p67_out_gaaaaa(T251)
U17_gaaaaa(le69_out_ga(T292)) → p67_out_gaaaaa(T292)
U18_gaaaaa(le69_out_ga(T326)) → U19_gaaaaa(T326, p67_in_agaaaa(T326))
U20_gaaaaa(le69_out_ga(T351)) → U21_gaaaaa(T351, p95_in_agaaaa(T351))
U23_gaaaaa(gt97_out_ga(T351)) → p95_out_gaaaaa(T351)
U24_gaaaaa(gt97_out_ga(T351)) → p95_out_gaaaaa(T351)
U25_gaaaaa(T423, gt97_out_ga(T351)) → U26_gaaaaa(T351, p67_in_gaaaaa(T423))
U27_gaaaaa(T448, gt97_out_ga(T351)) → U28_gaaaaa(T351, p95_in_gaaaaa(T448))
le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
U19_agaaaa(T249, p67_out_agaaaa(T324)) → p67_out_agaaaa(T249)
U21_agaaaa(T249, p95_out_agaaaa(T349)) → p67_out_agaaaa(T249)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
U26_agaaaa(T423, p67_out_gaaaaa(T425)) → p95_out_agaaaa(T423)
U28_agaaaa(T448, p95_out_gaaaaa(T450)) → p95_out_agaaaa(T448)
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
U19_gaaaaa(T326, p67_out_agaaaa(T324)) → p67_out_gaaaaa(T326)
U21_gaaaaa(T351, p95_out_agaaaa(T349)) → p67_out_gaaaaa(T351)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U26_gaaaaa(T351, p67_out_gaaaaa(T425)) → p95_out_gaaaaa(T351)
U28_gaaaaa(T351, p95_out_gaaaaa(T450)) → p95_out_gaaaaa(T351)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
mergesort33_in_gaa(x0)
U2_ggaaa(x0, x1)
U3_gaa(x0)
U4_gaa(x0)
U6_gaa(x0)
U9_gaa(x0)
split21_in_gaaa(x0)
U5_gaa(x0)
U7_gaa(x0, x1)
U10_gaa(x0, x1)
U1_gaaa(x0, x1)
U8_gaa(x0)
U11_gaa(x0)
U12_gaa(x0)
merge34_in_aaaaa
U13_aaaaa(x0)
U14_aaaaa(x0)
p67_in_aaaaaa
p95_in_aaaaaa
U16_aaaaaa(x0)
U17_aaaaaa(x0)
U18_aaaaaa(x0)
U20_aaaaaa(x0)
U23_aaaaaa(x0)
U24_aaaaaa(x0)
U25_aaaaaa(x0)
U27_aaaaaa(x0)
le69_in_aa
U19_aaaaaa(x0, x1, x2)
U21_aaaaaa(x0, x1, x2)
gt97_in_aa
U26_aaaaaa(x0, x1, x2)
U28_aaaaaa(x0, x1, x2)
U15_aa(x0)
p67_in_agaaaa(x0)
p95_in_agaaaa(x0)
U22_aa(x0)
p67_in_gaaaaa(x0)
p95_in_gaaaaa(x0)
U16_agaaaa(x0)
U17_agaaaa(x0)
U18_agaaaa(x0, x1)
U20_agaaaa(x0, x1)
U23_agaaaa(x0)
U24_agaaaa(x0)
U25_agaaaa(x0)
U27_agaaaa(x0)
U16_gaaaaa(x0)
U17_gaaaaa(x0)
U18_gaaaaa(x0)
U20_gaaaaa(x0)
U23_gaaaaa(x0)
U24_gaaaaa(x0)
U25_gaaaaa(x0, x1)
U27_gaaaaa(x0, x1)
le69_in_ag(x0)
U19_agaaaa(x0, x1)
U21_agaaaa(x0, x1)
gt97_in_ag(x0)
U26_agaaaa(x0, x1)
U28_agaaaa(x0, x1)
le69_in_ga(x0)
U19_gaaaaa(x0, x1)
U21_gaaaaa(x0, x1)
gt97_in_ga(x0)
U26_gaaaaa(x0, x1)
U28_gaaaaa(x0, x1)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(128) Rewriting (EQUIVALENT transformation)

By rewriting [LPAR04] the rule MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(split17_in_ggaaa(T144, .(T145, T146))) at position [0] we obtained the following new rules [LPAR04]:

MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(U2_ggaaa(T144, split21_in_gaaa(.(T145, T146))))

(129) Obligation:

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

U4_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(split17_in_ggaaa(T144, .(T145, T146)))
U6_GAA(split17_out_ggaaa(T156, T157)) → U7_GAA(T157, mergesort33_in_gaa(T156))
U7_GAA(T157, mergesort33_out_gaa) → MERGESORT33_IN_GAA(T157)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(split17_in_ggaaa(T144, .(T145, T146)))
U9_GAA(split17_out_ggaaa(T156, T157)) → U10_GAA(T157, mergesort33_in_gaa(T156))
U10_GAA(T157, mergesort33_out_gaa) → MERGESORT33_IN_GAA(T157)
U9_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(U2_ggaaa(T144, split21_in_gaaa(.(T145, T146))))

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, split21_in_gaaa(T73))
mergesort33_in_gaa([]) → mergesort33_out_gaa
mergesort33_in_gaa(.(T132, [])) → mergesort33_out_gaa
mergesort33_in_gaa(.(T144, .(T145, T146))) → U3_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U4_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U6_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U9_gaa(split17_in_ggaaa(T144, .(T145, T146)))
U2_ggaaa(T72, split21_out_gaaa(X125, X124)) → split17_out_ggaaa(.(T72, X124), X125)
U3_gaa(split17_out_ggaaa(X230, X231)) → mergesort33_out_gaa
U4_gaa(split17_out_ggaaa(T156, T157)) → U5_gaa(mergesort33_in_gaa(T156))
U6_gaa(split17_out_ggaaa(T156, T157)) → U7_gaa(T157, mergesort33_in_gaa(T156))
U9_gaa(split17_out_ggaaa(T156, T157)) → U10_gaa(T157, mergesort33_in_gaa(T156))
split21_in_gaaa([]) → split21_out_gaaa([], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, split21_in_gaaa(T93))
U5_gaa(mergesort33_out_gaa) → mergesort33_out_gaa
U7_gaa(T157, mergesort33_out_gaa) → U8_gaa(mergesort33_in_gaa(T157))
U10_gaa(T157, mergesort33_out_gaa) → U11_gaa(mergesort33_in_gaa(T157))
U1_gaaa(T92, split21_out_gaaa(X163, X162)) → split21_out_gaaa(.(T92, X162), X163)
U8_gaa(mergesort33_out_gaa) → mergesort33_out_gaa
U11_gaa(mergesort33_out_gaa) → U12_gaa(merge34_in_aaaaa)
U12_gaa(merge34_out_aaaaa) → mergesort33_out_gaa
merge34_in_aaaaamerge34_out_aaaaa
merge34_in_aaaaaU13_aaaaa(p67_in_aaaaaa)
merge34_in_aaaaaU14_aaaaa(p95_in_aaaaaa)
U13_aaaaa(p67_out_aaaaaa(T249, T251)) → merge34_out_aaaaa
U14_aaaaa(p95_out_aaaaaa(T473, T475)) → merge34_out_aaaaa
p67_in_aaaaaaU16_aaaaaa(le69_in_aa)
p67_in_aaaaaaU17_aaaaaa(le69_in_aa)
p67_in_aaaaaaU18_aaaaaa(le69_in_aa)
p67_in_aaaaaaU20_aaaaaa(le69_in_aa)
p95_in_aaaaaaU23_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU24_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU25_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU27_aaaaaa(gt97_in_aa)
U16_aaaaaa(le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251)
U17_aaaaaa(le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292)
U18_aaaaaa(le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_aaaaaa(le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_aaaaaa(gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351)
U24_aaaaaa(gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351)
U25_aaaaaa(gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_aaaaaa(gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_aaU15_aa(le69_in_aa)
le69_in_aale69_out_aa(0, s(0))
le69_in_aale69_out_aa(0, 0)
U19_aaaaaa(T249, T326, p67_out_agaaaa(T324)) → p67_out_aaaaaa(T249, T326)
U21_aaaaaa(T249, T351, p95_out_agaaaa(T349)) → p67_out_aaaaaa(T249, T351)
gt97_in_aaU22_aa(gt97_in_aa)
gt97_in_aagt97_out_aa(s(0), 0)
U26_aaaaaa(T423, T351, p67_out_gaaaaa(T425)) → p95_out_aaaaaa(T423, T351)
U28_aaaaaa(T448, T351, p95_out_gaaaaa(T450)) → p95_out_aaaaaa(T448, T351)
U15_aa(le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
p67_in_agaaaa(T251) → U16_agaaaa(le69_in_ag(T251))
p67_in_agaaaa(T292) → U17_agaaaa(le69_in_ag(T292))
p67_in_agaaaa(T326) → U18_agaaaa(T326, le69_in_ag(T326))
p67_in_agaaaa(T351) → U20_agaaaa(T351, le69_in_ag(T351))
p95_in_agaaaa(T351) → U23_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U24_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U25_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U27_agaaaa(gt97_in_ag(T351))
U22_aa(gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
p67_in_gaaaaa(T249) → U16_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U17_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U18_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U20_gaaaaa(le69_in_ga(T249))
p95_in_gaaaaa(T349) → U23_gaaaaa(gt97_in_ga(T349))
p95_in_gaaaaa(T392) → U24_gaaaaa(gt97_in_ga(T392))
p95_in_gaaaaa(T423) → U25_gaaaaa(T423, gt97_in_ga(T423))
p95_in_gaaaaa(T448) → U27_gaaaaa(T448, gt97_in_ga(T448))
U16_agaaaa(le69_out_ag(T249)) → p67_out_agaaaa(T249)
U17_agaaaa(le69_out_ag(T249)) → p67_out_agaaaa(T249)
U18_agaaaa(T326, le69_out_ag(T249)) → U19_agaaaa(T249, p67_in_agaaaa(T326))
U20_agaaaa(T351, le69_out_ag(T249)) → U21_agaaaa(T249, p95_in_agaaaa(T351))
U23_agaaaa(gt97_out_ag(T349)) → p95_out_agaaaa(T349)
U24_agaaaa(gt97_out_ag(T392)) → p95_out_agaaaa(T392)
U25_agaaaa(gt97_out_ag(T423)) → U26_agaaaa(T423, p67_in_gaaaaa(T423))
U27_agaaaa(gt97_out_ag(T448)) → U28_agaaaa(T448, p95_in_gaaaaa(T448))
U16_gaaaaa(le69_out_ga(T251)) → p67_out_gaaaaa(T251)
U17_gaaaaa(le69_out_ga(T292)) → p67_out_gaaaaa(T292)
U18_gaaaaa(le69_out_ga(T326)) → U19_gaaaaa(T326, p67_in_agaaaa(T326))
U20_gaaaaa(le69_out_ga(T351)) → U21_gaaaaa(T351, p95_in_agaaaa(T351))
U23_gaaaaa(gt97_out_ga(T351)) → p95_out_gaaaaa(T351)
U24_gaaaaa(gt97_out_ga(T351)) → p95_out_gaaaaa(T351)
U25_gaaaaa(T423, gt97_out_ga(T351)) → U26_gaaaaa(T351, p67_in_gaaaaa(T423))
U27_gaaaaa(T448, gt97_out_ga(T351)) → U28_gaaaaa(T351, p95_in_gaaaaa(T448))
le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
U19_agaaaa(T249, p67_out_agaaaa(T324)) → p67_out_agaaaa(T249)
U21_agaaaa(T249, p95_out_agaaaa(T349)) → p67_out_agaaaa(T249)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
U26_agaaaa(T423, p67_out_gaaaaa(T425)) → p95_out_agaaaa(T423)
U28_agaaaa(T448, p95_out_gaaaaa(T450)) → p95_out_agaaaa(T448)
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
U19_gaaaaa(T326, p67_out_agaaaa(T324)) → p67_out_gaaaaa(T326)
U21_gaaaaa(T351, p95_out_agaaaa(T349)) → p67_out_gaaaaa(T351)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U26_gaaaaa(T351, p67_out_gaaaaa(T425)) → p95_out_gaaaaa(T351)
U28_gaaaaa(T351, p95_out_gaaaaa(T450)) → p95_out_gaaaaa(T351)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
mergesort33_in_gaa(x0)
U2_ggaaa(x0, x1)
U3_gaa(x0)
U4_gaa(x0)
U6_gaa(x0)
U9_gaa(x0)
split21_in_gaaa(x0)
U5_gaa(x0)
U7_gaa(x0, x1)
U10_gaa(x0, x1)
U1_gaaa(x0, x1)
U8_gaa(x0)
U11_gaa(x0)
U12_gaa(x0)
merge34_in_aaaaa
U13_aaaaa(x0)
U14_aaaaa(x0)
p67_in_aaaaaa
p95_in_aaaaaa
U16_aaaaaa(x0)
U17_aaaaaa(x0)
U18_aaaaaa(x0)
U20_aaaaaa(x0)
U23_aaaaaa(x0)
U24_aaaaaa(x0)
U25_aaaaaa(x0)
U27_aaaaaa(x0)
le69_in_aa
U19_aaaaaa(x0, x1, x2)
U21_aaaaaa(x0, x1, x2)
gt97_in_aa
U26_aaaaaa(x0, x1, x2)
U28_aaaaaa(x0, x1, x2)
U15_aa(x0)
p67_in_agaaaa(x0)
p95_in_agaaaa(x0)
U22_aa(x0)
p67_in_gaaaaa(x0)
p95_in_gaaaaa(x0)
U16_agaaaa(x0)
U17_agaaaa(x0)
U18_agaaaa(x0, x1)
U20_agaaaa(x0, x1)
U23_agaaaa(x0)
U24_agaaaa(x0)
U25_agaaaa(x0)
U27_agaaaa(x0)
U16_gaaaaa(x0)
U17_gaaaaa(x0)
U18_gaaaaa(x0)
U20_gaaaaa(x0)
U23_gaaaaa(x0)
U24_gaaaaa(x0)
U25_gaaaaa(x0, x1)
U27_gaaaaa(x0, x1)
le69_in_ag(x0)
U19_agaaaa(x0, x1)
U21_agaaaa(x0, x1)
gt97_in_ag(x0)
U26_agaaaa(x0, x1)
U28_agaaaa(x0, x1)
le69_in_ga(x0)
U19_gaaaaa(x0, x1)
U21_gaaaaa(x0, x1)
gt97_in_ga(x0)
U26_gaaaaa(x0, x1)
U28_gaaaaa(x0, x1)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(130) Rewriting (EQUIVALENT transformation)

By rewriting [LPAR04] the rule MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(split17_in_ggaaa(T144, .(T145, T146))) at position [0] we obtained the following new rules [LPAR04]:

MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(U2_ggaaa(T144, split21_in_gaaa(.(T145, T146))))

(131) Obligation:

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

U4_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(split17_out_ggaaa(T156, T157)) → U7_GAA(T157, mergesort33_in_gaa(T156))
U7_GAA(T157, mergesort33_out_gaa) → MERGESORT33_IN_GAA(T157)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(split17_in_ggaaa(T144, .(T145, T146)))
U9_GAA(split17_out_ggaaa(T156, T157)) → U10_GAA(T157, mergesort33_in_gaa(T156))
U10_GAA(T157, mergesort33_out_gaa) → MERGESORT33_IN_GAA(T157)
U9_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(U2_ggaaa(T144, split21_in_gaaa(.(T145, T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(U2_ggaaa(T144, split21_in_gaaa(.(T145, T146))))

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, split21_in_gaaa(T73))
mergesort33_in_gaa([]) → mergesort33_out_gaa
mergesort33_in_gaa(.(T132, [])) → mergesort33_out_gaa
mergesort33_in_gaa(.(T144, .(T145, T146))) → U3_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U4_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U6_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U9_gaa(split17_in_ggaaa(T144, .(T145, T146)))
U2_ggaaa(T72, split21_out_gaaa(X125, X124)) → split17_out_ggaaa(.(T72, X124), X125)
U3_gaa(split17_out_ggaaa(X230, X231)) → mergesort33_out_gaa
U4_gaa(split17_out_ggaaa(T156, T157)) → U5_gaa(mergesort33_in_gaa(T156))
U6_gaa(split17_out_ggaaa(T156, T157)) → U7_gaa(T157, mergesort33_in_gaa(T156))
U9_gaa(split17_out_ggaaa(T156, T157)) → U10_gaa(T157, mergesort33_in_gaa(T156))
split21_in_gaaa([]) → split21_out_gaaa([], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, split21_in_gaaa(T93))
U5_gaa(mergesort33_out_gaa) → mergesort33_out_gaa
U7_gaa(T157, mergesort33_out_gaa) → U8_gaa(mergesort33_in_gaa(T157))
U10_gaa(T157, mergesort33_out_gaa) → U11_gaa(mergesort33_in_gaa(T157))
U1_gaaa(T92, split21_out_gaaa(X163, X162)) → split21_out_gaaa(.(T92, X162), X163)
U8_gaa(mergesort33_out_gaa) → mergesort33_out_gaa
U11_gaa(mergesort33_out_gaa) → U12_gaa(merge34_in_aaaaa)
U12_gaa(merge34_out_aaaaa) → mergesort33_out_gaa
merge34_in_aaaaamerge34_out_aaaaa
merge34_in_aaaaaU13_aaaaa(p67_in_aaaaaa)
merge34_in_aaaaaU14_aaaaa(p95_in_aaaaaa)
U13_aaaaa(p67_out_aaaaaa(T249, T251)) → merge34_out_aaaaa
U14_aaaaa(p95_out_aaaaaa(T473, T475)) → merge34_out_aaaaa
p67_in_aaaaaaU16_aaaaaa(le69_in_aa)
p67_in_aaaaaaU17_aaaaaa(le69_in_aa)
p67_in_aaaaaaU18_aaaaaa(le69_in_aa)
p67_in_aaaaaaU20_aaaaaa(le69_in_aa)
p95_in_aaaaaaU23_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU24_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU25_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU27_aaaaaa(gt97_in_aa)
U16_aaaaaa(le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251)
U17_aaaaaa(le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292)
U18_aaaaaa(le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_aaaaaa(le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_aaaaaa(gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351)
U24_aaaaaa(gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351)
U25_aaaaaa(gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_aaaaaa(gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_aaU15_aa(le69_in_aa)
le69_in_aale69_out_aa(0, s(0))
le69_in_aale69_out_aa(0, 0)
U19_aaaaaa(T249, T326, p67_out_agaaaa(T324)) → p67_out_aaaaaa(T249, T326)
U21_aaaaaa(T249, T351, p95_out_agaaaa(T349)) → p67_out_aaaaaa(T249, T351)
gt97_in_aaU22_aa(gt97_in_aa)
gt97_in_aagt97_out_aa(s(0), 0)
U26_aaaaaa(T423, T351, p67_out_gaaaaa(T425)) → p95_out_aaaaaa(T423, T351)
U28_aaaaaa(T448, T351, p95_out_gaaaaa(T450)) → p95_out_aaaaaa(T448, T351)
U15_aa(le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
p67_in_agaaaa(T251) → U16_agaaaa(le69_in_ag(T251))
p67_in_agaaaa(T292) → U17_agaaaa(le69_in_ag(T292))
p67_in_agaaaa(T326) → U18_agaaaa(T326, le69_in_ag(T326))
p67_in_agaaaa(T351) → U20_agaaaa(T351, le69_in_ag(T351))
p95_in_agaaaa(T351) → U23_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U24_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U25_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U27_agaaaa(gt97_in_ag(T351))
U22_aa(gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
p67_in_gaaaaa(T249) → U16_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U17_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U18_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U20_gaaaaa(le69_in_ga(T249))
p95_in_gaaaaa(T349) → U23_gaaaaa(gt97_in_ga(T349))
p95_in_gaaaaa(T392) → U24_gaaaaa(gt97_in_ga(T392))
p95_in_gaaaaa(T423) → U25_gaaaaa(T423, gt97_in_ga(T423))
p95_in_gaaaaa(T448) → U27_gaaaaa(T448, gt97_in_ga(T448))
U16_agaaaa(le69_out_ag(T249)) → p67_out_agaaaa(T249)
U17_agaaaa(le69_out_ag(T249)) → p67_out_agaaaa(T249)
U18_agaaaa(T326, le69_out_ag(T249)) → U19_agaaaa(T249, p67_in_agaaaa(T326))
U20_agaaaa(T351, le69_out_ag(T249)) → U21_agaaaa(T249, p95_in_agaaaa(T351))
U23_agaaaa(gt97_out_ag(T349)) → p95_out_agaaaa(T349)
U24_agaaaa(gt97_out_ag(T392)) → p95_out_agaaaa(T392)
U25_agaaaa(gt97_out_ag(T423)) → U26_agaaaa(T423, p67_in_gaaaaa(T423))
U27_agaaaa(gt97_out_ag(T448)) → U28_agaaaa(T448, p95_in_gaaaaa(T448))
U16_gaaaaa(le69_out_ga(T251)) → p67_out_gaaaaa(T251)
U17_gaaaaa(le69_out_ga(T292)) → p67_out_gaaaaa(T292)
U18_gaaaaa(le69_out_ga(T326)) → U19_gaaaaa(T326, p67_in_agaaaa(T326))
U20_gaaaaa(le69_out_ga(T351)) → U21_gaaaaa(T351, p95_in_agaaaa(T351))
U23_gaaaaa(gt97_out_ga(T351)) → p95_out_gaaaaa(T351)
U24_gaaaaa(gt97_out_ga(T351)) → p95_out_gaaaaa(T351)
U25_gaaaaa(T423, gt97_out_ga(T351)) → U26_gaaaaa(T351, p67_in_gaaaaa(T423))
U27_gaaaaa(T448, gt97_out_ga(T351)) → U28_gaaaaa(T351, p95_in_gaaaaa(T448))
le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
U19_agaaaa(T249, p67_out_agaaaa(T324)) → p67_out_agaaaa(T249)
U21_agaaaa(T249, p95_out_agaaaa(T349)) → p67_out_agaaaa(T249)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
U26_agaaaa(T423, p67_out_gaaaaa(T425)) → p95_out_agaaaa(T423)
U28_agaaaa(T448, p95_out_gaaaaa(T450)) → p95_out_agaaaa(T448)
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
U19_gaaaaa(T326, p67_out_agaaaa(T324)) → p67_out_gaaaaa(T326)
U21_gaaaaa(T351, p95_out_agaaaa(T349)) → p67_out_gaaaaa(T351)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U26_gaaaaa(T351, p67_out_gaaaaa(T425)) → p95_out_gaaaaa(T351)
U28_gaaaaa(T351, p95_out_gaaaaa(T450)) → p95_out_gaaaaa(T351)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
mergesort33_in_gaa(x0)
U2_ggaaa(x0, x1)
U3_gaa(x0)
U4_gaa(x0)
U6_gaa(x0)
U9_gaa(x0)
split21_in_gaaa(x0)
U5_gaa(x0)
U7_gaa(x0, x1)
U10_gaa(x0, x1)
U1_gaaa(x0, x1)
U8_gaa(x0)
U11_gaa(x0)
U12_gaa(x0)
merge34_in_aaaaa
U13_aaaaa(x0)
U14_aaaaa(x0)
p67_in_aaaaaa
p95_in_aaaaaa
U16_aaaaaa(x0)
U17_aaaaaa(x0)
U18_aaaaaa(x0)
U20_aaaaaa(x0)
U23_aaaaaa(x0)
U24_aaaaaa(x0)
U25_aaaaaa(x0)
U27_aaaaaa(x0)
le69_in_aa
U19_aaaaaa(x0, x1, x2)
U21_aaaaaa(x0, x1, x2)
gt97_in_aa
U26_aaaaaa(x0, x1, x2)
U28_aaaaaa(x0, x1, x2)
U15_aa(x0)
p67_in_agaaaa(x0)
p95_in_agaaaa(x0)
U22_aa(x0)
p67_in_gaaaaa(x0)
p95_in_gaaaaa(x0)
U16_agaaaa(x0)
U17_agaaaa(x0)
U18_agaaaa(x0, x1)
U20_agaaaa(x0, x1)
U23_agaaaa(x0)
U24_agaaaa(x0)
U25_agaaaa(x0)
U27_agaaaa(x0)
U16_gaaaaa(x0)
U17_gaaaaa(x0)
U18_gaaaaa(x0)
U20_gaaaaa(x0)
U23_gaaaaa(x0)
U24_gaaaaa(x0)
U25_gaaaaa(x0, x1)
U27_gaaaaa(x0, x1)
le69_in_ag(x0)
U19_agaaaa(x0, x1)
U21_agaaaa(x0, x1)
gt97_in_ag(x0)
U26_agaaaa(x0, x1)
U28_agaaaa(x0, x1)
le69_in_ga(x0)
U19_gaaaaa(x0, x1)
U21_gaaaaa(x0, x1)
gt97_in_ga(x0)
U26_gaaaaa(x0, x1)
U28_gaaaaa(x0, x1)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(132) Rewriting (EQUIVALENT transformation)

By rewriting [LPAR04] the rule MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(split17_in_ggaaa(T144, .(T145, T146))) at position [0] we obtained the following new rules [LPAR04]:

MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(U2_ggaaa(T144, split21_in_gaaa(.(T145, T146))))

(133) Obligation:

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

U4_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(split17_out_ggaaa(T156, T157)) → U7_GAA(T157, mergesort33_in_gaa(T156))
U7_GAA(T157, mergesort33_out_gaa) → MERGESORT33_IN_GAA(T157)
U9_GAA(split17_out_ggaaa(T156, T157)) → U10_GAA(T157, mergesort33_in_gaa(T156))
U10_GAA(T157, mergesort33_out_gaa) → MERGESORT33_IN_GAA(T157)
U9_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(U2_ggaaa(T144, split21_in_gaaa(.(T145, T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(U2_ggaaa(T144, split21_in_gaaa(.(T145, T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(U2_ggaaa(T144, split21_in_gaaa(.(T145, T146))))

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, split21_in_gaaa(T73))
mergesort33_in_gaa([]) → mergesort33_out_gaa
mergesort33_in_gaa(.(T132, [])) → mergesort33_out_gaa
mergesort33_in_gaa(.(T144, .(T145, T146))) → U3_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U4_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U6_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U9_gaa(split17_in_ggaaa(T144, .(T145, T146)))
U2_ggaaa(T72, split21_out_gaaa(X125, X124)) → split17_out_ggaaa(.(T72, X124), X125)
U3_gaa(split17_out_ggaaa(X230, X231)) → mergesort33_out_gaa
U4_gaa(split17_out_ggaaa(T156, T157)) → U5_gaa(mergesort33_in_gaa(T156))
U6_gaa(split17_out_ggaaa(T156, T157)) → U7_gaa(T157, mergesort33_in_gaa(T156))
U9_gaa(split17_out_ggaaa(T156, T157)) → U10_gaa(T157, mergesort33_in_gaa(T156))
split21_in_gaaa([]) → split21_out_gaaa([], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, split21_in_gaaa(T93))
U5_gaa(mergesort33_out_gaa) → mergesort33_out_gaa
U7_gaa(T157, mergesort33_out_gaa) → U8_gaa(mergesort33_in_gaa(T157))
U10_gaa(T157, mergesort33_out_gaa) → U11_gaa(mergesort33_in_gaa(T157))
U1_gaaa(T92, split21_out_gaaa(X163, X162)) → split21_out_gaaa(.(T92, X162), X163)
U8_gaa(mergesort33_out_gaa) → mergesort33_out_gaa
U11_gaa(mergesort33_out_gaa) → U12_gaa(merge34_in_aaaaa)
U12_gaa(merge34_out_aaaaa) → mergesort33_out_gaa
merge34_in_aaaaamerge34_out_aaaaa
merge34_in_aaaaaU13_aaaaa(p67_in_aaaaaa)
merge34_in_aaaaaU14_aaaaa(p95_in_aaaaaa)
U13_aaaaa(p67_out_aaaaaa(T249, T251)) → merge34_out_aaaaa
U14_aaaaa(p95_out_aaaaaa(T473, T475)) → merge34_out_aaaaa
p67_in_aaaaaaU16_aaaaaa(le69_in_aa)
p67_in_aaaaaaU17_aaaaaa(le69_in_aa)
p67_in_aaaaaaU18_aaaaaa(le69_in_aa)
p67_in_aaaaaaU20_aaaaaa(le69_in_aa)
p95_in_aaaaaaU23_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU24_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU25_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU27_aaaaaa(gt97_in_aa)
U16_aaaaaa(le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251)
U17_aaaaaa(le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292)
U18_aaaaaa(le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_aaaaaa(le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_aaaaaa(gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351)
U24_aaaaaa(gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351)
U25_aaaaaa(gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_aaaaaa(gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_aaU15_aa(le69_in_aa)
le69_in_aale69_out_aa(0, s(0))
le69_in_aale69_out_aa(0, 0)
U19_aaaaaa(T249, T326, p67_out_agaaaa(T324)) → p67_out_aaaaaa(T249, T326)
U21_aaaaaa(T249, T351, p95_out_agaaaa(T349)) → p67_out_aaaaaa(T249, T351)
gt97_in_aaU22_aa(gt97_in_aa)
gt97_in_aagt97_out_aa(s(0), 0)
U26_aaaaaa(T423, T351, p67_out_gaaaaa(T425)) → p95_out_aaaaaa(T423, T351)
U28_aaaaaa(T448, T351, p95_out_gaaaaa(T450)) → p95_out_aaaaaa(T448, T351)
U15_aa(le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
p67_in_agaaaa(T251) → U16_agaaaa(le69_in_ag(T251))
p67_in_agaaaa(T292) → U17_agaaaa(le69_in_ag(T292))
p67_in_agaaaa(T326) → U18_agaaaa(T326, le69_in_ag(T326))
p67_in_agaaaa(T351) → U20_agaaaa(T351, le69_in_ag(T351))
p95_in_agaaaa(T351) → U23_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U24_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U25_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U27_agaaaa(gt97_in_ag(T351))
U22_aa(gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
p67_in_gaaaaa(T249) → U16_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U17_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U18_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U20_gaaaaa(le69_in_ga(T249))
p95_in_gaaaaa(T349) → U23_gaaaaa(gt97_in_ga(T349))
p95_in_gaaaaa(T392) → U24_gaaaaa(gt97_in_ga(T392))
p95_in_gaaaaa(T423) → U25_gaaaaa(T423, gt97_in_ga(T423))
p95_in_gaaaaa(T448) → U27_gaaaaa(T448, gt97_in_ga(T448))
U16_agaaaa(le69_out_ag(T249)) → p67_out_agaaaa(T249)
U17_agaaaa(le69_out_ag(T249)) → p67_out_agaaaa(T249)
U18_agaaaa(T326, le69_out_ag(T249)) → U19_agaaaa(T249, p67_in_agaaaa(T326))
U20_agaaaa(T351, le69_out_ag(T249)) → U21_agaaaa(T249, p95_in_agaaaa(T351))
U23_agaaaa(gt97_out_ag(T349)) → p95_out_agaaaa(T349)
U24_agaaaa(gt97_out_ag(T392)) → p95_out_agaaaa(T392)
U25_agaaaa(gt97_out_ag(T423)) → U26_agaaaa(T423, p67_in_gaaaaa(T423))
U27_agaaaa(gt97_out_ag(T448)) → U28_agaaaa(T448, p95_in_gaaaaa(T448))
U16_gaaaaa(le69_out_ga(T251)) → p67_out_gaaaaa(T251)
U17_gaaaaa(le69_out_ga(T292)) → p67_out_gaaaaa(T292)
U18_gaaaaa(le69_out_ga(T326)) → U19_gaaaaa(T326, p67_in_agaaaa(T326))
U20_gaaaaa(le69_out_ga(T351)) → U21_gaaaaa(T351, p95_in_agaaaa(T351))
U23_gaaaaa(gt97_out_ga(T351)) → p95_out_gaaaaa(T351)
U24_gaaaaa(gt97_out_ga(T351)) → p95_out_gaaaaa(T351)
U25_gaaaaa(T423, gt97_out_ga(T351)) → U26_gaaaaa(T351, p67_in_gaaaaa(T423))
U27_gaaaaa(T448, gt97_out_ga(T351)) → U28_gaaaaa(T351, p95_in_gaaaaa(T448))
le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
U19_agaaaa(T249, p67_out_agaaaa(T324)) → p67_out_agaaaa(T249)
U21_agaaaa(T249, p95_out_agaaaa(T349)) → p67_out_agaaaa(T249)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
U26_agaaaa(T423, p67_out_gaaaaa(T425)) → p95_out_agaaaa(T423)
U28_agaaaa(T448, p95_out_gaaaaa(T450)) → p95_out_agaaaa(T448)
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
U19_gaaaaa(T326, p67_out_agaaaa(T324)) → p67_out_gaaaaa(T326)
U21_gaaaaa(T351, p95_out_agaaaa(T349)) → p67_out_gaaaaa(T351)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U26_gaaaaa(T351, p67_out_gaaaaa(T425)) → p95_out_gaaaaa(T351)
U28_gaaaaa(T351, p95_out_gaaaaa(T450)) → p95_out_gaaaaa(T351)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
mergesort33_in_gaa(x0)
U2_ggaaa(x0, x1)
U3_gaa(x0)
U4_gaa(x0)
U6_gaa(x0)
U9_gaa(x0)
split21_in_gaaa(x0)
U5_gaa(x0)
U7_gaa(x0, x1)
U10_gaa(x0, x1)
U1_gaaa(x0, x1)
U8_gaa(x0)
U11_gaa(x0)
U12_gaa(x0)
merge34_in_aaaaa
U13_aaaaa(x0)
U14_aaaaa(x0)
p67_in_aaaaaa
p95_in_aaaaaa
U16_aaaaaa(x0)
U17_aaaaaa(x0)
U18_aaaaaa(x0)
U20_aaaaaa(x0)
U23_aaaaaa(x0)
U24_aaaaaa(x0)
U25_aaaaaa(x0)
U27_aaaaaa(x0)
le69_in_aa
U19_aaaaaa(x0, x1, x2)
U21_aaaaaa(x0, x1, x2)
gt97_in_aa
U26_aaaaaa(x0, x1, x2)
U28_aaaaaa(x0, x1, x2)
U15_aa(x0)
p67_in_agaaaa(x0)
p95_in_agaaaa(x0)
U22_aa(x0)
p67_in_gaaaaa(x0)
p95_in_gaaaaa(x0)
U16_agaaaa(x0)
U17_agaaaa(x0)
U18_agaaaa(x0, x1)
U20_agaaaa(x0, x1)
U23_agaaaa(x0)
U24_agaaaa(x0)
U25_agaaaa(x0)
U27_agaaaa(x0)
U16_gaaaaa(x0)
U17_gaaaaa(x0)
U18_gaaaaa(x0)
U20_gaaaaa(x0)
U23_gaaaaa(x0)
U24_gaaaaa(x0)
U25_gaaaaa(x0, x1)
U27_gaaaaa(x0, x1)
le69_in_ag(x0)
U19_agaaaa(x0, x1)
U21_agaaaa(x0, x1)
gt97_in_ag(x0)
U26_agaaaa(x0, x1)
U28_agaaaa(x0, x1)
le69_in_ga(x0)
U19_gaaaaa(x0, x1)
U21_gaaaaa(x0, x1)
gt97_in_ga(x0)
U26_gaaaaa(x0, x1)
U28_gaaaaa(x0, x1)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(134) Rewriting (EQUIVALENT transformation)

By rewriting [LPAR04] the rule MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(U2_ggaaa(T144, split21_in_gaaa(.(T145, T146)))) at position [0,1] we obtained the following new rules [LPAR04]:

MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(U2_ggaaa(T144, U1_gaaa(T145, split21_in_gaaa(T146))))

(135) Obligation:

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

U4_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(split17_out_ggaaa(T156, T157)) → U7_GAA(T157, mergesort33_in_gaa(T156))
U7_GAA(T157, mergesort33_out_gaa) → MERGESORT33_IN_GAA(T157)
U9_GAA(split17_out_ggaaa(T156, T157)) → U10_GAA(T157, mergesort33_in_gaa(T156))
U10_GAA(T157, mergesort33_out_gaa) → MERGESORT33_IN_GAA(T157)
U9_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(U2_ggaaa(T144, split21_in_gaaa(.(T145, T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(U2_ggaaa(T144, split21_in_gaaa(.(T145, T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(U2_ggaaa(T144, U1_gaaa(T145, split21_in_gaaa(T146))))

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, split21_in_gaaa(T73))
mergesort33_in_gaa([]) → mergesort33_out_gaa
mergesort33_in_gaa(.(T132, [])) → mergesort33_out_gaa
mergesort33_in_gaa(.(T144, .(T145, T146))) → U3_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U4_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U6_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U9_gaa(split17_in_ggaaa(T144, .(T145, T146)))
U2_ggaaa(T72, split21_out_gaaa(X125, X124)) → split17_out_ggaaa(.(T72, X124), X125)
U3_gaa(split17_out_ggaaa(X230, X231)) → mergesort33_out_gaa
U4_gaa(split17_out_ggaaa(T156, T157)) → U5_gaa(mergesort33_in_gaa(T156))
U6_gaa(split17_out_ggaaa(T156, T157)) → U7_gaa(T157, mergesort33_in_gaa(T156))
U9_gaa(split17_out_ggaaa(T156, T157)) → U10_gaa(T157, mergesort33_in_gaa(T156))
split21_in_gaaa([]) → split21_out_gaaa([], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, split21_in_gaaa(T93))
U5_gaa(mergesort33_out_gaa) → mergesort33_out_gaa
U7_gaa(T157, mergesort33_out_gaa) → U8_gaa(mergesort33_in_gaa(T157))
U10_gaa(T157, mergesort33_out_gaa) → U11_gaa(mergesort33_in_gaa(T157))
U1_gaaa(T92, split21_out_gaaa(X163, X162)) → split21_out_gaaa(.(T92, X162), X163)
U8_gaa(mergesort33_out_gaa) → mergesort33_out_gaa
U11_gaa(mergesort33_out_gaa) → U12_gaa(merge34_in_aaaaa)
U12_gaa(merge34_out_aaaaa) → mergesort33_out_gaa
merge34_in_aaaaamerge34_out_aaaaa
merge34_in_aaaaaU13_aaaaa(p67_in_aaaaaa)
merge34_in_aaaaaU14_aaaaa(p95_in_aaaaaa)
U13_aaaaa(p67_out_aaaaaa(T249, T251)) → merge34_out_aaaaa
U14_aaaaa(p95_out_aaaaaa(T473, T475)) → merge34_out_aaaaa
p67_in_aaaaaaU16_aaaaaa(le69_in_aa)
p67_in_aaaaaaU17_aaaaaa(le69_in_aa)
p67_in_aaaaaaU18_aaaaaa(le69_in_aa)
p67_in_aaaaaaU20_aaaaaa(le69_in_aa)
p95_in_aaaaaaU23_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU24_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU25_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU27_aaaaaa(gt97_in_aa)
U16_aaaaaa(le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251)
U17_aaaaaa(le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292)
U18_aaaaaa(le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_aaaaaa(le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_aaaaaa(gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351)
U24_aaaaaa(gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351)
U25_aaaaaa(gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_aaaaaa(gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_aaU15_aa(le69_in_aa)
le69_in_aale69_out_aa(0, s(0))
le69_in_aale69_out_aa(0, 0)
U19_aaaaaa(T249, T326, p67_out_agaaaa(T324)) → p67_out_aaaaaa(T249, T326)
U21_aaaaaa(T249, T351, p95_out_agaaaa(T349)) → p67_out_aaaaaa(T249, T351)
gt97_in_aaU22_aa(gt97_in_aa)
gt97_in_aagt97_out_aa(s(0), 0)
U26_aaaaaa(T423, T351, p67_out_gaaaaa(T425)) → p95_out_aaaaaa(T423, T351)
U28_aaaaaa(T448, T351, p95_out_gaaaaa(T450)) → p95_out_aaaaaa(T448, T351)
U15_aa(le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
p67_in_agaaaa(T251) → U16_agaaaa(le69_in_ag(T251))
p67_in_agaaaa(T292) → U17_agaaaa(le69_in_ag(T292))
p67_in_agaaaa(T326) → U18_agaaaa(T326, le69_in_ag(T326))
p67_in_agaaaa(T351) → U20_agaaaa(T351, le69_in_ag(T351))
p95_in_agaaaa(T351) → U23_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U24_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U25_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U27_agaaaa(gt97_in_ag(T351))
U22_aa(gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
p67_in_gaaaaa(T249) → U16_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U17_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U18_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U20_gaaaaa(le69_in_ga(T249))
p95_in_gaaaaa(T349) → U23_gaaaaa(gt97_in_ga(T349))
p95_in_gaaaaa(T392) → U24_gaaaaa(gt97_in_ga(T392))
p95_in_gaaaaa(T423) → U25_gaaaaa(T423, gt97_in_ga(T423))
p95_in_gaaaaa(T448) → U27_gaaaaa(T448, gt97_in_ga(T448))
U16_agaaaa(le69_out_ag(T249)) → p67_out_agaaaa(T249)
U17_agaaaa(le69_out_ag(T249)) → p67_out_agaaaa(T249)
U18_agaaaa(T326, le69_out_ag(T249)) → U19_agaaaa(T249, p67_in_agaaaa(T326))
U20_agaaaa(T351, le69_out_ag(T249)) → U21_agaaaa(T249, p95_in_agaaaa(T351))
U23_agaaaa(gt97_out_ag(T349)) → p95_out_agaaaa(T349)
U24_agaaaa(gt97_out_ag(T392)) → p95_out_agaaaa(T392)
U25_agaaaa(gt97_out_ag(T423)) → U26_agaaaa(T423, p67_in_gaaaaa(T423))
U27_agaaaa(gt97_out_ag(T448)) → U28_agaaaa(T448, p95_in_gaaaaa(T448))
U16_gaaaaa(le69_out_ga(T251)) → p67_out_gaaaaa(T251)
U17_gaaaaa(le69_out_ga(T292)) → p67_out_gaaaaa(T292)
U18_gaaaaa(le69_out_ga(T326)) → U19_gaaaaa(T326, p67_in_agaaaa(T326))
U20_gaaaaa(le69_out_ga(T351)) → U21_gaaaaa(T351, p95_in_agaaaa(T351))
U23_gaaaaa(gt97_out_ga(T351)) → p95_out_gaaaaa(T351)
U24_gaaaaa(gt97_out_ga(T351)) → p95_out_gaaaaa(T351)
U25_gaaaaa(T423, gt97_out_ga(T351)) → U26_gaaaaa(T351, p67_in_gaaaaa(T423))
U27_gaaaaa(T448, gt97_out_ga(T351)) → U28_gaaaaa(T351, p95_in_gaaaaa(T448))
le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
U19_agaaaa(T249, p67_out_agaaaa(T324)) → p67_out_agaaaa(T249)
U21_agaaaa(T249, p95_out_agaaaa(T349)) → p67_out_agaaaa(T249)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
U26_agaaaa(T423, p67_out_gaaaaa(T425)) → p95_out_agaaaa(T423)
U28_agaaaa(T448, p95_out_gaaaaa(T450)) → p95_out_agaaaa(T448)
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
U19_gaaaaa(T326, p67_out_agaaaa(T324)) → p67_out_gaaaaa(T326)
U21_gaaaaa(T351, p95_out_agaaaa(T349)) → p67_out_gaaaaa(T351)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U26_gaaaaa(T351, p67_out_gaaaaa(T425)) → p95_out_gaaaaa(T351)
U28_gaaaaa(T351, p95_out_gaaaaa(T450)) → p95_out_gaaaaa(T351)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
mergesort33_in_gaa(x0)
U2_ggaaa(x0, x1)
U3_gaa(x0)
U4_gaa(x0)
U6_gaa(x0)
U9_gaa(x0)
split21_in_gaaa(x0)
U5_gaa(x0)
U7_gaa(x0, x1)
U10_gaa(x0, x1)
U1_gaaa(x0, x1)
U8_gaa(x0)
U11_gaa(x0)
U12_gaa(x0)
merge34_in_aaaaa
U13_aaaaa(x0)
U14_aaaaa(x0)
p67_in_aaaaaa
p95_in_aaaaaa
U16_aaaaaa(x0)
U17_aaaaaa(x0)
U18_aaaaaa(x0)
U20_aaaaaa(x0)
U23_aaaaaa(x0)
U24_aaaaaa(x0)
U25_aaaaaa(x0)
U27_aaaaaa(x0)
le69_in_aa
U19_aaaaaa(x0, x1, x2)
U21_aaaaaa(x0, x1, x2)
gt97_in_aa
U26_aaaaaa(x0, x1, x2)
U28_aaaaaa(x0, x1, x2)
U15_aa(x0)
p67_in_agaaaa(x0)
p95_in_agaaaa(x0)
U22_aa(x0)
p67_in_gaaaaa(x0)
p95_in_gaaaaa(x0)
U16_agaaaa(x0)
U17_agaaaa(x0)
U18_agaaaa(x0, x1)
U20_agaaaa(x0, x1)
U23_agaaaa(x0)
U24_agaaaa(x0)
U25_agaaaa(x0)
U27_agaaaa(x0)
U16_gaaaaa(x0)
U17_gaaaaa(x0)
U18_gaaaaa(x0)
U20_gaaaaa(x0)
U23_gaaaaa(x0)
U24_gaaaaa(x0)
U25_gaaaaa(x0, x1)
U27_gaaaaa(x0, x1)
le69_in_ag(x0)
U19_agaaaa(x0, x1)
U21_agaaaa(x0, x1)
gt97_in_ag(x0)
U26_agaaaa(x0, x1)
U28_agaaaa(x0, x1)
le69_in_ga(x0)
U19_gaaaaa(x0, x1)
U21_gaaaaa(x0, x1)
gt97_in_ga(x0)
U26_gaaaaa(x0, x1)
U28_gaaaaa(x0, x1)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(136) Rewriting (EQUIVALENT transformation)

By rewriting [LPAR04] the rule MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(U2_ggaaa(T144, split21_in_gaaa(.(T145, T146)))) at position [0,1] we obtained the following new rules [LPAR04]:

MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(U2_ggaaa(T144, U1_gaaa(T145, split21_in_gaaa(T146))))

(137) Obligation:

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

U4_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(split17_out_ggaaa(T156, T157)) → U7_GAA(T157, mergesort33_in_gaa(T156))
U7_GAA(T157, mergesort33_out_gaa) → MERGESORT33_IN_GAA(T157)
U9_GAA(split17_out_ggaaa(T156, T157)) → U10_GAA(T157, mergesort33_in_gaa(T156))
U10_GAA(T157, mergesort33_out_gaa) → MERGESORT33_IN_GAA(T157)
U9_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(U2_ggaaa(T144, split21_in_gaaa(.(T145, T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(U2_ggaaa(T144, U1_gaaa(T145, split21_in_gaaa(T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(U2_ggaaa(T144, U1_gaaa(T145, split21_in_gaaa(T146))))

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, split21_in_gaaa(T73))
mergesort33_in_gaa([]) → mergesort33_out_gaa
mergesort33_in_gaa(.(T132, [])) → mergesort33_out_gaa
mergesort33_in_gaa(.(T144, .(T145, T146))) → U3_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U4_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U6_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U9_gaa(split17_in_ggaaa(T144, .(T145, T146)))
U2_ggaaa(T72, split21_out_gaaa(X125, X124)) → split17_out_ggaaa(.(T72, X124), X125)
U3_gaa(split17_out_ggaaa(X230, X231)) → mergesort33_out_gaa
U4_gaa(split17_out_ggaaa(T156, T157)) → U5_gaa(mergesort33_in_gaa(T156))
U6_gaa(split17_out_ggaaa(T156, T157)) → U7_gaa(T157, mergesort33_in_gaa(T156))
U9_gaa(split17_out_ggaaa(T156, T157)) → U10_gaa(T157, mergesort33_in_gaa(T156))
split21_in_gaaa([]) → split21_out_gaaa([], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, split21_in_gaaa(T93))
U5_gaa(mergesort33_out_gaa) → mergesort33_out_gaa
U7_gaa(T157, mergesort33_out_gaa) → U8_gaa(mergesort33_in_gaa(T157))
U10_gaa(T157, mergesort33_out_gaa) → U11_gaa(mergesort33_in_gaa(T157))
U1_gaaa(T92, split21_out_gaaa(X163, X162)) → split21_out_gaaa(.(T92, X162), X163)
U8_gaa(mergesort33_out_gaa) → mergesort33_out_gaa
U11_gaa(mergesort33_out_gaa) → U12_gaa(merge34_in_aaaaa)
U12_gaa(merge34_out_aaaaa) → mergesort33_out_gaa
merge34_in_aaaaamerge34_out_aaaaa
merge34_in_aaaaaU13_aaaaa(p67_in_aaaaaa)
merge34_in_aaaaaU14_aaaaa(p95_in_aaaaaa)
U13_aaaaa(p67_out_aaaaaa(T249, T251)) → merge34_out_aaaaa
U14_aaaaa(p95_out_aaaaaa(T473, T475)) → merge34_out_aaaaa
p67_in_aaaaaaU16_aaaaaa(le69_in_aa)
p67_in_aaaaaaU17_aaaaaa(le69_in_aa)
p67_in_aaaaaaU18_aaaaaa(le69_in_aa)
p67_in_aaaaaaU20_aaaaaa(le69_in_aa)
p95_in_aaaaaaU23_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU24_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU25_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU27_aaaaaa(gt97_in_aa)
U16_aaaaaa(le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251)
U17_aaaaaa(le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292)
U18_aaaaaa(le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_aaaaaa(le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_aaaaaa(gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351)
U24_aaaaaa(gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351)
U25_aaaaaa(gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_aaaaaa(gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_aaU15_aa(le69_in_aa)
le69_in_aale69_out_aa(0, s(0))
le69_in_aale69_out_aa(0, 0)
U19_aaaaaa(T249, T326, p67_out_agaaaa(T324)) → p67_out_aaaaaa(T249, T326)
U21_aaaaaa(T249, T351, p95_out_agaaaa(T349)) → p67_out_aaaaaa(T249, T351)
gt97_in_aaU22_aa(gt97_in_aa)
gt97_in_aagt97_out_aa(s(0), 0)
U26_aaaaaa(T423, T351, p67_out_gaaaaa(T425)) → p95_out_aaaaaa(T423, T351)
U28_aaaaaa(T448, T351, p95_out_gaaaaa(T450)) → p95_out_aaaaaa(T448, T351)
U15_aa(le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
p67_in_agaaaa(T251) → U16_agaaaa(le69_in_ag(T251))
p67_in_agaaaa(T292) → U17_agaaaa(le69_in_ag(T292))
p67_in_agaaaa(T326) → U18_agaaaa(T326, le69_in_ag(T326))
p67_in_agaaaa(T351) → U20_agaaaa(T351, le69_in_ag(T351))
p95_in_agaaaa(T351) → U23_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U24_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U25_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U27_agaaaa(gt97_in_ag(T351))
U22_aa(gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
p67_in_gaaaaa(T249) → U16_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U17_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U18_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U20_gaaaaa(le69_in_ga(T249))
p95_in_gaaaaa(T349) → U23_gaaaaa(gt97_in_ga(T349))
p95_in_gaaaaa(T392) → U24_gaaaaa(gt97_in_ga(T392))
p95_in_gaaaaa(T423) → U25_gaaaaa(T423, gt97_in_ga(T423))
p95_in_gaaaaa(T448) → U27_gaaaaa(T448, gt97_in_ga(T448))
U16_agaaaa(le69_out_ag(T249)) → p67_out_agaaaa(T249)
U17_agaaaa(le69_out_ag(T249)) → p67_out_agaaaa(T249)
U18_agaaaa(T326, le69_out_ag(T249)) → U19_agaaaa(T249, p67_in_agaaaa(T326))
U20_agaaaa(T351, le69_out_ag(T249)) → U21_agaaaa(T249, p95_in_agaaaa(T351))
U23_agaaaa(gt97_out_ag(T349)) → p95_out_agaaaa(T349)
U24_agaaaa(gt97_out_ag(T392)) → p95_out_agaaaa(T392)
U25_agaaaa(gt97_out_ag(T423)) → U26_agaaaa(T423, p67_in_gaaaaa(T423))
U27_agaaaa(gt97_out_ag(T448)) → U28_agaaaa(T448, p95_in_gaaaaa(T448))
U16_gaaaaa(le69_out_ga(T251)) → p67_out_gaaaaa(T251)
U17_gaaaaa(le69_out_ga(T292)) → p67_out_gaaaaa(T292)
U18_gaaaaa(le69_out_ga(T326)) → U19_gaaaaa(T326, p67_in_agaaaa(T326))
U20_gaaaaa(le69_out_ga(T351)) → U21_gaaaaa(T351, p95_in_agaaaa(T351))
U23_gaaaaa(gt97_out_ga(T351)) → p95_out_gaaaaa(T351)
U24_gaaaaa(gt97_out_ga(T351)) → p95_out_gaaaaa(T351)
U25_gaaaaa(T423, gt97_out_ga(T351)) → U26_gaaaaa(T351, p67_in_gaaaaa(T423))
U27_gaaaaa(T448, gt97_out_ga(T351)) → U28_gaaaaa(T351, p95_in_gaaaaa(T448))
le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
U19_agaaaa(T249, p67_out_agaaaa(T324)) → p67_out_agaaaa(T249)
U21_agaaaa(T249, p95_out_agaaaa(T349)) → p67_out_agaaaa(T249)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
U26_agaaaa(T423, p67_out_gaaaaa(T425)) → p95_out_agaaaa(T423)
U28_agaaaa(T448, p95_out_gaaaaa(T450)) → p95_out_agaaaa(T448)
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
U19_gaaaaa(T326, p67_out_agaaaa(T324)) → p67_out_gaaaaa(T326)
U21_gaaaaa(T351, p95_out_agaaaa(T349)) → p67_out_gaaaaa(T351)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U26_gaaaaa(T351, p67_out_gaaaaa(T425)) → p95_out_gaaaaa(T351)
U28_gaaaaa(T351, p95_out_gaaaaa(T450)) → p95_out_gaaaaa(T351)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
mergesort33_in_gaa(x0)
U2_ggaaa(x0, x1)
U3_gaa(x0)
U4_gaa(x0)
U6_gaa(x0)
U9_gaa(x0)
split21_in_gaaa(x0)
U5_gaa(x0)
U7_gaa(x0, x1)
U10_gaa(x0, x1)
U1_gaaa(x0, x1)
U8_gaa(x0)
U11_gaa(x0)
U12_gaa(x0)
merge34_in_aaaaa
U13_aaaaa(x0)
U14_aaaaa(x0)
p67_in_aaaaaa
p95_in_aaaaaa
U16_aaaaaa(x0)
U17_aaaaaa(x0)
U18_aaaaaa(x0)
U20_aaaaaa(x0)
U23_aaaaaa(x0)
U24_aaaaaa(x0)
U25_aaaaaa(x0)
U27_aaaaaa(x0)
le69_in_aa
U19_aaaaaa(x0, x1, x2)
U21_aaaaaa(x0, x1, x2)
gt97_in_aa
U26_aaaaaa(x0, x1, x2)
U28_aaaaaa(x0, x1, x2)
U15_aa(x0)
p67_in_agaaaa(x0)
p95_in_agaaaa(x0)
U22_aa(x0)
p67_in_gaaaaa(x0)
p95_in_gaaaaa(x0)
U16_agaaaa(x0)
U17_agaaaa(x0)
U18_agaaaa(x0, x1)
U20_agaaaa(x0, x1)
U23_agaaaa(x0)
U24_agaaaa(x0)
U25_agaaaa(x0)
U27_agaaaa(x0)
U16_gaaaaa(x0)
U17_gaaaaa(x0)
U18_gaaaaa(x0)
U20_gaaaaa(x0)
U23_gaaaaa(x0)
U24_gaaaaa(x0)
U25_gaaaaa(x0, x1)
U27_gaaaaa(x0, x1)
le69_in_ag(x0)
U19_agaaaa(x0, x1)
U21_agaaaa(x0, x1)
gt97_in_ag(x0)
U26_agaaaa(x0, x1)
U28_agaaaa(x0, x1)
le69_in_ga(x0)
U19_gaaaaa(x0, x1)
U21_gaaaaa(x0, x1)
gt97_in_ga(x0)
U26_gaaaaa(x0, x1)
U28_gaaaaa(x0, x1)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(138) Rewriting (EQUIVALENT transformation)

By rewriting [LPAR04] the rule MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(U2_ggaaa(T144, split21_in_gaaa(.(T145, T146)))) at position [0,1] we obtained the following new rules [LPAR04]:

MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(U2_ggaaa(T144, U1_gaaa(T145, split21_in_gaaa(T146))))

(139) Obligation:

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

U4_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(split17_out_ggaaa(T156, T157)) → U7_GAA(T157, mergesort33_in_gaa(T156))
U7_GAA(T157, mergesort33_out_gaa) → MERGESORT33_IN_GAA(T157)
U9_GAA(split17_out_ggaaa(T156, T157)) → U10_GAA(T157, mergesort33_in_gaa(T156))
U10_GAA(T157, mergesort33_out_gaa) → MERGESORT33_IN_GAA(T157)
U9_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(U2_ggaaa(T144, U1_gaaa(T145, split21_in_gaaa(T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(U2_ggaaa(T144, U1_gaaa(T145, split21_in_gaaa(T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(U2_ggaaa(T144, U1_gaaa(T145, split21_in_gaaa(T146))))

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, split21_in_gaaa(T73))
mergesort33_in_gaa([]) → mergesort33_out_gaa
mergesort33_in_gaa(.(T132, [])) → mergesort33_out_gaa
mergesort33_in_gaa(.(T144, .(T145, T146))) → U3_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U4_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U6_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U9_gaa(split17_in_ggaaa(T144, .(T145, T146)))
U2_ggaaa(T72, split21_out_gaaa(X125, X124)) → split17_out_ggaaa(.(T72, X124), X125)
U3_gaa(split17_out_ggaaa(X230, X231)) → mergesort33_out_gaa
U4_gaa(split17_out_ggaaa(T156, T157)) → U5_gaa(mergesort33_in_gaa(T156))
U6_gaa(split17_out_ggaaa(T156, T157)) → U7_gaa(T157, mergesort33_in_gaa(T156))
U9_gaa(split17_out_ggaaa(T156, T157)) → U10_gaa(T157, mergesort33_in_gaa(T156))
split21_in_gaaa([]) → split21_out_gaaa([], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, split21_in_gaaa(T93))
U5_gaa(mergesort33_out_gaa) → mergesort33_out_gaa
U7_gaa(T157, mergesort33_out_gaa) → U8_gaa(mergesort33_in_gaa(T157))
U10_gaa(T157, mergesort33_out_gaa) → U11_gaa(mergesort33_in_gaa(T157))
U1_gaaa(T92, split21_out_gaaa(X163, X162)) → split21_out_gaaa(.(T92, X162), X163)
U8_gaa(mergesort33_out_gaa) → mergesort33_out_gaa
U11_gaa(mergesort33_out_gaa) → U12_gaa(merge34_in_aaaaa)
U12_gaa(merge34_out_aaaaa) → mergesort33_out_gaa
merge34_in_aaaaamerge34_out_aaaaa
merge34_in_aaaaaU13_aaaaa(p67_in_aaaaaa)
merge34_in_aaaaaU14_aaaaa(p95_in_aaaaaa)
U13_aaaaa(p67_out_aaaaaa(T249, T251)) → merge34_out_aaaaa
U14_aaaaa(p95_out_aaaaaa(T473, T475)) → merge34_out_aaaaa
p67_in_aaaaaaU16_aaaaaa(le69_in_aa)
p67_in_aaaaaaU17_aaaaaa(le69_in_aa)
p67_in_aaaaaaU18_aaaaaa(le69_in_aa)
p67_in_aaaaaaU20_aaaaaa(le69_in_aa)
p95_in_aaaaaaU23_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU24_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU25_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU27_aaaaaa(gt97_in_aa)
U16_aaaaaa(le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251)
U17_aaaaaa(le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292)
U18_aaaaaa(le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_aaaaaa(le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_aaaaaa(gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351)
U24_aaaaaa(gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351)
U25_aaaaaa(gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_aaaaaa(gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_aaU15_aa(le69_in_aa)
le69_in_aale69_out_aa(0, s(0))
le69_in_aale69_out_aa(0, 0)
U19_aaaaaa(T249, T326, p67_out_agaaaa(T324)) → p67_out_aaaaaa(T249, T326)
U21_aaaaaa(T249, T351, p95_out_agaaaa(T349)) → p67_out_aaaaaa(T249, T351)
gt97_in_aaU22_aa(gt97_in_aa)
gt97_in_aagt97_out_aa(s(0), 0)
U26_aaaaaa(T423, T351, p67_out_gaaaaa(T425)) → p95_out_aaaaaa(T423, T351)
U28_aaaaaa(T448, T351, p95_out_gaaaaa(T450)) → p95_out_aaaaaa(T448, T351)
U15_aa(le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
p67_in_agaaaa(T251) → U16_agaaaa(le69_in_ag(T251))
p67_in_agaaaa(T292) → U17_agaaaa(le69_in_ag(T292))
p67_in_agaaaa(T326) → U18_agaaaa(T326, le69_in_ag(T326))
p67_in_agaaaa(T351) → U20_agaaaa(T351, le69_in_ag(T351))
p95_in_agaaaa(T351) → U23_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U24_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U25_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U27_agaaaa(gt97_in_ag(T351))
U22_aa(gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
p67_in_gaaaaa(T249) → U16_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U17_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U18_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U20_gaaaaa(le69_in_ga(T249))
p95_in_gaaaaa(T349) → U23_gaaaaa(gt97_in_ga(T349))
p95_in_gaaaaa(T392) → U24_gaaaaa(gt97_in_ga(T392))
p95_in_gaaaaa(T423) → U25_gaaaaa(T423, gt97_in_ga(T423))
p95_in_gaaaaa(T448) → U27_gaaaaa(T448, gt97_in_ga(T448))
U16_agaaaa(le69_out_ag(T249)) → p67_out_agaaaa(T249)
U17_agaaaa(le69_out_ag(T249)) → p67_out_agaaaa(T249)
U18_agaaaa(T326, le69_out_ag(T249)) → U19_agaaaa(T249, p67_in_agaaaa(T326))
U20_agaaaa(T351, le69_out_ag(T249)) → U21_agaaaa(T249, p95_in_agaaaa(T351))
U23_agaaaa(gt97_out_ag(T349)) → p95_out_agaaaa(T349)
U24_agaaaa(gt97_out_ag(T392)) → p95_out_agaaaa(T392)
U25_agaaaa(gt97_out_ag(T423)) → U26_agaaaa(T423, p67_in_gaaaaa(T423))
U27_agaaaa(gt97_out_ag(T448)) → U28_agaaaa(T448, p95_in_gaaaaa(T448))
U16_gaaaaa(le69_out_ga(T251)) → p67_out_gaaaaa(T251)
U17_gaaaaa(le69_out_ga(T292)) → p67_out_gaaaaa(T292)
U18_gaaaaa(le69_out_ga(T326)) → U19_gaaaaa(T326, p67_in_agaaaa(T326))
U20_gaaaaa(le69_out_ga(T351)) → U21_gaaaaa(T351, p95_in_agaaaa(T351))
U23_gaaaaa(gt97_out_ga(T351)) → p95_out_gaaaaa(T351)
U24_gaaaaa(gt97_out_ga(T351)) → p95_out_gaaaaa(T351)
U25_gaaaaa(T423, gt97_out_ga(T351)) → U26_gaaaaa(T351, p67_in_gaaaaa(T423))
U27_gaaaaa(T448, gt97_out_ga(T351)) → U28_gaaaaa(T351, p95_in_gaaaaa(T448))
le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
U19_agaaaa(T249, p67_out_agaaaa(T324)) → p67_out_agaaaa(T249)
U21_agaaaa(T249, p95_out_agaaaa(T349)) → p67_out_agaaaa(T249)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
U26_agaaaa(T423, p67_out_gaaaaa(T425)) → p95_out_agaaaa(T423)
U28_agaaaa(T448, p95_out_gaaaaa(T450)) → p95_out_agaaaa(T448)
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
U19_gaaaaa(T326, p67_out_agaaaa(T324)) → p67_out_gaaaaa(T326)
U21_gaaaaa(T351, p95_out_agaaaa(T349)) → p67_out_gaaaaa(T351)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U26_gaaaaa(T351, p67_out_gaaaaa(T425)) → p95_out_gaaaaa(T351)
U28_gaaaaa(T351, p95_out_gaaaaa(T450)) → p95_out_gaaaaa(T351)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
mergesort33_in_gaa(x0)
U2_ggaaa(x0, x1)
U3_gaa(x0)
U4_gaa(x0)
U6_gaa(x0)
U9_gaa(x0)
split21_in_gaaa(x0)
U5_gaa(x0)
U7_gaa(x0, x1)
U10_gaa(x0, x1)
U1_gaaa(x0, x1)
U8_gaa(x0)
U11_gaa(x0)
U12_gaa(x0)
merge34_in_aaaaa
U13_aaaaa(x0)
U14_aaaaa(x0)
p67_in_aaaaaa
p95_in_aaaaaa
U16_aaaaaa(x0)
U17_aaaaaa(x0)
U18_aaaaaa(x0)
U20_aaaaaa(x0)
U23_aaaaaa(x0)
U24_aaaaaa(x0)
U25_aaaaaa(x0)
U27_aaaaaa(x0)
le69_in_aa
U19_aaaaaa(x0, x1, x2)
U21_aaaaaa(x0, x1, x2)
gt97_in_aa
U26_aaaaaa(x0, x1, x2)
U28_aaaaaa(x0, x1, x2)
U15_aa(x0)
p67_in_agaaaa(x0)
p95_in_agaaaa(x0)
U22_aa(x0)
p67_in_gaaaaa(x0)
p95_in_gaaaaa(x0)
U16_agaaaa(x0)
U17_agaaaa(x0)
U18_agaaaa(x0, x1)
U20_agaaaa(x0, x1)
U23_agaaaa(x0)
U24_agaaaa(x0)
U25_agaaaa(x0)
U27_agaaaa(x0)
U16_gaaaaa(x0)
U17_gaaaaa(x0)
U18_gaaaaa(x0)
U20_gaaaaa(x0)
U23_gaaaaa(x0)
U24_gaaaaa(x0)
U25_gaaaaa(x0, x1)
U27_gaaaaa(x0, x1)
le69_in_ag(x0)
U19_agaaaa(x0, x1)
U21_agaaaa(x0, x1)
gt97_in_ag(x0)
U26_agaaaa(x0, x1)
U28_agaaaa(x0, x1)
le69_in_ga(x0)
U19_gaaaaa(x0, x1)
U21_gaaaaa(x0, x1)
gt97_in_ga(x0)
U26_gaaaaa(x0, x1)
U28_gaaaaa(x0, x1)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(140) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U6_GAA(split17_out_ggaaa(T156, T157)) → U7_GAA(T157, mergesort33_in_gaa(T156))
U6_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
The remaining pairs can at least be oriented weakly.
Used ordering: Matrix interpretation [MATRO]:

POL(U4_GAA(x1)) = 0 +
[1,1]
·x1

POL(split17_out_ggaaa(x1, x2)) =
/0\
\0/
+
/00\
\01/
·x1 +
/00\
\01/
·x2

POL(MERGESORT33_IN_GAA(x1)) = 0 +
[0,1]
·x1

POL(U6_GAA(x1)) = 1 +
[0,1]
·x1

POL(U7_GAA(x1, x2)) = 0 +
[0,1]
·x1 +
[0,0]
·x2

POL(mergesort33_in_gaa(x1)) =
/0\
\0/
+
/11\
\00/
·x1

POL(mergesort33_out_gaa) =
/0\
\1/

POL(U9_GAA(x1)) = 0 +
[1,1]
·x1

POL(U10_GAA(x1, x2)) = 0 +
[0,1]
·x1 +
[0,0]
·x2

POL(.(x1, x2)) =
/1\
\0/
+
/00\
\00/
·x1 +
/10\
\10/
·x2

POL(U2_ggaaa(x1, x2)) =
/1\
\0/
+
/00\
\00/
·x1 +
/00\
\10/
·x2

POL(U1_gaaa(x1, x2)) =
/0\
\1/
+
/00\
\00/
·x1 +
/01\
\01/
·x2

POL(split21_in_gaaa(x1)) =
/0\
\0/
+
/10\
\10/
·x1

POL([]) =
/0\
\0/

POL(U3_gaa(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(split17_in_ggaaa(x1, x2)) =
/0\
\0/
+
/00\
\01/
·x1 +
/00\
\00/
·x2

POL(U4_gaa(x1)) =
/0\
\0/
+
/00\
\01/
·x1

POL(U6_gaa(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(U9_gaa(x1)) =
/1\
\1/
+
/01\
\00/
·x1

POL(split21_out_gaaa(x1, x2)) =
/0\
\0/
+
/01\
\10/
·x1 +
/10\
\10/
·x2

POL(U5_gaa(x1)) =
/0\
\1/
+
/10\
\10/
·x1

POL(U7_gaa(x1, x2)) =
/0\
\1/
+
/11\
\01/
·x1 +
/00\
\11/
·x2

POL(U10_gaa(x1, x2)) =
/0\
\0/
+
/00\
\11/
·x1 +
/00\
\10/
·x2

POL(U11_gaa(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(U12_gaa(x1)) =
/0\
\0/
+
/11\
\11/
·x1

POL(merge34_in_aaaaa) =
/1\
\1/

POL(U8_gaa(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(merge34_out_aaaaa) =
/0\
\0/

POL(U13_aaaaa(x1)) =
/0\
\1/
+
/00\
\00/
·x1

POL(p67_in_aaaaaa) =
/0\
\0/

POL(U14_aaaaa(x1)) =
/0\
\1/
+
/00\
\10/
·x1

POL(p95_in_aaaaaa) =
/1\
\0/

POL(U16_aaaaaa(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(le69_in_aa) =
/0\
\0/

POL(U17_aaaaaa(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(U18_aaaaaa(x1)) =
/0\
\0/
+
/11\
\00/
·x1

POL(U20_aaaaaa(x1)) =
/0\
\1/
+
/00\
\11/
·x1

POL(p67_out_aaaaaa(x1, x2)) =
/1\
\1/
+
/01\
\10/
·x1 +
/10\
\11/
·x2

POL(U23_aaaaaa(x1)) =
/0\
\1/
+
/10\
\00/
·x1

POL(gt97_in_aa) =
/0\
\0/

POL(U24_aaaaaa(x1)) =
/0\
\1/
+
/00\
\00/
·x1

POL(U25_aaaaaa(x1)) =
/0\
\1/
+
/00\
\00/
·x1

POL(U27_aaaaaa(x1)) =
/0\
\0/
+
/00\
\11/
·x1

POL(p95_out_aaaaaa(x1, x2)) =
/0\
\1/
+
/00\
\10/
·x1 +
/10\
\01/
·x2

POL(U15_aa(x1)) =
/0\
\0/
+
/11\
\11/
·x1

POL(le69_out_aa(x1, x2)) =
/1\
\0/
+
/00\
\00/
·x1 +
/11\
\11/
·x2

POL(0) =
/0\
\0/

POL(s(x1)) =
/1\
\0/
+
/00\
\00/
·x1

POL(U19_aaaaaa(x1, x2, x3)) =
/0\
\0/
+
/11\
\11/
·x1 +
/00\
\00/
·x2 +
/00\
\10/
·x3

POL(p67_in_agaaaa(x1)) =
/1\
\0/
+
/10\
\10/
·x1

POL(U21_aaaaaa(x1, x2, x3)) =
/1\
\1/
+
/00\
\01/
·x1 +
/00\
\00/
·x2 +
/10\
\00/
·x3

POL(p95_in_agaaaa(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(U22_aa(x1)) =
/0\
\0/
+
/11\
\11/
·x1

POL(gt97_out_aa(x1, x2)) =
/0\
\0/
+
/01\
\01/
·x1 +
/01\
\01/
·x2

POL(U26_aaaaaa(x1, x2, x3)) =
/0\
\0/
+
/00\
\00/
·x1 +
/11\
\00/
·x2 +
/11\
\00/
·x3

POL(p67_in_gaaaaa(x1)) =
/0\
\0/
+
/10\
\10/
·x1

POL(U28_aaaaaa(x1, x2, x3)) =
/1\
\0/
+
/00\
\00/
·x1 +
/01\
\10/
·x2 +
/11\
\00/
·x3

POL(p95_in_gaaaaa(x1)) =
/1\
\1/
+
/00\
\00/
·x1

POL(U16_agaaaa(x1)) =
/0\
\1/
+
/11\
\11/
·x1

POL(le69_in_ag(x1)) =
/1\
\1/
+
/00\
\10/
·x1

POL(U17_agaaaa(x1)) =
/0\
\0/
+
/00\
\10/
·x1

POL(U18_agaaaa(x1, x2)) =
/0\
\0/
+
/00\
\01/
·x1 +
/10\
\11/
·x2

POL(U20_agaaaa(x1, x2)) =
/0\
\0/
+
/11\
\01/
·x1 +
/00\
\00/
·x2

POL(p67_out_agaaaa(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(U23_agaaaa(x1)) =
/0\
\0/
+
/00\
\10/
·x1

POL(gt97_in_ag(x1)) =
/1\
\1/
+
/10\
\10/
·x1

POL(U24_agaaaa(x1)) =
/0\
\0/
+
/11\
\00/
·x1

POL(U25_agaaaa(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(U27_agaaaa(x1)) =
/0\
\1/
+
/00\
\10/
·x1

POL(p95_out_agaaaa(x1)) =
/1\
\0/
+
/00\
\10/
·x1

POL(U16_gaaaaa(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(le69_in_ga(x1)) =
/1\
\1/
+
/01\
\01/
·x1

POL(U17_gaaaaa(x1)) =
/0\
\0/
+
/00\
\11/
·x1

POL(U18_gaaaaa(x1)) =
/0\
\0/
+
/00\
\10/
·x1

POL(U20_gaaaaa(x1)) =
/0\
\0/
+
/11\
\00/
·x1

POL(p67_out_gaaaaa(x1)) =
/1\
\1/
+
/01\
\11/
·x1

POL(U23_gaaaaa(x1)) =
/1\
\1/
+
/00\
\11/
·x1

POL(gt97_in_ga(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(U24_gaaaaa(x1)) =
/0\
\0/
+
/11\
\00/
·x1

POL(U25_gaaaaa(x1, x2)) =
/0\
\1/
+
/00\
\10/
·x1 +
/00\
\00/
·x2

POL(U27_gaaaaa(x1, x2)) =
/0\
\0/
+
/00\
\00/
·x1 +
/00\
\00/
·x2

POL(p95_out_gaaaaa(x1)) =
/0\
\0/
+
/01\
\00/
·x1

POL(U15_ag(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(le69_out_ag(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(U19_agaaaa(x1, x2)) =
/0\
\0/
+
/01\
\11/
·x1 +
/00\
\01/
·x2

POL(U21_agaaaa(x1, x2)) =
/0\
\0/
+
/00\
\00/
·x1 +
/00\
\00/
·x2

POL(U22_ag(x1)) =
/0\
\0/
+
/10\
\00/
·x1

POL(gt97_out_ag(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(U26_agaaaa(x1, x2)) =
/0\
\0/
+
/00\
\11/
·x1 +
/11\
\00/
·x2

POL(U15_ga(x1)) =
/1\
\0/
+
/11\
\00/
·x1

POL(le69_out_ga(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(U19_gaaaaa(x1, x2)) =
/1\
\0/
+
/00\
\10/
·x1 +
/10\
\11/
·x2

POL(U21_gaaaaa(x1, x2)) =
/0\
\0/
+
/10\
\01/
·x1 +
/00\
\00/
·x2

POL(U28_agaaaa(x1, x2)) =
/1\
\0/
+
/00\
\00/
·x1 +
/00\
\11/
·x2

POL(U22_ga(x1)) =
/1\
\0/
+
/00\
\00/
·x1

POL(gt97_out_ga(x1)) =
/1\
\1/
+
/10\
\10/
·x1

POL(U26_gaaaaa(x1, x2)) =
/0\
\0/
+
/10\
\00/
·x1 +
/10\
\00/
·x2

POL(U28_gaaaaa(x1, x2)) =
/0\
\0/
+
/11\
\11/
·x1 +
/00\
\11/
·x2

The following usable rules [FROCOS05] were oriented:

split21_in_gaaa([]) → split21_out_gaaa([], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, split21_in_gaaa(T93))
U1_gaaa(T92, split21_out_gaaa(X163, X162)) → split21_out_gaaa(.(T92, X162), X163)
U2_ggaaa(T72, split21_out_gaaa(X125, X124)) → split17_out_ggaaa(.(T72, X124), X125)

(141) Obligation:

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

U4_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
U7_GAA(T157, mergesort33_out_gaa) → MERGESORT33_IN_GAA(T157)
U9_GAA(split17_out_ggaaa(T156, T157)) → U10_GAA(T157, mergesort33_in_gaa(T156))
U10_GAA(T157, mergesort33_out_gaa) → MERGESORT33_IN_GAA(T157)
U9_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(U2_ggaaa(T144, U1_gaaa(T145, split21_in_gaaa(T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(U2_ggaaa(T144, U1_gaaa(T145, split21_in_gaaa(T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(U2_ggaaa(T144, U1_gaaa(T145, split21_in_gaaa(T146))))

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, split21_in_gaaa(T73))
mergesort33_in_gaa([]) → mergesort33_out_gaa
mergesort33_in_gaa(.(T132, [])) → mergesort33_out_gaa
mergesort33_in_gaa(.(T144, .(T145, T146))) → U3_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U4_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U6_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U9_gaa(split17_in_ggaaa(T144, .(T145, T146)))
U2_ggaaa(T72, split21_out_gaaa(X125, X124)) → split17_out_ggaaa(.(T72, X124), X125)
U3_gaa(split17_out_ggaaa(X230, X231)) → mergesort33_out_gaa
U4_gaa(split17_out_ggaaa(T156, T157)) → U5_gaa(mergesort33_in_gaa(T156))
U6_gaa(split17_out_ggaaa(T156, T157)) → U7_gaa(T157, mergesort33_in_gaa(T156))
U9_gaa(split17_out_ggaaa(T156, T157)) → U10_gaa(T157, mergesort33_in_gaa(T156))
split21_in_gaaa([]) → split21_out_gaaa([], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, split21_in_gaaa(T93))
U5_gaa(mergesort33_out_gaa) → mergesort33_out_gaa
U7_gaa(T157, mergesort33_out_gaa) → U8_gaa(mergesort33_in_gaa(T157))
U10_gaa(T157, mergesort33_out_gaa) → U11_gaa(mergesort33_in_gaa(T157))
U1_gaaa(T92, split21_out_gaaa(X163, X162)) → split21_out_gaaa(.(T92, X162), X163)
U8_gaa(mergesort33_out_gaa) → mergesort33_out_gaa
U11_gaa(mergesort33_out_gaa) → U12_gaa(merge34_in_aaaaa)
U12_gaa(merge34_out_aaaaa) → mergesort33_out_gaa
merge34_in_aaaaamerge34_out_aaaaa
merge34_in_aaaaaU13_aaaaa(p67_in_aaaaaa)
merge34_in_aaaaaU14_aaaaa(p95_in_aaaaaa)
U13_aaaaa(p67_out_aaaaaa(T249, T251)) → merge34_out_aaaaa
U14_aaaaa(p95_out_aaaaaa(T473, T475)) → merge34_out_aaaaa
p67_in_aaaaaaU16_aaaaaa(le69_in_aa)
p67_in_aaaaaaU17_aaaaaa(le69_in_aa)
p67_in_aaaaaaU18_aaaaaa(le69_in_aa)
p67_in_aaaaaaU20_aaaaaa(le69_in_aa)
p95_in_aaaaaaU23_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU24_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU25_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU27_aaaaaa(gt97_in_aa)
U16_aaaaaa(le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251)
U17_aaaaaa(le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292)
U18_aaaaaa(le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_aaaaaa(le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_aaaaaa(gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351)
U24_aaaaaa(gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351)
U25_aaaaaa(gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_aaaaaa(gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_aaU15_aa(le69_in_aa)
le69_in_aale69_out_aa(0, s(0))
le69_in_aale69_out_aa(0, 0)
U19_aaaaaa(T249, T326, p67_out_agaaaa(T324)) → p67_out_aaaaaa(T249, T326)
U21_aaaaaa(T249, T351, p95_out_agaaaa(T349)) → p67_out_aaaaaa(T249, T351)
gt97_in_aaU22_aa(gt97_in_aa)
gt97_in_aagt97_out_aa(s(0), 0)
U26_aaaaaa(T423, T351, p67_out_gaaaaa(T425)) → p95_out_aaaaaa(T423, T351)
U28_aaaaaa(T448, T351, p95_out_gaaaaa(T450)) → p95_out_aaaaaa(T448, T351)
U15_aa(le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
p67_in_agaaaa(T251) → U16_agaaaa(le69_in_ag(T251))
p67_in_agaaaa(T292) → U17_agaaaa(le69_in_ag(T292))
p67_in_agaaaa(T326) → U18_agaaaa(T326, le69_in_ag(T326))
p67_in_agaaaa(T351) → U20_agaaaa(T351, le69_in_ag(T351))
p95_in_agaaaa(T351) → U23_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U24_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U25_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U27_agaaaa(gt97_in_ag(T351))
U22_aa(gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
p67_in_gaaaaa(T249) → U16_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U17_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U18_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U20_gaaaaa(le69_in_ga(T249))
p95_in_gaaaaa(T349) → U23_gaaaaa(gt97_in_ga(T349))
p95_in_gaaaaa(T392) → U24_gaaaaa(gt97_in_ga(T392))
p95_in_gaaaaa(T423) → U25_gaaaaa(T423, gt97_in_ga(T423))
p95_in_gaaaaa(T448) → U27_gaaaaa(T448, gt97_in_ga(T448))
U16_agaaaa(le69_out_ag(T249)) → p67_out_agaaaa(T249)
U17_agaaaa(le69_out_ag(T249)) → p67_out_agaaaa(T249)
U18_agaaaa(T326, le69_out_ag(T249)) → U19_agaaaa(T249, p67_in_agaaaa(T326))
U20_agaaaa(T351, le69_out_ag(T249)) → U21_agaaaa(T249, p95_in_agaaaa(T351))
U23_agaaaa(gt97_out_ag(T349)) → p95_out_agaaaa(T349)
U24_agaaaa(gt97_out_ag(T392)) → p95_out_agaaaa(T392)
U25_agaaaa(gt97_out_ag(T423)) → U26_agaaaa(T423, p67_in_gaaaaa(T423))
U27_agaaaa(gt97_out_ag(T448)) → U28_agaaaa(T448, p95_in_gaaaaa(T448))
U16_gaaaaa(le69_out_ga(T251)) → p67_out_gaaaaa(T251)
U17_gaaaaa(le69_out_ga(T292)) → p67_out_gaaaaa(T292)
U18_gaaaaa(le69_out_ga(T326)) → U19_gaaaaa(T326, p67_in_agaaaa(T326))
U20_gaaaaa(le69_out_ga(T351)) → U21_gaaaaa(T351, p95_in_agaaaa(T351))
U23_gaaaaa(gt97_out_ga(T351)) → p95_out_gaaaaa(T351)
U24_gaaaaa(gt97_out_ga(T351)) → p95_out_gaaaaa(T351)
U25_gaaaaa(T423, gt97_out_ga(T351)) → U26_gaaaaa(T351, p67_in_gaaaaa(T423))
U27_gaaaaa(T448, gt97_out_ga(T351)) → U28_gaaaaa(T351, p95_in_gaaaaa(T448))
le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
U19_agaaaa(T249, p67_out_agaaaa(T324)) → p67_out_agaaaa(T249)
U21_agaaaa(T249, p95_out_agaaaa(T349)) → p67_out_agaaaa(T249)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
U26_agaaaa(T423, p67_out_gaaaaa(T425)) → p95_out_agaaaa(T423)
U28_agaaaa(T448, p95_out_gaaaaa(T450)) → p95_out_agaaaa(T448)
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
U19_gaaaaa(T326, p67_out_agaaaa(T324)) → p67_out_gaaaaa(T326)
U21_gaaaaa(T351, p95_out_agaaaa(T349)) → p67_out_gaaaaa(T351)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U26_gaaaaa(T351, p67_out_gaaaaa(T425)) → p95_out_gaaaaa(T351)
U28_gaaaaa(T351, p95_out_gaaaaa(T450)) → p95_out_gaaaaa(T351)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
mergesort33_in_gaa(x0)
U2_ggaaa(x0, x1)
U3_gaa(x0)
U4_gaa(x0)
U6_gaa(x0)
U9_gaa(x0)
split21_in_gaaa(x0)
U5_gaa(x0)
U7_gaa(x0, x1)
U10_gaa(x0, x1)
U1_gaaa(x0, x1)
U8_gaa(x0)
U11_gaa(x0)
U12_gaa(x0)
merge34_in_aaaaa
U13_aaaaa(x0)
U14_aaaaa(x0)
p67_in_aaaaaa
p95_in_aaaaaa
U16_aaaaaa(x0)
U17_aaaaaa(x0)
U18_aaaaaa(x0)
U20_aaaaaa(x0)
U23_aaaaaa(x0)
U24_aaaaaa(x0)
U25_aaaaaa(x0)
U27_aaaaaa(x0)
le69_in_aa
U19_aaaaaa(x0, x1, x2)
U21_aaaaaa(x0, x1, x2)
gt97_in_aa
U26_aaaaaa(x0, x1, x2)
U28_aaaaaa(x0, x1, x2)
U15_aa(x0)
p67_in_agaaaa(x0)
p95_in_agaaaa(x0)
U22_aa(x0)
p67_in_gaaaaa(x0)
p95_in_gaaaaa(x0)
U16_agaaaa(x0)
U17_agaaaa(x0)
U18_agaaaa(x0, x1)
U20_agaaaa(x0, x1)
U23_agaaaa(x0)
U24_agaaaa(x0)
U25_agaaaa(x0)
U27_agaaaa(x0)
U16_gaaaaa(x0)
U17_gaaaaa(x0)
U18_gaaaaa(x0)
U20_gaaaaa(x0)
U23_gaaaaa(x0)
U24_gaaaaa(x0)
U25_gaaaaa(x0, x1)
U27_gaaaaa(x0, x1)
le69_in_ag(x0)
U19_agaaaa(x0, x1)
U21_agaaaa(x0, x1)
gt97_in_ag(x0)
U26_agaaaa(x0, x1)
U28_agaaaa(x0, x1)
le69_in_ga(x0)
U19_gaaaaa(x0, x1)
U21_gaaaaa(x0, x1)
gt97_in_ga(x0)
U26_gaaaaa(x0, x1)
U28_gaaaaa(x0, x1)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(142) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 1 SCC with 2 less nodes.

(143) Obligation:

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

MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(U2_ggaaa(T144, U1_gaaa(T145, split21_in_gaaa(T146))))
U4_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(U2_ggaaa(T144, U1_gaaa(T145, split21_in_gaaa(T146))))
U9_GAA(split17_out_ggaaa(T156, T157)) → U10_GAA(T157, mergesort33_in_gaa(T156))
U10_GAA(T157, mergesort33_out_gaa) → MERGESORT33_IN_GAA(T157)
U9_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, split21_in_gaaa(T73))
mergesort33_in_gaa([]) → mergesort33_out_gaa
mergesort33_in_gaa(.(T132, [])) → mergesort33_out_gaa
mergesort33_in_gaa(.(T144, .(T145, T146))) → U3_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U4_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U6_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U9_gaa(split17_in_ggaaa(T144, .(T145, T146)))
U2_ggaaa(T72, split21_out_gaaa(X125, X124)) → split17_out_ggaaa(.(T72, X124), X125)
U3_gaa(split17_out_ggaaa(X230, X231)) → mergesort33_out_gaa
U4_gaa(split17_out_ggaaa(T156, T157)) → U5_gaa(mergesort33_in_gaa(T156))
U6_gaa(split17_out_ggaaa(T156, T157)) → U7_gaa(T157, mergesort33_in_gaa(T156))
U9_gaa(split17_out_ggaaa(T156, T157)) → U10_gaa(T157, mergesort33_in_gaa(T156))
split21_in_gaaa([]) → split21_out_gaaa([], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, split21_in_gaaa(T93))
U5_gaa(mergesort33_out_gaa) → mergesort33_out_gaa
U7_gaa(T157, mergesort33_out_gaa) → U8_gaa(mergesort33_in_gaa(T157))
U10_gaa(T157, mergesort33_out_gaa) → U11_gaa(mergesort33_in_gaa(T157))
U1_gaaa(T92, split21_out_gaaa(X163, X162)) → split21_out_gaaa(.(T92, X162), X163)
U8_gaa(mergesort33_out_gaa) → mergesort33_out_gaa
U11_gaa(mergesort33_out_gaa) → U12_gaa(merge34_in_aaaaa)
U12_gaa(merge34_out_aaaaa) → mergesort33_out_gaa
merge34_in_aaaaamerge34_out_aaaaa
merge34_in_aaaaaU13_aaaaa(p67_in_aaaaaa)
merge34_in_aaaaaU14_aaaaa(p95_in_aaaaaa)
U13_aaaaa(p67_out_aaaaaa(T249, T251)) → merge34_out_aaaaa
U14_aaaaa(p95_out_aaaaaa(T473, T475)) → merge34_out_aaaaa
p67_in_aaaaaaU16_aaaaaa(le69_in_aa)
p67_in_aaaaaaU17_aaaaaa(le69_in_aa)
p67_in_aaaaaaU18_aaaaaa(le69_in_aa)
p67_in_aaaaaaU20_aaaaaa(le69_in_aa)
p95_in_aaaaaaU23_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU24_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU25_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU27_aaaaaa(gt97_in_aa)
U16_aaaaaa(le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251)
U17_aaaaaa(le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292)
U18_aaaaaa(le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_aaaaaa(le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_aaaaaa(gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351)
U24_aaaaaa(gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351)
U25_aaaaaa(gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_aaaaaa(gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_aaU15_aa(le69_in_aa)
le69_in_aale69_out_aa(0, s(0))
le69_in_aale69_out_aa(0, 0)
U19_aaaaaa(T249, T326, p67_out_agaaaa(T324)) → p67_out_aaaaaa(T249, T326)
U21_aaaaaa(T249, T351, p95_out_agaaaa(T349)) → p67_out_aaaaaa(T249, T351)
gt97_in_aaU22_aa(gt97_in_aa)
gt97_in_aagt97_out_aa(s(0), 0)
U26_aaaaaa(T423, T351, p67_out_gaaaaa(T425)) → p95_out_aaaaaa(T423, T351)
U28_aaaaaa(T448, T351, p95_out_gaaaaa(T450)) → p95_out_aaaaaa(T448, T351)
U15_aa(le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
p67_in_agaaaa(T251) → U16_agaaaa(le69_in_ag(T251))
p67_in_agaaaa(T292) → U17_agaaaa(le69_in_ag(T292))
p67_in_agaaaa(T326) → U18_agaaaa(T326, le69_in_ag(T326))
p67_in_agaaaa(T351) → U20_agaaaa(T351, le69_in_ag(T351))
p95_in_agaaaa(T351) → U23_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U24_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U25_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U27_agaaaa(gt97_in_ag(T351))
U22_aa(gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
p67_in_gaaaaa(T249) → U16_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U17_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U18_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U20_gaaaaa(le69_in_ga(T249))
p95_in_gaaaaa(T349) → U23_gaaaaa(gt97_in_ga(T349))
p95_in_gaaaaa(T392) → U24_gaaaaa(gt97_in_ga(T392))
p95_in_gaaaaa(T423) → U25_gaaaaa(T423, gt97_in_ga(T423))
p95_in_gaaaaa(T448) → U27_gaaaaa(T448, gt97_in_ga(T448))
U16_agaaaa(le69_out_ag(T249)) → p67_out_agaaaa(T249)
U17_agaaaa(le69_out_ag(T249)) → p67_out_agaaaa(T249)
U18_agaaaa(T326, le69_out_ag(T249)) → U19_agaaaa(T249, p67_in_agaaaa(T326))
U20_agaaaa(T351, le69_out_ag(T249)) → U21_agaaaa(T249, p95_in_agaaaa(T351))
U23_agaaaa(gt97_out_ag(T349)) → p95_out_agaaaa(T349)
U24_agaaaa(gt97_out_ag(T392)) → p95_out_agaaaa(T392)
U25_agaaaa(gt97_out_ag(T423)) → U26_agaaaa(T423, p67_in_gaaaaa(T423))
U27_agaaaa(gt97_out_ag(T448)) → U28_agaaaa(T448, p95_in_gaaaaa(T448))
U16_gaaaaa(le69_out_ga(T251)) → p67_out_gaaaaa(T251)
U17_gaaaaa(le69_out_ga(T292)) → p67_out_gaaaaa(T292)
U18_gaaaaa(le69_out_ga(T326)) → U19_gaaaaa(T326, p67_in_agaaaa(T326))
U20_gaaaaa(le69_out_ga(T351)) → U21_gaaaaa(T351, p95_in_agaaaa(T351))
U23_gaaaaa(gt97_out_ga(T351)) → p95_out_gaaaaa(T351)
U24_gaaaaa(gt97_out_ga(T351)) → p95_out_gaaaaa(T351)
U25_gaaaaa(T423, gt97_out_ga(T351)) → U26_gaaaaa(T351, p67_in_gaaaaa(T423))
U27_gaaaaa(T448, gt97_out_ga(T351)) → U28_gaaaaa(T351, p95_in_gaaaaa(T448))
le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
U19_agaaaa(T249, p67_out_agaaaa(T324)) → p67_out_agaaaa(T249)
U21_agaaaa(T249, p95_out_agaaaa(T349)) → p67_out_agaaaa(T249)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
U26_agaaaa(T423, p67_out_gaaaaa(T425)) → p95_out_agaaaa(T423)
U28_agaaaa(T448, p95_out_gaaaaa(T450)) → p95_out_agaaaa(T448)
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
U19_gaaaaa(T326, p67_out_agaaaa(T324)) → p67_out_gaaaaa(T326)
U21_gaaaaa(T351, p95_out_agaaaa(T349)) → p67_out_gaaaaa(T351)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U26_gaaaaa(T351, p67_out_gaaaaa(T425)) → p95_out_gaaaaa(T351)
U28_gaaaaa(T351, p95_out_gaaaaa(T450)) → p95_out_gaaaaa(T351)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
mergesort33_in_gaa(x0)
U2_ggaaa(x0, x1)
U3_gaa(x0)
U4_gaa(x0)
U6_gaa(x0)
U9_gaa(x0)
split21_in_gaaa(x0)
U5_gaa(x0)
U7_gaa(x0, x1)
U10_gaa(x0, x1)
U1_gaaa(x0, x1)
U8_gaa(x0)
U11_gaa(x0)
U12_gaa(x0)
merge34_in_aaaaa
U13_aaaaa(x0)
U14_aaaaa(x0)
p67_in_aaaaaa
p95_in_aaaaaa
U16_aaaaaa(x0)
U17_aaaaaa(x0)
U18_aaaaaa(x0)
U20_aaaaaa(x0)
U23_aaaaaa(x0)
U24_aaaaaa(x0)
U25_aaaaaa(x0)
U27_aaaaaa(x0)
le69_in_aa
U19_aaaaaa(x0, x1, x2)
U21_aaaaaa(x0, x1, x2)
gt97_in_aa
U26_aaaaaa(x0, x1, x2)
U28_aaaaaa(x0, x1, x2)
U15_aa(x0)
p67_in_agaaaa(x0)
p95_in_agaaaa(x0)
U22_aa(x0)
p67_in_gaaaaa(x0)
p95_in_gaaaaa(x0)
U16_agaaaa(x0)
U17_agaaaa(x0)
U18_agaaaa(x0, x1)
U20_agaaaa(x0, x1)
U23_agaaaa(x0)
U24_agaaaa(x0)
U25_agaaaa(x0)
U27_agaaaa(x0)
U16_gaaaaa(x0)
U17_gaaaaa(x0)
U18_gaaaaa(x0)
U20_gaaaaa(x0)
U23_gaaaaa(x0)
U24_gaaaaa(x0)
U25_gaaaaa(x0, x1)
U27_gaaaaa(x0, x1)
le69_in_ag(x0)
U19_agaaaa(x0, x1)
U21_agaaaa(x0, x1)
gt97_in_ag(x0)
U26_agaaaa(x0, x1)
U28_agaaaa(x0, x1)
le69_in_ga(x0)
U19_gaaaaa(x0, x1)
U21_gaaaaa(x0, x1)
gt97_in_ga(x0)
U26_gaaaaa(x0, x1)
U28_gaaaaa(x0, x1)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(144) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U10_GAA(T157, mergesort33_out_gaa) → MERGESORT33_IN_GAA(T157)
The remaining pairs can at least be oriented weakly.
Used ordering: Matrix interpretation [MATRO]:

POL(MERGESORT33_IN_GAA(x1)) = 0 +
[1,1]
·x1

POL(.(x1, x2)) =
/1\
\1/
+
/00\
\00/
·x1 +
/10\
\10/
·x2

POL(U4_GAA(x1)) = 0 +
[1,0]
·x1

POL(U2_ggaaa(x1, x2)) =
/1\
\1/
+
/00\
\00/
·x1 +
/11\
\11/
·x2

POL(U1_gaaa(x1, x2)) =
/1\
\0/
+
/00\
\00/
·x1 +
/10\
\10/
·x2

POL(split21_in_gaaa(x1)) =
/1\
\0/
+
/10\
\01/
·x1

POL(split17_out_ggaaa(x1, x2)) =
/0\
\0/
+
/11\
\11/
·x1 +
/10\
\11/
·x2

POL(U9_GAA(x1)) = 0 +
[0,1]
·x1

POL(U10_GAA(x1, x2)) = 0 +
[1,1]
·x1 +
[1,0]
·x2

POL(mergesort33_in_gaa(x1)) =
/0\
\0/
+
/01\
\00/
·x1

POL(mergesort33_out_gaa) =
/1\
\0/

POL([]) =
/0\
\1/

POL(split21_out_gaaa(x1, x2)) =
/1\
\0/
+
/10\
\01/
·x1 +
/10\
\10/
·x2

POL(U3_gaa(x1)) =
/1\
\0/
+
/00\
\00/
·x1

POL(split17_in_ggaaa(x1, x2)) =
/0\
\0/
+
/10\
\00/
·x1 +
/00\
\00/
·x2

POL(U4_gaa(x1)) =
/1\
\0/
+
/00\
\00/
·x1

POL(U6_gaa(x1)) =
/1\
\0/
+
/00\
\00/
·x1

POL(U9_gaa(x1)) =
/1\
\0/
+
/00\
\00/
·x1

POL(U5_gaa(x1)) =
/1\
\0/
+
/00\
\00/
·x1

POL(U7_gaa(x1, x2)) =
/1\
\0/
+
/00\
\00/
·x1 +
/00\
\00/
·x2

POL(U10_gaa(x1, x2)) =
/1\
\0/
+
/00\
\00/
·x1 +
/00\
\00/
·x2

POL(U11_gaa(x1)) =
/1\
\0/
+
/00\
\00/
·x1

POL(U12_gaa(x1)) =
/1\
\0/
+
/00\
\00/
·x1

POL(merge34_in_aaaaa) =
/0\
\0/

POL(U8_gaa(x1)) =
/1\
\0/
+
/00\
\00/
·x1

POL(merge34_out_aaaaa) =
/0\
\0/

POL(U13_aaaaa(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(p67_in_aaaaaa) =
/0\
\0/

POL(U14_aaaaa(x1)) =
/0\
\1/
+
/00\
\00/
·x1

POL(p95_in_aaaaaa) =
/1\
\0/

POL(U16_aaaaaa(x1)) =
/1\
\0/
+
/00\
\00/
·x1

POL(le69_in_aa) =
/0\
\0/

POL(U17_aaaaaa(x1)) =
/0\
\0/
+
/11\
\11/
·x1

POL(U18_aaaaaa(x1)) =
/1\
\0/
+
/00\
\00/
·x1

POL(U20_aaaaaa(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(p67_out_aaaaaa(x1, x2)) =
/0\
\1/
+
/11\
\11/
·x1 +
/11\
\11/
·x2

POL(U23_aaaaaa(x1)) =
/1\
\0/
+
/10\
\00/
·x1

POL(gt97_in_aa) =
/1\
\1/

POL(U24_aaaaaa(x1)) =
/0\
\0/
+
/11\
\00/
·x1

POL(U25_aaaaaa(x1)) =
/0\
\0/
+
/00\
\11/
·x1

POL(U27_aaaaaa(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(p95_out_aaaaaa(x1, x2)) =
/0\
\0/
+
/01\
\10/
·x1 +
/01\
\01/
·x2

POL(U15_aa(x1)) =
/0\
\0/
+
/11\
\11/
·x1

POL(le69_out_aa(x1, x2)) =
/1\
\1/
+
/10\
\10/
·x1 +
/00\
\00/
·x2

POL(0) =
/0\
\0/

POL(s(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(U19_aaaaaa(x1, x2, x3)) =
/0\
\0/
+
/11\
\01/
·x1 +
/11\
\00/
·x2 +
/00\
\00/
·x3

POL(p67_in_agaaaa(x1)) =
/1\
\0/
+
/01\
\01/
·x1

POL(U21_aaaaaa(x1, x2, x3)) =
/1\
\1/
+
/10\
\01/
·x1 +
/01\
\00/
·x2 +
/00\
\11/
·x3

POL(p95_in_agaaaa(x1)) =
/0\
\0/
+
/01\
\11/
·x1

POL(U22_aa(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(gt97_out_aa(x1, x2)) =
/1\
\1/
+
/00\
\00/
·x1 +
/10\
\10/
·x2

POL(U26_aaaaaa(x1, x2, x3)) =
/1\
\0/
+
/00\
\00/
·x1 +
/01\
\10/
·x2 +
/00\
\00/
·x3

POL(p67_in_gaaaaa(x1)) =
/1\
\0/
+
/10\
\10/
·x1

POL(U28_aaaaaa(x1, x2, x3)) =
/0\
\0/
+
/10\
\00/
·x1 +
/00\
\00/
·x2 +
/00\
\11/
·x3

POL(p95_in_gaaaaa(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(U16_agaaaa(x1)) =
/0\
\0/
+
/00\
\10/
·x1

POL(le69_in_ag(x1)) =
/0\
\0/
+
/00\
\11/
·x1

POL(U17_agaaaa(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(U18_agaaaa(x1, x2)) =
/0\
\0/
+
/10\
\01/
·x1 +
/00\
\00/
·x2

POL(U20_agaaaa(x1, x2)) =
/0\
\0/
+
/00\
\11/
·x1 +
/11\
\11/
·x2

POL(p67_out_agaaaa(x1)) =
/1\
\0/
+
/11\
\10/
·x1

POL(U23_agaaaa(x1)) =
/0\
\0/
+
/01\
\11/
·x1

POL(gt97_in_ag(x1)) =
/1\
\1/
+
/10\
\10/
·x1

POL(U24_agaaaa(x1)) =
/0\
\0/
+
/11\
\11/
·x1

POL(U25_agaaaa(x1)) =
/1\
\0/
+
/00\
\00/
·x1

POL(U27_agaaaa(x1)) =
/1\
\0/
+
/00\
\00/
·x1

POL(p95_out_agaaaa(x1)) =
/1\
\1/
+
/11\
\10/
·x1

POL(U16_gaaaaa(x1)) =
/0\
\0/
+
/11\
\00/
·x1

POL(le69_in_ga(x1)) =
/1\
\1/
+
/00\
\10/
·x1

POL(U17_gaaaaa(x1)) =
/0\
\0/
+
/00\
\11/
·x1

POL(U18_gaaaaa(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(U20_gaaaaa(x1)) =
/1\
\0/
+
/00\
\11/
·x1

POL(p67_out_gaaaaa(x1)) =
/0\
\0/
+
/11\
\01/
·x1

POL(U23_gaaaaa(x1)) =
/0\
\1/
+
/00\
\00/
·x1

POL(gt97_in_ga(x1)) =
/0\
\0/
+
/01\
\11/
·x1

POL(U24_gaaaaa(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(U25_gaaaaa(x1, x2)) =
/0\
\0/
+
/00\
\11/
·x1 +
/00\
\00/
·x2

POL(U27_gaaaaa(x1, x2)) =
/0\
\0/
+
/00\
\10/
·x1 +
/00\
\11/
·x2

POL(p95_out_gaaaaa(x1)) =
/1\
\1/
+
/10\
\00/
·x1

POL(U15_ag(x1)) =
/0\
\0/
+
/11\
\00/
·x1

POL(le69_out_ag(x1)) =
/1\
\1/
+
/00\
\00/
·x1

POL(U19_agaaaa(x1, x2)) =
/0\
\0/
+
/10\
\10/
·x1 +
/00\
\00/
·x2

POL(U21_agaaaa(x1, x2)) =
/0\
\0/
+
/00\
\10/
·x1 +
/00\
\10/
·x2

POL(U22_ag(x1)) =
/1\
\1/
+
/01\
\10/
·x1

POL(gt97_out_ag(x1)) =
/1\
\0/
+
/10\
\10/
·x1

POL(U26_agaaaa(x1, x2)) =
/0\
\0/
+
/00\
\01/
·x1 +
/11\
\00/
·x2

POL(U15_ga(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(le69_out_ga(x1)) =
/1\
\1/
+
/01\
\01/
·x1

POL(U19_gaaaaa(x1, x2)) =
/0\
\0/
+
/00\
\10/
·x1 +
/00\
\00/
·x2

POL(U21_gaaaaa(x1, x2)) =
/0\
\0/
+
/00\
\00/
·x1 +
/00\
\00/
·x2

POL(U28_agaaaa(x1, x2)) =
/0\
\0/
+
/00\
\00/
·x1 +
/00\
\00/
·x2

POL(U22_ga(x1)) =
/0\
\1/
+
/10\
\11/
·x1

POL(gt97_out_ga(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(U26_gaaaaa(x1, x2)) =
/1\
\0/
+
/11\
\01/
·x1 +
/00\
\00/
·x2

POL(U28_gaaaaa(x1, x2)) =
/0\
\0/
+
/00\
\00/
·x1 +
/10\
\00/
·x2

The following usable rules [FROCOS05] were oriented:

split21_in_gaaa([]) → split21_out_gaaa([], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, split21_in_gaaa(T93))
U1_gaaa(T92, split21_out_gaaa(X163, X162)) → split21_out_gaaa(.(T92, X162), X163)
U2_ggaaa(T72, split21_out_gaaa(X125, X124)) → split17_out_ggaaa(.(T72, X124), X125)
mergesort33_in_gaa([]) → mergesort33_out_gaa
mergesort33_in_gaa(.(T132, [])) → mergesort33_out_gaa
mergesort33_in_gaa(.(T144, .(T145, T146))) → U3_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U4_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U6_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U9_gaa(split17_in_ggaaa(T144, .(T145, T146)))
U4_gaa(split17_out_ggaaa(T156, T157)) → U5_gaa(mergesort33_in_gaa(T156))
U5_gaa(mergesort33_out_gaa) → mergesort33_out_gaa
U6_gaa(split17_out_ggaaa(T156, T157)) → U7_gaa(T157, mergesort33_in_gaa(T156))
U9_gaa(split17_out_ggaaa(T156, T157)) → U10_gaa(T157, mergesort33_in_gaa(T156))
U10_gaa(T157, mergesort33_out_gaa) → U11_gaa(mergesort33_in_gaa(T157))
U11_gaa(mergesort33_out_gaa) → U12_gaa(merge34_in_aaaaa)
U7_gaa(T157, mergesort33_out_gaa) → U8_gaa(mergesort33_in_gaa(T157))
U8_gaa(mergesort33_out_gaa) → mergesort33_out_gaa
U3_gaa(split17_out_ggaaa(X230, X231)) → mergesort33_out_gaa
U12_gaa(merge34_out_aaaaa) → mergesort33_out_gaa

(145) Obligation:

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

MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(U2_ggaaa(T144, U1_gaaa(T145, split21_in_gaaa(T146))))
U4_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(U2_ggaaa(T144, U1_gaaa(T145, split21_in_gaaa(T146))))
U9_GAA(split17_out_ggaaa(T156, T157)) → U10_GAA(T157, mergesort33_in_gaa(T156))
U9_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, split21_in_gaaa(T73))
mergesort33_in_gaa([]) → mergesort33_out_gaa
mergesort33_in_gaa(.(T132, [])) → mergesort33_out_gaa
mergesort33_in_gaa(.(T144, .(T145, T146))) → U3_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U4_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U6_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U9_gaa(split17_in_ggaaa(T144, .(T145, T146)))
U2_ggaaa(T72, split21_out_gaaa(X125, X124)) → split17_out_ggaaa(.(T72, X124), X125)
U3_gaa(split17_out_ggaaa(X230, X231)) → mergesort33_out_gaa
U4_gaa(split17_out_ggaaa(T156, T157)) → U5_gaa(mergesort33_in_gaa(T156))
U6_gaa(split17_out_ggaaa(T156, T157)) → U7_gaa(T157, mergesort33_in_gaa(T156))
U9_gaa(split17_out_ggaaa(T156, T157)) → U10_gaa(T157, mergesort33_in_gaa(T156))
split21_in_gaaa([]) → split21_out_gaaa([], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, split21_in_gaaa(T93))
U5_gaa(mergesort33_out_gaa) → mergesort33_out_gaa
U7_gaa(T157, mergesort33_out_gaa) → U8_gaa(mergesort33_in_gaa(T157))
U10_gaa(T157, mergesort33_out_gaa) → U11_gaa(mergesort33_in_gaa(T157))
U1_gaaa(T92, split21_out_gaaa(X163, X162)) → split21_out_gaaa(.(T92, X162), X163)
U8_gaa(mergesort33_out_gaa) → mergesort33_out_gaa
U11_gaa(mergesort33_out_gaa) → U12_gaa(merge34_in_aaaaa)
U12_gaa(merge34_out_aaaaa) → mergesort33_out_gaa
merge34_in_aaaaamerge34_out_aaaaa
merge34_in_aaaaaU13_aaaaa(p67_in_aaaaaa)
merge34_in_aaaaaU14_aaaaa(p95_in_aaaaaa)
U13_aaaaa(p67_out_aaaaaa(T249, T251)) → merge34_out_aaaaa
U14_aaaaa(p95_out_aaaaaa(T473, T475)) → merge34_out_aaaaa
p67_in_aaaaaaU16_aaaaaa(le69_in_aa)
p67_in_aaaaaaU17_aaaaaa(le69_in_aa)
p67_in_aaaaaaU18_aaaaaa(le69_in_aa)
p67_in_aaaaaaU20_aaaaaa(le69_in_aa)
p95_in_aaaaaaU23_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU24_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU25_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU27_aaaaaa(gt97_in_aa)
U16_aaaaaa(le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251)
U17_aaaaaa(le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292)
U18_aaaaaa(le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_aaaaaa(le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_aaaaaa(gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351)
U24_aaaaaa(gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351)
U25_aaaaaa(gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_aaaaaa(gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_aaU15_aa(le69_in_aa)
le69_in_aale69_out_aa(0, s(0))
le69_in_aale69_out_aa(0, 0)
U19_aaaaaa(T249, T326, p67_out_agaaaa(T324)) → p67_out_aaaaaa(T249, T326)
U21_aaaaaa(T249, T351, p95_out_agaaaa(T349)) → p67_out_aaaaaa(T249, T351)
gt97_in_aaU22_aa(gt97_in_aa)
gt97_in_aagt97_out_aa(s(0), 0)
U26_aaaaaa(T423, T351, p67_out_gaaaaa(T425)) → p95_out_aaaaaa(T423, T351)
U28_aaaaaa(T448, T351, p95_out_gaaaaa(T450)) → p95_out_aaaaaa(T448, T351)
U15_aa(le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
p67_in_agaaaa(T251) → U16_agaaaa(le69_in_ag(T251))
p67_in_agaaaa(T292) → U17_agaaaa(le69_in_ag(T292))
p67_in_agaaaa(T326) → U18_agaaaa(T326, le69_in_ag(T326))
p67_in_agaaaa(T351) → U20_agaaaa(T351, le69_in_ag(T351))
p95_in_agaaaa(T351) → U23_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U24_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U25_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U27_agaaaa(gt97_in_ag(T351))
U22_aa(gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
p67_in_gaaaaa(T249) → U16_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U17_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U18_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U20_gaaaaa(le69_in_ga(T249))
p95_in_gaaaaa(T349) → U23_gaaaaa(gt97_in_ga(T349))
p95_in_gaaaaa(T392) → U24_gaaaaa(gt97_in_ga(T392))
p95_in_gaaaaa(T423) → U25_gaaaaa(T423, gt97_in_ga(T423))
p95_in_gaaaaa(T448) → U27_gaaaaa(T448, gt97_in_ga(T448))
U16_agaaaa(le69_out_ag(T249)) → p67_out_agaaaa(T249)
U17_agaaaa(le69_out_ag(T249)) → p67_out_agaaaa(T249)
U18_agaaaa(T326, le69_out_ag(T249)) → U19_agaaaa(T249, p67_in_agaaaa(T326))
U20_agaaaa(T351, le69_out_ag(T249)) → U21_agaaaa(T249, p95_in_agaaaa(T351))
U23_agaaaa(gt97_out_ag(T349)) → p95_out_agaaaa(T349)
U24_agaaaa(gt97_out_ag(T392)) → p95_out_agaaaa(T392)
U25_agaaaa(gt97_out_ag(T423)) → U26_agaaaa(T423, p67_in_gaaaaa(T423))
U27_agaaaa(gt97_out_ag(T448)) → U28_agaaaa(T448, p95_in_gaaaaa(T448))
U16_gaaaaa(le69_out_ga(T251)) → p67_out_gaaaaa(T251)
U17_gaaaaa(le69_out_ga(T292)) → p67_out_gaaaaa(T292)
U18_gaaaaa(le69_out_ga(T326)) → U19_gaaaaa(T326, p67_in_agaaaa(T326))
U20_gaaaaa(le69_out_ga(T351)) → U21_gaaaaa(T351, p95_in_agaaaa(T351))
U23_gaaaaa(gt97_out_ga(T351)) → p95_out_gaaaaa(T351)
U24_gaaaaa(gt97_out_ga(T351)) → p95_out_gaaaaa(T351)
U25_gaaaaa(T423, gt97_out_ga(T351)) → U26_gaaaaa(T351, p67_in_gaaaaa(T423))
U27_gaaaaa(T448, gt97_out_ga(T351)) → U28_gaaaaa(T351, p95_in_gaaaaa(T448))
le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
U19_agaaaa(T249, p67_out_agaaaa(T324)) → p67_out_agaaaa(T249)
U21_agaaaa(T249, p95_out_agaaaa(T349)) → p67_out_agaaaa(T249)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
U26_agaaaa(T423, p67_out_gaaaaa(T425)) → p95_out_agaaaa(T423)
U28_agaaaa(T448, p95_out_gaaaaa(T450)) → p95_out_agaaaa(T448)
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
U19_gaaaaa(T326, p67_out_agaaaa(T324)) → p67_out_gaaaaa(T326)
U21_gaaaaa(T351, p95_out_agaaaa(T349)) → p67_out_gaaaaa(T351)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U26_gaaaaa(T351, p67_out_gaaaaa(T425)) → p95_out_gaaaaa(T351)
U28_gaaaaa(T351, p95_out_gaaaaa(T450)) → p95_out_gaaaaa(T351)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
mergesort33_in_gaa(x0)
U2_ggaaa(x0, x1)
U3_gaa(x0)
U4_gaa(x0)
U6_gaa(x0)
U9_gaa(x0)
split21_in_gaaa(x0)
U5_gaa(x0)
U7_gaa(x0, x1)
U10_gaa(x0, x1)
U1_gaaa(x0, x1)
U8_gaa(x0)
U11_gaa(x0)
U12_gaa(x0)
merge34_in_aaaaa
U13_aaaaa(x0)
U14_aaaaa(x0)
p67_in_aaaaaa
p95_in_aaaaaa
U16_aaaaaa(x0)
U17_aaaaaa(x0)
U18_aaaaaa(x0)
U20_aaaaaa(x0)
U23_aaaaaa(x0)
U24_aaaaaa(x0)
U25_aaaaaa(x0)
U27_aaaaaa(x0)
le69_in_aa
U19_aaaaaa(x0, x1, x2)
U21_aaaaaa(x0, x1, x2)
gt97_in_aa
U26_aaaaaa(x0, x1, x2)
U28_aaaaaa(x0, x1, x2)
U15_aa(x0)
p67_in_agaaaa(x0)
p95_in_agaaaa(x0)
U22_aa(x0)
p67_in_gaaaaa(x0)
p95_in_gaaaaa(x0)
U16_agaaaa(x0)
U17_agaaaa(x0)
U18_agaaaa(x0, x1)
U20_agaaaa(x0, x1)
U23_agaaaa(x0)
U24_agaaaa(x0)
U25_agaaaa(x0)
U27_agaaaa(x0)
U16_gaaaaa(x0)
U17_gaaaaa(x0)
U18_gaaaaa(x0)
U20_gaaaaa(x0)
U23_gaaaaa(x0)
U24_gaaaaa(x0)
U25_gaaaaa(x0, x1)
U27_gaaaaa(x0, x1)
le69_in_ag(x0)
U19_agaaaa(x0, x1)
U21_agaaaa(x0, x1)
gt97_in_ag(x0)
U26_agaaaa(x0, x1)
U28_agaaaa(x0, x1)
le69_in_ga(x0)
U19_gaaaaa(x0, x1)
U21_gaaaaa(x0, x1)
gt97_in_ga(x0)
U26_gaaaaa(x0, x1)
U28_gaaaaa(x0, x1)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(146) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 1 SCC with 1 less node.

(147) Obligation:

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

U4_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(U2_ggaaa(T144, U1_gaaa(T145, split21_in_gaaa(T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(U2_ggaaa(T144, U1_gaaa(T145, split21_in_gaaa(T146))))
U9_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, split21_in_gaaa(T73))
mergesort33_in_gaa([]) → mergesort33_out_gaa
mergesort33_in_gaa(.(T132, [])) → mergesort33_out_gaa
mergesort33_in_gaa(.(T144, .(T145, T146))) → U3_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U4_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U6_gaa(split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U9_gaa(split17_in_ggaaa(T144, .(T145, T146)))
U2_ggaaa(T72, split21_out_gaaa(X125, X124)) → split17_out_ggaaa(.(T72, X124), X125)
U3_gaa(split17_out_ggaaa(X230, X231)) → mergesort33_out_gaa
U4_gaa(split17_out_ggaaa(T156, T157)) → U5_gaa(mergesort33_in_gaa(T156))
U6_gaa(split17_out_ggaaa(T156, T157)) → U7_gaa(T157, mergesort33_in_gaa(T156))
U9_gaa(split17_out_ggaaa(T156, T157)) → U10_gaa(T157, mergesort33_in_gaa(T156))
split21_in_gaaa([]) → split21_out_gaaa([], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, split21_in_gaaa(T93))
U5_gaa(mergesort33_out_gaa) → mergesort33_out_gaa
U7_gaa(T157, mergesort33_out_gaa) → U8_gaa(mergesort33_in_gaa(T157))
U10_gaa(T157, mergesort33_out_gaa) → U11_gaa(mergesort33_in_gaa(T157))
U1_gaaa(T92, split21_out_gaaa(X163, X162)) → split21_out_gaaa(.(T92, X162), X163)
U8_gaa(mergesort33_out_gaa) → mergesort33_out_gaa
U11_gaa(mergesort33_out_gaa) → U12_gaa(merge34_in_aaaaa)
U12_gaa(merge34_out_aaaaa) → mergesort33_out_gaa
merge34_in_aaaaamerge34_out_aaaaa
merge34_in_aaaaaU13_aaaaa(p67_in_aaaaaa)
merge34_in_aaaaaU14_aaaaa(p95_in_aaaaaa)
U13_aaaaa(p67_out_aaaaaa(T249, T251)) → merge34_out_aaaaa
U14_aaaaa(p95_out_aaaaaa(T473, T475)) → merge34_out_aaaaa
p67_in_aaaaaaU16_aaaaaa(le69_in_aa)
p67_in_aaaaaaU17_aaaaaa(le69_in_aa)
p67_in_aaaaaaU18_aaaaaa(le69_in_aa)
p67_in_aaaaaaU20_aaaaaa(le69_in_aa)
p95_in_aaaaaaU23_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU24_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU25_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU27_aaaaaa(gt97_in_aa)
U16_aaaaaa(le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251)
U17_aaaaaa(le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292)
U18_aaaaaa(le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_aaaaaa(le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_aaaaaa(gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351)
U24_aaaaaa(gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351)
U25_aaaaaa(gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_aaaaaa(gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_aaU15_aa(le69_in_aa)
le69_in_aale69_out_aa(0, s(0))
le69_in_aale69_out_aa(0, 0)
U19_aaaaaa(T249, T326, p67_out_agaaaa(T324)) → p67_out_aaaaaa(T249, T326)
U21_aaaaaa(T249, T351, p95_out_agaaaa(T349)) → p67_out_aaaaaa(T249, T351)
gt97_in_aaU22_aa(gt97_in_aa)
gt97_in_aagt97_out_aa(s(0), 0)
U26_aaaaaa(T423, T351, p67_out_gaaaaa(T425)) → p95_out_aaaaaa(T423, T351)
U28_aaaaaa(T448, T351, p95_out_gaaaaa(T450)) → p95_out_aaaaaa(T448, T351)
U15_aa(le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
p67_in_agaaaa(T251) → U16_agaaaa(le69_in_ag(T251))
p67_in_agaaaa(T292) → U17_agaaaa(le69_in_ag(T292))
p67_in_agaaaa(T326) → U18_agaaaa(T326, le69_in_ag(T326))
p67_in_agaaaa(T351) → U20_agaaaa(T351, le69_in_ag(T351))
p95_in_agaaaa(T351) → U23_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U24_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U25_agaaaa(gt97_in_ag(T351))
p95_in_agaaaa(T351) → U27_agaaaa(gt97_in_ag(T351))
U22_aa(gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
p67_in_gaaaaa(T249) → U16_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U17_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U18_gaaaaa(le69_in_ga(T249))
p67_in_gaaaaa(T249) → U20_gaaaaa(le69_in_ga(T249))
p95_in_gaaaaa(T349) → U23_gaaaaa(gt97_in_ga(T349))
p95_in_gaaaaa(T392) → U24_gaaaaa(gt97_in_ga(T392))
p95_in_gaaaaa(T423) → U25_gaaaaa(T423, gt97_in_ga(T423))
p95_in_gaaaaa(T448) → U27_gaaaaa(T448, gt97_in_ga(T448))
U16_agaaaa(le69_out_ag(T249)) → p67_out_agaaaa(T249)
U17_agaaaa(le69_out_ag(T249)) → p67_out_agaaaa(T249)
U18_agaaaa(T326, le69_out_ag(T249)) → U19_agaaaa(T249, p67_in_agaaaa(T326))
U20_agaaaa(T351, le69_out_ag(T249)) → U21_agaaaa(T249, p95_in_agaaaa(T351))
U23_agaaaa(gt97_out_ag(T349)) → p95_out_agaaaa(T349)
U24_agaaaa(gt97_out_ag(T392)) → p95_out_agaaaa(T392)
U25_agaaaa(gt97_out_ag(T423)) → U26_agaaaa(T423, p67_in_gaaaaa(T423))
U27_agaaaa(gt97_out_ag(T448)) → U28_agaaaa(T448, p95_in_gaaaaa(T448))
U16_gaaaaa(le69_out_ga(T251)) → p67_out_gaaaaa(T251)
U17_gaaaaa(le69_out_ga(T292)) → p67_out_gaaaaa(T292)
U18_gaaaaa(le69_out_ga(T326)) → U19_gaaaaa(T326, p67_in_agaaaa(T326))
U20_gaaaaa(le69_out_ga(T351)) → U21_gaaaaa(T351, p95_in_agaaaa(T351))
U23_gaaaaa(gt97_out_ga(T351)) → p95_out_gaaaaa(T351)
U24_gaaaaa(gt97_out_ga(T351)) → p95_out_gaaaaa(T351)
U25_gaaaaa(T423, gt97_out_ga(T351)) → U26_gaaaaa(T351, p67_in_gaaaaa(T423))
U27_gaaaaa(T448, gt97_out_ga(T351)) → U28_gaaaaa(T351, p95_in_gaaaaa(T448))
le69_in_ag(s(T271)) → U15_ag(le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0)
le69_in_ag(0) → le69_out_ag(0)
U19_agaaaa(T249, p67_out_agaaaa(T324)) → p67_out_agaaaa(T249)
U21_agaaaa(T249, p95_out_agaaaa(T349)) → p67_out_agaaaa(T249)
gt97_in_ag(s(T371)) → U22_ag(gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0))
U26_agaaaa(T423, p67_out_gaaaaa(T425)) → p95_out_agaaaa(T423)
U28_agaaaa(T448, p95_out_gaaaaa(T450)) → p95_out_agaaaa(T448)
le69_in_ga(s(T270)) → U15_ga(le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(s(0))
le69_in_ga(0) → le69_out_ga(0)
U19_gaaaaa(T326, p67_out_agaaaa(T324)) → p67_out_gaaaaa(T326)
U21_gaaaaa(T351, p95_out_agaaaa(T349)) → p67_out_gaaaaa(T351)
gt97_in_ga(s(T370)) → U22_ga(gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(0)
U26_gaaaaa(T351, p67_out_gaaaaa(T425)) → p95_out_gaaaaa(T351)
U28_gaaaaa(T351, p95_out_gaaaaa(T450)) → p95_out_gaaaaa(T351)
U15_ag(le69_out_ag(T270)) → le69_out_ag(s(T270))
U22_ag(gt97_out_ag(T370)) → gt97_out_ag(s(T370))
U15_ga(le69_out_ga(T271)) → le69_out_ga(s(T271))
U22_ga(gt97_out_ga(T371)) → gt97_out_ga(s(T371))

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
mergesort33_in_gaa(x0)
U2_ggaaa(x0, x1)
U3_gaa(x0)
U4_gaa(x0)
U6_gaa(x0)
U9_gaa(x0)
split21_in_gaaa(x0)
U5_gaa(x0)
U7_gaa(x0, x1)
U10_gaa(x0, x1)
U1_gaaa(x0, x1)
U8_gaa(x0)
U11_gaa(x0)
U12_gaa(x0)
merge34_in_aaaaa
U13_aaaaa(x0)
U14_aaaaa(x0)
p67_in_aaaaaa
p95_in_aaaaaa
U16_aaaaaa(x0)
U17_aaaaaa(x0)
U18_aaaaaa(x0)
U20_aaaaaa(x0)
U23_aaaaaa(x0)
U24_aaaaaa(x0)
U25_aaaaaa(x0)
U27_aaaaaa(x0)
le69_in_aa
U19_aaaaaa(x0, x1, x2)
U21_aaaaaa(x0, x1, x2)
gt97_in_aa
U26_aaaaaa(x0, x1, x2)
U28_aaaaaa(x0, x1, x2)
U15_aa(x0)
p67_in_agaaaa(x0)
p95_in_agaaaa(x0)
U22_aa(x0)
p67_in_gaaaaa(x0)
p95_in_gaaaaa(x0)
U16_agaaaa(x0)
U17_agaaaa(x0)
U18_agaaaa(x0, x1)
U20_agaaaa(x0, x1)
U23_agaaaa(x0)
U24_agaaaa(x0)
U25_agaaaa(x0)
U27_agaaaa(x0)
U16_gaaaaa(x0)
U17_gaaaaa(x0)
U18_gaaaaa(x0)
U20_gaaaaa(x0)
U23_gaaaaa(x0)
U24_gaaaaa(x0)
U25_gaaaaa(x0, x1)
U27_gaaaaa(x0, x1)
le69_in_ag(x0)
U19_agaaaa(x0, x1)
U21_agaaaa(x0, x1)
gt97_in_ag(x0)
U26_agaaaa(x0, x1)
U28_agaaaa(x0, x1)
le69_in_ga(x0)
U19_gaaaaa(x0, x1)
U21_gaaaaa(x0, x1)
gt97_in_ga(x0)
U26_gaaaaa(x0, x1)
U28_gaaaaa(x0, x1)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(148) UsableRulesProof (EQUIVALENT transformation)

As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R.

(149) Obligation:

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

U4_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(U2_ggaaa(T144, U1_gaaa(T145, split21_in_gaaa(T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(U2_ggaaa(T144, U1_gaaa(T145, split21_in_gaaa(T146))))
U9_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)

The TRS R consists of the following rules:

split21_in_gaaa([]) → split21_out_gaaa([], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, split21_in_gaaa(T93))
U1_gaaa(T92, split21_out_gaaa(X163, X162)) → split21_out_gaaa(.(T92, X162), X163)
U2_ggaaa(T72, split21_out_gaaa(X125, X124)) → split17_out_ggaaa(.(T72, X124), X125)

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
mergesort33_in_gaa(x0)
U2_ggaaa(x0, x1)
U3_gaa(x0)
U4_gaa(x0)
U6_gaa(x0)
U9_gaa(x0)
split21_in_gaaa(x0)
U5_gaa(x0)
U7_gaa(x0, x1)
U10_gaa(x0, x1)
U1_gaaa(x0, x1)
U8_gaa(x0)
U11_gaa(x0)
U12_gaa(x0)
merge34_in_aaaaa
U13_aaaaa(x0)
U14_aaaaa(x0)
p67_in_aaaaaa
p95_in_aaaaaa
U16_aaaaaa(x0)
U17_aaaaaa(x0)
U18_aaaaaa(x0)
U20_aaaaaa(x0)
U23_aaaaaa(x0)
U24_aaaaaa(x0)
U25_aaaaaa(x0)
U27_aaaaaa(x0)
le69_in_aa
U19_aaaaaa(x0, x1, x2)
U21_aaaaaa(x0, x1, x2)
gt97_in_aa
U26_aaaaaa(x0, x1, x2)
U28_aaaaaa(x0, x1, x2)
U15_aa(x0)
p67_in_agaaaa(x0)
p95_in_agaaaa(x0)
U22_aa(x0)
p67_in_gaaaaa(x0)
p95_in_gaaaaa(x0)
U16_agaaaa(x0)
U17_agaaaa(x0)
U18_agaaaa(x0, x1)
U20_agaaaa(x0, x1)
U23_agaaaa(x0)
U24_agaaaa(x0)
U25_agaaaa(x0)
U27_agaaaa(x0)
U16_gaaaaa(x0)
U17_gaaaaa(x0)
U18_gaaaaa(x0)
U20_gaaaaa(x0)
U23_gaaaaa(x0)
U24_gaaaaa(x0)
U25_gaaaaa(x0, x1)
U27_gaaaaa(x0, x1)
le69_in_ag(x0)
U19_agaaaa(x0, x1)
U21_agaaaa(x0, x1)
gt97_in_ag(x0)
U26_agaaaa(x0, x1)
U28_agaaaa(x0, x1)
le69_in_ga(x0)
U19_gaaaaa(x0, x1)
U21_gaaaaa(x0, x1)
gt97_in_ga(x0)
U26_gaaaaa(x0, x1)
U28_gaaaaa(x0, x1)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

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

(150) QReductionProof (EQUIVALENT transformation)

We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN].

split17_in_ggaaa(x0, x1)
mergesort33_in_gaa(x0)
U3_gaa(x0)
U4_gaa(x0)
U6_gaa(x0)
U9_gaa(x0)
U5_gaa(x0)
U7_gaa(x0, x1)
U10_gaa(x0, x1)
U8_gaa(x0)
U11_gaa(x0)
U12_gaa(x0)
merge34_in_aaaaa
U13_aaaaa(x0)
U14_aaaaa(x0)
p67_in_aaaaaa
p95_in_aaaaaa
U16_aaaaaa(x0)
U17_aaaaaa(x0)
U18_aaaaaa(x0)
U20_aaaaaa(x0)
U23_aaaaaa(x0)
U24_aaaaaa(x0)
U25_aaaaaa(x0)
U27_aaaaaa(x0)
le69_in_aa
U19_aaaaaa(x0, x1, x2)
U21_aaaaaa(x0, x1, x2)
gt97_in_aa
U26_aaaaaa(x0, x1, x2)
U28_aaaaaa(x0, x1, x2)
U15_aa(x0)
p67_in_agaaaa(x0)
p95_in_agaaaa(x0)
U22_aa(x0)
p67_in_gaaaaa(x0)
p95_in_gaaaaa(x0)
U16_agaaaa(x0)
U17_agaaaa(x0)
U18_agaaaa(x0, x1)
U20_agaaaa(x0, x1)
U23_agaaaa(x0)
U24_agaaaa(x0)
U25_agaaaa(x0)
U27_agaaaa(x0)
U16_gaaaaa(x0)
U17_gaaaaa(x0)
U18_gaaaaa(x0)
U20_gaaaaa(x0)
U23_gaaaaa(x0)
U24_gaaaaa(x0)
U25_gaaaaa(x0, x1)
U27_gaaaaa(x0, x1)
le69_in_ag(x0)
U19_agaaaa(x0, x1)
U21_agaaaa(x0, x1)
gt97_in_ag(x0)
U26_agaaaa(x0, x1)
U28_agaaaa(x0, x1)
le69_in_ga(x0)
U19_gaaaaa(x0, x1)
U21_gaaaaa(x0, x1)
gt97_in_ga(x0)
U26_gaaaaa(x0, x1)
U28_gaaaaa(x0, x1)
U15_ag(x0)
U22_ag(x0)
U15_ga(x0)
U22_ga(x0)

(151) Obligation:

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

U4_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(U2_ggaaa(T144, U1_gaaa(T145, split21_in_gaaa(T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(U2_ggaaa(T144, U1_gaaa(T145, split21_in_gaaa(T146))))
U9_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)

The TRS R consists of the following rules:

split21_in_gaaa([]) → split21_out_gaaa([], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, split21_in_gaaa(T93))
U1_gaaa(T92, split21_out_gaaa(X163, X162)) → split21_out_gaaa(.(T92, X162), X163)
U2_ggaaa(T72, split21_out_gaaa(X125, X124)) → split17_out_ggaaa(.(T72, X124), X125)

The set Q consists of the following terms:

U2_ggaaa(x0, x1)
split21_in_gaaa(x0)
U1_gaaa(x0, x1)

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

(152) MRRProof (EQUIVALENT transformation)

By using the rule removal processor [LPAR04] with the following ordering, at least one Dependency Pair or term rewrite system rule of this QDP problem can be strictly oriented.
Strictly oriented dependency pairs:

U4_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(U2_ggaaa(T144, U1_gaaa(T145, split21_in_gaaa(T146))))
U9_GAA(split17_out_ggaaa(T156, T157)) → MERGESORT33_IN_GAA(T156)

Strictly oriented rules of the TRS R:

split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, split21_in_gaaa(T93))

Used ordering: Polynomial interpretation [POLO]:

POL(.(x1, x2)) = 1 + 2·x1 + 2·x2   
POL(MERGESORT33_IN_GAA(x1)) = 2·x1   
POL(U1_gaaa(x1, x2)) = 1 + 2·x1 + 2·x2   
POL(U2_ggaaa(x1, x2)) = 1 + 2·x1 + x2   
POL(U4_GAA(x1)) = 2 + 2·x1   
POL(U9_GAA(x1)) = 1 + 2·x1   
POL([]) = 0   
POL(split17_out_ggaaa(x1, x2)) = x1 + x2   
POL(split21_in_gaaa(x1)) = 2·x1   
POL(split21_out_gaaa(x1, x2)) = x1 + 2·x2   

(153) Obligation:

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

MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(U2_ggaaa(T144, U1_gaaa(T145, split21_in_gaaa(T146))))

The TRS R consists of the following rules:

split21_in_gaaa([]) → split21_out_gaaa([], [])
U1_gaaa(T92, split21_out_gaaa(X163, X162)) → split21_out_gaaa(.(T92, X162), X163)
U2_ggaaa(T72, split21_out_gaaa(X125, X124)) → split17_out_ggaaa(.(T72, X124), X125)

The set Q consists of the following terms:

U2_ggaaa(x0, x1)
split21_in_gaaa(x0)
U1_gaaa(x0, x1)

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

(154) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 0 SCCs with 1 less node.

(155) TRUE

(156) Obligation:

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

MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_GAA(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_GAA(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → MERGESORT1_IN_GAA(.(T43, T56), X38, T57)
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_GAA(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_GAA(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → MERGESORT1_IN_GAA(.(T43, T56), T103, T104)
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_GAA(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_GAA(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → MERGESORT1_IN_GAA(.(T43, T56), T103, T116)

The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x7)
MERGESORT1_IN_GAA(x1, x2, x3)  =  MERGESORT1_IN_GAA(x1)
U30_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U30_GAA(x1, x7)
U32_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U32_GAA(x1, x7)
U35_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U35_GAA(x1, x7)

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

(157) UsableRulesProof (EQUIVALENT transformation)

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

(158) Obligation:

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

MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_GAA(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_GAA(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → MERGESORT1_IN_GAA(.(T43, T56), X38, T57)
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_GAA(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_GAA(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → MERGESORT1_IN_GAA(.(T43, T56), T103, T104)
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_GAA(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_GAA(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → MERGESORT1_IN_GAA(.(T43, T56), T103, T116)

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))

The argument filtering Pi contains the following mapping:
[]  =  []
.(x1, x2)  =  .(x1, x2)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x3, x4)
MERGESORT1_IN_GAA(x1, x2, x3)  =  MERGESORT1_IN_GAA(x1)
U30_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U30_GAA(x1, x7)
U32_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U32_GAA(x1, x7)
U35_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U35_GAA(x1, x7)

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

(159) PiDPToQDPProof (SOUND transformation)

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

(160) Obligation:

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

MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U30_GAA(T43, split17_in_ggaaa(T44, T45))
U30_GAA(T43, split17_out_ggaaa(T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U32_GAA(T43, split17_in_ggaaa(T44, T45))
U32_GAA(T43, split17_out_ggaaa(T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U35_GAA(T43, split17_in_ggaaa(T44, T45))
U35_GAA(T43, split17_out_ggaaa(T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, split21_in_gaaa(T73))
U2_ggaaa(T72, split21_out_gaaa(X125, X124)) → split17_out_ggaaa(.(T72, X124), X125)
split21_in_gaaa([]) → split21_out_gaaa([], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, split21_in_gaaa(T93))
U1_gaaa(T92, split21_out_gaaa(X163, X162)) → split21_out_gaaa(.(T92, X162), X163)

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
U2_ggaaa(x0, x1)
split21_in_gaaa(x0)
U1_gaaa(x0, x1)

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

(161) MRRProof (EQUIVALENT transformation)

By using the rule removal processor [LPAR04] with the following ordering, at least one Dependency Pair or term rewrite system rule of this QDP problem can be strictly oriented.

Strictly oriented rules of the TRS R:

U2_ggaaa(T72, split21_out_gaaa(X125, X124)) → split17_out_ggaaa(.(T72, X124), X125)

Used ordering: Polynomial interpretation [POLO]:

POL(.(x1, x2)) = 1 + x1 + 2·x2   
POL(MERGESORT1_IN_GAA(x1)) = x1   
POL(U1_gaaa(x1, x2)) = 1 + x1 + 2·x2   
POL(U2_ggaaa(x1, x2)) = 2 + x1 + 2·x2   
POL(U30_GAA(x1, x2)) = 1 + x1 + x2   
POL(U32_GAA(x1, x2)) = 1 + x1 + x2   
POL(U35_GAA(x1, x2)) = 1 + x1 + x2   
POL([]) = 0   
POL(split17_in_ggaaa(x1, x2)) = 2 + 2·x1 + 2·x2   
POL(split17_out_ggaaa(x1, x2)) = x1 + 2·x2   
POL(split21_in_gaaa(x1)) = x1   
POL(split21_out_gaaa(x1, x2)) = x1 + x2   

(162) Obligation:

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

MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U30_GAA(T43, split17_in_ggaaa(T44, T45))
U30_GAA(T43, split17_out_ggaaa(T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U32_GAA(T43, split17_in_ggaaa(T44, T45))
U32_GAA(T43, split17_out_ggaaa(T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U35_GAA(T43, split17_in_ggaaa(T44, T45))
U35_GAA(T43, split17_out_ggaaa(T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, split21_in_gaaa(T73))
split21_in_gaaa([]) → split21_out_gaaa([], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, split21_in_gaaa(T93))
U1_gaaa(T92, split21_out_gaaa(X163, X162)) → split21_out_gaaa(.(T92, X162), X163)

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
U2_ggaaa(x0, x1)
split21_in_gaaa(x0)
U1_gaaa(x0, x1)

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

(163) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 0 SCCs with 6 less nodes.

(164) TRUE

(165) PrologToPiTRSProof (SOUND transformation)

We use the technique of [LOPSTR]. With regard to the inferred argument filtering the predicates were used in the following modes:
mergesort1_in: (b,f,f)
split17_in: (b,b,f,f,f)
split21_in: (b,f,f,f)
mergesort33_in: (b,f,f)
merge34_in: (f,f,f,f,f)
p67_in: (f,f,f,f,f,f) (f,b,f,f,f,f) (b,f,f,f,f,f)
le69_in: (f,f) (f,b) (b,f)
p95_in: (f,b,f,f,f,f) (b,f,f,f,f,f) (f,f,f,f,f,f)
gt97_in: (f,b) (b,f) (f,f)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa(x1)
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x1, x2, x3, x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x2, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x1, x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x2, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x1, x2, x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x2, x3, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x1, x2, x3, x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x2, x3, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x1, x2, x3, x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x2, x3, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x1, x2, x3, x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x1, x2, x3, x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa(x1)
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x1, x2, x3, x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x1, x2, x3, x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x1, x2, x3, x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x1, x2, x3, x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x1, x2, x3, x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x1, x2, x3, x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x1, x2, x3, x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x2, x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x2, x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1, x2)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1, x2)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x2, x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x2, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x2, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x2, x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x2, x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1, x2)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1, x2)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x2, x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x2, x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x2, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x1, x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x1, x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x1, x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x1, x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x1, x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x1, x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x1, x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x1, x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x1, x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x2, x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x2, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x1, x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x1, x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x1, x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x1, x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x1, x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x1, x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x1, x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x1, x2, x3, x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x1, x2, x3, x7)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(166) Obligation:

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

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa(x1)
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x1, x2, x3, x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x2, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x1, x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x2, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x1, x2, x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x2, x3, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x1, x2, x3, x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x2, x3, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x1, x2, x3, x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x2, x3, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x1, x2, x3, x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x1, x2, x3, x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa(x1)
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x1, x2, x3, x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x1, x2, x3, x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x1, x2, x3, x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x1, x2, x3, x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x1, x2, x3, x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x1, x2, x3, x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x1, x2, x3, x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x2, x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x2, x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1, x2)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1, x2)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x2, x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x2, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x2, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x2, x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x2, x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1, x2)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1, x2)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x2, x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x2, x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x2, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x1, x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x1, x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x1, x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x1, x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x1, x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x1, x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x1, x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x1, x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x1, x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x2, x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x2, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x1, x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x1, x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x1, x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x1, x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x1, x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x1, x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x1, x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x1, x2, x3, x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x1, x2, x3, x7)

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

MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_GAA(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T49, .(T50, T48)) → SPLIT17_IN_GGAAA(T44, T45, X80, X79, T48)
SPLIT17_IN_GGAAA(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_GGAAA(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
SPLIT17_IN_GGAAA(T72, T73, .(T72, X124), X125, .(T74, T76)) → SPLIT21_IN_GAAA(T73, X125, X124, T76)
SPLIT21_IN_GAAA(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_GAAA(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
SPLIT21_IN_GAAA(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → SPLIT21_IN_GAAA(T93, X163, X162, T96)
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_GAA(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_GAA(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_GAA(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
U30_GAA(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → MERGESORT1_IN_GAA(.(T43, T56), X38, T57)
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_GAA(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_GAA(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_GAA(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
U32_GAA(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → MERGESORT1_IN_GAA(.(T43, T56), T103, T104)
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_GAA(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_GAA(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_GAA(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U35_GAA(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → MERGESORT1_IN_GAA(.(T43, T56), T103, T116)
U36_GAA(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_GAA(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
U36_GAA(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → MERGESORT33_IN_GAA(T55, T113, T116)
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_GAA(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T149, T150)) → SPLIT17_IN_GGAAA(T144, .(T145, T146), X230, X231, .(T149, T150))
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_GAA(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_GAA(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_GAA(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
U4_GAA(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → MERGESORT33_IN_GAA(T156, X232, T158)
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_GAA(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_GAA(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
U6_GAA(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → MERGESORT33_IN_GAA(T156, T167, T168)
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_GAA(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_GAA(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_GAA(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U9_GAA(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → MERGESORT33_IN_GAA(T156, T167, T176)
U10_GAA(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_GAA(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U10_GAA(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → MERGESORT33_IN_GAA(T157, T174, T176)
U11_GAA(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_GAA(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
U11_GAA(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → MERGE34_IN_AAAAA(T167, T174, X234, T175, T176)
MERGE34_IN_AAAAA(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_AAAAA(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
MERGE34_IN_AAAAA(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → P67_IN_AAAAAA(T249, T251, T250, T252, T256, T257)
P67_IN_AAAAAA(T249, T251, T250, T252, T256, T257) → U16_AAAAAA(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
P67_IN_AAAAAA(T249, T251, T250, T252, T256, T257) → LE69_IN_AA(T249, T251)
LE69_IN_AA(s(T270), s(T271)) → U15_AA(T270, T271, le69_in_aa(T270, T271))
LE69_IN_AA(s(T270), s(T271)) → LE69_IN_AA(T270, T271)
P67_IN_AAAAAA(T249, T292, [], T293, .(T292, T293), T294) → U17_AAAAAA(T249, T292, T293, T294, le69_in_aa(T249, T292))
P67_IN_AAAAAA(T249, T292, [], T293, .(T292, T293), T294) → LE69_IN_AA(T249, T292)
P67_IN_AAAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_AAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
P67_IN_AAAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → LE69_IN_AA(T249, T326)
U18_AAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_AAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U18_AAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → P67_IN_AGAAAA(T324, T326, T325, T327, T331, T332)
P67_IN_AGAAAA(T249, T251, T250, T252, T256, T257) → U16_AGAAAA(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
P67_IN_AGAAAA(T249, T251, T250, T252, T256, T257) → LE69_IN_AG(T249, T251)
LE69_IN_AG(s(T270), s(T271)) → U15_AG(T270, T271, le69_in_ag(T270, T271))
LE69_IN_AG(s(T270), s(T271)) → LE69_IN_AG(T270, T271)
P67_IN_AGAAAA(T249, T292, [], T293, .(T292, T293), T294) → U17_AGAAAA(T249, T292, T293, T294, le69_in_ag(T249, T292))
P67_IN_AGAAAA(T249, T292, [], T293, .(T292, T293), T294) → LE69_IN_AG(T249, T292)
P67_IN_AGAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_AGAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
P67_IN_AGAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → LE69_IN_AG(T249, T326)
U18_AGAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_AGAAAA(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U18_AGAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → P67_IN_AGAAAA(T324, T326, T325, T327, T331, T332)
P67_IN_AGAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_AGAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
P67_IN_AGAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → LE69_IN_AG(T249, T351)
U20_AGAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_AGAAAA(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U20_AGAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357)
P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357) → U23_AGAAAA(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357) → GT97_IN_AG(T349, T351)
GT97_IN_AG(s(T370), s(T371)) → U22_AG(T370, T371, gt97_in_ag(T370, T371))
GT97_IN_AG(s(T370), s(T371)) → GT97_IN_AG(T370, T371)
P95_IN_AGAAAA(T392, T351, T393, [], .(T392, T393), T394) → U24_AGAAAA(T392, T351, T393, T394, gt97_in_ag(T392, T351))
P95_IN_AGAAAA(T392, T351, T393, [], .(T392, T393), T394) → GT97_IN_AG(T392, T351)
P95_IN_AGAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_AGAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
P95_IN_AGAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → GT97_IN_AG(T423, T351)
U25_AGAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_AGAAAA(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U25_AGAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → P67_IN_GAAAAA(T423, T425, T424, T426, T430, T431)
P67_IN_GAAAAA(T249, T251, T250, T252, T256, T257) → U16_GAAAAA(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
P67_IN_GAAAAA(T249, T251, T250, T252, T256, T257) → LE69_IN_GA(T249, T251)
LE69_IN_GA(s(T270), s(T271)) → U15_GA(T270, T271, le69_in_ga(T270, T271))
LE69_IN_GA(s(T270), s(T271)) → LE69_IN_GA(T270, T271)
P67_IN_GAAAAA(T249, T292, [], T293, .(T292, T293), T294) → U17_GAAAAA(T249, T292, T293, T294, le69_in_ga(T249, T292))
P67_IN_GAAAAA(T249, T292, [], T293, .(T292, T293), T294) → LE69_IN_GA(T249, T292)
P67_IN_GAAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_GAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
P67_IN_GAAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → LE69_IN_GA(T249, T326)
U18_GAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_GAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U18_GAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → P67_IN_AGAAAA(T324, T326, T325, T327, T331, T332)
P67_IN_GAAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_GAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
P67_IN_GAAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → LE69_IN_GA(T249, T351)
U20_GAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_GAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U20_GAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357)
P95_IN_AGAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_AGAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
P95_IN_AGAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → GT97_IN_AG(T448, T351)
U27_AGAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_AGAAAA(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U27_AGAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → P95_IN_GAAAAA(T448, T450, T449, T451, T455, T456)
P95_IN_GAAAAA(T349, T351, T350, T352, T356, T357) → U23_GAAAAA(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
P95_IN_GAAAAA(T349, T351, T350, T352, T356, T357) → GT97_IN_GA(T349, T351)
GT97_IN_GA(s(T370), s(T371)) → U22_GA(T370, T371, gt97_in_ga(T370, T371))
GT97_IN_GA(s(T370), s(T371)) → GT97_IN_GA(T370, T371)
P95_IN_GAAAAA(T392, T351, T393, [], .(T392, T393), T394) → U24_GAAAAA(T392, T351, T393, T394, gt97_in_ga(T392, T351))
P95_IN_GAAAAA(T392, T351, T393, [], .(T392, T393), T394) → GT97_IN_GA(T392, T351)
P95_IN_GAAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_GAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
P95_IN_GAAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → GT97_IN_GA(T423, T351)
U25_GAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_GAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U25_GAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → P67_IN_GAAAAA(T423, T425, T424, T426, T430, T431)
P95_IN_GAAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_GAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
P95_IN_GAAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → GT97_IN_GA(T448, T351)
U27_GAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_GAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U27_GAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448, T450, T449, T451, T455, T456)
P67_IN_AAAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_AAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
P67_IN_AAAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → LE69_IN_AA(T249, T351)
U20_AAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_AAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U20_AAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357)
MERGE34_IN_AAAAA(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_AAAAA(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
MERGE34_IN_AAAAA(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → P95_IN_AAAAAA(T473, T475, T474, T476, T480, T481)
P95_IN_AAAAAA(T349, T351, T350, T352, T356, T357) → U23_AAAAAA(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
P95_IN_AAAAAA(T349, T351, T350, T352, T356, T357) → GT97_IN_AA(T349, T351)
GT97_IN_AA(s(T370), s(T371)) → U22_AA(T370, T371, gt97_in_aa(T370, T371))
GT97_IN_AA(s(T370), s(T371)) → GT97_IN_AA(T370, T371)
P95_IN_AAAAAA(T392, T351, T393, [], .(T392, T393), T394) → U24_AAAAAA(T392, T351, T393, T394, gt97_in_aa(T392, T351))
P95_IN_AAAAAA(T392, T351, T393, [], .(T392, T393), T394) → GT97_IN_AA(T392, T351)
P95_IN_AAAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_AAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
P95_IN_AAAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → GT97_IN_AA(T423, T351)
U25_AAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_AAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U25_AAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → P67_IN_GAAAAA(T423, T425, T424, T426, T430, T431)
P95_IN_AAAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_AAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
P95_IN_AAAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → GT97_IN_AA(T448, T351)
U27_AAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_AAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U27_AAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → P95_IN_GAAAAA(T448, T450, T449, T451, T455, T456)
U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_GAA(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → MERGESORT33_IN_GAA(T157, X233, T168)
U37_GAA(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_GAA(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U37_GAA(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → MERGE34_IN_AAAAA(T103, T113, T114, T115, T116)
U33_GAA(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_GAA(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U33_GAA(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → MERGESORT33_IN_GAA(T55, X39, T104)

The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa(x1)
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x1, x2, x3, x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x2, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x1, x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x2, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x1, x2, x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x2, x3, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x1, x2, x3, x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x2, x3, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x1, x2, x3, x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x2, x3, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x1, x2, x3, x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x1, x2, x3, x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa(x1)
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x1, x2, x3, x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x1, x2, x3, x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x1, x2, x3, x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x1, x2, x3, x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x1, x2, x3, x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x1, x2, x3, x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x1, x2, x3, x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x2, x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x2, x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1, x2)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1, x2)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x2, x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x2, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x2, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x2, x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x2, x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1, x2)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1, x2)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x2, x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x2, x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x2, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x1, x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x1, x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x1, x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x1, x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x1, x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x1, x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x1, x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x1, x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x1, x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x2, x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x2, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x1, x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x1, x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x1, x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x1, x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x1, x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x1, x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x1, x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x1, x2, x3, x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x1, x2, x3, x7)
MERGESORT1_IN_GAA(x1, x2, x3)  =  MERGESORT1_IN_GAA(x1)
U29_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U29_GAA(x1, x2, x3, x7)
SPLIT17_IN_GGAAA(x1, x2, x3, x4, x5)  =  SPLIT17_IN_GGAAA(x1, x2)
U2_GGAAA(x1, x2, x3, x4, x5, x6, x7)  =  U2_GGAAA(x1, x2, x7)
SPLIT21_IN_GAAA(x1, x2, x3, x4)  =  SPLIT21_IN_GAAA(x1)
U1_GAAA(x1, x2, x3, x4, x5, x6, x7)  =  U1_GAAA(x1, x2, x7)
U30_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U30_GAA(x1, x2, x3, x7)
U31_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U31_GAA(x1, x2, x3, x7)
U32_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U32_GAA(x1, x2, x3, x7)
U33_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_GAA(x1, x2, x3, x7, x8)
U35_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U35_GAA(x1, x2, x3, x7)
U36_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_GAA(x1, x2, x3, x7, x8)
U37_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_GAA(x1, x2, x3, x8)
MERGESORT33_IN_GAA(x1, x2, x3)  =  MERGESORT33_IN_GAA(x1)
U3_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U3_GAA(x1, x2, x3, x7)
U4_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U4_GAA(x1, x2, x3, x7)
U5_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U5_GAA(x1, x2, x3, x7)
U6_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U6_GAA(x1, x2, x3, x7)
U7_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_GAA(x1, x2, x3, x7, x8)
U9_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U9_GAA(x1, x2, x3, x7)
U10_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_GAA(x1, x2, x3, x7, x8)
U11_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_GAA(x1, x2, x3, x8)
U12_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U12_GAA(x1, x2, x3, x7)
MERGE34_IN_AAAAA(x1, x2, x3, x4, x5)  =  MERGE34_IN_AAAAA
U13_AAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_AAAAA(x8)
P67_IN_AAAAAA(x1, x2, x3, x4, x5, x6)  =  P67_IN_AAAAAA
U16_AAAAAA(x1, x2, x3, x4, x5, x6, x7)  =  U16_AAAAAA(x7)
LE69_IN_AA(x1, x2)  =  LE69_IN_AA
U15_AA(x1, x2, x3)  =  U15_AA(x3)
U17_AAAAAA(x1, x2, x3, x4, x5)  =  U17_AAAAAA(x5)
U18_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_AAAAAA(x9)
U19_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_AAAAAA(x1, x2, x9)
P67_IN_AGAAAA(x1, x2, x3, x4, x5, x6)  =  P67_IN_AGAAAA(x2)
U16_AGAAAA(x1, x2, x3, x4, x5, x6, x7)  =  U16_AGAAAA(x2, x7)
LE69_IN_AG(x1, x2)  =  LE69_IN_AG(x2)
U15_AG(x1, x2, x3)  =  U15_AG(x2, x3)
U17_AGAAAA(x1, x2, x3, x4, x5)  =  U17_AGAAAA(x2, x5)
U18_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_AGAAAA(x2, x9)
U19_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_AGAAAA(x1, x2, x9)
U20_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_AGAAAA(x2, x9)
U21_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_AGAAAA(x1, x2, x9)
P95_IN_AGAAAA(x1, x2, x3, x4, x5, x6)  =  P95_IN_AGAAAA(x2)
U23_AGAAAA(x1, x2, x3, x4, x5, x6, x7)  =  U23_AGAAAA(x2, x7)
GT97_IN_AG(x1, x2)  =  GT97_IN_AG(x2)
U22_AG(x1, x2, x3)  =  U22_AG(x2, x3)
U24_AGAAAA(x1, x2, x3, x4, x5)  =  U24_AGAAAA(x2, x5)
U25_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_AGAAAA(x2, x9)
U26_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_AGAAAA(x1, x2, x9)
P67_IN_GAAAAA(x1, x2, x3, x4, x5, x6)  =  P67_IN_GAAAAA(x1)
U16_GAAAAA(x1, x2, x3, x4, x5, x6, x7)  =  U16_GAAAAA(x1, x7)
LE69_IN_GA(x1, x2)  =  LE69_IN_GA(x1)
U15_GA(x1, x2, x3)  =  U15_GA(x1, x3)
U17_GAAAAA(x1, x2, x3, x4, x5)  =  U17_GAAAAA(x1, x5)
U18_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_GAAAAA(x1, x9)
U19_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_GAAAAA(x1, x2, x9)
U20_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_GAAAAA(x1, x9)
U21_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_GAAAAA(x1, x2, x9)
U27_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_AGAAAA(x2, x9)
U28_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_AGAAAA(x1, x2, x9)
P95_IN_GAAAAA(x1, x2, x3, x4, x5, x6)  =  P95_IN_GAAAAA(x1)
U23_GAAAAA(x1, x2, x3, x4, x5, x6, x7)  =  U23_GAAAAA(x1, x7)
GT97_IN_GA(x1, x2)  =  GT97_IN_GA(x1)
U22_GA(x1, x2, x3)  =  U22_GA(x1, x3)
U24_GAAAAA(x1, x2, x3, x4, x5)  =  U24_GAAAAA(x1, x5)
U25_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_GAAAAA(x1, x9)
U26_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_GAAAAA(x1, x2, x9)
U27_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_GAAAAA(x1, x9)
U28_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_GAAAAA(x1, x2, x9)
U20_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_AAAAAA(x9)
U21_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_AAAAAA(x1, x2, x9)
U14_AAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_AAAAA(x8)
P95_IN_AAAAAA(x1, x2, x3, x4, x5, x6)  =  P95_IN_AAAAAA
U23_AAAAAA(x1, x2, x3, x4, x5, x6, x7)  =  U23_AAAAAA(x7)
GT97_IN_AA(x1, x2)  =  GT97_IN_AA
U22_AA(x1, x2, x3)  =  U22_AA(x3)
U24_AAAAAA(x1, x2, x3, x4, x5)  =  U24_AAAAAA(x5)
U25_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_AAAAAA(x9)
U26_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_AAAAAA(x1, x2, x9)
U27_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_AAAAAA(x9)
U28_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_AAAAAA(x1, x2, x9)
U8_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U8_GAA(x1, x2, x3, x7)
U38_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U38_GAA(x1, x2, x3, x7)
U34_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U34_GAA(x1, x2, x3, x7)

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

(168) Obligation:

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

MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_GAA(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T49, .(T50, T48)) → SPLIT17_IN_GGAAA(T44, T45, X80, X79, T48)
SPLIT17_IN_GGAAA(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_GGAAA(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
SPLIT17_IN_GGAAA(T72, T73, .(T72, X124), X125, .(T74, T76)) → SPLIT21_IN_GAAA(T73, X125, X124, T76)
SPLIT21_IN_GAAA(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_GAAA(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
SPLIT21_IN_GAAA(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → SPLIT21_IN_GAAA(T93, X163, X162, T96)
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_GAA(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_GAA(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_GAA(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
U30_GAA(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → MERGESORT1_IN_GAA(.(T43, T56), X38, T57)
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_GAA(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_GAA(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_GAA(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
U32_GAA(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → MERGESORT1_IN_GAA(.(T43, T56), T103, T104)
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_GAA(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_GAA(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_GAA(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U35_GAA(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → MERGESORT1_IN_GAA(.(T43, T56), T103, T116)
U36_GAA(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_GAA(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
U36_GAA(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → MERGESORT33_IN_GAA(T55, T113, T116)
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_GAA(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T149, T150)) → SPLIT17_IN_GGAAA(T144, .(T145, T146), X230, X231, .(T149, T150))
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_GAA(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_GAA(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_GAA(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
U4_GAA(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → MERGESORT33_IN_GAA(T156, X232, T158)
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_GAA(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_GAA(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
U6_GAA(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → MERGESORT33_IN_GAA(T156, T167, T168)
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_GAA(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_GAA(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_GAA(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U9_GAA(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → MERGESORT33_IN_GAA(T156, T167, T176)
U10_GAA(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_GAA(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U10_GAA(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → MERGESORT33_IN_GAA(T157, T174, T176)
U11_GAA(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_GAA(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
U11_GAA(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → MERGE34_IN_AAAAA(T167, T174, X234, T175, T176)
MERGE34_IN_AAAAA(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_AAAAA(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
MERGE34_IN_AAAAA(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → P67_IN_AAAAAA(T249, T251, T250, T252, T256, T257)
P67_IN_AAAAAA(T249, T251, T250, T252, T256, T257) → U16_AAAAAA(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
P67_IN_AAAAAA(T249, T251, T250, T252, T256, T257) → LE69_IN_AA(T249, T251)
LE69_IN_AA(s(T270), s(T271)) → U15_AA(T270, T271, le69_in_aa(T270, T271))
LE69_IN_AA(s(T270), s(T271)) → LE69_IN_AA(T270, T271)
P67_IN_AAAAAA(T249, T292, [], T293, .(T292, T293), T294) → U17_AAAAAA(T249, T292, T293, T294, le69_in_aa(T249, T292))
P67_IN_AAAAAA(T249, T292, [], T293, .(T292, T293), T294) → LE69_IN_AA(T249, T292)
P67_IN_AAAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_AAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
P67_IN_AAAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → LE69_IN_AA(T249, T326)
U18_AAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_AAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U18_AAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → P67_IN_AGAAAA(T324, T326, T325, T327, T331, T332)
P67_IN_AGAAAA(T249, T251, T250, T252, T256, T257) → U16_AGAAAA(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
P67_IN_AGAAAA(T249, T251, T250, T252, T256, T257) → LE69_IN_AG(T249, T251)
LE69_IN_AG(s(T270), s(T271)) → U15_AG(T270, T271, le69_in_ag(T270, T271))
LE69_IN_AG(s(T270), s(T271)) → LE69_IN_AG(T270, T271)
P67_IN_AGAAAA(T249, T292, [], T293, .(T292, T293), T294) → U17_AGAAAA(T249, T292, T293, T294, le69_in_ag(T249, T292))
P67_IN_AGAAAA(T249, T292, [], T293, .(T292, T293), T294) → LE69_IN_AG(T249, T292)
P67_IN_AGAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_AGAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
P67_IN_AGAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → LE69_IN_AG(T249, T326)
U18_AGAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_AGAAAA(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U18_AGAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → P67_IN_AGAAAA(T324, T326, T325, T327, T331, T332)
P67_IN_AGAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_AGAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
P67_IN_AGAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → LE69_IN_AG(T249, T351)
U20_AGAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_AGAAAA(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U20_AGAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357)
P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357) → U23_AGAAAA(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357) → GT97_IN_AG(T349, T351)
GT97_IN_AG(s(T370), s(T371)) → U22_AG(T370, T371, gt97_in_ag(T370, T371))
GT97_IN_AG(s(T370), s(T371)) → GT97_IN_AG(T370, T371)
P95_IN_AGAAAA(T392, T351, T393, [], .(T392, T393), T394) → U24_AGAAAA(T392, T351, T393, T394, gt97_in_ag(T392, T351))
P95_IN_AGAAAA(T392, T351, T393, [], .(T392, T393), T394) → GT97_IN_AG(T392, T351)
P95_IN_AGAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_AGAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
P95_IN_AGAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → GT97_IN_AG(T423, T351)
U25_AGAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_AGAAAA(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U25_AGAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → P67_IN_GAAAAA(T423, T425, T424, T426, T430, T431)
P67_IN_GAAAAA(T249, T251, T250, T252, T256, T257) → U16_GAAAAA(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
P67_IN_GAAAAA(T249, T251, T250, T252, T256, T257) → LE69_IN_GA(T249, T251)
LE69_IN_GA(s(T270), s(T271)) → U15_GA(T270, T271, le69_in_ga(T270, T271))
LE69_IN_GA(s(T270), s(T271)) → LE69_IN_GA(T270, T271)
P67_IN_GAAAAA(T249, T292, [], T293, .(T292, T293), T294) → U17_GAAAAA(T249, T292, T293, T294, le69_in_ga(T249, T292))
P67_IN_GAAAAA(T249, T292, [], T293, .(T292, T293), T294) → LE69_IN_GA(T249, T292)
P67_IN_GAAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_GAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
P67_IN_GAAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → LE69_IN_GA(T249, T326)
U18_GAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_GAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U18_GAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → P67_IN_AGAAAA(T324, T326, T325, T327, T331, T332)
P67_IN_GAAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_GAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
P67_IN_GAAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → LE69_IN_GA(T249, T351)
U20_GAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_GAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U20_GAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357)
P95_IN_AGAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_AGAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
P95_IN_AGAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → GT97_IN_AG(T448, T351)
U27_AGAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_AGAAAA(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U27_AGAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → P95_IN_GAAAAA(T448, T450, T449, T451, T455, T456)
P95_IN_GAAAAA(T349, T351, T350, T352, T356, T357) → U23_GAAAAA(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
P95_IN_GAAAAA(T349, T351, T350, T352, T356, T357) → GT97_IN_GA(T349, T351)
GT97_IN_GA(s(T370), s(T371)) → U22_GA(T370, T371, gt97_in_ga(T370, T371))
GT97_IN_GA(s(T370), s(T371)) → GT97_IN_GA(T370, T371)
P95_IN_GAAAAA(T392, T351, T393, [], .(T392, T393), T394) → U24_GAAAAA(T392, T351, T393, T394, gt97_in_ga(T392, T351))
P95_IN_GAAAAA(T392, T351, T393, [], .(T392, T393), T394) → GT97_IN_GA(T392, T351)
P95_IN_GAAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_GAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
P95_IN_GAAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → GT97_IN_GA(T423, T351)
U25_GAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_GAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U25_GAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → P67_IN_GAAAAA(T423, T425, T424, T426, T430, T431)
P95_IN_GAAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_GAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
P95_IN_GAAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → GT97_IN_GA(T448, T351)
U27_GAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_GAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U27_GAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448, T450, T449, T451, T455, T456)
P67_IN_AAAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_AAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
P67_IN_AAAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → LE69_IN_AA(T249, T351)
U20_AAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_AAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U20_AAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357)
MERGE34_IN_AAAAA(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_AAAAA(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
MERGE34_IN_AAAAA(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → P95_IN_AAAAAA(T473, T475, T474, T476, T480, T481)
P95_IN_AAAAAA(T349, T351, T350, T352, T356, T357) → U23_AAAAAA(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
P95_IN_AAAAAA(T349, T351, T350, T352, T356, T357) → GT97_IN_AA(T349, T351)
GT97_IN_AA(s(T370), s(T371)) → U22_AA(T370, T371, gt97_in_aa(T370, T371))
GT97_IN_AA(s(T370), s(T371)) → GT97_IN_AA(T370, T371)
P95_IN_AAAAAA(T392, T351, T393, [], .(T392, T393), T394) → U24_AAAAAA(T392, T351, T393, T394, gt97_in_aa(T392, T351))
P95_IN_AAAAAA(T392, T351, T393, [], .(T392, T393), T394) → GT97_IN_AA(T392, T351)
P95_IN_AAAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_AAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
P95_IN_AAAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → GT97_IN_AA(T423, T351)
U25_AAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_AAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U25_AAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → P67_IN_GAAAAA(T423, T425, T424, T426, T430, T431)
P95_IN_AAAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_AAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
P95_IN_AAAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → GT97_IN_AA(T448, T351)
U27_AAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_AAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U27_AAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → P95_IN_GAAAAA(T448, T450, T449, T451, T455, T456)
U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_GAA(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → MERGESORT33_IN_GAA(T157, X233, T168)
U37_GAA(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_GAA(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U37_GAA(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → MERGE34_IN_AAAAA(T103, T113, T114, T115, T116)
U33_GAA(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_GAA(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U33_GAA(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → MERGESORT33_IN_GAA(T55, X39, T104)

The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa(x1)
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x1, x2, x3, x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x2, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x1, x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x2, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x1, x2, x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x2, x3, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x1, x2, x3, x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x2, x3, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x1, x2, x3, x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x2, x3, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x1, x2, x3, x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x1, x2, x3, x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa(x1)
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x1, x2, x3, x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x1, x2, x3, x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x1, x2, x3, x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x1, x2, x3, x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x1, x2, x3, x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x1, x2, x3, x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x1, x2, x3, x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x2, x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x2, x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1, x2)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1, x2)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x2, x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x2, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x2, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x2, x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x2, x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1, x2)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1, x2)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x2, x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x2, x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x2, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x1, x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x1, x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x1, x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x1, x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x1, x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x1, x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x1, x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x1, x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x1, x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x2, x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x2, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x1, x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x1, x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x1, x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x1, x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x1, x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x1, x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x1, x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x1, x2, x3, x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x1, x2, x3, x7)
MERGESORT1_IN_GAA(x1, x2, x3)  =  MERGESORT1_IN_GAA(x1)
U29_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U29_GAA(x1, x2, x3, x7)
SPLIT17_IN_GGAAA(x1, x2, x3, x4, x5)  =  SPLIT17_IN_GGAAA(x1, x2)
U2_GGAAA(x1, x2, x3, x4, x5, x6, x7)  =  U2_GGAAA(x1, x2, x7)
SPLIT21_IN_GAAA(x1, x2, x3, x4)  =  SPLIT21_IN_GAAA(x1)
U1_GAAA(x1, x2, x3, x4, x5, x6, x7)  =  U1_GAAA(x1, x2, x7)
U30_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U30_GAA(x1, x2, x3, x7)
U31_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U31_GAA(x1, x2, x3, x7)
U32_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U32_GAA(x1, x2, x3, x7)
U33_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_GAA(x1, x2, x3, x7, x8)
U35_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U35_GAA(x1, x2, x3, x7)
U36_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_GAA(x1, x2, x3, x7, x8)
U37_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_GAA(x1, x2, x3, x8)
MERGESORT33_IN_GAA(x1, x2, x3)  =  MERGESORT33_IN_GAA(x1)
U3_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U3_GAA(x1, x2, x3, x7)
U4_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U4_GAA(x1, x2, x3, x7)
U5_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U5_GAA(x1, x2, x3, x7)
U6_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U6_GAA(x1, x2, x3, x7)
U7_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_GAA(x1, x2, x3, x7, x8)
U9_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U9_GAA(x1, x2, x3, x7)
U10_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_GAA(x1, x2, x3, x7, x8)
U11_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_GAA(x1, x2, x3, x8)
U12_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U12_GAA(x1, x2, x3, x7)
MERGE34_IN_AAAAA(x1, x2, x3, x4, x5)  =  MERGE34_IN_AAAAA
U13_AAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_AAAAA(x8)
P67_IN_AAAAAA(x1, x2, x3, x4, x5, x6)  =  P67_IN_AAAAAA
U16_AAAAAA(x1, x2, x3, x4, x5, x6, x7)  =  U16_AAAAAA(x7)
LE69_IN_AA(x1, x2)  =  LE69_IN_AA
U15_AA(x1, x2, x3)  =  U15_AA(x3)
U17_AAAAAA(x1, x2, x3, x4, x5)  =  U17_AAAAAA(x5)
U18_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_AAAAAA(x9)
U19_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_AAAAAA(x1, x2, x9)
P67_IN_AGAAAA(x1, x2, x3, x4, x5, x6)  =  P67_IN_AGAAAA(x2)
U16_AGAAAA(x1, x2, x3, x4, x5, x6, x7)  =  U16_AGAAAA(x2, x7)
LE69_IN_AG(x1, x2)  =  LE69_IN_AG(x2)
U15_AG(x1, x2, x3)  =  U15_AG(x2, x3)
U17_AGAAAA(x1, x2, x3, x4, x5)  =  U17_AGAAAA(x2, x5)
U18_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_AGAAAA(x2, x9)
U19_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_AGAAAA(x1, x2, x9)
U20_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_AGAAAA(x2, x9)
U21_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_AGAAAA(x1, x2, x9)
P95_IN_AGAAAA(x1, x2, x3, x4, x5, x6)  =  P95_IN_AGAAAA(x2)
U23_AGAAAA(x1, x2, x3, x4, x5, x6, x7)  =  U23_AGAAAA(x2, x7)
GT97_IN_AG(x1, x2)  =  GT97_IN_AG(x2)
U22_AG(x1, x2, x3)  =  U22_AG(x2, x3)
U24_AGAAAA(x1, x2, x3, x4, x5)  =  U24_AGAAAA(x2, x5)
U25_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_AGAAAA(x2, x9)
U26_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_AGAAAA(x1, x2, x9)
P67_IN_GAAAAA(x1, x2, x3, x4, x5, x6)  =  P67_IN_GAAAAA(x1)
U16_GAAAAA(x1, x2, x3, x4, x5, x6, x7)  =  U16_GAAAAA(x1, x7)
LE69_IN_GA(x1, x2)  =  LE69_IN_GA(x1)
U15_GA(x1, x2, x3)  =  U15_GA(x1, x3)
U17_GAAAAA(x1, x2, x3, x4, x5)  =  U17_GAAAAA(x1, x5)
U18_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_GAAAAA(x1, x9)
U19_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_GAAAAA(x1, x2, x9)
U20_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_GAAAAA(x1, x9)
U21_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_GAAAAA(x1, x2, x9)
U27_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_AGAAAA(x2, x9)
U28_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_AGAAAA(x1, x2, x9)
P95_IN_GAAAAA(x1, x2, x3, x4, x5, x6)  =  P95_IN_GAAAAA(x1)
U23_GAAAAA(x1, x2, x3, x4, x5, x6, x7)  =  U23_GAAAAA(x1, x7)
GT97_IN_GA(x1, x2)  =  GT97_IN_GA(x1)
U22_GA(x1, x2, x3)  =  U22_GA(x1, x3)
U24_GAAAAA(x1, x2, x3, x4, x5)  =  U24_GAAAAA(x1, x5)
U25_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_GAAAAA(x1, x9)
U26_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_GAAAAA(x1, x2, x9)
U27_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_GAAAAA(x1, x9)
U28_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_GAAAAA(x1, x2, x9)
U20_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_AAAAAA(x9)
U21_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_AAAAAA(x1, x2, x9)
U14_AAAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_AAAAA(x8)
P95_IN_AAAAAA(x1, x2, x3, x4, x5, x6)  =  P95_IN_AAAAAA
U23_AAAAAA(x1, x2, x3, x4, x5, x6, x7)  =  U23_AAAAAA(x7)
GT97_IN_AA(x1, x2)  =  GT97_IN_AA
U22_AA(x1, x2, x3)  =  U22_AA(x3)
U24_AAAAAA(x1, x2, x3, x4, x5)  =  U24_AAAAAA(x5)
U25_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_AAAAAA(x9)
U26_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_AAAAAA(x1, x2, x9)
U27_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_AAAAAA(x9)
U28_AAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_AAAAAA(x1, x2, x9)
U8_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U8_GAA(x1, x2, x3, x7)
U38_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U38_GAA(x1, x2, x3, x7)
U34_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U34_GAA(x1, x2, x3, x7)

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

(169) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 10 SCCs with 87 less nodes.

(170) Complex Obligation (AND)

(171) Obligation:

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

GT97_IN_AA(s(T370), s(T371)) → GT97_IN_AA(T370, T371)

The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa(x1)
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x1, x2, x3, x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x2, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x1, x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x2, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x1, x2, x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x2, x3, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x1, x2, x3, x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x2, x3, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x1, x2, x3, x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x2, x3, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x1, x2, x3, x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x1, x2, x3, x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa(x1)
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x1, x2, x3, x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x1, x2, x3, x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x1, x2, x3, x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x1, x2, x3, x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x1, x2, x3, x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x1, x2, x3, x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x1, x2, x3, x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x2, x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x2, x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1, x2)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1, x2)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x2, x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x2, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x2, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x2, x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x2, x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1, x2)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1, x2)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x2, x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x2, x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x2, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x1, x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x1, x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x1, x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x1, x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x1, x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x1, x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x1, x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x1, x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x1, x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x2, x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x2, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x1, x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x1, x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x1, x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x1, x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x1, x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x1, x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x1, x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x1, x2, x3, x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x1, x2, x3, x7)
GT97_IN_AA(x1, x2)  =  GT97_IN_AA

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

(172) UsableRulesProof (EQUIVALENT transformation)

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

(173) Obligation:

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

GT97_IN_AA(s(T370), s(T371)) → GT97_IN_AA(T370, T371)

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

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

(174) PiDPToQDPProof (SOUND transformation)

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

(175) Obligation:

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

GT97_IN_AAGT97_IN_AA

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

(176) 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 = GT97_IN_AA evaluates to t =GT97_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 GT97_IN_AA to GT97_IN_AA.



(177) NO

(178) Obligation:

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

GT97_IN_GA(s(T370), s(T371)) → GT97_IN_GA(T370, T371)

The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa(x1)
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x1, x2, x3, x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x2, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x1, x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x2, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x1, x2, x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x2, x3, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x1, x2, x3, x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x2, x3, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x1, x2, x3, x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x2, x3, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x1, x2, x3, x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x1, x2, x3, x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa(x1)
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x1, x2, x3, x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x1, x2, x3, x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x1, x2, x3, x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x1, x2, x3, x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x1, x2, x3, x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x1, x2, x3, x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x1, x2, x3, x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x2, x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x2, x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1, x2)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1, x2)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x2, x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x2, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x2, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x2, x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x2, x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1, x2)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1, x2)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x2, x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x2, x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x2, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x1, x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x1, x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x1, x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x1, x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x1, x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x1, x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x1, x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x1, x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x1, x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x2, x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x2, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x1, x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x1, x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x1, x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x1, x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x1, x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x1, x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x1, x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x1, x2, x3, x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x1, x2, x3, x7)
GT97_IN_GA(x1, x2)  =  GT97_IN_GA(x1)

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

(179) UsableRulesProof (EQUIVALENT transformation)

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

(180) Obligation:

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

GT97_IN_GA(s(T370), s(T371)) → GT97_IN_GA(T370, T371)

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

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

(181) PiDPToQDPProof (SOUND transformation)

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

(182) Obligation:

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

GT97_IN_GA(s(T370)) → GT97_IN_GA(T370)

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

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

  • GT97_IN_GA(s(T370)) → GT97_IN_GA(T370)
    The graph contains the following edges 1 > 1

(184) YES

(185) Obligation:

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

LE69_IN_GA(s(T270), s(T271)) → LE69_IN_GA(T270, T271)

The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa(x1)
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x1, x2, x3, x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x2, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x1, x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x2, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x1, x2, x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x2, x3, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x1, x2, x3, x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x2, x3, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x1, x2, x3, x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x2, x3, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x1, x2, x3, x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x1, x2, x3, x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa(x1)
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x1, x2, x3, x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x1, x2, x3, x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x1, x2, x3, x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x1, x2, x3, x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x1, x2, x3, x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x1, x2, x3, x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x1, x2, x3, x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x2, x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x2, x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1, x2)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1, x2)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x2, x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x2, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x2, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x2, x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x2, x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1, x2)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1, x2)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x2, x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x2, x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x2, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x1, x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x1, x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x1, x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x1, x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x1, x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x1, x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x1, x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x1, x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x1, x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x2, x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x2, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x1, x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x1, x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x1, x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x1, x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x1, x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x1, x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x1, x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x1, x2, x3, x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x1, x2, x3, x7)
LE69_IN_GA(x1, x2)  =  LE69_IN_GA(x1)

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

(186) UsableRulesProof (EQUIVALENT transformation)

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

(187) Obligation:

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

LE69_IN_GA(s(T270), s(T271)) → LE69_IN_GA(T270, T271)

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

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

(188) PiDPToQDPProof (SOUND transformation)

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

(189) Obligation:

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

LE69_IN_GA(s(T270)) → LE69_IN_GA(T270)

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

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

  • LE69_IN_GA(s(T270)) → LE69_IN_GA(T270)
    The graph contains the following edges 1 > 1

(191) YES

(192) Obligation:

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

GT97_IN_AG(s(T370), s(T371)) → GT97_IN_AG(T370, T371)

The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa(x1)
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x1, x2, x3, x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x2, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x1, x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x2, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x1, x2, x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x2, x3, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x1, x2, x3, x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x2, x3, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x1, x2, x3, x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x2, x3, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x1, x2, x3, x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x1, x2, x3, x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa(x1)
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x1, x2, x3, x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x1, x2, x3, x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x1, x2, x3, x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x1, x2, x3, x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x1, x2, x3, x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x1, x2, x3, x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x1, x2, x3, x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x2, x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x2, x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1, x2)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1, x2)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x2, x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x2, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x2, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x2, x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x2, x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1, x2)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1, x2)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x2, x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x2, x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x2, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x1, x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x1, x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x1, x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x1, x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x1, x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x1, x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x1, x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x1, x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x1, x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x2, x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x2, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x1, x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x1, x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x1, x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x1, x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x1, x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x1, x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x1, x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x1, x2, x3, x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x1, x2, x3, x7)
GT97_IN_AG(x1, x2)  =  GT97_IN_AG(x2)

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

(193) UsableRulesProof (EQUIVALENT transformation)

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

(194) Obligation:

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

GT97_IN_AG(s(T370), s(T371)) → GT97_IN_AG(T370, T371)

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

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

(195) PiDPToQDPProof (SOUND transformation)

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

(196) Obligation:

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

GT97_IN_AG(s(T371)) → GT97_IN_AG(T371)

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

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

  • GT97_IN_AG(s(T371)) → GT97_IN_AG(T371)
    The graph contains the following edges 1 > 1

(198) YES

(199) Obligation:

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

LE69_IN_AG(s(T270), s(T271)) → LE69_IN_AG(T270, T271)

The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa(x1)
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x1, x2, x3, x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x2, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x1, x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x2, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x1, x2, x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x2, x3, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x1, x2, x3, x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x2, x3, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x1, x2, x3, x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x2, x3, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x1, x2, x3, x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x1, x2, x3, x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa(x1)
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x1, x2, x3, x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x1, x2, x3, x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x1, x2, x3, x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x1, x2, x3, x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x1, x2, x3, x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x1, x2, x3, x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x1, x2, x3, x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x2, x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x2, x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1, x2)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1, x2)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x2, x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x2, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x2, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x2, x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x2, x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1, x2)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1, x2)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x2, x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x2, x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x2, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x1, x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x1, x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x1, x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x1, x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x1, x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x1, x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x1, x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x1, x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x1, x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x2, x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x2, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x1, x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x1, x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x1, x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x1, x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x1, x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x1, x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x1, x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x1, x2, x3, x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x1, x2, x3, x7)
LE69_IN_AG(x1, x2)  =  LE69_IN_AG(x2)

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

(200) UsableRulesProof (EQUIVALENT transformation)

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

(201) Obligation:

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

LE69_IN_AG(s(T270), s(T271)) → LE69_IN_AG(T270, T271)

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

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

(202) PiDPToQDPProof (SOUND transformation)

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

(203) Obligation:

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

LE69_IN_AG(s(T271)) → LE69_IN_AG(T271)

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

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

  • LE69_IN_AG(s(T271)) → LE69_IN_AG(T271)
    The graph contains the following edges 1 > 1

(205) YES

(206) Obligation:

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

P67_IN_AGAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_AGAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_AGAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → P67_IN_AGAAAA(T324, T326, T325, T327, T331, T332)
P67_IN_AGAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_AGAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_AGAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357)
P95_IN_AGAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_AGAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_AGAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → P67_IN_GAAAAA(T423, T425, T424, T426, T430, T431)
P67_IN_GAAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_GAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_GAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → P67_IN_AGAAAA(T324, T326, T325, T327, T331, T332)
P67_IN_GAAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_GAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_GAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357)
P95_IN_AGAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_AGAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_AGAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → P95_IN_GAAAAA(T448, T450, T449, T451, T455, T456)
P95_IN_GAAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_GAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_GAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → P67_IN_GAAAAA(T423, T425, T424, T426, T430, T431)
P95_IN_GAAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_GAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_GAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448, T450, T449, T451, T455, T456)

The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa(x1)
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x1, x2, x3, x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x2, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x1, x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x2, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x1, x2, x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x2, x3, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x1, x2, x3, x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x2, x3, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x1, x2, x3, x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x2, x3, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x1, x2, x3, x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x1, x2, x3, x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa(x1)
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x1, x2, x3, x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x1, x2, x3, x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x1, x2, x3, x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x1, x2, x3, x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x1, x2, x3, x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x1, x2, x3, x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x1, x2, x3, x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x2, x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x2, x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1, x2)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1, x2)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x2, x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x2, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x2, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x2, x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x2, x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1, x2)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1, x2)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x2, x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x2, x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x2, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x1, x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x1, x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x1, x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x1, x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x1, x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x1, x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x1, x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x1, x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x1, x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x2, x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x2, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x1, x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x1, x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x1, x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x1, x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x1, x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x1, x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x1, x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x1, x2, x3, x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x1, x2, x3, x7)
P67_IN_AGAAAA(x1, x2, x3, x4, x5, x6)  =  P67_IN_AGAAAA(x2)
U18_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_AGAAAA(x2, x9)
U20_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_AGAAAA(x2, x9)
P95_IN_AGAAAA(x1, x2, x3, x4, x5, x6)  =  P95_IN_AGAAAA(x2)
U25_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_AGAAAA(x2, x9)
P67_IN_GAAAAA(x1, x2, x3, x4, x5, x6)  =  P67_IN_GAAAAA(x1)
U18_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_GAAAAA(x1, x9)
U20_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_GAAAAA(x1, x9)
U27_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_AGAAAA(x2, x9)
P95_IN_GAAAAA(x1, x2, x3, x4, x5, x6)  =  P95_IN_GAAAAA(x1)
U25_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_GAAAAA(x1, x9)
U27_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_GAAAAA(x1, x9)

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

(207) UsableRulesProof (EQUIVALENT transformation)

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

(208) Obligation:

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

P67_IN_AGAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_AGAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_AGAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → P67_IN_AGAAAA(T324, T326, T325, T327, T331, T332)
P67_IN_AGAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_AGAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_AGAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357)
P95_IN_AGAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_AGAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_AGAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → P67_IN_GAAAAA(T423, T425, T424, T426, T430, T431)
P67_IN_GAAAAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_GAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_GAAAAA(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → P67_IN_AGAAAA(T324, T326, T325, T327, T331, T332)
P67_IN_GAAAAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_GAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_GAAAAA(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → P95_IN_AGAAAA(T349, T351, T350, T352, T356, T357)
P95_IN_AGAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_AGAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_AGAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → P95_IN_GAAAAA(T448, T450, T449, T451, T455, T456)
P95_IN_GAAAAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_GAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_GAAAAA(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → P67_IN_GAAAAA(T423, T425, T424, T426, T430, T431)
P95_IN_GAAAAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_GAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_GAAAAA(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448, T450, T449, T451, T455, T456)

The TRS R consists of the following rules:

le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x2, x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1, x2)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x2, x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1, x2)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x1, x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x1, x2)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x1, x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x1, x2)
P67_IN_AGAAAA(x1, x2, x3, x4, x5, x6)  =  P67_IN_AGAAAA(x2)
U18_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_AGAAAA(x2, x9)
U20_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_AGAAAA(x2, x9)
P95_IN_AGAAAA(x1, x2, x3, x4, x5, x6)  =  P95_IN_AGAAAA(x2)
U25_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_AGAAAA(x2, x9)
P67_IN_GAAAAA(x1, x2, x3, x4, x5, x6)  =  P67_IN_GAAAAA(x1)
U18_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_GAAAAA(x1, x9)
U20_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_GAAAAA(x1, x9)
U27_AGAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_AGAAAA(x2, x9)
P95_IN_GAAAAA(x1, x2, x3, x4, x5, x6)  =  P95_IN_GAAAAA(x1)
U25_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_GAAAAA(x1, x9)
U27_GAAAAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_GAAAAA(x1, x9)

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

(209) PiDPToQDPProof (SOUND transformation)

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

(210) Obligation:

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

P67_IN_AGAAAA(T326) → U18_AGAAAA(T326, le69_in_ag(T326))
U18_AGAAAA(T326, le69_out_ag(T249, T326)) → P67_IN_AGAAAA(T326)
P67_IN_AGAAAA(T351) → U20_AGAAAA(T351, le69_in_ag(T351))
U20_AGAAAA(T351, le69_out_ag(T249, T351)) → P95_IN_AGAAAA(T351)
P95_IN_AGAAAA(T351) → U25_AGAAAA(T351, gt97_in_ag(T351))
U25_AGAAAA(T351, gt97_out_ag(T423, T351)) → P67_IN_GAAAAA(T423)
P67_IN_GAAAAA(T249) → U18_GAAAAA(T249, le69_in_ga(T249))
U18_GAAAAA(T249, le69_out_ga(T249, T326)) → P67_IN_AGAAAA(T326)
P67_IN_GAAAAA(T249) → U20_GAAAAA(T249, le69_in_ga(T249))
U20_GAAAAA(T249, le69_out_ga(T249, T351)) → P95_IN_AGAAAA(T351)
P95_IN_AGAAAA(T351) → U27_AGAAAA(T351, gt97_in_ag(T351))
U27_AGAAAA(T351, gt97_out_ag(T448, T351)) → P95_IN_GAAAAA(T448)
P95_IN_GAAAAA(T423) → U25_GAAAAA(T423, gt97_in_ga(T423))
U25_GAAAAA(T423, gt97_out_ga(T423, T351)) → P67_IN_GAAAAA(T423)
P95_IN_GAAAAA(T448) → U27_GAAAAA(T448, gt97_in_ga(T448))
U27_GAAAAA(T448, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448)

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(211) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule P67_IN_AGAAAA(T326) → U18_AGAAAA(T326, le69_in_ag(T326)) at position [1] we obtained the following new rules [LPAR04]:

P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0, 0))

(212) Obligation:

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

U18_AGAAAA(T326, le69_out_ag(T249, T326)) → P67_IN_AGAAAA(T326)
P67_IN_AGAAAA(T351) → U20_AGAAAA(T351, le69_in_ag(T351))
U20_AGAAAA(T351, le69_out_ag(T249, T351)) → P95_IN_AGAAAA(T351)
P95_IN_AGAAAA(T351) → U25_AGAAAA(T351, gt97_in_ag(T351))
U25_AGAAAA(T351, gt97_out_ag(T423, T351)) → P67_IN_GAAAAA(T423)
P67_IN_GAAAAA(T249) → U18_GAAAAA(T249, le69_in_ga(T249))
U18_GAAAAA(T249, le69_out_ga(T249, T326)) → P67_IN_AGAAAA(T326)
P67_IN_GAAAAA(T249) → U20_GAAAAA(T249, le69_in_ga(T249))
U20_GAAAAA(T249, le69_out_ga(T249, T351)) → P95_IN_AGAAAA(T351)
P95_IN_AGAAAA(T351) → U27_AGAAAA(T351, gt97_in_ag(T351))
U27_AGAAAA(T351, gt97_out_ag(T448, T351)) → P95_IN_GAAAAA(T448)
P95_IN_GAAAAA(T423) → U25_GAAAAA(T423, gt97_in_ga(T423))
U25_GAAAAA(T423, gt97_out_ga(T423, T351)) → P67_IN_GAAAAA(T423)
P95_IN_GAAAAA(T448) → U27_GAAAAA(T448, gt97_in_ga(T448))
U27_GAAAAA(T448, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0, 0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(213) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule P67_IN_AGAAAA(T351) → U20_AGAAAA(T351, le69_in_ag(T351)) at position [1] we obtained the following new rules [LPAR04]:

P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0, 0))

(214) Obligation:

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

U18_AGAAAA(T326, le69_out_ag(T249, T326)) → P67_IN_AGAAAA(T326)
U20_AGAAAA(T351, le69_out_ag(T249, T351)) → P95_IN_AGAAAA(T351)
P95_IN_AGAAAA(T351) → U25_AGAAAA(T351, gt97_in_ag(T351))
U25_AGAAAA(T351, gt97_out_ag(T423, T351)) → P67_IN_GAAAAA(T423)
P67_IN_GAAAAA(T249) → U18_GAAAAA(T249, le69_in_ga(T249))
U18_GAAAAA(T249, le69_out_ga(T249, T326)) → P67_IN_AGAAAA(T326)
P67_IN_GAAAAA(T249) → U20_GAAAAA(T249, le69_in_ga(T249))
U20_GAAAAA(T249, le69_out_ga(T249, T351)) → P95_IN_AGAAAA(T351)
P95_IN_AGAAAA(T351) → U27_AGAAAA(T351, gt97_in_ag(T351))
U27_AGAAAA(T351, gt97_out_ag(T448, T351)) → P95_IN_GAAAAA(T448)
P95_IN_GAAAAA(T423) → U25_GAAAAA(T423, gt97_in_ga(T423))
U25_GAAAAA(T423, gt97_out_ga(T423, T351)) → P67_IN_GAAAAA(T423)
P95_IN_GAAAAA(T448) → U27_GAAAAA(T448, gt97_in_ga(T448))
U27_GAAAAA(T448, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0, 0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0, 0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(215) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule P95_IN_AGAAAA(T351) → U25_AGAAAA(T351, gt97_in_ag(T351)) at position [1] we obtained the following new rules [LPAR04]:

P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(0, gt97_out_ag(s(0), 0))

(216) Obligation:

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

U18_AGAAAA(T326, le69_out_ag(T249, T326)) → P67_IN_AGAAAA(T326)
U20_AGAAAA(T351, le69_out_ag(T249, T351)) → P95_IN_AGAAAA(T351)
U25_AGAAAA(T351, gt97_out_ag(T423, T351)) → P67_IN_GAAAAA(T423)
P67_IN_GAAAAA(T249) → U18_GAAAAA(T249, le69_in_ga(T249))
U18_GAAAAA(T249, le69_out_ga(T249, T326)) → P67_IN_AGAAAA(T326)
P67_IN_GAAAAA(T249) → U20_GAAAAA(T249, le69_in_ga(T249))
U20_GAAAAA(T249, le69_out_ga(T249, T351)) → P95_IN_AGAAAA(T351)
P95_IN_AGAAAA(T351) → U27_AGAAAA(T351, gt97_in_ag(T351))
U27_AGAAAA(T351, gt97_out_ag(T448, T351)) → P95_IN_GAAAAA(T448)
P95_IN_GAAAAA(T423) → U25_GAAAAA(T423, gt97_in_ga(T423))
U25_GAAAAA(T423, gt97_out_ga(T423, T351)) → P67_IN_GAAAAA(T423)
P95_IN_GAAAAA(T448) → U27_GAAAAA(T448, gt97_in_ga(T448))
U27_GAAAAA(T448, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0, 0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0, 0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(0, gt97_out_ag(s(0), 0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(217) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule P67_IN_GAAAAA(T249) → U18_GAAAAA(T249, le69_in_ga(T249)) at position [1] we obtained the following new rules [LPAR04]:

P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, 0))

(218) Obligation:

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

U18_AGAAAA(T326, le69_out_ag(T249, T326)) → P67_IN_AGAAAA(T326)
U20_AGAAAA(T351, le69_out_ag(T249, T351)) → P95_IN_AGAAAA(T351)
U25_AGAAAA(T351, gt97_out_ag(T423, T351)) → P67_IN_GAAAAA(T423)
U18_GAAAAA(T249, le69_out_ga(T249, T326)) → P67_IN_AGAAAA(T326)
P67_IN_GAAAAA(T249) → U20_GAAAAA(T249, le69_in_ga(T249))
U20_GAAAAA(T249, le69_out_ga(T249, T351)) → P95_IN_AGAAAA(T351)
P95_IN_AGAAAA(T351) → U27_AGAAAA(T351, gt97_in_ag(T351))
U27_AGAAAA(T351, gt97_out_ag(T448, T351)) → P95_IN_GAAAAA(T448)
P95_IN_GAAAAA(T423) → U25_GAAAAA(T423, gt97_in_ga(T423))
U25_GAAAAA(T423, gt97_out_ga(T423, T351)) → P67_IN_GAAAAA(T423)
P95_IN_GAAAAA(T448) → U27_GAAAAA(T448, gt97_in_ga(T448))
U27_GAAAAA(T448, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0, 0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0, 0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(0, gt97_out_ag(s(0), 0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, 0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(219) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule P67_IN_GAAAAA(T249) → U20_GAAAAA(T249, le69_in_ga(T249)) at position [1] we obtained the following new rules [LPAR04]:

P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, 0))

(220) Obligation:

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

U18_AGAAAA(T326, le69_out_ag(T249, T326)) → P67_IN_AGAAAA(T326)
U20_AGAAAA(T351, le69_out_ag(T249, T351)) → P95_IN_AGAAAA(T351)
U25_AGAAAA(T351, gt97_out_ag(T423, T351)) → P67_IN_GAAAAA(T423)
U18_GAAAAA(T249, le69_out_ga(T249, T326)) → P67_IN_AGAAAA(T326)
U20_GAAAAA(T249, le69_out_ga(T249, T351)) → P95_IN_AGAAAA(T351)
P95_IN_AGAAAA(T351) → U27_AGAAAA(T351, gt97_in_ag(T351))
U27_AGAAAA(T351, gt97_out_ag(T448, T351)) → P95_IN_GAAAAA(T448)
P95_IN_GAAAAA(T423) → U25_GAAAAA(T423, gt97_in_ga(T423))
U25_GAAAAA(T423, gt97_out_ga(T423, T351)) → P67_IN_GAAAAA(T423)
P95_IN_GAAAAA(T448) → U27_GAAAAA(T448, gt97_in_ga(T448))
U27_GAAAAA(T448, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0, 0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0, 0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(0, gt97_out_ag(s(0), 0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, 0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, 0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(221) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule P95_IN_AGAAAA(T351) → U27_AGAAAA(T351, gt97_in_ag(T351)) at position [1] we obtained the following new rules [LPAR04]:

P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(0, gt97_out_ag(s(0), 0))

(222) Obligation:

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

U18_AGAAAA(T326, le69_out_ag(T249, T326)) → P67_IN_AGAAAA(T326)
U20_AGAAAA(T351, le69_out_ag(T249, T351)) → P95_IN_AGAAAA(T351)
U25_AGAAAA(T351, gt97_out_ag(T423, T351)) → P67_IN_GAAAAA(T423)
U18_GAAAAA(T249, le69_out_ga(T249, T326)) → P67_IN_AGAAAA(T326)
U20_GAAAAA(T249, le69_out_ga(T249, T351)) → P95_IN_AGAAAA(T351)
U27_AGAAAA(T351, gt97_out_ag(T448, T351)) → P95_IN_GAAAAA(T448)
P95_IN_GAAAAA(T423) → U25_GAAAAA(T423, gt97_in_ga(T423))
U25_GAAAAA(T423, gt97_out_ga(T423, T351)) → P67_IN_GAAAAA(T423)
P95_IN_GAAAAA(T448) → U27_GAAAAA(T448, gt97_in_ga(T448))
U27_GAAAAA(T448, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0, 0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0, 0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(0, gt97_out_ag(s(0), 0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, 0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, 0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(0, gt97_out_ag(s(0), 0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(223) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule P95_IN_GAAAAA(T423) → U25_GAAAAA(T423, gt97_in_ga(T423)) at position [1] we obtained the following new rules [LPAR04]:

P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(s(0), 0))

(224) Obligation:

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

U18_AGAAAA(T326, le69_out_ag(T249, T326)) → P67_IN_AGAAAA(T326)
U20_AGAAAA(T351, le69_out_ag(T249, T351)) → P95_IN_AGAAAA(T351)
U25_AGAAAA(T351, gt97_out_ag(T423, T351)) → P67_IN_GAAAAA(T423)
U18_GAAAAA(T249, le69_out_ga(T249, T326)) → P67_IN_AGAAAA(T326)
U20_GAAAAA(T249, le69_out_ga(T249, T351)) → P95_IN_AGAAAA(T351)
U27_AGAAAA(T351, gt97_out_ag(T448, T351)) → P95_IN_GAAAAA(T448)
U25_GAAAAA(T423, gt97_out_ga(T423, T351)) → P67_IN_GAAAAA(T423)
P95_IN_GAAAAA(T448) → U27_GAAAAA(T448, gt97_in_ga(T448))
U27_GAAAAA(T448, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0, 0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0, 0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(0, gt97_out_ag(s(0), 0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, 0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, 0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(0, gt97_out_ag(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(s(0), 0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(225) Narrowing (SOUND transformation)

By narrowing [LPAR04] the rule P95_IN_GAAAAA(T448) → U27_GAAAAA(T448, gt97_in_ga(T448)) at position [1] we obtained the following new rules [LPAR04]:

P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(s(0), 0))

(226) Obligation:

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

U18_AGAAAA(T326, le69_out_ag(T249, T326)) → P67_IN_AGAAAA(T326)
U20_AGAAAA(T351, le69_out_ag(T249, T351)) → P95_IN_AGAAAA(T351)
U25_AGAAAA(T351, gt97_out_ag(T423, T351)) → P67_IN_GAAAAA(T423)
U18_GAAAAA(T249, le69_out_ga(T249, T326)) → P67_IN_AGAAAA(T326)
U20_GAAAAA(T249, le69_out_ga(T249, T351)) → P95_IN_AGAAAA(T351)
U27_AGAAAA(T351, gt97_out_ag(T448, T351)) → P95_IN_GAAAAA(T448)
U25_GAAAAA(T423, gt97_out_ga(T423, T351)) → P67_IN_GAAAAA(T423)
U27_GAAAAA(T448, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0, 0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0, 0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(0, gt97_out_ag(s(0), 0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, 0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, 0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(0, gt97_out_ag(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(s(0), 0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(227) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule U18_AGAAAA(T326, le69_out_ag(T249, T326)) → P67_IN_AGAAAA(T326) we obtained the following new rules [LPAR04]:

U18_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P67_IN_AGAAAA(s(z0))
U18_AGAAAA(s(0), le69_out_ag(0, s(0))) → P67_IN_AGAAAA(s(0))
U18_AGAAAA(0, le69_out_ag(0, 0)) → P67_IN_AGAAAA(0)

(228) Obligation:

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

U20_AGAAAA(T351, le69_out_ag(T249, T351)) → P95_IN_AGAAAA(T351)
U25_AGAAAA(T351, gt97_out_ag(T423, T351)) → P67_IN_GAAAAA(T423)
U18_GAAAAA(T249, le69_out_ga(T249, T326)) → P67_IN_AGAAAA(T326)
U20_GAAAAA(T249, le69_out_ga(T249, T351)) → P95_IN_AGAAAA(T351)
U27_AGAAAA(T351, gt97_out_ag(T448, T351)) → P95_IN_GAAAAA(T448)
U25_GAAAAA(T423, gt97_out_ga(T423, T351)) → P67_IN_GAAAAA(T423)
U27_GAAAAA(T448, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0, 0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0, 0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(0, gt97_out_ag(s(0), 0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, 0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, 0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(0, gt97_out_ag(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(s(0), 0))
U18_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P67_IN_AGAAAA(s(z0))
U18_AGAAAA(s(0), le69_out_ag(0, s(0))) → P67_IN_AGAAAA(s(0))
U18_AGAAAA(0, le69_out_ag(0, 0)) → P67_IN_AGAAAA(0)

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(229) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule U20_AGAAAA(T351, le69_out_ag(T249, T351)) → P95_IN_AGAAAA(T351) we obtained the following new rules [LPAR04]:

U20_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P95_IN_AGAAAA(s(z0))
U20_AGAAAA(s(0), le69_out_ag(0, s(0))) → P95_IN_AGAAAA(s(0))
U20_AGAAAA(0, le69_out_ag(0, 0)) → P95_IN_AGAAAA(0)

(230) Obligation:

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

U25_AGAAAA(T351, gt97_out_ag(T423, T351)) → P67_IN_GAAAAA(T423)
U18_GAAAAA(T249, le69_out_ga(T249, T326)) → P67_IN_AGAAAA(T326)
U20_GAAAAA(T249, le69_out_ga(T249, T351)) → P95_IN_AGAAAA(T351)
U27_AGAAAA(T351, gt97_out_ag(T448, T351)) → P95_IN_GAAAAA(T448)
U25_GAAAAA(T423, gt97_out_ga(T423, T351)) → P67_IN_GAAAAA(T423)
U27_GAAAAA(T448, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0, 0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0, 0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(0, gt97_out_ag(s(0), 0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, 0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, 0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(0, gt97_out_ag(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(s(0), 0))
U18_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P67_IN_AGAAAA(s(z0))
U18_AGAAAA(s(0), le69_out_ag(0, s(0))) → P67_IN_AGAAAA(s(0))
U18_AGAAAA(0, le69_out_ag(0, 0)) → P67_IN_AGAAAA(0)
U20_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P95_IN_AGAAAA(s(z0))
U20_AGAAAA(s(0), le69_out_ag(0, s(0))) → P95_IN_AGAAAA(s(0))
U20_AGAAAA(0, le69_out_ag(0, 0)) → P95_IN_AGAAAA(0)

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(231) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule U25_AGAAAA(T351, gt97_out_ag(T423, T351)) → P67_IN_GAAAAA(T423) we obtained the following new rules [LPAR04]:

U25_AGAAAA(s(z0), gt97_out_ag(x1, s(z0))) → P67_IN_GAAAAA(x1)
U25_AGAAAA(0, gt97_out_ag(s(0), 0)) → P67_IN_GAAAAA(s(0))

(232) Obligation:

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

U18_GAAAAA(T249, le69_out_ga(T249, T326)) → P67_IN_AGAAAA(T326)
U20_GAAAAA(T249, le69_out_ga(T249, T351)) → P95_IN_AGAAAA(T351)
U27_AGAAAA(T351, gt97_out_ag(T448, T351)) → P95_IN_GAAAAA(T448)
U25_GAAAAA(T423, gt97_out_ga(T423, T351)) → P67_IN_GAAAAA(T423)
U27_GAAAAA(T448, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0, 0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0, 0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(0, gt97_out_ag(s(0), 0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, 0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, 0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(0, gt97_out_ag(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(s(0), 0))
U18_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P67_IN_AGAAAA(s(z0))
U18_AGAAAA(s(0), le69_out_ag(0, s(0))) → P67_IN_AGAAAA(s(0))
U18_AGAAAA(0, le69_out_ag(0, 0)) → P67_IN_AGAAAA(0)
U20_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P95_IN_AGAAAA(s(z0))
U20_AGAAAA(s(0), le69_out_ag(0, s(0))) → P95_IN_AGAAAA(s(0))
U20_AGAAAA(0, le69_out_ag(0, 0)) → P95_IN_AGAAAA(0)
U25_AGAAAA(s(z0), gt97_out_ag(x1, s(z0))) → P67_IN_GAAAAA(x1)
U25_AGAAAA(0, gt97_out_ag(s(0), 0)) → P67_IN_GAAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(233) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule U18_GAAAAA(T249, le69_out_ga(T249, T326)) → P67_IN_AGAAAA(T326) we obtained the following new rules [LPAR04]:

U18_GAAAAA(s(z0), le69_out_ga(s(z0), x1)) → P67_IN_AGAAAA(x1)
U18_GAAAAA(0, le69_out_ga(0, s(0))) → P67_IN_AGAAAA(s(0))
U18_GAAAAA(0, le69_out_ga(0, 0)) → P67_IN_AGAAAA(0)

(234) Obligation:

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

U20_GAAAAA(T249, le69_out_ga(T249, T351)) → P95_IN_AGAAAA(T351)
U27_AGAAAA(T351, gt97_out_ag(T448, T351)) → P95_IN_GAAAAA(T448)
U25_GAAAAA(T423, gt97_out_ga(T423, T351)) → P67_IN_GAAAAA(T423)
U27_GAAAAA(T448, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0, 0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0, 0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(0, gt97_out_ag(s(0), 0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, 0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, 0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(0, gt97_out_ag(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(s(0), 0))
U18_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P67_IN_AGAAAA(s(z0))
U18_AGAAAA(s(0), le69_out_ag(0, s(0))) → P67_IN_AGAAAA(s(0))
U18_AGAAAA(0, le69_out_ag(0, 0)) → P67_IN_AGAAAA(0)
U20_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P95_IN_AGAAAA(s(z0))
U20_AGAAAA(s(0), le69_out_ag(0, s(0))) → P95_IN_AGAAAA(s(0))
U20_AGAAAA(0, le69_out_ag(0, 0)) → P95_IN_AGAAAA(0)
U25_AGAAAA(s(z0), gt97_out_ag(x1, s(z0))) → P67_IN_GAAAAA(x1)
U25_AGAAAA(0, gt97_out_ag(s(0), 0)) → P67_IN_GAAAAA(s(0))
U18_GAAAAA(s(z0), le69_out_ga(s(z0), x1)) → P67_IN_AGAAAA(x1)
U18_GAAAAA(0, le69_out_ga(0, s(0))) → P67_IN_AGAAAA(s(0))
U18_GAAAAA(0, le69_out_ga(0, 0)) → P67_IN_AGAAAA(0)

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(235) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule U20_GAAAAA(T249, le69_out_ga(T249, T351)) → P95_IN_AGAAAA(T351) we obtained the following new rules [LPAR04]:

U20_GAAAAA(s(z0), le69_out_ga(s(z0), x1)) → P95_IN_AGAAAA(x1)
U20_GAAAAA(0, le69_out_ga(0, s(0))) → P95_IN_AGAAAA(s(0))
U20_GAAAAA(0, le69_out_ga(0, 0)) → P95_IN_AGAAAA(0)

(236) Obligation:

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

U27_AGAAAA(T351, gt97_out_ag(T448, T351)) → P95_IN_GAAAAA(T448)
U25_GAAAAA(T423, gt97_out_ga(T423, T351)) → P67_IN_GAAAAA(T423)
U27_GAAAAA(T448, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0, 0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0, 0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(0, gt97_out_ag(s(0), 0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, 0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, 0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(0, gt97_out_ag(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(s(0), 0))
U18_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P67_IN_AGAAAA(s(z0))
U18_AGAAAA(s(0), le69_out_ag(0, s(0))) → P67_IN_AGAAAA(s(0))
U18_AGAAAA(0, le69_out_ag(0, 0)) → P67_IN_AGAAAA(0)
U20_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P95_IN_AGAAAA(s(z0))
U20_AGAAAA(s(0), le69_out_ag(0, s(0))) → P95_IN_AGAAAA(s(0))
U20_AGAAAA(0, le69_out_ag(0, 0)) → P95_IN_AGAAAA(0)
U25_AGAAAA(s(z0), gt97_out_ag(x1, s(z0))) → P67_IN_GAAAAA(x1)
U25_AGAAAA(0, gt97_out_ag(s(0), 0)) → P67_IN_GAAAAA(s(0))
U18_GAAAAA(s(z0), le69_out_ga(s(z0), x1)) → P67_IN_AGAAAA(x1)
U18_GAAAAA(0, le69_out_ga(0, s(0))) → P67_IN_AGAAAA(s(0))
U18_GAAAAA(0, le69_out_ga(0, 0)) → P67_IN_AGAAAA(0)
U20_GAAAAA(s(z0), le69_out_ga(s(z0), x1)) → P95_IN_AGAAAA(x1)
U20_GAAAAA(0, le69_out_ga(0, s(0))) → P95_IN_AGAAAA(s(0))
U20_GAAAAA(0, le69_out_ga(0, 0)) → P95_IN_AGAAAA(0)

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(237) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule U27_AGAAAA(T351, gt97_out_ag(T448, T351)) → P95_IN_GAAAAA(T448) we obtained the following new rules [LPAR04]:

U27_AGAAAA(s(z0), gt97_out_ag(x1, s(z0))) → P95_IN_GAAAAA(x1)
U27_AGAAAA(0, gt97_out_ag(s(0), 0)) → P95_IN_GAAAAA(s(0))

(238) Obligation:

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

U25_GAAAAA(T423, gt97_out_ga(T423, T351)) → P67_IN_GAAAAA(T423)
U27_GAAAAA(T448, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0, 0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0, 0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(0, gt97_out_ag(s(0), 0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, 0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, 0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(0, gt97_out_ag(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(s(0), 0))
U18_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P67_IN_AGAAAA(s(z0))
U18_AGAAAA(s(0), le69_out_ag(0, s(0))) → P67_IN_AGAAAA(s(0))
U18_AGAAAA(0, le69_out_ag(0, 0)) → P67_IN_AGAAAA(0)
U20_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P95_IN_AGAAAA(s(z0))
U20_AGAAAA(s(0), le69_out_ag(0, s(0))) → P95_IN_AGAAAA(s(0))
U20_AGAAAA(0, le69_out_ag(0, 0)) → P95_IN_AGAAAA(0)
U25_AGAAAA(s(z0), gt97_out_ag(x1, s(z0))) → P67_IN_GAAAAA(x1)
U25_AGAAAA(0, gt97_out_ag(s(0), 0)) → P67_IN_GAAAAA(s(0))
U18_GAAAAA(s(z0), le69_out_ga(s(z0), x1)) → P67_IN_AGAAAA(x1)
U18_GAAAAA(0, le69_out_ga(0, s(0))) → P67_IN_AGAAAA(s(0))
U18_GAAAAA(0, le69_out_ga(0, 0)) → P67_IN_AGAAAA(0)
U20_GAAAAA(s(z0), le69_out_ga(s(z0), x1)) → P95_IN_AGAAAA(x1)
U20_GAAAAA(0, le69_out_ga(0, s(0))) → P95_IN_AGAAAA(s(0))
U20_GAAAAA(0, le69_out_ga(0, 0)) → P95_IN_AGAAAA(0)
U27_AGAAAA(s(z0), gt97_out_ag(x1, s(z0))) → P95_IN_GAAAAA(x1)
U27_AGAAAA(0, gt97_out_ag(s(0), 0)) → P95_IN_GAAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(239) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule U25_GAAAAA(T423, gt97_out_ga(T423, T351)) → P67_IN_GAAAAA(T423) we obtained the following new rules [LPAR04]:

U25_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P67_IN_GAAAAA(s(z0))
U25_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P67_IN_GAAAAA(s(0))

(240) Obligation:

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

U27_GAAAAA(T448, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448)
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0, 0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0, 0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(0, gt97_out_ag(s(0), 0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, 0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, 0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(0, gt97_out_ag(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(s(0), 0))
U18_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P67_IN_AGAAAA(s(z0))
U18_AGAAAA(s(0), le69_out_ag(0, s(0))) → P67_IN_AGAAAA(s(0))
U18_AGAAAA(0, le69_out_ag(0, 0)) → P67_IN_AGAAAA(0)
U20_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P95_IN_AGAAAA(s(z0))
U20_AGAAAA(s(0), le69_out_ag(0, s(0))) → P95_IN_AGAAAA(s(0))
U20_AGAAAA(0, le69_out_ag(0, 0)) → P95_IN_AGAAAA(0)
U25_AGAAAA(s(z0), gt97_out_ag(x1, s(z0))) → P67_IN_GAAAAA(x1)
U25_AGAAAA(0, gt97_out_ag(s(0), 0)) → P67_IN_GAAAAA(s(0))
U18_GAAAAA(s(z0), le69_out_ga(s(z0), x1)) → P67_IN_AGAAAA(x1)
U18_GAAAAA(0, le69_out_ga(0, s(0))) → P67_IN_AGAAAA(s(0))
U18_GAAAAA(0, le69_out_ga(0, 0)) → P67_IN_AGAAAA(0)
U20_GAAAAA(s(z0), le69_out_ga(s(z0), x1)) → P95_IN_AGAAAA(x1)
U20_GAAAAA(0, le69_out_ga(0, s(0))) → P95_IN_AGAAAA(s(0))
U20_GAAAAA(0, le69_out_ga(0, 0)) → P95_IN_AGAAAA(0)
U27_AGAAAA(s(z0), gt97_out_ag(x1, s(z0))) → P95_IN_GAAAAA(x1)
U27_AGAAAA(0, gt97_out_ag(s(0), 0)) → P95_IN_GAAAAA(s(0))
U25_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P67_IN_GAAAAA(s(z0))
U25_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P67_IN_GAAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(241) Instantiation (EQUIVALENT transformation)

By instantiating [LPAR04] the rule U27_GAAAAA(T448, gt97_out_ga(T448, T351)) → P95_IN_GAAAAA(T448) we obtained the following new rules [LPAR04]:

U27_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P95_IN_GAAAAA(s(z0))
U27_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P95_IN_GAAAAA(s(0))

(242) Obligation:

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

P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0, 0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0, 0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(0, gt97_out_ag(s(0), 0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, 0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, 0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(0, gt97_out_ag(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(s(0), 0))
U18_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P67_IN_AGAAAA(s(z0))
U18_AGAAAA(s(0), le69_out_ag(0, s(0))) → P67_IN_AGAAAA(s(0))
U18_AGAAAA(0, le69_out_ag(0, 0)) → P67_IN_AGAAAA(0)
U20_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P95_IN_AGAAAA(s(z0))
U20_AGAAAA(s(0), le69_out_ag(0, s(0))) → P95_IN_AGAAAA(s(0))
U20_AGAAAA(0, le69_out_ag(0, 0)) → P95_IN_AGAAAA(0)
U25_AGAAAA(s(z0), gt97_out_ag(x1, s(z0))) → P67_IN_GAAAAA(x1)
U25_AGAAAA(0, gt97_out_ag(s(0), 0)) → P67_IN_GAAAAA(s(0))
U18_GAAAAA(s(z0), le69_out_ga(s(z0), x1)) → P67_IN_AGAAAA(x1)
U18_GAAAAA(0, le69_out_ga(0, s(0))) → P67_IN_AGAAAA(s(0))
U18_GAAAAA(0, le69_out_ga(0, 0)) → P67_IN_AGAAAA(0)
U20_GAAAAA(s(z0), le69_out_ga(s(z0), x1)) → P95_IN_AGAAAA(x1)
U20_GAAAAA(0, le69_out_ga(0, s(0))) → P95_IN_AGAAAA(s(0))
U20_GAAAAA(0, le69_out_ga(0, 0)) → P95_IN_AGAAAA(0)
U27_AGAAAA(s(z0), gt97_out_ag(x1, s(z0))) → P95_IN_GAAAAA(x1)
U27_AGAAAA(0, gt97_out_ag(s(0), 0)) → P95_IN_GAAAAA(s(0))
U25_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P67_IN_GAAAAA(s(z0))
U25_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P67_IN_GAAAAA(s(0))
U27_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P95_IN_GAAAAA(s(z0))
U27_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P95_IN_GAAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(243) ForwardInstantiation (EQUIVALENT transformation)

By forward instantiating [JAR06] the rule U25_AGAAAA(s(z0), gt97_out_ag(x1, s(z0))) → P67_IN_GAAAAA(x1) we obtained the following new rules [LPAR04]:

U25_AGAAAA(s(x0), gt97_out_ag(s(y_0), s(x0))) → P67_IN_GAAAAA(s(y_0))
U25_AGAAAA(s(x0), gt97_out_ag(0, s(x0))) → P67_IN_GAAAAA(0)

(244) Obligation:

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

P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0, 0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0, 0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(0, gt97_out_ag(s(0), 0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U18_GAAAAA(0, le69_out_ga(0, 0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, s(0)))
P67_IN_GAAAAA(0) → U20_GAAAAA(0, le69_out_ga(0, 0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_AGAAAA(0) → U27_AGAAAA(0, gt97_out_ag(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(s(0), 0))
U18_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P67_IN_AGAAAA(s(z0))
U18_AGAAAA(s(0), le69_out_ag(0, s(0))) → P67_IN_AGAAAA(s(0))
U18_AGAAAA(0, le69_out_ag(0, 0)) → P67_IN_AGAAAA(0)
U20_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P95_IN_AGAAAA(s(z0))
U20_AGAAAA(s(0), le69_out_ag(0, s(0))) → P95_IN_AGAAAA(s(0))
U20_AGAAAA(0, le69_out_ag(0, 0)) → P95_IN_AGAAAA(0)
U25_AGAAAA(0, gt97_out_ag(s(0), 0)) → P67_IN_GAAAAA(s(0))
U18_GAAAAA(s(z0), le69_out_ga(s(z0), x1)) → P67_IN_AGAAAA(x1)
U18_GAAAAA(0, le69_out_ga(0, s(0))) → P67_IN_AGAAAA(s(0))
U18_GAAAAA(0, le69_out_ga(0, 0)) → P67_IN_AGAAAA(0)
U20_GAAAAA(s(z0), le69_out_ga(s(z0), x1)) → P95_IN_AGAAAA(x1)
U20_GAAAAA(0, le69_out_ga(0, s(0))) → P95_IN_AGAAAA(s(0))
U20_GAAAAA(0, le69_out_ga(0, 0)) → P95_IN_AGAAAA(0)
U27_AGAAAA(s(z0), gt97_out_ag(x1, s(z0))) → P95_IN_GAAAAA(x1)
U27_AGAAAA(0, gt97_out_ag(s(0), 0)) → P95_IN_GAAAAA(s(0))
U25_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P67_IN_GAAAAA(s(z0))
U25_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P67_IN_GAAAAA(s(0))
U27_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P95_IN_GAAAAA(s(z0))
U27_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P95_IN_GAAAAA(s(0))
U25_AGAAAA(s(x0), gt97_out_ag(s(y_0), s(x0))) → P67_IN_GAAAAA(s(y_0))
U25_AGAAAA(s(x0), gt97_out_ag(0, s(x0))) → P67_IN_GAAAAA(0)

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(245) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 1 SCC with 9 less nodes.

(246) Obligation:

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

U18_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P67_IN_AGAAAA(s(z0))
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
U18_AGAAAA(s(0), le69_out_ag(0, s(0))) → P67_IN_AGAAAA(s(0))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
U20_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P95_IN_AGAAAA(s(z0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
U25_AGAAAA(s(x0), gt97_out_ag(s(y_0), s(x0))) → P67_IN_GAAAAA(s(y_0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
U18_GAAAAA(s(z0), le69_out_ga(s(z0), x1)) → P67_IN_AGAAAA(x1)
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0, 0))
U18_AGAAAA(0, le69_out_ag(0, 0)) → P67_IN_AGAAAA(0)
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0, 0))
U20_AGAAAA(0, le69_out_ag(0, 0)) → P95_IN_AGAAAA(0)
P95_IN_AGAAAA(0) → U25_AGAAAA(0, gt97_out_ag(s(0), 0))
U25_AGAAAA(0, gt97_out_ag(s(0), 0)) → P67_IN_GAAAAA(s(0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
U20_GAAAAA(s(z0), le69_out_ga(s(z0), x1)) → P95_IN_AGAAAA(x1)
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
U27_AGAAAA(s(z0), gt97_out_ag(x1, s(z0))) → P95_IN_GAAAAA(x1)
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
U25_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P67_IN_GAAAAA(s(z0))
U25_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P67_IN_GAAAAA(s(0))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
U27_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P95_IN_GAAAAA(s(z0))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(s(0), 0))
U27_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P95_IN_GAAAAA(s(0))
P95_IN_AGAAAA(0) → U27_AGAAAA(0, gt97_out_ag(s(0), 0))
U27_AGAAAA(0, gt97_out_ag(s(0), 0)) → P95_IN_GAAAAA(s(0))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
U20_AGAAAA(s(0), le69_out_ag(0, s(0))) → P95_IN_AGAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(247) ForwardInstantiation (EQUIVALENT transformation)

By forward instantiating [JAR06] the rule U18_GAAAAA(s(z0), le69_out_ga(s(z0), x1)) → P67_IN_AGAAAA(x1) we obtained the following new rules [LPAR04]:

U18_GAAAAA(s(x0), le69_out_ga(s(x0), s(y_0))) → P67_IN_AGAAAA(s(y_0))
U18_GAAAAA(s(x0), le69_out_ga(s(x0), s(0))) → P67_IN_AGAAAA(s(0))
U18_GAAAAA(s(x0), le69_out_ga(s(x0), 0)) → P67_IN_AGAAAA(0)

(248) Obligation:

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

U18_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P67_IN_AGAAAA(s(z0))
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
U18_AGAAAA(s(0), le69_out_ag(0, s(0))) → P67_IN_AGAAAA(s(0))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
U20_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P95_IN_AGAAAA(s(z0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
U25_AGAAAA(s(x0), gt97_out_ag(s(y_0), s(x0))) → P67_IN_GAAAAA(s(y_0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0, 0))
U18_AGAAAA(0, le69_out_ag(0, 0)) → P67_IN_AGAAAA(0)
P67_IN_AGAAAA(0) → U20_AGAAAA(0, le69_out_ag(0, 0))
U20_AGAAAA(0, le69_out_ag(0, 0)) → P95_IN_AGAAAA(0)
P95_IN_AGAAAA(0) → U25_AGAAAA(0, gt97_out_ag(s(0), 0))
U25_AGAAAA(0, gt97_out_ag(s(0), 0)) → P67_IN_GAAAAA(s(0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
U20_GAAAAA(s(z0), le69_out_ga(s(z0), x1)) → P95_IN_AGAAAA(x1)
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
U27_AGAAAA(s(z0), gt97_out_ag(x1, s(z0))) → P95_IN_GAAAAA(x1)
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
U25_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P67_IN_GAAAAA(s(z0))
U25_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P67_IN_GAAAAA(s(0))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
U27_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P95_IN_GAAAAA(s(z0))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(s(0), 0))
U27_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P95_IN_GAAAAA(s(0))
P95_IN_AGAAAA(0) → U27_AGAAAA(0, gt97_out_ag(s(0), 0))
U27_AGAAAA(0, gt97_out_ag(s(0), 0)) → P95_IN_GAAAAA(s(0))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
U20_AGAAAA(s(0), le69_out_ag(0, s(0))) → P95_IN_AGAAAA(s(0))
U18_GAAAAA(s(x0), le69_out_ga(s(x0), s(y_0))) → P67_IN_AGAAAA(s(y_0))
U18_GAAAAA(s(x0), le69_out_ga(s(x0), s(0))) → P67_IN_AGAAAA(s(0))
U18_GAAAAA(s(x0), le69_out_ga(s(x0), 0)) → P67_IN_AGAAAA(0)

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(249) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 2 SCCs with 3 less nodes.

(250) Complex Obligation (AND)

(251) Obligation:

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

P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
U18_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P67_IN_AGAAAA(s(z0))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
U18_AGAAAA(s(0), le69_out_ag(0, s(0))) → P67_IN_AGAAAA(s(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
U20_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P95_IN_AGAAAA(s(z0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
U25_AGAAAA(s(x0), gt97_out_ag(s(y_0), s(x0))) → P67_IN_GAAAAA(s(y_0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
U18_GAAAAA(s(x0), le69_out_ga(s(x0), s(y_0))) → P67_IN_AGAAAA(s(y_0))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
U20_AGAAAA(s(0), le69_out_ag(0, s(0))) → P95_IN_AGAAAA(s(0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
U27_AGAAAA(s(z0), gt97_out_ag(x1, s(z0))) → P95_IN_GAAAAA(x1)
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
U25_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P67_IN_GAAAAA(s(z0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
U20_GAAAAA(s(z0), le69_out_ga(s(z0), x1)) → P95_IN_AGAAAA(x1)
P95_IN_AGAAAA(0) → U25_AGAAAA(0, gt97_out_ag(s(0), 0))
U25_AGAAAA(0, gt97_out_ag(s(0), 0)) → P67_IN_GAAAAA(s(0))
P95_IN_AGAAAA(0) → U27_AGAAAA(0, gt97_out_ag(s(0), 0))
U27_AGAAAA(0, gt97_out_ag(s(0), 0)) → P95_IN_GAAAAA(s(0))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(s(0), 0))
U25_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P67_IN_GAAAAA(s(0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
U27_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P95_IN_GAAAAA(s(z0))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(s(0), 0))
U27_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P95_IN_GAAAAA(s(0))
U18_GAAAAA(s(x0), le69_out_ga(s(x0), s(0))) → P67_IN_AGAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(252) ForwardInstantiation (EQUIVALENT transformation)

By forward instantiating [JAR06] the rule U27_AGAAAA(s(z0), gt97_out_ag(x1, s(z0))) → P95_IN_GAAAAA(x1) we obtained the following new rules [LPAR04]:

U27_AGAAAA(s(x0), gt97_out_ag(s(y_0), s(x0))) → P95_IN_GAAAAA(s(y_0))
U27_AGAAAA(s(x0), gt97_out_ag(s(0), s(x0))) → P95_IN_GAAAAA(s(0))

(253) Obligation:

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

P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
U18_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P67_IN_AGAAAA(s(z0))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
U18_AGAAAA(s(0), le69_out_ag(0, s(0))) → P67_IN_AGAAAA(s(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
U20_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P95_IN_AGAAAA(s(z0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
U25_AGAAAA(s(x0), gt97_out_ag(s(y_0), s(x0))) → P67_IN_GAAAAA(s(y_0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
U18_GAAAAA(s(x0), le69_out_ga(s(x0), s(y_0))) → P67_IN_AGAAAA(s(y_0))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
U20_AGAAAA(s(0), le69_out_ag(0, s(0))) → P95_IN_AGAAAA(s(0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
U25_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P67_IN_GAAAAA(s(z0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
U20_GAAAAA(s(z0), le69_out_ga(s(z0), x1)) → P95_IN_AGAAAA(x1)
P95_IN_AGAAAA(0) → U25_AGAAAA(0, gt97_out_ag(s(0), 0))
U25_AGAAAA(0, gt97_out_ag(s(0), 0)) → P67_IN_GAAAAA(s(0))
P95_IN_AGAAAA(0) → U27_AGAAAA(0, gt97_out_ag(s(0), 0))
U27_AGAAAA(0, gt97_out_ag(s(0), 0)) → P95_IN_GAAAAA(s(0))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(s(0), 0))
U25_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P67_IN_GAAAAA(s(0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
U27_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P95_IN_GAAAAA(s(z0))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(s(0), 0))
U27_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P95_IN_GAAAAA(s(0))
U18_GAAAAA(s(x0), le69_out_ga(s(x0), s(0))) → P67_IN_AGAAAA(s(0))
U27_AGAAAA(s(x0), gt97_out_ag(s(y_0), s(x0))) → P95_IN_GAAAAA(s(y_0))
U27_AGAAAA(s(x0), gt97_out_ag(s(0), s(x0))) → P95_IN_GAAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(254) ForwardInstantiation (EQUIVALENT transformation)

By forward instantiating [JAR06] the rule U20_GAAAAA(s(z0), le69_out_ga(s(z0), x1)) → P95_IN_AGAAAA(x1) we obtained the following new rules [LPAR04]:

U20_GAAAAA(s(x0), le69_out_ga(s(x0), s(y_0))) → P95_IN_AGAAAA(s(y_0))
U20_GAAAAA(s(x0), le69_out_ga(s(x0), 0)) → P95_IN_AGAAAA(0)

(255) Obligation:

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

P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
U18_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P67_IN_AGAAAA(s(z0))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
U18_AGAAAA(s(0), le69_out_ag(0, s(0))) → P67_IN_AGAAAA(s(0))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
U20_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P95_IN_AGAAAA(s(z0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
U25_AGAAAA(s(x0), gt97_out_ag(s(y_0), s(x0))) → P67_IN_GAAAAA(s(y_0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
U18_GAAAAA(s(x0), le69_out_ga(s(x0), s(y_0))) → P67_IN_AGAAAA(s(y_0))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
U20_AGAAAA(s(0), le69_out_ag(0, s(0))) → P95_IN_AGAAAA(s(0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
U25_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P67_IN_GAAAAA(s(z0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
P95_IN_AGAAAA(0) → U25_AGAAAA(0, gt97_out_ag(s(0), 0))
U25_AGAAAA(0, gt97_out_ag(s(0), 0)) → P67_IN_GAAAAA(s(0))
P95_IN_AGAAAA(0) → U27_AGAAAA(0, gt97_out_ag(s(0), 0))
U27_AGAAAA(0, gt97_out_ag(s(0), 0)) → P95_IN_GAAAAA(s(0))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(s(0), 0))
U25_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P67_IN_GAAAAA(s(0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
U27_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P95_IN_GAAAAA(s(z0))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(s(0), 0))
U27_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P95_IN_GAAAAA(s(0))
U18_GAAAAA(s(x0), le69_out_ga(s(x0), s(0))) → P67_IN_AGAAAA(s(0))
U27_AGAAAA(s(x0), gt97_out_ag(s(y_0), s(x0))) → P95_IN_GAAAAA(s(y_0))
U27_AGAAAA(s(x0), gt97_out_ag(s(0), s(x0))) → P95_IN_GAAAAA(s(0))
U20_GAAAAA(s(x0), le69_out_ga(s(x0), s(y_0))) → P95_IN_AGAAAA(s(y_0))
U20_GAAAAA(s(x0), le69_out_ga(s(x0), 0)) → P95_IN_AGAAAA(0)

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(256) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 1 SCC with 5 less nodes.

(257) Obligation:

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

U18_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P67_IN_AGAAAA(s(z0))
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
U18_AGAAAA(s(0), le69_out_ag(0, s(0))) → P67_IN_AGAAAA(s(0))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
U20_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P95_IN_AGAAAA(s(z0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
U25_AGAAAA(s(x0), gt97_out_ag(s(y_0), s(x0))) → P67_IN_GAAAAA(s(y_0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
U18_GAAAAA(s(x0), le69_out_ga(s(x0), s(y_0))) → P67_IN_AGAAAA(s(y_0))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
U20_AGAAAA(s(0), le69_out_ag(0, s(0))) → P95_IN_AGAAAA(s(0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
U27_AGAAAA(s(x0), gt97_out_ag(s(y_0), s(x0))) → P95_IN_GAAAAA(s(y_0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
U25_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P67_IN_GAAAAA(s(z0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
U20_GAAAAA(s(x0), le69_out_ga(s(x0), s(y_0))) → P95_IN_AGAAAA(s(y_0))
U25_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P67_IN_GAAAAA(s(0))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
U27_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P95_IN_GAAAAA(s(z0))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(s(0), 0))
U27_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P95_IN_GAAAAA(s(0))
U27_AGAAAA(s(x0), gt97_out_ag(s(0), s(x0))) → P95_IN_GAAAAA(s(0))
U18_GAAAAA(s(x0), le69_out_ga(s(x0), s(0))) → P67_IN_AGAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(258) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U27_AGAAAA(s(x0), gt97_out_ag(s(0), s(x0))) → P95_IN_GAAAAA(s(0))
The remaining pairs can at least be oriented weakly.
Used ordering: Matrix interpretation [MATRO]:

POL(U18_AGAAAA(x1, x2)) = 1 +
[0,0]
·x1 +
[0,0]
·x2

POL(s(x1)) =
/0\
\0/
+
/01\
\00/
·x1

POL(le69_out_ag(x1, x2)) =
/1\
\0/
+
/00\
\00/
·x1 +
/00\
\00/
·x2

POL(P67_IN_AGAAAA(x1)) = 1 +
[0,0]
·x1

POL(U15_ag(x1, x2)) =
/0\
\1/
+
/00\
\00/
·x1 +
/01\
\10/
·x2

POL(le69_in_ag(x1)) =
/0\
\1/
+
/01\
\00/
·x1

POL(0) =
/0\
\1/

POL(U20_AGAAAA(x1, x2)) = 1 +
[0,0]
·x1 +
[0,0]
·x2

POL(P95_IN_AGAAAA(x1)) = 1 +
[0,0]
·x1

POL(U25_AGAAAA(x1, x2)) = 1 +
[0,0]
·x1 +
[0,0]
·x2

POL(U22_ag(x1, x2)) =
/0\
\0/
+
/00\
\00/
·x1 +
/00\
\10/
·x2

POL(gt97_in_ag(x1)) =
/0\
\1/
+
/00\
\00/
·x1

POL(gt97_out_ag(x1, x2)) =
/0\
\0/
+
/01\
\10/
·x1 +
/00\
\00/
·x2

POL(P67_IN_GAAAAA(x1)) = 1 +
[0,0]
·x1

POL(U18_GAAAAA(x1, x2)) = 1 +
[0,0]
·x1 +
[0,0]
·x2

POL(U15_ga(x1, x2)) =
/0\
\0/
+
/00\
\01/
·x1 +
/00\
\00/
·x2

POL(le69_in_ga(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(le69_out_ga(x1, x2)) =
/0\
\0/
+
/11\
\01/
·x1 +
/00\
\00/
·x2

POL(U27_AGAAAA(x1, x2)) = 1 +
[0,0]
·x1 +
[0,1]
·x2

POL(P95_IN_GAAAAA(x1)) = 1 +
[0,0]
·x1

POL(U25_GAAAAA(x1, x2)) = 1 +
[0,0]
·x1 +
[0,0]
·x2

POL(U22_ga(x1, x2)) =
/1\
\0/
+
/11\
\00/
·x1 +
/00\
\00/
·x2

POL(gt97_in_ga(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(gt97_out_ga(x1, x2)) =
/0\
\0/
+
/00\
\00/
·x1 +
/10\
\00/
·x2

POL(U20_GAAAAA(x1, x2)) = 1 +
[0,0]
·x1 +
[0,0]
·x2

POL(U27_GAAAAA(x1, x2)) = 1 +
[0,0]
·x1 +
[0,0]
·x2

The following usable rules [FROCOS05] were oriented:

gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))

(259) Obligation:

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

U18_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P67_IN_AGAAAA(s(z0))
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
U18_AGAAAA(s(0), le69_out_ag(0, s(0))) → P67_IN_AGAAAA(s(0))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
U20_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P95_IN_AGAAAA(s(z0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
U25_AGAAAA(s(x0), gt97_out_ag(s(y_0), s(x0))) → P67_IN_GAAAAA(s(y_0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
U18_GAAAAA(s(x0), le69_out_ga(s(x0), s(y_0))) → P67_IN_AGAAAA(s(y_0))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
U20_AGAAAA(s(0), le69_out_ag(0, s(0))) → P95_IN_AGAAAA(s(0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
U27_AGAAAA(s(x0), gt97_out_ag(s(y_0), s(x0))) → P95_IN_GAAAAA(s(y_0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
U25_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P67_IN_GAAAAA(s(z0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
U20_GAAAAA(s(x0), le69_out_ga(s(x0), s(y_0))) → P95_IN_AGAAAA(s(y_0))
U25_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P67_IN_GAAAAA(s(0))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
U27_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P95_IN_GAAAAA(s(z0))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(s(0), 0))
U27_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P95_IN_GAAAAA(s(0))
U18_GAAAAA(s(x0), le69_out_ga(s(x0), s(0))) → P67_IN_AGAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(260) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U25_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P67_IN_GAAAAA(s(0))
The remaining pairs can at least be oriented weakly.
Used ordering: Matrix interpretation [MATRO]:

POL(U18_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(s(x1)) =
/0\
\0/
+
/00\
\10/
·x1

POL(le69_out_ag(x1, x2)) =
/0\
\0/
+
/01\
\00/
·x1 +
/00\
\00/
·x2

POL(P67_IN_AGAAAA(x1)) = 0 +
[0,0]
·x1

POL(U15_ag(x1, x2)) =
/1\
\0/
+
/10\
\00/
·x1 +
/00\
\00/
·x2

POL(le69_in_ag(x1)) =
/1\
\0/
+
/10\
\00/
·x1

POL(0) =
/1\
\0/

POL(U20_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(P95_IN_AGAAAA(x1)) = 0 +
[0,0]
·x1

POL(U25_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(U22_ag(x1, x2)) =
/0\
\0/
+
/00\
\00/
·x1 +
/01\
\00/
·x2

POL(gt97_in_ag(x1)) =
/1\
\0/
+
/00\
\00/
·x1

POL(gt97_out_ag(x1, x2)) =
/0\
\0/
+
/01\
\10/
·x1 +
/00\
\00/
·x2

POL(P67_IN_GAAAAA(x1)) = 0 +
[0,0]
·x1

POL(U18_GAAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(U15_ga(x1, x2)) =
/0\
\0/
+
/01\
\11/
·x1 +
/00\
\01/
·x2

POL(le69_in_ga(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(le69_out_ga(x1, x2)) =
/0\
\0/
+
/11\
\11/
·x1 +
/00\
\00/
·x2

POL(U27_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[1,0]
·x2

POL(P95_IN_GAAAAA(x1)) = 0 +
[0,1]
·x1

POL(U25_GAAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[1,0]
·x2

POL(U22_ga(x1, x2)) =
/0\
\1/
+
/00\
\10/
·x1 +
/00\
\00/
·x2

POL(gt97_in_ga(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(gt97_out_ga(x1, x2)) =
/0\
\0/
+
/00\
\00/
·x1 +
/10\
\00/
·x2

POL(U20_GAAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(U27_GAAAAA(x1, x2)) = 0 +
[0,1]
·x1 +
[0,0]
·x2

The following usable rules [FROCOS05] were oriented:

gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

(261) Obligation:

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

U18_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P67_IN_AGAAAA(s(z0))
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
U18_AGAAAA(s(0), le69_out_ag(0, s(0))) → P67_IN_AGAAAA(s(0))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
U20_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P95_IN_AGAAAA(s(z0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
U25_AGAAAA(s(x0), gt97_out_ag(s(y_0), s(x0))) → P67_IN_GAAAAA(s(y_0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
U18_GAAAAA(s(x0), le69_out_ga(s(x0), s(y_0))) → P67_IN_AGAAAA(s(y_0))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
U20_AGAAAA(s(0), le69_out_ag(0, s(0))) → P95_IN_AGAAAA(s(0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
U27_AGAAAA(s(x0), gt97_out_ag(s(y_0), s(x0))) → P95_IN_GAAAAA(s(y_0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
U25_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P67_IN_GAAAAA(s(z0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
U20_GAAAAA(s(x0), le69_out_ga(s(x0), s(y_0))) → P95_IN_AGAAAA(s(y_0))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
U27_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P95_IN_GAAAAA(s(z0))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(s(0), 0))
U27_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P95_IN_GAAAAA(s(0))
U18_GAAAAA(s(x0), le69_out_ga(s(x0), s(0))) → P67_IN_AGAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(262) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U18_GAAAAA(s(x0), le69_out_ga(s(x0), s(0))) → P67_IN_AGAAAA(s(0))
The remaining pairs can at least be oriented weakly.
Used ordering: Matrix interpretation [MATRO]:

POL(U18_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(s(x1)) =
/0\
\0/
+
/01\
\00/
·x1

POL(le69_out_ag(x1, x2)) =
/0\
\0/
+
/00\
\10/
·x1 +
/00\
\00/
·x2

POL(P67_IN_AGAAAA(x1)) = 0 +
[0,0]
·x1

POL(U15_ag(x1, x2)) =
/0\
\0/
+
/11\
\01/
·x1 +
/00\
\00/
·x2

POL(le69_in_ag(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(0) =
/0\
\1/

POL(U20_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(P95_IN_AGAAAA(x1)) = 0 +
[0,0]
·x1

POL(U25_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[1,0]
·x2

POL(U22_ag(x1, x2)) =
/0\
\0/
+
/00\
\00/
·x1 +
/01\
\00/
·x2

POL(gt97_in_ag(x1)) =
/1\
\0/
+
/01\
\00/
·x1

POL(gt97_out_ag(x1, x2)) =
/0\
\0/
+
/10\
\01/
·x1 +
/00\
\00/
·x2

POL(P67_IN_GAAAAA(x1)) = 0 +
[1,0]
·x1

POL(U18_GAAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,1]
·x2

POL(U15_ga(x1, x2)) =
/0\
\0/
+
/00\
\00/
·x1 +
/00\
\10/
·x2

POL(le69_in_ga(x1)) =
/0\
\1/
+
/01\
\10/
·x1

POL(le69_out_ga(x1, x2)) =
/0\
\0/
+
/00\
\00/
·x1 +
/01\
\10/
·x2

POL(U27_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[1,0]
·x2

POL(P95_IN_GAAAAA(x1)) = 0 +
[1,0]
·x1

POL(U25_GAAAAA(x1, x2)) = 0 +
[1,0]
·x1 +
[0,0]
·x2

POL(U22_ga(x1, x2)) =
/0\
\0/
+
/01\
\11/
·x1 +
/00\
\00/
·x2

POL(gt97_in_ga(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(gt97_out_ga(x1, x2)) =
/0\
\0/
+
/00\
\00/
·x1 +
/00\
\00/
·x2

POL(U20_GAAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(U27_GAAAAA(x1, x2)) = 0 +
[1,0]
·x1 +
[0,0]
·x2

The following usable rules [FROCOS05] were oriented:

gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))

(263) Obligation:

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

U18_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P67_IN_AGAAAA(s(z0))
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
U18_AGAAAA(s(0), le69_out_ag(0, s(0))) → P67_IN_AGAAAA(s(0))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
U20_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P95_IN_AGAAAA(s(z0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
U25_AGAAAA(s(x0), gt97_out_ag(s(y_0), s(x0))) → P67_IN_GAAAAA(s(y_0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
U18_GAAAAA(s(x0), le69_out_ga(s(x0), s(y_0))) → P67_IN_AGAAAA(s(y_0))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
U20_AGAAAA(s(0), le69_out_ag(0, s(0))) → P95_IN_AGAAAA(s(0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
U27_AGAAAA(s(x0), gt97_out_ag(s(y_0), s(x0))) → P95_IN_GAAAAA(s(y_0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
U25_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P67_IN_GAAAAA(s(z0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
U20_GAAAAA(s(x0), le69_out_ga(s(x0), s(y_0))) → P95_IN_AGAAAA(s(y_0))
P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(s(0), 0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
U27_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P95_IN_GAAAAA(s(z0))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(s(0), 0))
U27_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P95_IN_GAAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(264) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


P95_IN_GAAAAA(s(0)) → U25_GAAAAA(s(0), gt97_out_ga(s(0), 0))
The remaining pairs can at least be oriented weakly.
Used ordering: Matrix interpretation [MATRO]:

POL(U18_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(s(x1)) =
/0\
\0/
+
/00\
\10/
·x1

POL(le69_out_ag(x1, x2)) =
/0\
\0/
+
/01\
\00/
·x1 +
/00\
\00/
·x2

POL(P67_IN_AGAAAA(x1)) = 0 +
[0,0]
·x1

POL(U15_ag(x1, x2)) =
/0\
\0/
+
/10\
\00/
·x1 +
/00\
\00/
·x2

POL(le69_in_ag(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(0) =
/1\
\0/

POL(U20_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(P95_IN_AGAAAA(x1)) = 0 +
[0,0]
·x1

POL(U25_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(U22_ag(x1, x2)) =
/0\
\0/
+
/00\
\00/
·x1 +
/01\
\00/
·x2

POL(gt97_in_ag(x1)) =
/1\
\0/
+
/00\
\00/
·x1

POL(gt97_out_ag(x1, x2)) =
/0\
\0/
+
/01\
\10/
·x1 +
/00\
\00/
·x2

POL(P67_IN_GAAAAA(x1)) = 0 +
[0,0]
·x1

POL(U18_GAAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(U15_ga(x1, x2)) =
/0\
\0/
+
/10\
\10/
·x1 +
/00\
\00/
·x2

POL(le69_in_ga(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(le69_out_ga(x1, x2)) =
/1\
\1/
+
/10\
\00/
·x1 +
/00\
\00/
·x2

POL(U27_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[1,0]
·x2

POL(P95_IN_GAAAAA(x1)) = 0 +
[0,1]
·x1

POL(U25_GAAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(U22_ga(x1, x2)) =
/0\
\0/
+
/00\
\10/
·x1 +
/00\
\00/
·x2

POL(gt97_in_ga(x1)) =
/1\
\1/
+
/00\
\00/
·x1

POL(gt97_out_ga(x1, x2)) =
/0\
\0/
+
/00\
\00/
·x1 +
/01\
\00/
·x2

POL(U20_GAAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(U27_GAAAAA(x1, x2)) = 0 +
[0,1]
·x1 +
[0,0]
·x2

The following usable rules [FROCOS05] were oriented:

gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))

(265) Obligation:

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

U18_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P67_IN_AGAAAA(s(z0))
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
U18_AGAAAA(s(0), le69_out_ag(0, s(0))) → P67_IN_AGAAAA(s(0))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
U20_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P95_IN_AGAAAA(s(z0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
U25_AGAAAA(s(x0), gt97_out_ag(s(y_0), s(x0))) → P67_IN_GAAAAA(s(y_0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
U18_GAAAAA(s(x0), le69_out_ga(s(x0), s(y_0))) → P67_IN_AGAAAA(s(y_0))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
U20_AGAAAA(s(0), le69_out_ag(0, s(0))) → P95_IN_AGAAAA(s(0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
U27_AGAAAA(s(x0), gt97_out_ag(s(y_0), s(x0))) → P95_IN_GAAAAA(s(y_0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
U25_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P67_IN_GAAAAA(s(z0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
U20_GAAAAA(s(x0), le69_out_ga(s(x0), s(y_0))) → P95_IN_AGAAAA(s(y_0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
U27_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P95_IN_GAAAAA(s(z0))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(s(0), 0))
U27_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P95_IN_GAAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(266) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U20_AGAAAA(s(0), le69_out_ag(0, s(0))) → P95_IN_AGAAAA(s(0))
The remaining pairs can at least be oriented weakly.
Used ordering: Matrix interpretation [MATRO]:

POL(U18_AGAAAA(x1, x2)) = 0 +
[0,1]
·x1 +
[0,0]
·x2

POL(s(x1)) =
/0\
\0/
+
/00\
\10/
·x1

POL(le69_out_ag(x1, x2)) =
/0\
\0/
+
/10\
\10/
·x1 +
/00\
\00/
·x2

POL(P67_IN_AGAAAA(x1)) = 0 +
[0,1]
·x1

POL(U15_ag(x1, x2)) =
/0\
\0/
+
/01\
\00/
·x1 +
/00\
\00/
·x2

POL(le69_in_ag(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(0) =
/1\
\0/

POL(U20_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,1]
·x2

POL(P95_IN_AGAAAA(x1)) = 0 +
[0,0]
·x1

POL(U25_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,1]
·x2

POL(U22_ag(x1, x2)) =
/0\
\0/
+
/00\
\00/
·x1 +
/00\
\10/
·x2

POL(gt97_in_ag(x1)) =
/0\
\0/
+
/00\
\10/
·x1

POL(gt97_out_ag(x1, x2)) =
/0\
\0/
+
/10\
\01/
·x1 +
/00\
\00/
·x2

POL(P67_IN_GAAAAA(x1)) = 0 +
[0,1]
·x1

POL(U18_GAAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[1,0]
·x2

POL(U15_ga(x1, x2)) =
/0\
\0/
+
/00\
\00/
·x1 +
/01\
\00/
·x2

POL(le69_in_ga(x1)) =
/0\
\0/
+
/11\
\10/
·x1

POL(le69_out_ga(x1, x2)) =
/0\
\0/
+
/00\
\00/
·x1 +
/01\
\10/
·x2

POL(U27_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(P95_IN_GAAAAA(x1)) = 0 +
[0,0]
·x1

POL(U25_GAAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[1,0]
·x2

POL(U22_ga(x1, x2)) =
/0\
\0/
+
/00\
\00/
·x1 +
/01\
\00/
·x2

POL(gt97_in_ga(x1)) =
/1\
\0/
+
/00\
\00/
·x1

POL(gt97_out_ga(x1, x2)) =
/0\
\0/
+
/01\
\10/
·x1 +
/00\
\00/
·x2

POL(U20_GAAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(U27_GAAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

The following usable rules [FROCOS05] were oriented:

U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

(267) Obligation:

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

U18_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P67_IN_AGAAAA(s(z0))
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
U18_AGAAAA(s(0), le69_out_ag(0, s(0))) → P67_IN_AGAAAA(s(0))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
U20_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P95_IN_AGAAAA(s(z0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
U25_AGAAAA(s(x0), gt97_out_ag(s(y_0), s(x0))) → P67_IN_GAAAAA(s(y_0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
U18_GAAAAA(s(x0), le69_out_ga(s(x0), s(y_0))) → P67_IN_AGAAAA(s(y_0))
P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
U27_AGAAAA(s(x0), gt97_out_ag(s(y_0), s(x0))) → P95_IN_GAAAAA(s(y_0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
U25_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P67_IN_GAAAAA(s(z0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
U20_GAAAAA(s(x0), le69_out_ga(s(x0), s(y_0))) → P95_IN_AGAAAA(s(y_0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
U27_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P95_IN_GAAAAA(s(z0))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(s(0), 0))
U27_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P95_IN_GAAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(268) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


P67_IN_AGAAAA(s(0)) → U20_AGAAAA(s(0), le69_out_ag(0, s(0)))
The remaining pairs can at least be oriented weakly.
Used ordering: Matrix interpretation [MATRO]:

POL(U18_AGAAAA(x1, x2)) = 0 +
[1,0]
·x1 +
[0,0]
·x2

POL(s(x1)) =
/0\
\0/
+
/01\
\00/
·x1

POL(le69_out_ag(x1, x2)) =
/0\
\0/
+
/00\
\10/
·x1 +
/00\
\00/
·x2

POL(P67_IN_AGAAAA(x1)) = 0 +
[1,0]
·x1

POL(U15_ag(x1, x2)) =
/0\
\0/
+
/10\
\00/
·x1 +
/00\
\00/
·x2

POL(le69_in_ag(x1)) =
/0\
\0/
+
/00\
\00/
·x1

POL(0) =
/0\
\1/

POL(U20_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(P95_IN_AGAAAA(x1)) = 0 +
[0,0]
·x1

POL(U25_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[1,0]
·x2

POL(U22_ag(x1, x2)) =
/0\
\0/
+
/00\
\00/
·x1 +
/01\
\00/
·x2

POL(gt97_in_ag(x1)) =
/0\
\0/
+
/01\
\00/
·x1

POL(gt97_out_ag(x1, x2)) =
/0\
\0/
+
/10\
\01/
·x1 +
/00\
\00/
·x2

POL(P67_IN_GAAAAA(x1)) = 0 +
[1,0]
·x1

POL(U18_GAAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,1]
·x2

POL(U15_ga(x1, x2)) =
/0\
\0/
+
/00\
\00/
·x1 +
/00\
\10/
·x2

POL(le69_in_ga(x1)) =
/0\
\0/
+
/01\
\11/
·x1

POL(le69_out_ga(x1, x2)) =
/0\
\0/
+
/00\
\00/
·x1 +
/01\
\10/
·x2

POL(U27_AGAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(P95_IN_GAAAAA(x1)) = 0 +
[0,0]
·x1

POL(U25_GAAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[1,0]
·x2

POL(U22_ga(x1, x2)) =
/0\
\0/
+
/00\
\00/
·x1 +
/01\
\00/
·x2

POL(gt97_in_ga(x1)) =
/1\
\0/
+
/00\
\00/
·x1

POL(gt97_out_ga(x1, x2)) =
/0\
\0/
+
/10\
\01/
·x1 +
/00\
\00/
·x2

POL(U20_GAAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

POL(U27_GAAAAA(x1, x2)) = 0 +
[0,0]
·x1 +
[0,0]
·x2

The following usable rules [FROCOS05] were oriented:

gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

(269) Obligation:

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

U18_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P67_IN_AGAAAA(s(z0))
P67_IN_AGAAAA(s(x0)) → U18_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
U18_AGAAAA(s(0), le69_out_ag(0, s(0))) → P67_IN_AGAAAA(s(0))
P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
P67_IN_AGAAAA(s(x0)) → U20_AGAAAA(s(x0), U15_ag(x0, le69_in_ag(x0)))
U20_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P95_IN_AGAAAA(s(z0))
P95_IN_AGAAAA(s(x0)) → U25_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
U25_AGAAAA(s(x0), gt97_out_ag(s(y_0), s(x0))) → P67_IN_GAAAAA(s(y_0))
P67_IN_GAAAAA(s(x0)) → U18_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
U18_GAAAAA(s(x0), le69_out_ga(s(x0), s(y_0))) → P67_IN_AGAAAA(s(y_0))
P95_IN_AGAAAA(s(x0)) → U27_AGAAAA(s(x0), U22_ag(x0, gt97_in_ag(x0)))
U27_AGAAAA(s(x0), gt97_out_ag(s(y_0), s(x0))) → P95_IN_GAAAAA(s(y_0))
P95_IN_GAAAAA(s(x0)) → U25_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
U25_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P67_IN_GAAAAA(s(z0))
P67_IN_GAAAAA(s(x0)) → U20_GAAAAA(s(x0), U15_ga(x0, le69_in_ga(x0)))
U20_GAAAAA(s(x0), le69_out_ga(s(x0), s(y_0))) → P95_IN_AGAAAA(s(y_0))
P95_IN_GAAAAA(s(x0)) → U27_GAAAAA(s(x0), U22_ga(x0, gt97_in_ga(x0)))
U27_GAAAAA(s(z0), gt97_out_ga(s(z0), x1)) → P95_IN_GAAAAA(s(z0))
P95_IN_GAAAAA(s(0)) → U27_GAAAAA(s(0), gt97_out_ga(s(0), 0))
U27_GAAAAA(s(0), gt97_out_ga(s(0), 0)) → P95_IN_GAAAAA(s(0))

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(270) 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 = P67_IN_AGAAAA(s(0)) evaluates to t =P67_IN_AGAAAA(s(0))

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




Rewriting sequence

P67_IN_AGAAAA(s(0))U18_AGAAAA(s(0), le69_out_ag(0, s(0)))
with rule P67_IN_AGAAAA(s(0)) → U18_AGAAAA(s(0), le69_out_ag(0, s(0))) at position [] and matcher [ ]

U18_AGAAAA(s(0), le69_out_ag(0, s(0)))P67_IN_AGAAAA(s(0))
with rule U18_AGAAAA(s(z0), le69_out_ag(x1, s(z0))) → P67_IN_AGAAAA(s(z0))

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.



(271) NO

(272) Obligation:

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

P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0, 0))
U18_AGAAAA(0, le69_out_ag(0, 0)) → P67_IN_AGAAAA(0)

The TRS R consists of the following rules:

le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(273) UsableRulesProof (EQUIVALENT transformation)

As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R.

(274) Obligation:

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

P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0, 0))
U18_AGAAAA(0, le69_out_ag(0, 0)) → P67_IN_AGAAAA(0)

R is empty.
The set Q consists of the following terms:

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(275) QReductionProof (EQUIVALENT transformation)

We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN].

le69_in_ag(x0)
gt97_in_ag(x0)
le69_in_ga(x0)
gt97_in_ga(x0)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

(276) Obligation:

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

P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0, 0))
U18_AGAAAA(0, le69_out_ag(0, 0)) → P67_IN_AGAAAA(0)

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

(277) 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 = U18_AGAAAA(0, le69_out_ag(0, 0)) evaluates to t =U18_AGAAAA(0, le69_out_ag(0, 0))

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




Rewriting sequence

U18_AGAAAA(0, le69_out_ag(0, 0))P67_IN_AGAAAA(0)
with rule U18_AGAAAA(0, le69_out_ag(0, 0)) → P67_IN_AGAAAA(0) at position [] and matcher [ ]

P67_IN_AGAAAA(0)U18_AGAAAA(0, le69_out_ag(0, 0))
with rule P67_IN_AGAAAA(0) → U18_AGAAAA(0, le69_out_ag(0, 0))

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.



(278) NO

(279) Obligation:

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

LE69_IN_AA(s(T270), s(T271)) → LE69_IN_AA(T270, T271)

The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa(x1)
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x1, x2, x3, x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x2, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x1, x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x2, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x1, x2, x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x2, x3, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x1, x2, x3, x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x2, x3, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x1, x2, x3, x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x2, x3, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x1, x2, x3, x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x1, x2, x3, x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa(x1)
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x1, x2, x3, x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x1, x2, x3, x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x1, x2, x3, x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x1, x2, x3, x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x1, x2, x3, x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x1, x2, x3, x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x1, x2, x3, x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x2, x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x2, x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1, x2)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1, x2)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x2, x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x2, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x2, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x2, x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x2, x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1, x2)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1, x2)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x2, x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x2, x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x2, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x1, x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x1, x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x1, x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x1, x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x1, x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x1, x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x1, x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x1, x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x1, x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x2, x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x2, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x1, x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x1, x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x1, x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x1, x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x1, x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x1, x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x1, x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x1, x2, x3, x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x1, x2, x3, x7)
LE69_IN_AA(x1, x2)  =  LE69_IN_AA

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

(280) UsableRulesProof (EQUIVALENT transformation)

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

(281) Obligation:

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

LE69_IN_AA(s(T270), s(T271)) → LE69_IN_AA(T270, T271)

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

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

(282) PiDPToQDPProof (SOUND transformation)

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

(283) Obligation:

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

LE69_IN_AALE69_IN_AA

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

(284) 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 = LE69_IN_AA evaluates to t =LE69_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 LE69_IN_AA to LE69_IN_AA.



(285) NO

(286) Obligation:

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

SPLIT21_IN_GAAA(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → SPLIT21_IN_GAAA(T93, X163, X162, T96)

The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa(x1)
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x1, x2, x3, x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x2, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x1, x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x2, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x1, x2, x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x2, x3, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x1, x2, x3, x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x2, x3, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x1, x2, x3, x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x2, x3, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x1, x2, x3, x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x1, x2, x3, x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa(x1)
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x1, x2, x3, x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x1, x2, x3, x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x1, x2, x3, x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x1, x2, x3, x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x1, x2, x3, x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x1, x2, x3, x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x1, x2, x3, x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x2, x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x2, x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1, x2)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1, x2)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x2, x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x2, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x2, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x2, x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x2, x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1, x2)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1, x2)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x2, x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x2, x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x2, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x1, x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x1, x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x1, x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x1, x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x1, x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x1, x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x1, x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x1, x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x1, x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x2, x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x2, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x1, x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x1, x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x1, x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x1, x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x1, x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x1, x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x1, x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x1, x2, x3, x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x1, x2, x3, x7)
SPLIT21_IN_GAAA(x1, x2, x3, x4)  =  SPLIT21_IN_GAAA(x1)

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

(287) UsableRulesProof (EQUIVALENT transformation)

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

(288) Obligation:

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

SPLIT21_IN_GAAA(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → SPLIT21_IN_GAAA(T93, X163, X162, T96)

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

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

(289) PiDPToQDPProof (SOUND transformation)

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

(290) Obligation:

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

SPLIT21_IN_GAAA(.(T92, T93)) → SPLIT21_IN_GAAA(T93)

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

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

  • SPLIT21_IN_GAAA(.(T92, T93)) → SPLIT21_IN_GAAA(T93)
    The graph contains the following edges 1 > 1

(292) YES

(293) Obligation:

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

MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_GAA(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_GAA(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → MERGESORT33_IN_GAA(T156, X232, T158)
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_GAA(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_GAA(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → MERGESORT33_IN_GAA(T157, X233, T168)
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_GAA(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_GAA(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_GAA(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_GAA(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → MERGESORT33_IN_GAA(T157, T174, T176)
U9_GAA(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → MERGESORT33_IN_GAA(T156, T167, T176)
U6_GAA(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → MERGESORT33_IN_GAA(T156, T167, T168)

The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa(x1)
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x1, x2, x3, x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x2, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x1, x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x2, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x1, x2, x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x2, x3, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x1, x2, x3, x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x2, x3, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x1, x2, x3, x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x2, x3, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x1, x2, x3, x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x1, x2, x3, x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa(x1)
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x1, x2, x3, x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x1, x2, x3, x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x1, x2, x3, x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x1, x2, x3, x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x1, x2, x3, x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x1, x2, x3, x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x1, x2, x3, x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x2, x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x2, x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1, x2)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1, x2)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x2, x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x2, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x2, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x2, x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x2, x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1, x2)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1, x2)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x2, x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x2, x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x2, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x1, x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x1, x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x1, x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x1, x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x1, x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x1, x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x1, x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x1, x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x1, x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x2, x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x2, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x1, x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x1, x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x1, x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x1, x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x1, x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x1, x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x1, x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x1, x2, x3, x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x1, x2, x3, x7)
MERGESORT33_IN_GAA(x1, x2, x3)  =  MERGESORT33_IN_GAA(x1)
U4_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U4_GAA(x1, x2, x3, x7)
U6_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U6_GAA(x1, x2, x3, x7)
U7_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_GAA(x1, x2, x3, x7, x8)
U9_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U9_GAA(x1, x2, x3, x7)
U10_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_GAA(x1, x2, x3, x7, x8)

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

(294) UsableRulesProof (EQUIVALENT transformation)

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

(295) Obligation:

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

MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_GAA(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_GAA(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → MERGESORT33_IN_GAA(T156, X232, T158)
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_GAA(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_GAA(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → MERGESORT33_IN_GAA(T157, X233, T168)
MERGESORT33_IN_GAA(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_GAA(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_GAA(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_GAA(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_GAA(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → MERGESORT33_IN_GAA(T157, T174, T176)
U9_GAA(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → MERGESORT33_IN_GAA(T156, T167, T176)
U6_GAA(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → MERGESORT33_IN_GAA(T156, T167, T168)

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The argument filtering Pi contains the following mapping:
[]  =  []
.(x1, x2)  =  .(x1, x2)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x2, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x1, x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x2, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x1, x2, x3, x4)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa(x1)
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x1, x2, x3, x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x1, x2, x3, x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x1, x2, x3, x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x1, x2, x3, x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x1, x2, x3, x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x1, x2, x3, x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x1, x2, x3, x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x2, x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x2, x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1, x2)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1, x2)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x2, x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x2, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x2, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x2, x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x2, x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1, x2)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1, x2)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x2, x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x2, x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x2, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x1, x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x1, x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x1, x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x1, x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x1, x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x1, x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x1, x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x1, x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x1, x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x2, x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x2, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x1, x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x1, x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x1, x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x1, x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x1, x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x1, x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x1, x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x7)
MERGESORT33_IN_GAA(x1, x2, x3)  =  MERGESORT33_IN_GAA(x1)
U4_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U4_GAA(x1, x2, x3, x7)
U6_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U6_GAA(x1, x2, x3, x7)
U7_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_GAA(x1, x2, x3, x7, x8)
U9_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U9_GAA(x1, x2, x3, x7)
U10_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_GAA(x1, x2, x3, x7, x8)

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

(296) PiDPToQDPProof (SOUND transformation)

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

(297) Obligation:

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

MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
U4_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
U6_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U7_GAA(T144, T145, T146, T157, mergesort33_in_gaa(T156))
U7_GAA(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → MERGESORT33_IN_GAA(T157)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
U9_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U10_GAA(T144, T145, T146, T157, mergesort33_in_gaa(T156))
U10_GAA(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → MERGESORT33_IN_GAA(T157)
U9_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, T73, split21_in_gaaa(T73))
mergesort33_in_gaa([]) → mergesort33_out_gaa([])
mergesort33_in_gaa(.(T132, [])) → mergesort33_out_gaa(.(T132, []))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U3_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U4_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U6_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U9_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
U2_ggaaa(T72, T73, split21_out_gaaa(T73, X125, X124)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125)
U3_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), X230, X231)) → mergesort33_out_gaa(.(T144, .(T145, T146)))
U4_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U5_gaa(T144, T145, T146, mergesort33_in_gaa(T156))
U6_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U7_gaa(T144, T145, T146, T157, mergesort33_in_gaa(T156))
U9_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U10_gaa(T144, T145, T146, T157, mergesort33_in_gaa(T156))
split21_in_gaaa([]) → split21_out_gaaa([], [], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, T93, split21_in_gaaa(T93))
U5_gaa(T144, T145, T146, mergesort33_out_gaa(T156)) → mergesort33_out_gaa(.(T144, .(T145, T146)))
U7_gaa(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → U8_gaa(T144, T145, T146, mergesort33_in_gaa(T157))
U10_gaa(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → U11_gaa(T144, T145, T146, mergesort33_in_gaa(T157))
U1_gaaa(T92, T93, split21_out_gaaa(T93, X163, X162)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163)
U8_gaa(T144, T145, T146, mergesort33_out_gaa(T157)) → mergesort33_out_gaa(.(T144, .(T145, T146)))
U11_gaa(T144, T145, T146, mergesort33_out_gaa(T157)) → U12_gaa(T144, T145, T146, merge34_in_aaaaa)
U12_gaa(T144, T145, T146, merge34_out_aaaaa) → mergesort33_out_gaa(.(T144, .(T145, T146)))
merge34_in_aaaaamerge34_out_aaaaa
merge34_in_aaaaaU13_aaaaa(p67_in_aaaaaa)
merge34_in_aaaaaU14_aaaaa(p95_in_aaaaaa)
U13_aaaaa(p67_out_aaaaaa(T249, T251)) → merge34_out_aaaaa
U14_aaaaa(p95_out_aaaaaa(T473, T475)) → merge34_out_aaaaa
p67_in_aaaaaaU16_aaaaaa(le69_in_aa)
p67_in_aaaaaaU17_aaaaaa(le69_in_aa)
p67_in_aaaaaaU18_aaaaaa(le69_in_aa)
p67_in_aaaaaaU20_aaaaaa(le69_in_aa)
p95_in_aaaaaaU23_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU24_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU25_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU27_aaaaaa(gt97_in_aa)
U16_aaaaaa(le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251)
U17_aaaaaa(le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292)
U18_aaaaaa(le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_aaaaaa(le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_aaaaaa(gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351)
U24_aaaaaa(gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351)
U25_aaaaaa(gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_aaaaaa(gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_aaU15_aa(le69_in_aa)
le69_in_aale69_out_aa(0, s(0))
le69_in_aale69_out_aa(0, 0)
U19_aaaaaa(T249, T326, p67_out_agaaaa(T324, T326)) → p67_out_aaaaaa(T249, T326)
U21_aaaaaa(T249, T351, p95_out_agaaaa(T349, T351)) → p67_out_aaaaaa(T249, T351)
gt97_in_aaU22_aa(gt97_in_aa)
gt97_in_aagt97_out_aa(s(0), 0)
U26_aaaaaa(T423, T351, p67_out_gaaaaa(T423, T425)) → p95_out_aaaaaa(T423, T351)
U28_aaaaaa(T448, T351, p95_out_gaaaaa(T448, T450)) → p95_out_aaaaaa(T448, T351)
U15_aa(le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
p67_in_agaaaa(T251) → U16_agaaaa(T251, le69_in_ag(T251))
p67_in_agaaaa(T292) → U17_agaaaa(T292, le69_in_ag(T292))
p67_in_agaaaa(T326) → U18_agaaaa(T326, le69_in_ag(T326))
p67_in_agaaaa(T351) → U20_agaaaa(T351, le69_in_ag(T351))
p95_in_agaaaa(T351) → U23_agaaaa(T351, gt97_in_ag(T351))
p95_in_agaaaa(T351) → U24_agaaaa(T351, gt97_in_ag(T351))
p95_in_agaaaa(T351) → U25_agaaaa(T351, gt97_in_ag(T351))
p95_in_agaaaa(T351) → U27_agaaaa(T351, gt97_in_ag(T351))
U22_aa(gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
p67_in_gaaaaa(T249) → U16_gaaaaa(T249, le69_in_ga(T249))
p67_in_gaaaaa(T249) → U17_gaaaaa(T249, le69_in_ga(T249))
p67_in_gaaaaa(T249) → U18_gaaaaa(T249, le69_in_ga(T249))
p67_in_gaaaaa(T249) → U20_gaaaaa(T249, le69_in_ga(T249))
p95_in_gaaaaa(T349) → U23_gaaaaa(T349, gt97_in_ga(T349))
p95_in_gaaaaa(T392) → U24_gaaaaa(T392, gt97_in_ga(T392))
p95_in_gaaaaa(T423) → U25_gaaaaa(T423, gt97_in_ga(T423))
p95_in_gaaaaa(T448) → U27_gaaaaa(T448, gt97_in_ga(T448))
U16_agaaaa(T251, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251)
U17_agaaaa(T292, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292)
U18_agaaaa(T326, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, p67_in_agaaaa(T326))
U20_agaaaa(T351, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, p95_in_agaaaa(T351))
U23_agaaaa(T351, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351)
U24_agaaaa(T351, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351)
U25_agaaaa(T351, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_agaaaa(T351, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, p95_in_gaaaaa(T448))
U16_gaaaaa(T249, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251)
U17_gaaaaa(T249, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292)
U18_gaaaaa(T249, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_gaaaaa(T249, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_gaaaaa(T349, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351)
U24_gaaaaa(T392, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351)
U25_gaaaaa(T423, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_gaaaaa(T448, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
U19_agaaaa(T249, T326, p67_out_agaaaa(T324, T326)) → p67_out_agaaaa(T249, T326)
U21_agaaaa(T249, T351, p95_out_agaaaa(T349, T351)) → p67_out_agaaaa(T249, T351)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
U26_agaaaa(T423, T351, p67_out_gaaaaa(T423, T425)) → p95_out_agaaaa(T423, T351)
U28_agaaaa(T448, T351, p95_out_gaaaaa(T448, T450)) → p95_out_agaaaa(T448, T351)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
U19_gaaaaa(T249, T326, p67_out_agaaaa(T324, T326)) → p67_out_gaaaaa(T249, T326)
U21_gaaaaa(T249, T351, p95_out_agaaaa(T349, T351)) → p67_out_gaaaaa(T249, T351)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U26_gaaaaa(T423, T351, p67_out_gaaaaa(T423, T425)) → p95_out_gaaaaa(T423, T351)
U28_gaaaaa(T448, T351, p95_out_gaaaaa(T448, T450)) → p95_out_gaaaaa(T448, T351)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
mergesort33_in_gaa(x0)
U2_ggaaa(x0, x1, x2)
U3_gaa(x0, x1, x2, x3)
U4_gaa(x0, x1, x2, x3)
U6_gaa(x0, x1, x2, x3)
U9_gaa(x0, x1, x2, x3)
split21_in_gaaa(x0)
U5_gaa(x0, x1, x2, x3)
U7_gaa(x0, x1, x2, x3, x4)
U10_gaa(x0, x1, x2, x3, x4)
U1_gaaa(x0, x1, x2)
U8_gaa(x0, x1, x2, x3)
U11_gaa(x0, x1, x2, x3)
U12_gaa(x0, x1, x2, x3)
merge34_in_aaaaa
U13_aaaaa(x0)
U14_aaaaa(x0)
p67_in_aaaaaa
p95_in_aaaaaa
U16_aaaaaa(x0)
U17_aaaaaa(x0)
U18_aaaaaa(x0)
U20_aaaaaa(x0)
U23_aaaaaa(x0)
U24_aaaaaa(x0)
U25_aaaaaa(x0)
U27_aaaaaa(x0)
le69_in_aa
U19_aaaaaa(x0, x1, x2)
U21_aaaaaa(x0, x1, x2)
gt97_in_aa
U26_aaaaaa(x0, x1, x2)
U28_aaaaaa(x0, x1, x2)
U15_aa(x0)
p67_in_agaaaa(x0)
p95_in_agaaaa(x0)
U22_aa(x0)
p67_in_gaaaaa(x0)
p95_in_gaaaaa(x0)
U16_agaaaa(x0, x1)
U17_agaaaa(x0, x1)
U18_agaaaa(x0, x1)
U20_agaaaa(x0, x1)
U23_agaaaa(x0, x1)
U24_agaaaa(x0, x1)
U25_agaaaa(x0, x1)
U27_agaaaa(x0, x1)
U16_gaaaaa(x0, x1)
U17_gaaaaa(x0, x1)
U18_gaaaaa(x0, x1)
U20_gaaaaa(x0, x1)
U23_gaaaaa(x0, x1)
U24_gaaaaa(x0, x1)
U25_gaaaaa(x0, x1)
U27_gaaaaa(x0, x1)
le69_in_ag(x0)
U19_agaaaa(x0, x1, x2)
U21_agaaaa(x0, x1, x2)
gt97_in_ag(x0)
U26_agaaaa(x0, x1, x2)
U28_agaaaa(x0, x1, x2)
le69_in_ga(x0)
U19_gaaaaa(x0, x1, x2)
U21_gaaaaa(x0, x1, x2)
gt97_in_ga(x0)
U26_gaaaaa(x0, x1, x2)
U28_gaaaaa(x0, x1, x2)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(298) Rewriting (EQUIVALENT transformation)

By rewriting [LPAR04] the rule MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146))) at position [3] we obtained the following new rules [LPAR04]:

MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), split21_in_gaaa(.(T145, T146))))

(299) Obligation:

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

U4_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
U6_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U7_GAA(T144, T145, T146, T157, mergesort33_in_gaa(T156))
U7_GAA(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → MERGESORT33_IN_GAA(T157)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
U9_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U10_GAA(T144, T145, T146, T157, mergesort33_in_gaa(T156))
U10_GAA(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → MERGESORT33_IN_GAA(T157)
U9_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), split21_in_gaaa(.(T145, T146))))

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, T73, split21_in_gaaa(T73))
mergesort33_in_gaa([]) → mergesort33_out_gaa([])
mergesort33_in_gaa(.(T132, [])) → mergesort33_out_gaa(.(T132, []))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U3_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U4_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U6_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U9_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
U2_ggaaa(T72, T73, split21_out_gaaa(T73, X125, X124)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125)
U3_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), X230, X231)) → mergesort33_out_gaa(.(T144, .(T145, T146)))
U4_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U5_gaa(T144, T145, T146, mergesort33_in_gaa(T156))
U6_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U7_gaa(T144, T145, T146, T157, mergesort33_in_gaa(T156))
U9_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U10_gaa(T144, T145, T146, T157, mergesort33_in_gaa(T156))
split21_in_gaaa([]) → split21_out_gaaa([], [], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, T93, split21_in_gaaa(T93))
U5_gaa(T144, T145, T146, mergesort33_out_gaa(T156)) → mergesort33_out_gaa(.(T144, .(T145, T146)))
U7_gaa(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → U8_gaa(T144, T145, T146, mergesort33_in_gaa(T157))
U10_gaa(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → U11_gaa(T144, T145, T146, mergesort33_in_gaa(T157))
U1_gaaa(T92, T93, split21_out_gaaa(T93, X163, X162)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163)
U8_gaa(T144, T145, T146, mergesort33_out_gaa(T157)) → mergesort33_out_gaa(.(T144, .(T145, T146)))
U11_gaa(T144, T145, T146, mergesort33_out_gaa(T157)) → U12_gaa(T144, T145, T146, merge34_in_aaaaa)
U12_gaa(T144, T145, T146, merge34_out_aaaaa) → mergesort33_out_gaa(.(T144, .(T145, T146)))
merge34_in_aaaaamerge34_out_aaaaa
merge34_in_aaaaaU13_aaaaa(p67_in_aaaaaa)
merge34_in_aaaaaU14_aaaaa(p95_in_aaaaaa)
U13_aaaaa(p67_out_aaaaaa(T249, T251)) → merge34_out_aaaaa
U14_aaaaa(p95_out_aaaaaa(T473, T475)) → merge34_out_aaaaa
p67_in_aaaaaaU16_aaaaaa(le69_in_aa)
p67_in_aaaaaaU17_aaaaaa(le69_in_aa)
p67_in_aaaaaaU18_aaaaaa(le69_in_aa)
p67_in_aaaaaaU20_aaaaaa(le69_in_aa)
p95_in_aaaaaaU23_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU24_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU25_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU27_aaaaaa(gt97_in_aa)
U16_aaaaaa(le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251)
U17_aaaaaa(le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292)
U18_aaaaaa(le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_aaaaaa(le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_aaaaaa(gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351)
U24_aaaaaa(gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351)
U25_aaaaaa(gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_aaaaaa(gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_aaU15_aa(le69_in_aa)
le69_in_aale69_out_aa(0, s(0))
le69_in_aale69_out_aa(0, 0)
U19_aaaaaa(T249, T326, p67_out_agaaaa(T324, T326)) → p67_out_aaaaaa(T249, T326)
U21_aaaaaa(T249, T351, p95_out_agaaaa(T349, T351)) → p67_out_aaaaaa(T249, T351)
gt97_in_aaU22_aa(gt97_in_aa)
gt97_in_aagt97_out_aa(s(0), 0)
U26_aaaaaa(T423, T351, p67_out_gaaaaa(T423, T425)) → p95_out_aaaaaa(T423, T351)
U28_aaaaaa(T448, T351, p95_out_gaaaaa(T448, T450)) → p95_out_aaaaaa(T448, T351)
U15_aa(le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
p67_in_agaaaa(T251) → U16_agaaaa(T251, le69_in_ag(T251))
p67_in_agaaaa(T292) → U17_agaaaa(T292, le69_in_ag(T292))
p67_in_agaaaa(T326) → U18_agaaaa(T326, le69_in_ag(T326))
p67_in_agaaaa(T351) → U20_agaaaa(T351, le69_in_ag(T351))
p95_in_agaaaa(T351) → U23_agaaaa(T351, gt97_in_ag(T351))
p95_in_agaaaa(T351) → U24_agaaaa(T351, gt97_in_ag(T351))
p95_in_agaaaa(T351) → U25_agaaaa(T351, gt97_in_ag(T351))
p95_in_agaaaa(T351) → U27_agaaaa(T351, gt97_in_ag(T351))
U22_aa(gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
p67_in_gaaaaa(T249) → U16_gaaaaa(T249, le69_in_ga(T249))
p67_in_gaaaaa(T249) → U17_gaaaaa(T249, le69_in_ga(T249))
p67_in_gaaaaa(T249) → U18_gaaaaa(T249, le69_in_ga(T249))
p67_in_gaaaaa(T249) → U20_gaaaaa(T249, le69_in_ga(T249))
p95_in_gaaaaa(T349) → U23_gaaaaa(T349, gt97_in_ga(T349))
p95_in_gaaaaa(T392) → U24_gaaaaa(T392, gt97_in_ga(T392))
p95_in_gaaaaa(T423) → U25_gaaaaa(T423, gt97_in_ga(T423))
p95_in_gaaaaa(T448) → U27_gaaaaa(T448, gt97_in_ga(T448))
U16_agaaaa(T251, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251)
U17_agaaaa(T292, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292)
U18_agaaaa(T326, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, p67_in_agaaaa(T326))
U20_agaaaa(T351, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, p95_in_agaaaa(T351))
U23_agaaaa(T351, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351)
U24_agaaaa(T351, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351)
U25_agaaaa(T351, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_agaaaa(T351, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, p95_in_gaaaaa(T448))
U16_gaaaaa(T249, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251)
U17_gaaaaa(T249, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292)
U18_gaaaaa(T249, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_gaaaaa(T249, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_gaaaaa(T349, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351)
U24_gaaaaa(T392, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351)
U25_gaaaaa(T423, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_gaaaaa(T448, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
U19_agaaaa(T249, T326, p67_out_agaaaa(T324, T326)) → p67_out_agaaaa(T249, T326)
U21_agaaaa(T249, T351, p95_out_agaaaa(T349, T351)) → p67_out_agaaaa(T249, T351)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
U26_agaaaa(T423, T351, p67_out_gaaaaa(T423, T425)) → p95_out_agaaaa(T423, T351)
U28_agaaaa(T448, T351, p95_out_gaaaaa(T448, T450)) → p95_out_agaaaa(T448, T351)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
U19_gaaaaa(T249, T326, p67_out_agaaaa(T324, T326)) → p67_out_gaaaaa(T249, T326)
U21_gaaaaa(T249, T351, p95_out_agaaaa(T349, T351)) → p67_out_gaaaaa(T249, T351)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U26_gaaaaa(T423, T351, p67_out_gaaaaa(T423, T425)) → p95_out_gaaaaa(T423, T351)
U28_gaaaaa(T448, T351, p95_out_gaaaaa(T448, T450)) → p95_out_gaaaaa(T448, T351)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
mergesort33_in_gaa(x0)
U2_ggaaa(x0, x1, x2)
U3_gaa(x0, x1, x2, x3)
U4_gaa(x0, x1, x2, x3)
U6_gaa(x0, x1, x2, x3)
U9_gaa(x0, x1, x2, x3)
split21_in_gaaa(x0)
U5_gaa(x0, x1, x2, x3)
U7_gaa(x0, x1, x2, x3, x4)
U10_gaa(x0, x1, x2, x3, x4)
U1_gaaa(x0, x1, x2)
U8_gaa(x0, x1, x2, x3)
U11_gaa(x0, x1, x2, x3)
U12_gaa(x0, x1, x2, x3)
merge34_in_aaaaa
U13_aaaaa(x0)
U14_aaaaa(x0)
p67_in_aaaaaa
p95_in_aaaaaa
U16_aaaaaa(x0)
U17_aaaaaa(x0)
U18_aaaaaa(x0)
U20_aaaaaa(x0)
U23_aaaaaa(x0)
U24_aaaaaa(x0)
U25_aaaaaa(x0)
U27_aaaaaa(x0)
le69_in_aa
U19_aaaaaa(x0, x1, x2)
U21_aaaaaa(x0, x1, x2)
gt97_in_aa
U26_aaaaaa(x0, x1, x2)
U28_aaaaaa(x0, x1, x2)
U15_aa(x0)
p67_in_agaaaa(x0)
p95_in_agaaaa(x0)
U22_aa(x0)
p67_in_gaaaaa(x0)
p95_in_gaaaaa(x0)
U16_agaaaa(x0, x1)
U17_agaaaa(x0, x1)
U18_agaaaa(x0, x1)
U20_agaaaa(x0, x1)
U23_agaaaa(x0, x1)
U24_agaaaa(x0, x1)
U25_agaaaa(x0, x1)
U27_agaaaa(x0, x1)
U16_gaaaaa(x0, x1)
U17_gaaaaa(x0, x1)
U18_gaaaaa(x0, x1)
U20_gaaaaa(x0, x1)
U23_gaaaaa(x0, x1)
U24_gaaaaa(x0, x1)
U25_gaaaaa(x0, x1)
U27_gaaaaa(x0, x1)
le69_in_ag(x0)
U19_agaaaa(x0, x1, x2)
U21_agaaaa(x0, x1, x2)
gt97_in_ag(x0)
U26_agaaaa(x0, x1, x2)
U28_agaaaa(x0, x1, x2)
le69_in_ga(x0)
U19_gaaaaa(x0, x1, x2)
U21_gaaaaa(x0, x1, x2)
gt97_in_ga(x0)
U26_gaaaaa(x0, x1, x2)
U28_gaaaaa(x0, x1, x2)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(300) Rewriting (EQUIVALENT transformation)

By rewriting [LPAR04] the rule MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146))) at position [3] we obtained the following new rules [LPAR04]:

MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), split21_in_gaaa(.(T145, T146))))

(301) Obligation:

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

U4_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U7_GAA(T144, T145, T146, T157, mergesort33_in_gaa(T156))
U7_GAA(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → MERGESORT33_IN_GAA(T157)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
U9_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U10_GAA(T144, T145, T146, T157, mergesort33_in_gaa(T156))
U10_GAA(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → MERGESORT33_IN_GAA(T157)
U9_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), split21_in_gaaa(.(T145, T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), split21_in_gaaa(.(T145, T146))))

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, T73, split21_in_gaaa(T73))
mergesort33_in_gaa([]) → mergesort33_out_gaa([])
mergesort33_in_gaa(.(T132, [])) → mergesort33_out_gaa(.(T132, []))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U3_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U4_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U6_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U9_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
U2_ggaaa(T72, T73, split21_out_gaaa(T73, X125, X124)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125)
U3_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), X230, X231)) → mergesort33_out_gaa(.(T144, .(T145, T146)))
U4_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U5_gaa(T144, T145, T146, mergesort33_in_gaa(T156))
U6_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U7_gaa(T144, T145, T146, T157, mergesort33_in_gaa(T156))
U9_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U10_gaa(T144, T145, T146, T157, mergesort33_in_gaa(T156))
split21_in_gaaa([]) → split21_out_gaaa([], [], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, T93, split21_in_gaaa(T93))
U5_gaa(T144, T145, T146, mergesort33_out_gaa(T156)) → mergesort33_out_gaa(.(T144, .(T145, T146)))
U7_gaa(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → U8_gaa(T144, T145, T146, mergesort33_in_gaa(T157))
U10_gaa(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → U11_gaa(T144, T145, T146, mergesort33_in_gaa(T157))
U1_gaaa(T92, T93, split21_out_gaaa(T93, X163, X162)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163)
U8_gaa(T144, T145, T146, mergesort33_out_gaa(T157)) → mergesort33_out_gaa(.(T144, .(T145, T146)))
U11_gaa(T144, T145, T146, mergesort33_out_gaa(T157)) → U12_gaa(T144, T145, T146, merge34_in_aaaaa)
U12_gaa(T144, T145, T146, merge34_out_aaaaa) → mergesort33_out_gaa(.(T144, .(T145, T146)))
merge34_in_aaaaamerge34_out_aaaaa
merge34_in_aaaaaU13_aaaaa(p67_in_aaaaaa)
merge34_in_aaaaaU14_aaaaa(p95_in_aaaaaa)
U13_aaaaa(p67_out_aaaaaa(T249, T251)) → merge34_out_aaaaa
U14_aaaaa(p95_out_aaaaaa(T473, T475)) → merge34_out_aaaaa
p67_in_aaaaaaU16_aaaaaa(le69_in_aa)
p67_in_aaaaaaU17_aaaaaa(le69_in_aa)
p67_in_aaaaaaU18_aaaaaa(le69_in_aa)
p67_in_aaaaaaU20_aaaaaa(le69_in_aa)
p95_in_aaaaaaU23_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU24_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU25_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU27_aaaaaa(gt97_in_aa)
U16_aaaaaa(le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251)
U17_aaaaaa(le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292)
U18_aaaaaa(le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_aaaaaa(le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_aaaaaa(gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351)
U24_aaaaaa(gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351)
U25_aaaaaa(gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_aaaaaa(gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_aaU15_aa(le69_in_aa)
le69_in_aale69_out_aa(0, s(0))
le69_in_aale69_out_aa(0, 0)
U19_aaaaaa(T249, T326, p67_out_agaaaa(T324, T326)) → p67_out_aaaaaa(T249, T326)
U21_aaaaaa(T249, T351, p95_out_agaaaa(T349, T351)) → p67_out_aaaaaa(T249, T351)
gt97_in_aaU22_aa(gt97_in_aa)
gt97_in_aagt97_out_aa(s(0), 0)
U26_aaaaaa(T423, T351, p67_out_gaaaaa(T423, T425)) → p95_out_aaaaaa(T423, T351)
U28_aaaaaa(T448, T351, p95_out_gaaaaa(T448, T450)) → p95_out_aaaaaa(T448, T351)
U15_aa(le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
p67_in_agaaaa(T251) → U16_agaaaa(T251, le69_in_ag(T251))
p67_in_agaaaa(T292) → U17_agaaaa(T292, le69_in_ag(T292))
p67_in_agaaaa(T326) → U18_agaaaa(T326, le69_in_ag(T326))
p67_in_agaaaa(T351) → U20_agaaaa(T351, le69_in_ag(T351))
p95_in_agaaaa(T351) → U23_agaaaa(T351, gt97_in_ag(T351))
p95_in_agaaaa(T351) → U24_agaaaa(T351, gt97_in_ag(T351))
p95_in_agaaaa(T351) → U25_agaaaa(T351, gt97_in_ag(T351))
p95_in_agaaaa(T351) → U27_agaaaa(T351, gt97_in_ag(T351))
U22_aa(gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
p67_in_gaaaaa(T249) → U16_gaaaaa(T249, le69_in_ga(T249))
p67_in_gaaaaa(T249) → U17_gaaaaa(T249, le69_in_ga(T249))
p67_in_gaaaaa(T249) → U18_gaaaaa(T249, le69_in_ga(T249))
p67_in_gaaaaa(T249) → U20_gaaaaa(T249, le69_in_ga(T249))
p95_in_gaaaaa(T349) → U23_gaaaaa(T349, gt97_in_ga(T349))
p95_in_gaaaaa(T392) → U24_gaaaaa(T392, gt97_in_ga(T392))
p95_in_gaaaaa(T423) → U25_gaaaaa(T423, gt97_in_ga(T423))
p95_in_gaaaaa(T448) → U27_gaaaaa(T448, gt97_in_ga(T448))
U16_agaaaa(T251, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251)
U17_agaaaa(T292, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292)
U18_agaaaa(T326, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, p67_in_agaaaa(T326))
U20_agaaaa(T351, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, p95_in_agaaaa(T351))
U23_agaaaa(T351, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351)
U24_agaaaa(T351, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351)
U25_agaaaa(T351, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_agaaaa(T351, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, p95_in_gaaaaa(T448))
U16_gaaaaa(T249, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251)
U17_gaaaaa(T249, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292)
U18_gaaaaa(T249, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_gaaaaa(T249, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_gaaaaa(T349, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351)
U24_gaaaaa(T392, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351)
U25_gaaaaa(T423, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_gaaaaa(T448, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
U19_agaaaa(T249, T326, p67_out_agaaaa(T324, T326)) → p67_out_agaaaa(T249, T326)
U21_agaaaa(T249, T351, p95_out_agaaaa(T349, T351)) → p67_out_agaaaa(T249, T351)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
U26_agaaaa(T423, T351, p67_out_gaaaaa(T423, T425)) → p95_out_agaaaa(T423, T351)
U28_agaaaa(T448, T351, p95_out_gaaaaa(T448, T450)) → p95_out_agaaaa(T448, T351)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
U19_gaaaaa(T249, T326, p67_out_agaaaa(T324, T326)) → p67_out_gaaaaa(T249, T326)
U21_gaaaaa(T249, T351, p95_out_agaaaa(T349, T351)) → p67_out_gaaaaa(T249, T351)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U26_gaaaaa(T423, T351, p67_out_gaaaaa(T423, T425)) → p95_out_gaaaaa(T423, T351)
U28_gaaaaa(T448, T351, p95_out_gaaaaa(T448, T450)) → p95_out_gaaaaa(T448, T351)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
mergesort33_in_gaa(x0)
U2_ggaaa(x0, x1, x2)
U3_gaa(x0, x1, x2, x3)
U4_gaa(x0, x1, x2, x3)
U6_gaa(x0, x1, x2, x3)
U9_gaa(x0, x1, x2, x3)
split21_in_gaaa(x0)
U5_gaa(x0, x1, x2, x3)
U7_gaa(x0, x1, x2, x3, x4)
U10_gaa(x0, x1, x2, x3, x4)
U1_gaaa(x0, x1, x2)
U8_gaa(x0, x1, x2, x3)
U11_gaa(x0, x1, x2, x3)
U12_gaa(x0, x1, x2, x3)
merge34_in_aaaaa
U13_aaaaa(x0)
U14_aaaaa(x0)
p67_in_aaaaaa
p95_in_aaaaaa
U16_aaaaaa(x0)
U17_aaaaaa(x0)
U18_aaaaaa(x0)
U20_aaaaaa(x0)
U23_aaaaaa(x0)
U24_aaaaaa(x0)
U25_aaaaaa(x0)
U27_aaaaaa(x0)
le69_in_aa
U19_aaaaaa(x0, x1, x2)
U21_aaaaaa(x0, x1, x2)
gt97_in_aa
U26_aaaaaa(x0, x1, x2)
U28_aaaaaa(x0, x1, x2)
U15_aa(x0)
p67_in_agaaaa(x0)
p95_in_agaaaa(x0)
U22_aa(x0)
p67_in_gaaaaa(x0)
p95_in_gaaaaa(x0)
U16_agaaaa(x0, x1)
U17_agaaaa(x0, x1)
U18_agaaaa(x0, x1)
U20_agaaaa(x0, x1)
U23_agaaaa(x0, x1)
U24_agaaaa(x0, x1)
U25_agaaaa(x0, x1)
U27_agaaaa(x0, x1)
U16_gaaaaa(x0, x1)
U17_gaaaaa(x0, x1)
U18_gaaaaa(x0, x1)
U20_gaaaaa(x0, x1)
U23_gaaaaa(x0, x1)
U24_gaaaaa(x0, x1)
U25_gaaaaa(x0, x1)
U27_gaaaaa(x0, x1)
le69_in_ag(x0)
U19_agaaaa(x0, x1, x2)
U21_agaaaa(x0, x1, x2)
gt97_in_ag(x0)
U26_agaaaa(x0, x1, x2)
U28_agaaaa(x0, x1, x2)
le69_in_ga(x0)
U19_gaaaaa(x0, x1, x2)
U21_gaaaaa(x0, x1, x2)
gt97_in_ga(x0)
U26_gaaaaa(x0, x1, x2)
U28_gaaaaa(x0, x1, x2)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(302) Rewriting (EQUIVALENT transformation)

By rewriting [LPAR04] the rule MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146))) at position [3] we obtained the following new rules [LPAR04]:

MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), split21_in_gaaa(.(T145, T146))))

(303) Obligation:

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

U4_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U7_GAA(T144, T145, T146, T157, mergesort33_in_gaa(T156))
U7_GAA(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → MERGESORT33_IN_GAA(T157)
U9_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U10_GAA(T144, T145, T146, T157, mergesort33_in_gaa(T156))
U10_GAA(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → MERGESORT33_IN_GAA(T157)
U9_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), split21_in_gaaa(.(T145, T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), split21_in_gaaa(.(T145, T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), split21_in_gaaa(.(T145, T146))))

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, T73, split21_in_gaaa(T73))
mergesort33_in_gaa([]) → mergesort33_out_gaa([])
mergesort33_in_gaa(.(T132, [])) → mergesort33_out_gaa(.(T132, []))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U3_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U4_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U6_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U9_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
U2_ggaaa(T72, T73, split21_out_gaaa(T73, X125, X124)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125)
U3_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), X230, X231)) → mergesort33_out_gaa(.(T144, .(T145, T146)))
U4_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U5_gaa(T144, T145, T146, mergesort33_in_gaa(T156))
U6_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U7_gaa(T144, T145, T146, T157, mergesort33_in_gaa(T156))
U9_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U10_gaa(T144, T145, T146, T157, mergesort33_in_gaa(T156))
split21_in_gaaa([]) → split21_out_gaaa([], [], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, T93, split21_in_gaaa(T93))
U5_gaa(T144, T145, T146, mergesort33_out_gaa(T156)) → mergesort33_out_gaa(.(T144, .(T145, T146)))
U7_gaa(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → U8_gaa(T144, T145, T146, mergesort33_in_gaa(T157))
U10_gaa(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → U11_gaa(T144, T145, T146, mergesort33_in_gaa(T157))
U1_gaaa(T92, T93, split21_out_gaaa(T93, X163, X162)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163)
U8_gaa(T144, T145, T146, mergesort33_out_gaa(T157)) → mergesort33_out_gaa(.(T144, .(T145, T146)))
U11_gaa(T144, T145, T146, mergesort33_out_gaa(T157)) → U12_gaa(T144, T145, T146, merge34_in_aaaaa)
U12_gaa(T144, T145, T146, merge34_out_aaaaa) → mergesort33_out_gaa(.(T144, .(T145, T146)))
merge34_in_aaaaamerge34_out_aaaaa
merge34_in_aaaaaU13_aaaaa(p67_in_aaaaaa)
merge34_in_aaaaaU14_aaaaa(p95_in_aaaaaa)
U13_aaaaa(p67_out_aaaaaa(T249, T251)) → merge34_out_aaaaa
U14_aaaaa(p95_out_aaaaaa(T473, T475)) → merge34_out_aaaaa
p67_in_aaaaaaU16_aaaaaa(le69_in_aa)
p67_in_aaaaaaU17_aaaaaa(le69_in_aa)
p67_in_aaaaaaU18_aaaaaa(le69_in_aa)
p67_in_aaaaaaU20_aaaaaa(le69_in_aa)
p95_in_aaaaaaU23_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU24_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU25_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU27_aaaaaa(gt97_in_aa)
U16_aaaaaa(le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251)
U17_aaaaaa(le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292)
U18_aaaaaa(le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_aaaaaa(le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_aaaaaa(gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351)
U24_aaaaaa(gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351)
U25_aaaaaa(gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_aaaaaa(gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_aaU15_aa(le69_in_aa)
le69_in_aale69_out_aa(0, s(0))
le69_in_aale69_out_aa(0, 0)
U19_aaaaaa(T249, T326, p67_out_agaaaa(T324, T326)) → p67_out_aaaaaa(T249, T326)
U21_aaaaaa(T249, T351, p95_out_agaaaa(T349, T351)) → p67_out_aaaaaa(T249, T351)
gt97_in_aaU22_aa(gt97_in_aa)
gt97_in_aagt97_out_aa(s(0), 0)
U26_aaaaaa(T423, T351, p67_out_gaaaaa(T423, T425)) → p95_out_aaaaaa(T423, T351)
U28_aaaaaa(T448, T351, p95_out_gaaaaa(T448, T450)) → p95_out_aaaaaa(T448, T351)
U15_aa(le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
p67_in_agaaaa(T251) → U16_agaaaa(T251, le69_in_ag(T251))
p67_in_agaaaa(T292) → U17_agaaaa(T292, le69_in_ag(T292))
p67_in_agaaaa(T326) → U18_agaaaa(T326, le69_in_ag(T326))
p67_in_agaaaa(T351) → U20_agaaaa(T351, le69_in_ag(T351))
p95_in_agaaaa(T351) → U23_agaaaa(T351, gt97_in_ag(T351))
p95_in_agaaaa(T351) → U24_agaaaa(T351, gt97_in_ag(T351))
p95_in_agaaaa(T351) → U25_agaaaa(T351, gt97_in_ag(T351))
p95_in_agaaaa(T351) → U27_agaaaa(T351, gt97_in_ag(T351))
U22_aa(gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
p67_in_gaaaaa(T249) → U16_gaaaaa(T249, le69_in_ga(T249))
p67_in_gaaaaa(T249) → U17_gaaaaa(T249, le69_in_ga(T249))
p67_in_gaaaaa(T249) → U18_gaaaaa(T249, le69_in_ga(T249))
p67_in_gaaaaa(T249) → U20_gaaaaa(T249, le69_in_ga(T249))
p95_in_gaaaaa(T349) → U23_gaaaaa(T349, gt97_in_ga(T349))
p95_in_gaaaaa(T392) → U24_gaaaaa(T392, gt97_in_ga(T392))
p95_in_gaaaaa(T423) → U25_gaaaaa(T423, gt97_in_ga(T423))
p95_in_gaaaaa(T448) → U27_gaaaaa(T448, gt97_in_ga(T448))
U16_agaaaa(T251, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251)
U17_agaaaa(T292, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292)
U18_agaaaa(T326, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, p67_in_agaaaa(T326))
U20_agaaaa(T351, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, p95_in_agaaaa(T351))
U23_agaaaa(T351, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351)
U24_agaaaa(T351, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351)
U25_agaaaa(T351, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_agaaaa(T351, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, p95_in_gaaaaa(T448))
U16_gaaaaa(T249, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251)
U17_gaaaaa(T249, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292)
U18_gaaaaa(T249, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_gaaaaa(T249, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_gaaaaa(T349, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351)
U24_gaaaaa(T392, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351)
U25_gaaaaa(T423, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_gaaaaa(T448, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
U19_agaaaa(T249, T326, p67_out_agaaaa(T324, T326)) → p67_out_agaaaa(T249, T326)
U21_agaaaa(T249, T351, p95_out_agaaaa(T349, T351)) → p67_out_agaaaa(T249, T351)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
U26_agaaaa(T423, T351, p67_out_gaaaaa(T423, T425)) → p95_out_agaaaa(T423, T351)
U28_agaaaa(T448, T351, p95_out_gaaaaa(T448, T450)) → p95_out_agaaaa(T448, T351)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
U19_gaaaaa(T249, T326, p67_out_agaaaa(T324, T326)) → p67_out_gaaaaa(T249, T326)
U21_gaaaaa(T249, T351, p95_out_agaaaa(T349, T351)) → p67_out_gaaaaa(T249, T351)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U26_gaaaaa(T423, T351, p67_out_gaaaaa(T423, T425)) → p95_out_gaaaaa(T423, T351)
U28_gaaaaa(T448, T351, p95_out_gaaaaa(T448, T450)) → p95_out_gaaaaa(T448, T351)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
mergesort33_in_gaa(x0)
U2_ggaaa(x0, x1, x2)
U3_gaa(x0, x1, x2, x3)
U4_gaa(x0, x1, x2, x3)
U6_gaa(x0, x1, x2, x3)
U9_gaa(x0, x1, x2, x3)
split21_in_gaaa(x0)
U5_gaa(x0, x1, x2, x3)
U7_gaa(x0, x1, x2, x3, x4)
U10_gaa(x0, x1, x2, x3, x4)
U1_gaaa(x0, x1, x2)
U8_gaa(x0, x1, x2, x3)
U11_gaa(x0, x1, x2, x3)
U12_gaa(x0, x1, x2, x3)
merge34_in_aaaaa
U13_aaaaa(x0)
U14_aaaaa(x0)
p67_in_aaaaaa
p95_in_aaaaaa
U16_aaaaaa(x0)
U17_aaaaaa(x0)
U18_aaaaaa(x0)
U20_aaaaaa(x0)
U23_aaaaaa(x0)
U24_aaaaaa(x0)
U25_aaaaaa(x0)
U27_aaaaaa(x0)
le69_in_aa
U19_aaaaaa(x0, x1, x2)
U21_aaaaaa(x0, x1, x2)
gt97_in_aa
U26_aaaaaa(x0, x1, x2)
U28_aaaaaa(x0, x1, x2)
U15_aa(x0)
p67_in_agaaaa(x0)
p95_in_agaaaa(x0)
U22_aa(x0)
p67_in_gaaaaa(x0)
p95_in_gaaaaa(x0)
U16_agaaaa(x0, x1)
U17_agaaaa(x0, x1)
U18_agaaaa(x0, x1)
U20_agaaaa(x0, x1)
U23_agaaaa(x0, x1)
U24_agaaaa(x0, x1)
U25_agaaaa(x0, x1)
U27_agaaaa(x0, x1)
U16_gaaaaa(x0, x1)
U17_gaaaaa(x0, x1)
U18_gaaaaa(x0, x1)
U20_gaaaaa(x0, x1)
U23_gaaaaa(x0, x1)
U24_gaaaaa(x0, x1)
U25_gaaaaa(x0, x1)
U27_gaaaaa(x0, x1)
le69_in_ag(x0)
U19_agaaaa(x0, x1, x2)
U21_agaaaa(x0, x1, x2)
gt97_in_ag(x0)
U26_agaaaa(x0, x1, x2)
U28_agaaaa(x0, x1, x2)
le69_in_ga(x0)
U19_gaaaaa(x0, x1, x2)
U21_gaaaaa(x0, x1, x2)
gt97_in_ga(x0)
U26_gaaaaa(x0, x1, x2)
U28_gaaaaa(x0, x1, x2)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(304) Rewriting (EQUIVALENT transformation)

By rewriting [LPAR04] the rule MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), split21_in_gaaa(.(T145, T146)))) at position [3,2] we obtained the following new rules [LPAR04]:

MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), U1_gaaa(T145, T146, split21_in_gaaa(T146))))

(305) Obligation:

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

U4_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U7_GAA(T144, T145, T146, T157, mergesort33_in_gaa(T156))
U7_GAA(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → MERGESORT33_IN_GAA(T157)
U9_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U10_GAA(T144, T145, T146, T157, mergesort33_in_gaa(T156))
U10_GAA(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → MERGESORT33_IN_GAA(T157)
U9_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), split21_in_gaaa(.(T145, T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), split21_in_gaaa(.(T145, T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), U1_gaaa(T145, T146, split21_in_gaaa(T146))))

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, T73, split21_in_gaaa(T73))
mergesort33_in_gaa([]) → mergesort33_out_gaa([])
mergesort33_in_gaa(.(T132, [])) → mergesort33_out_gaa(.(T132, []))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U3_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U4_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U6_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U9_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
U2_ggaaa(T72, T73, split21_out_gaaa(T73, X125, X124)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125)
U3_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), X230, X231)) → mergesort33_out_gaa(.(T144, .(T145, T146)))
U4_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U5_gaa(T144, T145, T146, mergesort33_in_gaa(T156))
U6_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U7_gaa(T144, T145, T146, T157, mergesort33_in_gaa(T156))
U9_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U10_gaa(T144, T145, T146, T157, mergesort33_in_gaa(T156))
split21_in_gaaa([]) → split21_out_gaaa([], [], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, T93, split21_in_gaaa(T93))
U5_gaa(T144, T145, T146, mergesort33_out_gaa(T156)) → mergesort33_out_gaa(.(T144, .(T145, T146)))
U7_gaa(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → U8_gaa(T144, T145, T146, mergesort33_in_gaa(T157))
U10_gaa(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → U11_gaa(T144, T145, T146, mergesort33_in_gaa(T157))
U1_gaaa(T92, T93, split21_out_gaaa(T93, X163, X162)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163)
U8_gaa(T144, T145, T146, mergesort33_out_gaa(T157)) → mergesort33_out_gaa(.(T144, .(T145, T146)))
U11_gaa(T144, T145, T146, mergesort33_out_gaa(T157)) → U12_gaa(T144, T145, T146, merge34_in_aaaaa)
U12_gaa(T144, T145, T146, merge34_out_aaaaa) → mergesort33_out_gaa(.(T144, .(T145, T146)))
merge34_in_aaaaamerge34_out_aaaaa
merge34_in_aaaaaU13_aaaaa(p67_in_aaaaaa)
merge34_in_aaaaaU14_aaaaa(p95_in_aaaaaa)
U13_aaaaa(p67_out_aaaaaa(T249, T251)) → merge34_out_aaaaa
U14_aaaaa(p95_out_aaaaaa(T473, T475)) → merge34_out_aaaaa
p67_in_aaaaaaU16_aaaaaa(le69_in_aa)
p67_in_aaaaaaU17_aaaaaa(le69_in_aa)
p67_in_aaaaaaU18_aaaaaa(le69_in_aa)
p67_in_aaaaaaU20_aaaaaa(le69_in_aa)
p95_in_aaaaaaU23_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU24_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU25_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU27_aaaaaa(gt97_in_aa)
U16_aaaaaa(le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251)
U17_aaaaaa(le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292)
U18_aaaaaa(le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_aaaaaa(le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_aaaaaa(gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351)
U24_aaaaaa(gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351)
U25_aaaaaa(gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_aaaaaa(gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_aaU15_aa(le69_in_aa)
le69_in_aale69_out_aa(0, s(0))
le69_in_aale69_out_aa(0, 0)
U19_aaaaaa(T249, T326, p67_out_agaaaa(T324, T326)) → p67_out_aaaaaa(T249, T326)
U21_aaaaaa(T249, T351, p95_out_agaaaa(T349, T351)) → p67_out_aaaaaa(T249, T351)
gt97_in_aaU22_aa(gt97_in_aa)
gt97_in_aagt97_out_aa(s(0), 0)
U26_aaaaaa(T423, T351, p67_out_gaaaaa(T423, T425)) → p95_out_aaaaaa(T423, T351)
U28_aaaaaa(T448, T351, p95_out_gaaaaa(T448, T450)) → p95_out_aaaaaa(T448, T351)
U15_aa(le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
p67_in_agaaaa(T251) → U16_agaaaa(T251, le69_in_ag(T251))
p67_in_agaaaa(T292) → U17_agaaaa(T292, le69_in_ag(T292))
p67_in_agaaaa(T326) → U18_agaaaa(T326, le69_in_ag(T326))
p67_in_agaaaa(T351) → U20_agaaaa(T351, le69_in_ag(T351))
p95_in_agaaaa(T351) → U23_agaaaa(T351, gt97_in_ag(T351))
p95_in_agaaaa(T351) → U24_agaaaa(T351, gt97_in_ag(T351))
p95_in_agaaaa(T351) → U25_agaaaa(T351, gt97_in_ag(T351))
p95_in_agaaaa(T351) → U27_agaaaa(T351, gt97_in_ag(T351))
U22_aa(gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
p67_in_gaaaaa(T249) → U16_gaaaaa(T249, le69_in_ga(T249))
p67_in_gaaaaa(T249) → U17_gaaaaa(T249, le69_in_ga(T249))
p67_in_gaaaaa(T249) → U18_gaaaaa(T249, le69_in_ga(T249))
p67_in_gaaaaa(T249) → U20_gaaaaa(T249, le69_in_ga(T249))
p95_in_gaaaaa(T349) → U23_gaaaaa(T349, gt97_in_ga(T349))
p95_in_gaaaaa(T392) → U24_gaaaaa(T392, gt97_in_ga(T392))
p95_in_gaaaaa(T423) → U25_gaaaaa(T423, gt97_in_ga(T423))
p95_in_gaaaaa(T448) → U27_gaaaaa(T448, gt97_in_ga(T448))
U16_agaaaa(T251, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251)
U17_agaaaa(T292, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292)
U18_agaaaa(T326, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, p67_in_agaaaa(T326))
U20_agaaaa(T351, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, p95_in_agaaaa(T351))
U23_agaaaa(T351, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351)
U24_agaaaa(T351, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351)
U25_agaaaa(T351, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_agaaaa(T351, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, p95_in_gaaaaa(T448))
U16_gaaaaa(T249, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251)
U17_gaaaaa(T249, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292)
U18_gaaaaa(T249, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_gaaaaa(T249, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_gaaaaa(T349, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351)
U24_gaaaaa(T392, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351)
U25_gaaaaa(T423, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_gaaaaa(T448, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
U19_agaaaa(T249, T326, p67_out_agaaaa(T324, T326)) → p67_out_agaaaa(T249, T326)
U21_agaaaa(T249, T351, p95_out_agaaaa(T349, T351)) → p67_out_agaaaa(T249, T351)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
U26_agaaaa(T423, T351, p67_out_gaaaaa(T423, T425)) → p95_out_agaaaa(T423, T351)
U28_agaaaa(T448, T351, p95_out_gaaaaa(T448, T450)) → p95_out_agaaaa(T448, T351)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
U19_gaaaaa(T249, T326, p67_out_agaaaa(T324, T326)) → p67_out_gaaaaa(T249, T326)
U21_gaaaaa(T249, T351, p95_out_agaaaa(T349, T351)) → p67_out_gaaaaa(T249, T351)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U26_gaaaaa(T423, T351, p67_out_gaaaaa(T423, T425)) → p95_out_gaaaaa(T423, T351)
U28_gaaaaa(T448, T351, p95_out_gaaaaa(T448, T450)) → p95_out_gaaaaa(T448, T351)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
mergesort33_in_gaa(x0)
U2_ggaaa(x0, x1, x2)
U3_gaa(x0, x1, x2, x3)
U4_gaa(x0, x1, x2, x3)
U6_gaa(x0, x1, x2, x3)
U9_gaa(x0, x1, x2, x3)
split21_in_gaaa(x0)
U5_gaa(x0, x1, x2, x3)
U7_gaa(x0, x1, x2, x3, x4)
U10_gaa(x0, x1, x2, x3, x4)
U1_gaaa(x0, x1, x2)
U8_gaa(x0, x1, x2, x3)
U11_gaa(x0, x1, x2, x3)
U12_gaa(x0, x1, x2, x3)
merge34_in_aaaaa
U13_aaaaa(x0)
U14_aaaaa(x0)
p67_in_aaaaaa
p95_in_aaaaaa
U16_aaaaaa(x0)
U17_aaaaaa(x0)
U18_aaaaaa(x0)
U20_aaaaaa(x0)
U23_aaaaaa(x0)
U24_aaaaaa(x0)
U25_aaaaaa(x0)
U27_aaaaaa(x0)
le69_in_aa
U19_aaaaaa(x0, x1, x2)
U21_aaaaaa(x0, x1, x2)
gt97_in_aa
U26_aaaaaa(x0, x1, x2)
U28_aaaaaa(x0, x1, x2)
U15_aa(x0)
p67_in_agaaaa(x0)
p95_in_agaaaa(x0)
U22_aa(x0)
p67_in_gaaaaa(x0)
p95_in_gaaaaa(x0)
U16_agaaaa(x0, x1)
U17_agaaaa(x0, x1)
U18_agaaaa(x0, x1)
U20_agaaaa(x0, x1)
U23_agaaaa(x0, x1)
U24_agaaaa(x0, x1)
U25_agaaaa(x0, x1)
U27_agaaaa(x0, x1)
U16_gaaaaa(x0, x1)
U17_gaaaaa(x0, x1)
U18_gaaaaa(x0, x1)
U20_gaaaaa(x0, x1)
U23_gaaaaa(x0, x1)
U24_gaaaaa(x0, x1)
U25_gaaaaa(x0, x1)
U27_gaaaaa(x0, x1)
le69_in_ag(x0)
U19_agaaaa(x0, x1, x2)
U21_agaaaa(x0, x1, x2)
gt97_in_ag(x0)
U26_agaaaa(x0, x1, x2)
U28_agaaaa(x0, x1, x2)
le69_in_ga(x0)
U19_gaaaaa(x0, x1, x2)
U21_gaaaaa(x0, x1, x2)
gt97_in_ga(x0)
U26_gaaaaa(x0, x1, x2)
U28_gaaaaa(x0, x1, x2)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(306) Rewriting (EQUIVALENT transformation)

By rewriting [LPAR04] the rule MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), split21_in_gaaa(.(T145, T146)))) at position [3,2] we obtained the following new rules [LPAR04]:

MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), U1_gaaa(T145, T146, split21_in_gaaa(T146))))

(307) Obligation:

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

U4_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U7_GAA(T144, T145, T146, T157, mergesort33_in_gaa(T156))
U7_GAA(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → MERGESORT33_IN_GAA(T157)
U9_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U10_GAA(T144, T145, T146, T157, mergesort33_in_gaa(T156))
U10_GAA(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → MERGESORT33_IN_GAA(T157)
U9_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), split21_in_gaaa(.(T145, T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), U1_gaaa(T145, T146, split21_in_gaaa(T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), U1_gaaa(T145, T146, split21_in_gaaa(T146))))

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, T73, split21_in_gaaa(T73))
mergesort33_in_gaa([]) → mergesort33_out_gaa([])
mergesort33_in_gaa(.(T132, [])) → mergesort33_out_gaa(.(T132, []))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U3_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U4_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U6_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U9_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
U2_ggaaa(T72, T73, split21_out_gaaa(T73, X125, X124)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125)
U3_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), X230, X231)) → mergesort33_out_gaa(.(T144, .(T145, T146)))
U4_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U5_gaa(T144, T145, T146, mergesort33_in_gaa(T156))
U6_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U7_gaa(T144, T145, T146, T157, mergesort33_in_gaa(T156))
U9_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U10_gaa(T144, T145, T146, T157, mergesort33_in_gaa(T156))
split21_in_gaaa([]) → split21_out_gaaa([], [], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, T93, split21_in_gaaa(T93))
U5_gaa(T144, T145, T146, mergesort33_out_gaa(T156)) → mergesort33_out_gaa(.(T144, .(T145, T146)))
U7_gaa(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → U8_gaa(T144, T145, T146, mergesort33_in_gaa(T157))
U10_gaa(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → U11_gaa(T144, T145, T146, mergesort33_in_gaa(T157))
U1_gaaa(T92, T93, split21_out_gaaa(T93, X163, X162)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163)
U8_gaa(T144, T145, T146, mergesort33_out_gaa(T157)) → mergesort33_out_gaa(.(T144, .(T145, T146)))
U11_gaa(T144, T145, T146, mergesort33_out_gaa(T157)) → U12_gaa(T144, T145, T146, merge34_in_aaaaa)
U12_gaa(T144, T145, T146, merge34_out_aaaaa) → mergesort33_out_gaa(.(T144, .(T145, T146)))
merge34_in_aaaaamerge34_out_aaaaa
merge34_in_aaaaaU13_aaaaa(p67_in_aaaaaa)
merge34_in_aaaaaU14_aaaaa(p95_in_aaaaaa)
U13_aaaaa(p67_out_aaaaaa(T249, T251)) → merge34_out_aaaaa
U14_aaaaa(p95_out_aaaaaa(T473, T475)) → merge34_out_aaaaa
p67_in_aaaaaaU16_aaaaaa(le69_in_aa)
p67_in_aaaaaaU17_aaaaaa(le69_in_aa)
p67_in_aaaaaaU18_aaaaaa(le69_in_aa)
p67_in_aaaaaaU20_aaaaaa(le69_in_aa)
p95_in_aaaaaaU23_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU24_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU25_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU27_aaaaaa(gt97_in_aa)
U16_aaaaaa(le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251)
U17_aaaaaa(le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292)
U18_aaaaaa(le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_aaaaaa(le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_aaaaaa(gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351)
U24_aaaaaa(gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351)
U25_aaaaaa(gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_aaaaaa(gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_aaU15_aa(le69_in_aa)
le69_in_aale69_out_aa(0, s(0))
le69_in_aale69_out_aa(0, 0)
U19_aaaaaa(T249, T326, p67_out_agaaaa(T324, T326)) → p67_out_aaaaaa(T249, T326)
U21_aaaaaa(T249, T351, p95_out_agaaaa(T349, T351)) → p67_out_aaaaaa(T249, T351)
gt97_in_aaU22_aa(gt97_in_aa)
gt97_in_aagt97_out_aa(s(0), 0)
U26_aaaaaa(T423, T351, p67_out_gaaaaa(T423, T425)) → p95_out_aaaaaa(T423, T351)
U28_aaaaaa(T448, T351, p95_out_gaaaaa(T448, T450)) → p95_out_aaaaaa(T448, T351)
U15_aa(le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
p67_in_agaaaa(T251) → U16_agaaaa(T251, le69_in_ag(T251))
p67_in_agaaaa(T292) → U17_agaaaa(T292, le69_in_ag(T292))
p67_in_agaaaa(T326) → U18_agaaaa(T326, le69_in_ag(T326))
p67_in_agaaaa(T351) → U20_agaaaa(T351, le69_in_ag(T351))
p95_in_agaaaa(T351) → U23_agaaaa(T351, gt97_in_ag(T351))
p95_in_agaaaa(T351) → U24_agaaaa(T351, gt97_in_ag(T351))
p95_in_agaaaa(T351) → U25_agaaaa(T351, gt97_in_ag(T351))
p95_in_agaaaa(T351) → U27_agaaaa(T351, gt97_in_ag(T351))
U22_aa(gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
p67_in_gaaaaa(T249) → U16_gaaaaa(T249, le69_in_ga(T249))
p67_in_gaaaaa(T249) → U17_gaaaaa(T249, le69_in_ga(T249))
p67_in_gaaaaa(T249) → U18_gaaaaa(T249, le69_in_ga(T249))
p67_in_gaaaaa(T249) → U20_gaaaaa(T249, le69_in_ga(T249))
p95_in_gaaaaa(T349) → U23_gaaaaa(T349, gt97_in_ga(T349))
p95_in_gaaaaa(T392) → U24_gaaaaa(T392, gt97_in_ga(T392))
p95_in_gaaaaa(T423) → U25_gaaaaa(T423, gt97_in_ga(T423))
p95_in_gaaaaa(T448) → U27_gaaaaa(T448, gt97_in_ga(T448))
U16_agaaaa(T251, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251)
U17_agaaaa(T292, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292)
U18_agaaaa(T326, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, p67_in_agaaaa(T326))
U20_agaaaa(T351, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, p95_in_agaaaa(T351))
U23_agaaaa(T351, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351)
U24_agaaaa(T351, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351)
U25_agaaaa(T351, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_agaaaa(T351, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, p95_in_gaaaaa(T448))
U16_gaaaaa(T249, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251)
U17_gaaaaa(T249, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292)
U18_gaaaaa(T249, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_gaaaaa(T249, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_gaaaaa(T349, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351)
U24_gaaaaa(T392, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351)
U25_gaaaaa(T423, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_gaaaaa(T448, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
U19_agaaaa(T249, T326, p67_out_agaaaa(T324, T326)) → p67_out_agaaaa(T249, T326)
U21_agaaaa(T249, T351, p95_out_agaaaa(T349, T351)) → p67_out_agaaaa(T249, T351)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
U26_agaaaa(T423, T351, p67_out_gaaaaa(T423, T425)) → p95_out_agaaaa(T423, T351)
U28_agaaaa(T448, T351, p95_out_gaaaaa(T448, T450)) → p95_out_agaaaa(T448, T351)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
U19_gaaaaa(T249, T326, p67_out_agaaaa(T324, T326)) → p67_out_gaaaaa(T249, T326)
U21_gaaaaa(T249, T351, p95_out_agaaaa(T349, T351)) → p67_out_gaaaaa(T249, T351)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U26_gaaaaa(T423, T351, p67_out_gaaaaa(T423, T425)) → p95_out_gaaaaa(T423, T351)
U28_gaaaaa(T448, T351, p95_out_gaaaaa(T448, T450)) → p95_out_gaaaaa(T448, T351)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
mergesort33_in_gaa(x0)
U2_ggaaa(x0, x1, x2)
U3_gaa(x0, x1, x2, x3)
U4_gaa(x0, x1, x2, x3)
U6_gaa(x0, x1, x2, x3)
U9_gaa(x0, x1, x2, x3)
split21_in_gaaa(x0)
U5_gaa(x0, x1, x2, x3)
U7_gaa(x0, x1, x2, x3, x4)
U10_gaa(x0, x1, x2, x3, x4)
U1_gaaa(x0, x1, x2)
U8_gaa(x0, x1, x2, x3)
U11_gaa(x0, x1, x2, x3)
U12_gaa(x0, x1, x2, x3)
merge34_in_aaaaa
U13_aaaaa(x0)
U14_aaaaa(x0)
p67_in_aaaaaa
p95_in_aaaaaa
U16_aaaaaa(x0)
U17_aaaaaa(x0)
U18_aaaaaa(x0)
U20_aaaaaa(x0)
U23_aaaaaa(x0)
U24_aaaaaa(x0)
U25_aaaaaa(x0)
U27_aaaaaa(x0)
le69_in_aa
U19_aaaaaa(x0, x1, x2)
U21_aaaaaa(x0, x1, x2)
gt97_in_aa
U26_aaaaaa(x0, x1, x2)
U28_aaaaaa(x0, x1, x2)
U15_aa(x0)
p67_in_agaaaa(x0)
p95_in_agaaaa(x0)
U22_aa(x0)
p67_in_gaaaaa(x0)
p95_in_gaaaaa(x0)
U16_agaaaa(x0, x1)
U17_agaaaa(x0, x1)
U18_agaaaa(x0, x1)
U20_agaaaa(x0, x1)
U23_agaaaa(x0, x1)
U24_agaaaa(x0, x1)
U25_agaaaa(x0, x1)
U27_agaaaa(x0, x1)
U16_gaaaaa(x0, x1)
U17_gaaaaa(x0, x1)
U18_gaaaaa(x0, x1)
U20_gaaaaa(x0, x1)
U23_gaaaaa(x0, x1)
U24_gaaaaa(x0, x1)
U25_gaaaaa(x0, x1)
U27_gaaaaa(x0, x1)
le69_in_ag(x0)
U19_agaaaa(x0, x1, x2)
U21_agaaaa(x0, x1, x2)
gt97_in_ag(x0)
U26_agaaaa(x0, x1, x2)
U28_agaaaa(x0, x1, x2)
le69_in_ga(x0)
U19_gaaaaa(x0, x1, x2)
U21_gaaaaa(x0, x1, x2)
gt97_in_ga(x0)
U26_gaaaaa(x0, x1, x2)
U28_gaaaaa(x0, x1, x2)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(308) Rewriting (EQUIVALENT transformation)

By rewriting [LPAR04] the rule MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), split21_in_gaaa(.(T145, T146)))) at position [3,2] we obtained the following new rules [LPAR04]:

MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), U1_gaaa(T145, T146, split21_in_gaaa(T146))))

(309) Obligation:

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

U4_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U7_GAA(T144, T145, T146, T157, mergesort33_in_gaa(T156))
U7_GAA(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → MERGESORT33_IN_GAA(T157)
U9_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U10_GAA(T144, T145, T146, T157, mergesort33_in_gaa(T156))
U10_GAA(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → MERGESORT33_IN_GAA(T157)
U9_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), U1_gaaa(T145, T146, split21_in_gaaa(T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), U1_gaaa(T145, T146, split21_in_gaaa(T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), U1_gaaa(T145, T146, split21_in_gaaa(T146))))

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, T73, split21_in_gaaa(T73))
mergesort33_in_gaa([]) → mergesort33_out_gaa([])
mergesort33_in_gaa(.(T132, [])) → mergesort33_out_gaa(.(T132, []))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U3_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U4_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U6_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U9_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
U2_ggaaa(T72, T73, split21_out_gaaa(T73, X125, X124)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125)
U3_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), X230, X231)) → mergesort33_out_gaa(.(T144, .(T145, T146)))
U4_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U5_gaa(T144, T145, T146, mergesort33_in_gaa(T156))
U6_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U7_gaa(T144, T145, T146, T157, mergesort33_in_gaa(T156))
U9_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U10_gaa(T144, T145, T146, T157, mergesort33_in_gaa(T156))
split21_in_gaaa([]) → split21_out_gaaa([], [], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, T93, split21_in_gaaa(T93))
U5_gaa(T144, T145, T146, mergesort33_out_gaa(T156)) → mergesort33_out_gaa(.(T144, .(T145, T146)))
U7_gaa(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → U8_gaa(T144, T145, T146, mergesort33_in_gaa(T157))
U10_gaa(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → U11_gaa(T144, T145, T146, mergesort33_in_gaa(T157))
U1_gaaa(T92, T93, split21_out_gaaa(T93, X163, X162)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163)
U8_gaa(T144, T145, T146, mergesort33_out_gaa(T157)) → mergesort33_out_gaa(.(T144, .(T145, T146)))
U11_gaa(T144, T145, T146, mergesort33_out_gaa(T157)) → U12_gaa(T144, T145, T146, merge34_in_aaaaa)
U12_gaa(T144, T145, T146, merge34_out_aaaaa) → mergesort33_out_gaa(.(T144, .(T145, T146)))
merge34_in_aaaaamerge34_out_aaaaa
merge34_in_aaaaaU13_aaaaa(p67_in_aaaaaa)
merge34_in_aaaaaU14_aaaaa(p95_in_aaaaaa)
U13_aaaaa(p67_out_aaaaaa(T249, T251)) → merge34_out_aaaaa
U14_aaaaa(p95_out_aaaaaa(T473, T475)) → merge34_out_aaaaa
p67_in_aaaaaaU16_aaaaaa(le69_in_aa)
p67_in_aaaaaaU17_aaaaaa(le69_in_aa)
p67_in_aaaaaaU18_aaaaaa(le69_in_aa)
p67_in_aaaaaaU20_aaaaaa(le69_in_aa)
p95_in_aaaaaaU23_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU24_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU25_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU27_aaaaaa(gt97_in_aa)
U16_aaaaaa(le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251)
U17_aaaaaa(le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292)
U18_aaaaaa(le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_aaaaaa(le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_aaaaaa(gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351)
U24_aaaaaa(gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351)
U25_aaaaaa(gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_aaaaaa(gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_aaU15_aa(le69_in_aa)
le69_in_aale69_out_aa(0, s(0))
le69_in_aale69_out_aa(0, 0)
U19_aaaaaa(T249, T326, p67_out_agaaaa(T324, T326)) → p67_out_aaaaaa(T249, T326)
U21_aaaaaa(T249, T351, p95_out_agaaaa(T349, T351)) → p67_out_aaaaaa(T249, T351)
gt97_in_aaU22_aa(gt97_in_aa)
gt97_in_aagt97_out_aa(s(0), 0)
U26_aaaaaa(T423, T351, p67_out_gaaaaa(T423, T425)) → p95_out_aaaaaa(T423, T351)
U28_aaaaaa(T448, T351, p95_out_gaaaaa(T448, T450)) → p95_out_aaaaaa(T448, T351)
U15_aa(le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
p67_in_agaaaa(T251) → U16_agaaaa(T251, le69_in_ag(T251))
p67_in_agaaaa(T292) → U17_agaaaa(T292, le69_in_ag(T292))
p67_in_agaaaa(T326) → U18_agaaaa(T326, le69_in_ag(T326))
p67_in_agaaaa(T351) → U20_agaaaa(T351, le69_in_ag(T351))
p95_in_agaaaa(T351) → U23_agaaaa(T351, gt97_in_ag(T351))
p95_in_agaaaa(T351) → U24_agaaaa(T351, gt97_in_ag(T351))
p95_in_agaaaa(T351) → U25_agaaaa(T351, gt97_in_ag(T351))
p95_in_agaaaa(T351) → U27_agaaaa(T351, gt97_in_ag(T351))
U22_aa(gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
p67_in_gaaaaa(T249) → U16_gaaaaa(T249, le69_in_ga(T249))
p67_in_gaaaaa(T249) → U17_gaaaaa(T249, le69_in_ga(T249))
p67_in_gaaaaa(T249) → U18_gaaaaa(T249, le69_in_ga(T249))
p67_in_gaaaaa(T249) → U20_gaaaaa(T249, le69_in_ga(T249))
p95_in_gaaaaa(T349) → U23_gaaaaa(T349, gt97_in_ga(T349))
p95_in_gaaaaa(T392) → U24_gaaaaa(T392, gt97_in_ga(T392))
p95_in_gaaaaa(T423) → U25_gaaaaa(T423, gt97_in_ga(T423))
p95_in_gaaaaa(T448) → U27_gaaaaa(T448, gt97_in_ga(T448))
U16_agaaaa(T251, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251)
U17_agaaaa(T292, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292)
U18_agaaaa(T326, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, p67_in_agaaaa(T326))
U20_agaaaa(T351, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, p95_in_agaaaa(T351))
U23_agaaaa(T351, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351)
U24_agaaaa(T351, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351)
U25_agaaaa(T351, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_agaaaa(T351, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, p95_in_gaaaaa(T448))
U16_gaaaaa(T249, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251)
U17_gaaaaa(T249, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292)
U18_gaaaaa(T249, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_gaaaaa(T249, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_gaaaaa(T349, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351)
U24_gaaaaa(T392, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351)
U25_gaaaaa(T423, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_gaaaaa(T448, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
U19_agaaaa(T249, T326, p67_out_agaaaa(T324, T326)) → p67_out_agaaaa(T249, T326)
U21_agaaaa(T249, T351, p95_out_agaaaa(T349, T351)) → p67_out_agaaaa(T249, T351)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
U26_agaaaa(T423, T351, p67_out_gaaaaa(T423, T425)) → p95_out_agaaaa(T423, T351)
U28_agaaaa(T448, T351, p95_out_gaaaaa(T448, T450)) → p95_out_agaaaa(T448, T351)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
U19_gaaaaa(T249, T326, p67_out_agaaaa(T324, T326)) → p67_out_gaaaaa(T249, T326)
U21_gaaaaa(T249, T351, p95_out_agaaaa(T349, T351)) → p67_out_gaaaaa(T249, T351)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U26_gaaaaa(T423, T351, p67_out_gaaaaa(T423, T425)) → p95_out_gaaaaa(T423, T351)
U28_gaaaaa(T448, T351, p95_out_gaaaaa(T448, T450)) → p95_out_gaaaaa(T448, T351)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
mergesort33_in_gaa(x0)
U2_ggaaa(x0, x1, x2)
U3_gaa(x0, x1, x2, x3)
U4_gaa(x0, x1, x2, x3)
U6_gaa(x0, x1, x2, x3)
U9_gaa(x0, x1, x2, x3)
split21_in_gaaa(x0)
U5_gaa(x0, x1, x2, x3)
U7_gaa(x0, x1, x2, x3, x4)
U10_gaa(x0, x1, x2, x3, x4)
U1_gaaa(x0, x1, x2)
U8_gaa(x0, x1, x2, x3)
U11_gaa(x0, x1, x2, x3)
U12_gaa(x0, x1, x2, x3)
merge34_in_aaaaa
U13_aaaaa(x0)
U14_aaaaa(x0)
p67_in_aaaaaa
p95_in_aaaaaa
U16_aaaaaa(x0)
U17_aaaaaa(x0)
U18_aaaaaa(x0)
U20_aaaaaa(x0)
U23_aaaaaa(x0)
U24_aaaaaa(x0)
U25_aaaaaa(x0)
U27_aaaaaa(x0)
le69_in_aa
U19_aaaaaa(x0, x1, x2)
U21_aaaaaa(x0, x1, x2)
gt97_in_aa
U26_aaaaaa(x0, x1, x2)
U28_aaaaaa(x0, x1, x2)
U15_aa(x0)
p67_in_agaaaa(x0)
p95_in_agaaaa(x0)
U22_aa(x0)
p67_in_gaaaaa(x0)
p95_in_gaaaaa(x0)
U16_agaaaa(x0, x1)
U17_agaaaa(x0, x1)
U18_agaaaa(x0, x1)
U20_agaaaa(x0, x1)
U23_agaaaa(x0, x1)
U24_agaaaa(x0, x1)
U25_agaaaa(x0, x1)
U27_agaaaa(x0, x1)
U16_gaaaaa(x0, x1)
U17_gaaaaa(x0, x1)
U18_gaaaaa(x0, x1)
U20_gaaaaa(x0, x1)
U23_gaaaaa(x0, x1)
U24_gaaaaa(x0, x1)
U25_gaaaaa(x0, x1)
U27_gaaaaa(x0, x1)
le69_in_ag(x0)
U19_agaaaa(x0, x1, x2)
U21_agaaaa(x0, x1, x2)
gt97_in_ag(x0)
U26_agaaaa(x0, x1, x2)
U28_agaaaa(x0, x1, x2)
le69_in_ga(x0)
U19_gaaaaa(x0, x1, x2)
U21_gaaaaa(x0, x1, x2)
gt97_in_ga(x0)
U26_gaaaaa(x0, x1, x2)
U28_gaaaaa(x0, x1, x2)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(310) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U4_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
U9_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U10_GAA(T144, T145, T146, T157, mergesort33_in_gaa(T156))
U9_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), U1_gaaa(T145, T146, split21_in_gaaa(T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), U1_gaaa(T145, T146, split21_in_gaaa(T146))))
The remaining pairs can at least be oriented weakly.
Used ordering: Polynomial Order [NEGPOLO,POLO] with Interpretation:

POL( U10_GAA(x1, ..., x5) ) = x3 + 2x4 + 2


POL( U7_GAA(x1, ..., x5) ) = 2x4 + 2


POL( mergesort33_in_gaa(x1) ) = 0


POL( [] ) = 0


POL( mergesort33_out_gaa(x1) ) = max{0, 2x1 - 2}


POL( .(x1, x2) ) = 2x2 + 2


POL( U3_gaa(x1, ..., x4) ) = x1 + 2x2 + 2


POL( split17_in_ggaaa(x1, x2) ) = max{0, 2x1 - 1}


POL( U4_gaa(x1, ..., x4) ) = 2x1 + 2x2 + 2


POL( U6_gaa(x1, ..., x4) ) = max{0, 2x3 - 2}


POL( U9_gaa(x1, ..., x4) ) = x1 + 2x2 + x3 + 1


POL( U2_ggaaa(x1, ..., x3) ) = x2 + x3 + 2


POL( U1_gaaa(x1, ..., x3) ) = 2x3 + 2


POL( U4_GAA(x1, ..., x4) ) = 2x4


POL( U6_GAA(x1, ..., x4) ) = max{0, 2x4 - 2}


POL( U9_GAA(x1, ..., x4) ) = 2x4 + 2


POL( split21_in_gaaa(x1) ) = x1


POL( split21_out_gaaa(x1, ..., x3) ) = x2 + 2x3


POL( split17_out_ggaaa(x1, ..., x4) ) = x2 + x3 + x4


POL( U5_gaa(x1, ..., x4) ) = max{0, 2x1 + 2x2 + 2x3 + 2x4 - 2}


POL( U7_gaa(x1, ..., x5) ) = max{0, x1 + x4 + x5 - 2}


POL( U10_gaa(x1, ..., x5) ) = 2x1 + x2 + 2x3 + x4 + 2


POL( U11_gaa(x1, ..., x4) ) = max{0, 2x1 + 2x2 - 2}


POL( U12_gaa(x1, ..., x4) ) = max{0, x1 + 2x2 + x3 - 2}


POL( merge34_in_aaaaa ) = 0


POL( U8_gaa(x1, ..., x4) ) = 2x1 + 2x2 + x3 + 2x4 + 2


POL( merge34_out_aaaaa ) = 1


POL( U13_aaaaa(x1) ) = 2x1 + 2


POL( p67_in_aaaaaa ) = 2


POL( U14_aaaaa(x1) ) = 1


POL( p95_in_aaaaaa ) = 0


POL( U16_aaaaaa(x1) ) = max{0, 2x1 - 2}


POL( le69_in_aa ) = 0


POL( U17_aaaaaa(x1) ) = max{0, 2x1 - 2}


POL( U18_aaaaaa(x1) ) = x1 + 1


POL( U20_aaaaaa(x1) ) = 1


POL( p67_out_aaaaaa(x1, x2) ) = max{0, x1 + x2 - 2}


POL( U23_aaaaaa(x1) ) = 2


POL( gt97_in_aa ) = 0


POL( U24_aaaaaa(x1) ) = max{0, -2}


POL( U25_aaaaaa(x1) ) = max{0, -1}


POL( U27_aaaaaa(x1) ) = 1


POL( p95_out_aaaaaa(x1, x2) ) = 2x1 + x2 + 2


POL( U15_aa(x1) ) = 2x1 + 2


POL( le69_out_aa(x1, x2) ) = max{0, 2x1 + 2x2 - 2}


POL( 0 ) = 0


POL( s(x1) ) = x1 + 2


POL( U19_aaaaaa(x1, ..., x3) ) = 2x1 + 1


POL( p67_in_agaaaa(x1) ) = 2x1 + 1


POL( U21_aaaaaa(x1, ..., x3) ) = x2 + 2


POL( p95_in_agaaaa(x1) ) = 2x1 + 2


POL( U22_aa(x1) ) = max{0, 2x1 - 1}


POL( gt97_out_aa(x1, x2) ) = max{0, 2x1 + 2x2 - 2}


POL( U26_aaaaaa(x1, ..., x3) ) = max{0, x1 + 2x3 - 2}


POL( p67_in_gaaaaa(x1) ) = max{0, x1 - 1}


POL( U28_aaaaaa(x1, ..., x3) ) = max{0, x1 + 2x2 + 2x3 - 1}


POL( p95_in_gaaaaa(x1) ) = x1 + 1


POL( U19_agaaaa(x1, ..., x3) ) = max{0, 2x1 + x2 + x3 - 2}


POL( U19_gaaaaa(x1, ..., x3) ) = x2 + 2


POL( U16_agaaaa(x1, x2) ) = max{0, -1}


POL( le69_in_ag(x1) ) = max{0, 2x1 - 1}


POL( U17_agaaaa(x1, x2) ) = x1 + 2x2 + 2


POL( U18_agaaaa(x1, x2) ) = 2x1 + 1


POL( U20_agaaaa(x1, x2) ) = max{0, x1 - 2}


POL( p67_out_agaaaa(x1, x2) ) = max{0, x1 + 2x2 - 1}


POL( U21_agaaaa(x1, ..., x3) ) = 2x1


POL( U21_gaaaaa(x1, ..., x3) ) = x1 + x2 + 2


POL( U23_agaaaa(x1, x2) ) = x1 + 2x2 + 1


POL( gt97_in_ag(x1) ) = max{0, 2x1 - 1}


POL( U24_agaaaa(x1, x2) ) = 2x1


POL( U25_agaaaa(x1, x2) ) = max{0, -1}


POL( U27_agaaaa(x1, x2) ) = 2x1 + 2


POL( p95_out_agaaaa(x1, x2) ) = x1 + x2


POL( U26_agaaaa(x1, ..., x3) ) = 2x2 + 1


POL( U26_gaaaaa(x1, ..., x3) ) = x1 + 2x2


POL( U16_gaaaaa(x1, x2) ) = x1 + 2


POL( le69_in_ga(x1) ) = max{0, -2}


POL( U17_gaaaaa(x1, x2) ) = x1 + 1


POL( U18_gaaaaa(x1, x2) ) = 2


POL( U20_gaaaaa(x1, x2) ) = 2x1 + 2


POL( p67_out_gaaaaa(x1, x2) ) = max{0, 2x1 + 2x2 - 2}


POL( U28_agaaaa(x1, ..., x3) ) = max{0, 2x1 + 2x2 - 2}


POL( U28_gaaaaa(x1, ..., x3) ) = max{0, 2x1 + 2x2 - 1}


POL( U23_gaaaaa(x1, x2) ) = 2


POL( gt97_in_ga(x1) ) = 1


POL( U24_gaaaaa(x1, x2) ) = max{0, 2x1 - 2}


POL( U25_gaaaaa(x1, x2) ) = 2x1 + 2


POL( U27_gaaaaa(x1, x2) ) = 2x1 + x2 + 1


POL( p95_out_gaaaaa(x1, x2) ) = x2 + 2


POL( U15_ag(x1, x2) ) = max{0, x1 - 2}


POL( le69_out_ag(x1, x2) ) = 2x1 + 2x2 + 2


POL( U22_ag(x1, x2) ) = max{0, x1 + 2x2 - 1}


POL( gt97_out_ag(x1, x2) ) = max{0, 2x1 + 2x2 - 2}


POL( U15_ga(x1, x2) ) = 2


POL( le69_out_ga(x1, x2) ) = max{0, 2x1 + 2x2 - 2}


POL( U22_ga(x1, x2) ) = max{0, -2}


POL( gt97_out_ga(x1, x2) ) = 2


POL( MERGESORT33_IN_GAA(x1) ) = 2x1 + 2



The following usable rules [FROCOS05] were oriented:

split21_in_gaaa([]) → split21_out_gaaa([], [], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, T93, split21_in_gaaa(T93))
U1_gaaa(T92, T93, split21_out_gaaa(T93, X163, X162)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163)
U2_ggaaa(T72, T73, split21_out_gaaa(T73, X125, X124)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125)

(311) Obligation:

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

U6_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U7_GAA(T144, T145, T146, T157, mergesort33_in_gaa(T156))
U7_GAA(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → MERGESORT33_IN_GAA(T157)
U10_GAA(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → MERGESORT33_IN_GAA(T157)
U6_GAA(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U9_GAA(T144, T145, T146, U2_ggaaa(T144, .(T145, T146), U1_gaaa(T145, T146, split21_in_gaaa(T146))))

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, T73, split21_in_gaaa(T73))
mergesort33_in_gaa([]) → mergesort33_out_gaa([])
mergesort33_in_gaa(.(T132, [])) → mergesort33_out_gaa(.(T132, []))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U3_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U4_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U6_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
mergesort33_in_gaa(.(T144, .(T145, T146))) → U9_gaa(T144, T145, T146, split17_in_ggaaa(T144, .(T145, T146)))
U2_ggaaa(T72, T73, split21_out_gaaa(T73, X125, X124)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125)
U3_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), X230, X231)) → mergesort33_out_gaa(.(T144, .(T145, T146)))
U4_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U5_gaa(T144, T145, T146, mergesort33_in_gaa(T156))
U6_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U7_gaa(T144, T145, T146, T157, mergesort33_in_gaa(T156))
U9_gaa(T144, T145, T146, split17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U10_gaa(T144, T145, T146, T157, mergesort33_in_gaa(T156))
split21_in_gaaa([]) → split21_out_gaaa([], [], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, T93, split21_in_gaaa(T93))
U5_gaa(T144, T145, T146, mergesort33_out_gaa(T156)) → mergesort33_out_gaa(.(T144, .(T145, T146)))
U7_gaa(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → U8_gaa(T144, T145, T146, mergesort33_in_gaa(T157))
U10_gaa(T144, T145, T146, T157, mergesort33_out_gaa(T156)) → U11_gaa(T144, T145, T146, mergesort33_in_gaa(T157))
U1_gaaa(T92, T93, split21_out_gaaa(T93, X163, X162)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163)
U8_gaa(T144, T145, T146, mergesort33_out_gaa(T157)) → mergesort33_out_gaa(.(T144, .(T145, T146)))
U11_gaa(T144, T145, T146, mergesort33_out_gaa(T157)) → U12_gaa(T144, T145, T146, merge34_in_aaaaa)
U12_gaa(T144, T145, T146, merge34_out_aaaaa) → mergesort33_out_gaa(.(T144, .(T145, T146)))
merge34_in_aaaaamerge34_out_aaaaa
merge34_in_aaaaaU13_aaaaa(p67_in_aaaaaa)
merge34_in_aaaaaU14_aaaaa(p95_in_aaaaaa)
U13_aaaaa(p67_out_aaaaaa(T249, T251)) → merge34_out_aaaaa
U14_aaaaa(p95_out_aaaaaa(T473, T475)) → merge34_out_aaaaa
p67_in_aaaaaaU16_aaaaaa(le69_in_aa)
p67_in_aaaaaaU17_aaaaaa(le69_in_aa)
p67_in_aaaaaaU18_aaaaaa(le69_in_aa)
p67_in_aaaaaaU20_aaaaaa(le69_in_aa)
p95_in_aaaaaaU23_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU24_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU25_aaaaaa(gt97_in_aa)
p95_in_aaaaaaU27_aaaaaa(gt97_in_aa)
U16_aaaaaa(le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251)
U17_aaaaaa(le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292)
U18_aaaaaa(le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_aaaaaa(le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_aaaaaa(gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351)
U24_aaaaaa(gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351)
U25_aaaaaa(gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_aaaaaa(gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_aaU15_aa(le69_in_aa)
le69_in_aale69_out_aa(0, s(0))
le69_in_aale69_out_aa(0, 0)
U19_aaaaaa(T249, T326, p67_out_agaaaa(T324, T326)) → p67_out_aaaaaa(T249, T326)
U21_aaaaaa(T249, T351, p95_out_agaaaa(T349, T351)) → p67_out_aaaaaa(T249, T351)
gt97_in_aaU22_aa(gt97_in_aa)
gt97_in_aagt97_out_aa(s(0), 0)
U26_aaaaaa(T423, T351, p67_out_gaaaaa(T423, T425)) → p95_out_aaaaaa(T423, T351)
U28_aaaaaa(T448, T351, p95_out_gaaaaa(T448, T450)) → p95_out_aaaaaa(T448, T351)
U15_aa(le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
p67_in_agaaaa(T251) → U16_agaaaa(T251, le69_in_ag(T251))
p67_in_agaaaa(T292) → U17_agaaaa(T292, le69_in_ag(T292))
p67_in_agaaaa(T326) → U18_agaaaa(T326, le69_in_ag(T326))
p67_in_agaaaa(T351) → U20_agaaaa(T351, le69_in_ag(T351))
p95_in_agaaaa(T351) → U23_agaaaa(T351, gt97_in_ag(T351))
p95_in_agaaaa(T351) → U24_agaaaa(T351, gt97_in_ag(T351))
p95_in_agaaaa(T351) → U25_agaaaa(T351, gt97_in_ag(T351))
p95_in_agaaaa(T351) → U27_agaaaa(T351, gt97_in_ag(T351))
U22_aa(gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
p67_in_gaaaaa(T249) → U16_gaaaaa(T249, le69_in_ga(T249))
p67_in_gaaaaa(T249) → U17_gaaaaa(T249, le69_in_ga(T249))
p67_in_gaaaaa(T249) → U18_gaaaaa(T249, le69_in_ga(T249))
p67_in_gaaaaa(T249) → U20_gaaaaa(T249, le69_in_ga(T249))
p95_in_gaaaaa(T349) → U23_gaaaaa(T349, gt97_in_ga(T349))
p95_in_gaaaaa(T392) → U24_gaaaaa(T392, gt97_in_ga(T392))
p95_in_gaaaaa(T423) → U25_gaaaaa(T423, gt97_in_ga(T423))
p95_in_gaaaaa(T448) → U27_gaaaaa(T448, gt97_in_ga(T448))
U16_agaaaa(T251, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251)
U17_agaaaa(T292, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292)
U18_agaaaa(T326, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, p67_in_agaaaa(T326))
U20_agaaaa(T351, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, p95_in_agaaaa(T351))
U23_agaaaa(T351, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351)
U24_agaaaa(T351, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351)
U25_agaaaa(T351, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_agaaaa(T351, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, p95_in_gaaaaa(T448))
U16_gaaaaa(T249, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251)
U17_gaaaaa(T249, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292)
U18_gaaaaa(T249, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, p67_in_agaaaa(T326))
U20_gaaaaa(T249, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, p95_in_agaaaa(T351))
U23_gaaaaa(T349, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351)
U24_gaaaaa(T392, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351)
U25_gaaaaa(T423, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, p67_in_gaaaaa(T423))
U27_gaaaaa(T448, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, p95_in_gaaaaa(T448))
le69_in_ag(s(T271)) → U15_ag(T271, le69_in_ag(T271))
le69_in_ag(s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0) → le69_out_ag(0, 0)
U19_agaaaa(T249, T326, p67_out_agaaaa(T324, T326)) → p67_out_agaaaa(T249, T326)
U21_agaaaa(T249, T351, p95_out_agaaaa(T349, T351)) → p67_out_agaaaa(T249, T351)
gt97_in_ag(s(T371)) → U22_ag(T371, gt97_in_ag(T371))
gt97_in_ag(0) → gt97_out_ag(s(0), 0)
U26_agaaaa(T423, T351, p67_out_gaaaaa(T423, T425)) → p95_out_agaaaa(T423, T351)
U28_agaaaa(T448, T351, p95_out_gaaaaa(T448, T450)) → p95_out_agaaaa(T448, T351)
le69_in_ga(s(T270)) → U15_ga(T270, le69_in_ga(T270))
le69_in_ga(0) → le69_out_ga(0, s(0))
le69_in_ga(0) → le69_out_ga(0, 0)
U19_gaaaaa(T249, T326, p67_out_agaaaa(T324, T326)) → p67_out_gaaaaa(T249, T326)
U21_gaaaaa(T249, T351, p95_out_agaaaa(T349, T351)) → p67_out_gaaaaa(T249, T351)
gt97_in_ga(s(T370)) → U22_ga(T370, gt97_in_ga(T370))
gt97_in_ga(s(0)) → gt97_out_ga(s(0), 0)
U26_gaaaaa(T423, T351, p67_out_gaaaaa(T423, T425)) → p95_out_gaaaaa(T423, T351)
U28_gaaaaa(T448, T351, p95_out_gaaaaa(T448, T450)) → p95_out_gaaaaa(T448, T351)
U15_ag(T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U22_ag(T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U15_ga(T270, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U22_ga(T370, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
mergesort33_in_gaa(x0)
U2_ggaaa(x0, x1, x2)
U3_gaa(x0, x1, x2, x3)
U4_gaa(x0, x1, x2, x3)
U6_gaa(x0, x1, x2, x3)
U9_gaa(x0, x1, x2, x3)
split21_in_gaaa(x0)
U5_gaa(x0, x1, x2, x3)
U7_gaa(x0, x1, x2, x3, x4)
U10_gaa(x0, x1, x2, x3, x4)
U1_gaaa(x0, x1, x2)
U8_gaa(x0, x1, x2, x3)
U11_gaa(x0, x1, x2, x3)
U12_gaa(x0, x1, x2, x3)
merge34_in_aaaaa
U13_aaaaa(x0)
U14_aaaaa(x0)
p67_in_aaaaaa
p95_in_aaaaaa
U16_aaaaaa(x0)
U17_aaaaaa(x0)
U18_aaaaaa(x0)
U20_aaaaaa(x0)
U23_aaaaaa(x0)
U24_aaaaaa(x0)
U25_aaaaaa(x0)
U27_aaaaaa(x0)
le69_in_aa
U19_aaaaaa(x0, x1, x2)
U21_aaaaaa(x0, x1, x2)
gt97_in_aa
U26_aaaaaa(x0, x1, x2)
U28_aaaaaa(x0, x1, x2)
U15_aa(x0)
p67_in_agaaaa(x0)
p95_in_agaaaa(x0)
U22_aa(x0)
p67_in_gaaaaa(x0)
p95_in_gaaaaa(x0)
U16_agaaaa(x0, x1)
U17_agaaaa(x0, x1)
U18_agaaaa(x0, x1)
U20_agaaaa(x0, x1)
U23_agaaaa(x0, x1)
U24_agaaaa(x0, x1)
U25_agaaaa(x0, x1)
U27_agaaaa(x0, x1)
U16_gaaaaa(x0, x1)
U17_gaaaaa(x0, x1)
U18_gaaaaa(x0, x1)
U20_gaaaaa(x0, x1)
U23_gaaaaa(x0, x1)
U24_gaaaaa(x0, x1)
U25_gaaaaa(x0, x1)
U27_gaaaaa(x0, x1)
le69_in_ag(x0)
U19_agaaaa(x0, x1, x2)
U21_agaaaa(x0, x1, x2)
gt97_in_ag(x0)
U26_agaaaa(x0, x1, x2)
U28_agaaaa(x0, x1, x2)
le69_in_ga(x0)
U19_gaaaaa(x0, x1, x2)
U21_gaaaaa(x0, x1, x2)
gt97_in_ga(x0)
U26_gaaaaa(x0, x1, x2)
U28_gaaaaa(x0, x1, x2)
U15_ag(x0, x1)
U22_ag(x0, x1)
U15_ga(x0, x1)
U22_ga(x0, x1)

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

(312) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 0 SCCs with 5 less nodes.

(313) TRUE

(314) Obligation:

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

MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_GAA(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_GAA(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → MERGESORT1_IN_GAA(.(T43, T56), X38, T57)
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_GAA(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_GAA(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → MERGESORT1_IN_GAA(.(T43, T56), T103, T104)
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_GAA(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_GAA(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → MERGESORT1_IN_GAA(.(T43, T56), T103, T116)

The TRS R consists of the following rules:

mergesort1_in_gaa([], [], T5) → mergesort1_out_gaa([], [], T5)
mergesort1_in_gaa(.(T8, []), .(T8, []), T9) → mergesort1_out_gaa(.(T8, []), .(T8, []), T9)
mergesort1_in_gaa(.(T43, .(T44, T45)), T49, .(T50, T48)) → U29_gaa(T43, T44, T45, T49, T50, T48, split17_in_ggaaa(T44, T45, X80, X79, T48))
split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U29_gaa(T43, T44, T45, T49, T50, T48, split17_out_ggaaa(T44, T45, X80, X79, T48)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T49, .(T50, T48))
mergesort1_in_gaa(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_gaa(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_gaa(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
mergesort1_in_gaa(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_gaa(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_gaa(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_in_gaa(.(T43, T56), T103, T104))
mergesort1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_gaa(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_gaa(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_in_gaa(.(T43, T56), T103, T116))
U36_gaa(T43, T44, T45, T114, T115, T116, T55, mergesort1_out_gaa(.(T43, T56), T103, T116)) → U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_in_gaa(T55, T113, T116))
mergesort33_in_gaa([], [], T123) → mergesort33_out_gaa([], [], T123)
mergesort33_in_gaa(.(T132, []), .(T132, []), T133) → mergesort33_out_gaa(.(T132, []), .(T132, []), T133)
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T149, T150)) → U3_gaa(T144, T145, T146, X234, T149, T150, split17_in_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150)))
U3_gaa(T144, T145, T146, X234, T149, T150, split17_out_ggaaa(T144, .(T145, T146), X230, X231, .(T149, T150))) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T149, T150))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T159, T158)) → U4_gaa(T144, T145, T146, X234, T159, T158, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_gaa(T144, T145, T146, X234, T159, T158, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158))) → U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_in_gaa(T156, X232, T158))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T169, T168)) → U6_gaa(T144, T145, T146, X234, T169, T168, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_gaa(T144, T145, T146, X234, T169, T168, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_in_gaa(T156, T167, T168))
mergesort33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U9_gaa(T144, T145, T146, X234, T175, T176, split17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_gaa(T144, T145, T146, X234, T175, T176, split17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_in_gaa(T156, T167, T176))
U10_gaa(T144, T145, T146, X234, T175, T176, T157, mergesort33_out_gaa(T156, T167, T176)) → U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_in_gaa(T157, T174, T176))
U11_gaa(T144, T145, T146, X234, T175, T176, T167, mergesort33_out_gaa(T157, T174, T176)) → U12_gaa(T144, T145, T146, X234, T175, T176, merge34_in_aaaaa(T167, T174, X234, T175, T176))
merge34_in_aaaaa([], T203, T203, T204, T205) → merge34_out_aaaaa([], T203, T203, T204, T205)
merge34_in_aaaaa(T218, [], T218, T219, T220) → merge34_out_aaaaa(T218, [], T218, T219, T220)
merge34_in_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_in_aaaaaa(T249, T251, T250, T252, T256, T257))
p67_in_aaaaaa(T249, T251, T250, T252, T256, T257) → U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_in_aa(T249, T251))
le69_in_aa(s(T270), s(T271)) → U15_aa(T270, T271, le69_in_aa(T270, T271))
le69_in_aa(0, s(0)) → le69_out_aa(0, s(0))
le69_in_aa(0, 0) → le69_out_aa(0, 0)
U15_aa(T270, T271, le69_out_aa(T270, T271)) → le69_out_aa(s(T270), s(T271))
U16_aaaaaa(T249, T251, T250, T252, T256, T257, le69_out_aa(T249, T251)) → p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_aaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_aaaaaa(T249, T292, T293, T294, le69_in_aa(T249, T292))
U17_aaaaaa(T249, T292, T293, T294, le69_out_aa(T249, T292)) → p67_out_aaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_aa(T249, T326))
U18_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_aa(T249, T326)) → U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T251, T250, T252, T256, T257) → U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_in_ag(T249, T251))
le69_in_ag(s(T270), s(T271)) → U15_ag(T270, T271, le69_in_ag(T270, T271))
le69_in_ag(0, s(0)) → le69_out_ag(0, s(0))
le69_in_ag(0, 0) → le69_out_ag(0, 0)
U15_ag(T270, T271, le69_out_ag(T270, T271)) → le69_out_ag(s(T270), s(T271))
U16_agaaaa(T249, T251, T250, T252, T256, T257, le69_out_ag(T249, T251)) → p67_out_agaaaa(T249, T251, T250, T252, T256, T257)
p67_in_agaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_agaaaa(T249, T292, T293, T294, le69_in_ag(T249, T292))
U17_agaaaa(T249, T292, T293, T294, le69_out_ag(T249, T292)) → p67_out_agaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ag(T249, T326))
U18_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ag(T249, T326)) → U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
p67_in_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ag(T249, T351))
U20_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ag(T249, T351)) → U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T349, T351, T350, T352, T356, T357) → U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ag(T349, T351))
gt97_in_ag(s(T370), s(T371)) → U22_ag(T370, T371, gt97_in_ag(T370, T371))
gt97_in_ag(s(0), 0) → gt97_out_ag(s(0), 0)
U22_ag(T370, T371, gt97_out_ag(T370, T371)) → gt97_out_ag(s(T370), s(T371))
U23_agaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ag(T349, T351)) → p95_out_agaaaa(T349, T351, T350, T352, T356, T357)
p95_in_agaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_agaaaa(T392, T351, T393, T394, gt97_in_ag(T392, T351))
U24_agaaaa(T392, T351, T393, T394, gt97_out_ag(T392, T351)) → p95_out_agaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ag(T423, T351))
U25_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ag(T423, T351)) → U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
p67_in_gaaaaa(T249, T251, T250, T252, T256, T257) → U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_in_ga(T249, T251))
le69_in_ga(s(T270), s(T271)) → U15_ga(T270, T271, le69_in_ga(T270, T271))
le69_in_ga(0, s(0)) → le69_out_ga(0, s(0))
le69_in_ga(0, 0) → le69_out_ga(0, 0)
U15_ga(T270, T271, le69_out_ga(T270, T271)) → le69_out_ga(s(T270), s(T271))
U16_gaaaaa(T249, T251, T250, T252, T256, T257, le69_out_ga(T249, T251)) → p67_out_gaaaaa(T249, T251, T250, T252, T256, T257)
p67_in_gaaaaa(T249, T292, [], T293, .(T292, T293), T294) → U17_gaaaaa(T249, T292, T293, T294, le69_in_ga(T249, T292))
U17_gaaaaa(T249, T292, T293, T294, le69_out_ga(T249, T292)) → p67_out_gaaaaa(T249, T292, [], T293, .(T292, T293), T294)
p67_in_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_in_ga(T249, T326))
U18_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, le69_out_ga(T249, T326)) → U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_agaaaa(T324, T326, T325, T327, T331, T332))
U19_gaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_gaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_ga(T249, T351))
U20_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_ga(T249, T351)) → U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
p95_in_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ag(T448, T351))
U27_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ag(T448, T351)) → U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
p95_in_gaaaaa(T349, T351, T350, T352, T356, T357) → U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_ga(T349, T351))
gt97_in_ga(s(T370), s(T371)) → U22_ga(T370, T371, gt97_in_ga(T370, T371))
gt97_in_ga(s(0), 0) → gt97_out_ga(s(0), 0)
U22_ga(T370, T371, gt97_out_ga(T370, T371)) → gt97_out_ga(s(T370), s(T371))
U23_gaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_ga(T349, T351)) → p95_out_gaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_gaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_gaaaaa(T392, T351, T393, T394, gt97_in_ga(T392, T351))
U24_gaaaaa(T392, T351, T393, T394, gt97_out_ga(T392, T351)) → p95_out_gaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_ga(T423, T351))
U25_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_ga(T423, T351)) → U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_gaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_gaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_ga(T448, T351))
U27_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_ga(T448, T351)) → U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_gaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_gaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U28_agaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_agaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U21_gaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_gaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U26_agaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_agaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U21_agaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_agaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U19_agaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_agaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U19_aaaaaa(T249, T326, T324, T325, T327, T331, T329, T332, p67_out_agaaaa(T324, T326, T325, T327, T331, T332)) → p67_out_aaaaaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
p67_in_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_in_aa(T249, T351))
U20_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, le69_out_aa(T249, T351)) → U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_agaaaa(T349, T351, T350, T352, T356, T357))
U21_aaaaaa(T249, T351, T349, T350, T352, T356, T354, T357, p95_out_agaaaa(T349, T351, T350, T352, T356, T357)) → p67_out_aaaaaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U13_aaaaa(T249, T250, T251, T252, T256, T254, T257, p67_out_aaaaaa(T249, T251, T250, T252, T256, T257)) → merge34_out_aaaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
merge34_in_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_in_aaaaaa(T473, T475, T474, T476, T480, T481))
p95_in_aaaaaa(T349, T351, T350, T352, T356, T357) → U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_in_aa(T349, T351))
gt97_in_aa(s(T370), s(T371)) → U22_aa(T370, T371, gt97_in_aa(T370, T371))
gt97_in_aa(s(0), 0) → gt97_out_aa(s(0), 0)
U22_aa(T370, T371, gt97_out_aa(T370, T371)) → gt97_out_aa(s(T370), s(T371))
U23_aaaaaa(T349, T351, T350, T352, T356, T357, gt97_out_aa(T349, T351)) → p95_out_aaaaaa(T349, T351, T350, T352, T356, T357)
p95_in_aaaaaa(T392, T351, T393, [], .(T392, T393), T394) → U24_aaaaaa(T392, T351, T393, T394, gt97_in_aa(T392, T351))
U24_aaaaaa(T392, T351, T393, T394, gt97_out_aa(T392, T351)) → p95_out_aaaaaa(T392, T351, T393, [], .(T392, T393), T394)
p95_in_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_in_aa(T423, T351))
U25_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, gt97_out_aa(T423, T351)) → U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_gaaaaa(T423, T425, T424, T426, T430, T431))
U26_aaaaaa(T423, T351, T424, T425, T426, T430, T428, T431, p67_out_gaaaaa(T423, T425, T424, T426, T430, T431)) → p95_out_aaaaaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
p95_in_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_in_aa(T448, T351))
U27_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, gt97_out_aa(T448, T351)) → U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_gaaaaa(T448, T450, T449, T451, T455, T456))
U28_aaaaaa(T448, T351, T449, T450, T451, T455, T453, T456, p95_out_gaaaaa(T448, T450, T449, T451, T455, T456)) → p95_out_aaaaaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U14_aaaaa(T473, T474, T475, T476, T480, T478, T481, p95_out_aaaaaa(T473, T475, T474, T476, T480, T481)) → merge34_out_aaaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U12_gaa(T144, T145, T146, X234, T175, T176, merge34_out_aaaaa(T167, T174, X234, T175, T176)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U7_gaa(T144, T145, T146, X234, T169, T168, T157, mergesort33_out_gaa(T156, T167, T168)) → U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_in_gaa(T157, X233, T168))
U8_gaa(T144, T145, T146, X234, T169, T168, mergesort33_out_gaa(T157, X233, T168)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T169, T168))
U5_gaa(T144, T145, T146, X234, T159, T158, mergesort33_out_gaa(T156, X232, T158)) → mergesort33_out_gaa(.(T144, .(T145, T146)), X234, .(T159, T158))
U37_gaa(T43, T44, T45, T114, T115, T116, T103, mergesort33_out_gaa(T55, T113, T116)) → U38_gaa(T43, T44, T45, T114, T115, T116, merge34_in_aaaaa(T103, T113, T114, T115, T116))
U38_gaa(T43, T44, T45, T114, T115, T116, merge34_out_aaaaa(T103, T113, T114, T115, T116)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))
U33_gaa(T43, T44, T45, T105, T106, T104, T55, mergesort1_out_gaa(.(T43, T56), T103, T104)) → U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U34_gaa(T43, T44, T45, T105, T106, T104, mergesort33_out_gaa(T55, X39, T104)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T105, .(T106, T104))
U31_gaa(T43, T44, T45, T58, T59, T57, mergesort1_out_gaa(.(T43, T56), X38, T57)) → mergesort1_out_gaa(.(T43, .(T44, T45)), T58, .(T59, T57))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
[]  =  []
mergesort1_out_gaa(x1, x2, x3)  =  mergesort1_out_gaa(x1)
.(x1, x2)  =  .(x1, x2)
U29_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U29_gaa(x1, x2, x3, x7)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x2, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x1, x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x2, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x1, x2, x3, x4)
U30_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U30_gaa(x1, x2, x3, x7)
U31_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U31_gaa(x1, x2, x3, x7)
U32_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U32_gaa(x1, x2, x3, x7)
U33_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U33_gaa(x1, x2, x3, x7, x8)
U35_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U35_gaa(x1, x2, x3, x7)
U36_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U36_gaa(x1, x2, x3, x7, x8)
U37_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U37_gaa(x1, x2, x3, x8)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
mergesort33_out_gaa(x1, x2, x3)  =  mergesort33_out_gaa(x1)
U3_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U3_gaa(x1, x2, x3, x7)
U4_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U4_gaa(x1, x2, x3, x7)
U5_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U5_gaa(x1, x2, x3, x7)
U6_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U6_gaa(x1, x2, x3, x7)
U7_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U7_gaa(x1, x2, x3, x7, x8)
U9_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U9_gaa(x1, x2, x3, x7)
U10_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U10_gaa(x1, x2, x3, x7, x8)
U11_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U11_gaa(x1, x2, x3, x8)
U12_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U12_gaa(x1, x2, x3, x7)
merge34_in_aaaaa(x1, x2, x3, x4, x5)  =  merge34_in_aaaaa
merge34_out_aaaaa(x1, x2, x3, x4, x5)  =  merge34_out_aaaaa
U13_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_aaaaa(x8)
p67_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_aaaaaa
U16_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_aaaaaa(x7)
le69_in_aa(x1, x2)  =  le69_in_aa
U15_aa(x1, x2, x3)  =  U15_aa(x3)
le69_out_aa(x1, x2)  =  le69_out_aa(x1, x2)
p67_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_aaaaaa(x1, x2)
U17_aaaaaa(x1, x2, x3, x4, x5)  =  U17_aaaaaa(x5)
U18_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_aaaaaa(x9)
U19_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_aaaaaa(x1, x2, x9)
p67_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_agaaaa(x2)
U16_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_agaaaa(x2, x7)
le69_in_ag(x1, x2)  =  le69_in_ag(x2)
s(x1)  =  s(x1)
U15_ag(x1, x2, x3)  =  U15_ag(x2, x3)
0  =  0
le69_out_ag(x1, x2)  =  le69_out_ag(x1, x2)
p67_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_agaaaa(x1, x2)
U17_agaaaa(x1, x2, x3, x4, x5)  =  U17_agaaaa(x2, x5)
U18_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_agaaaa(x2, x9)
U19_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_agaaaa(x1, x2, x9)
U20_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_agaaaa(x2, x9)
U21_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_agaaaa(x1, x2, x9)
p95_in_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_agaaaa(x2)
U23_agaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_agaaaa(x2, x7)
gt97_in_ag(x1, x2)  =  gt97_in_ag(x2)
U22_ag(x1, x2, x3)  =  U22_ag(x2, x3)
gt97_out_ag(x1, x2)  =  gt97_out_ag(x1, x2)
p95_out_agaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_agaaaa(x1, x2)
U24_agaaaa(x1, x2, x3, x4, x5)  =  U24_agaaaa(x2, x5)
U25_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_agaaaa(x2, x9)
U26_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_agaaaa(x1, x2, x9)
p67_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_in_gaaaaa(x1)
U16_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U16_gaaaaa(x1, x7)
le69_in_ga(x1, x2)  =  le69_in_ga(x1)
U15_ga(x1, x2, x3)  =  U15_ga(x1, x3)
le69_out_ga(x1, x2)  =  le69_out_ga(x1, x2)
p67_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p67_out_gaaaaa(x1, x2)
U17_gaaaaa(x1, x2, x3, x4, x5)  =  U17_gaaaaa(x1, x5)
U18_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_gaaaaa(x1, x9)
U19_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_gaaaaa(x1, x2, x9)
U20_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_gaaaaa(x1, x9)
U21_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_gaaaaa(x1, x2, x9)
U27_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_agaaaa(x2, x9)
U28_agaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_agaaaa(x1, x2, x9)
p95_in_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_gaaaaa(x1)
U23_gaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_gaaaaa(x1, x7)
gt97_in_ga(x1, x2)  =  gt97_in_ga(x1)
U22_ga(x1, x2, x3)  =  U22_ga(x1, x3)
gt97_out_ga(x1, x2)  =  gt97_out_ga(x1, x2)
p95_out_gaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_gaaaaa(x1, x2)
U24_gaaaaa(x1, x2, x3, x4, x5)  =  U24_gaaaaa(x1, x5)
U25_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_gaaaaa(x1, x9)
U26_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_gaaaaa(x1, x2, x9)
U27_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_gaaaaa(x1, x9)
U28_gaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_gaaaaa(x1, x2, x9)
U20_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_aaaaaa(x9)
U21_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U21_aaaaaa(x1, x2, x9)
U14_aaaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_aaaaa(x8)
p95_in_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_in_aaaaaa
U23_aaaaaa(x1, x2, x3, x4, x5, x6, x7)  =  U23_aaaaaa(x7)
gt97_in_aa(x1, x2)  =  gt97_in_aa
U22_aa(x1, x2, x3)  =  U22_aa(x3)
gt97_out_aa(x1, x2)  =  gt97_out_aa(x1, x2)
p95_out_aaaaaa(x1, x2, x3, x4, x5, x6)  =  p95_out_aaaaaa(x1, x2)
U24_aaaaaa(x1, x2, x3, x4, x5)  =  U24_aaaaaa(x5)
U25_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_aaaaaa(x9)
U26_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_aaaaaa(x1, x2, x9)
U27_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U27_aaaaaa(x9)
U28_aaaaaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U28_aaaaaa(x1, x2, x9)
U8_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U8_gaa(x1, x2, x3, x7)
U38_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaa(x1, x2, x3, x7)
U34_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U34_gaa(x1, x2, x3, x7)
MERGESORT1_IN_GAA(x1, x2, x3)  =  MERGESORT1_IN_GAA(x1)
U30_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U30_GAA(x1, x2, x3, x7)
U32_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U32_GAA(x1, x2, x3, x7)
U35_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U35_GAA(x1, x2, x3, x7)

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

(315) UsableRulesProof (EQUIVALENT transformation)

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

(316) Obligation:

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

MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T58, .(T59, T57)) → U30_GAA(T43, T44, T45, T58, T59, T57, split17_in_ggaaa(T44, T45, T55, T56, T57))
U30_GAA(T43, T44, T45, T58, T59, T57, split17_out_ggaaa(T44, T45, T55, T56, T57)) → MERGESORT1_IN_GAA(.(T43, T56), X38, T57)
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T105, .(T106, T104)) → U32_GAA(T43, T44, T45, T105, T106, T104, split17_in_ggaaa(T44, T45, T55, T56, T104))
U32_GAA(T43, T44, T45, T105, T106, T104, split17_out_ggaaa(T44, T45, T55, T56, T104)) → MERGESORT1_IN_GAA(.(T43, T56), T103, T104)
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T114, .(T115, T116)) → U35_GAA(T43, T44, T45, T114, T115, T116, split17_in_ggaaa(T44, T45, T55, T56, T116))
U35_GAA(T43, T44, T45, T114, T115, T116, split17_out_ggaaa(T44, T45, T55, T56, T116)) → MERGESORT1_IN_GAA(.(T43, T56), T103, T116)

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_in_gaaa(T73, X125, X124, T76))
U2_ggaaa(T72, T73, X124, X125, T74, T76, split21_out_gaaa(T73, X125, X124, T76)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
split21_in_gaaa([], [], [], T83) → split21_out_gaaa([], [], [], T83)
split21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U1_gaaa(T92, T93, X162, X163, T94, T96, split21_in_gaaa(T93, X163, X162, T96))
U1_gaaa(T92, T93, X162, X163, T94, T96, split21_out_gaaa(T93, X163, X162, T96)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))

The argument filtering Pi contains the following mapping:
[]  =  []
.(x1, x2)  =  .(x1, x2)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
U2_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U2_ggaaa(x1, x2, x7)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
split21_out_gaaa(x1, x2, x3, x4)  =  split21_out_gaaa(x1, x2, x3)
U1_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U1_gaaa(x1, x2, x7)
split17_out_ggaaa(x1, x2, x3, x4, x5)  =  split17_out_ggaaa(x1, x2, x3, x4)
MERGESORT1_IN_GAA(x1, x2, x3)  =  MERGESORT1_IN_GAA(x1)
U30_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U30_GAA(x1, x2, x3, x7)
U32_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U32_GAA(x1, x2, x3, x7)
U35_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U35_GAA(x1, x2, x3, x7)

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

(317) PiDPToQDPProof (SOUND transformation)

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

(318) Obligation:

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

MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U30_GAA(T43, T44, T45, split17_in_ggaaa(T44, T45))
U30_GAA(T43, T44, T45, split17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U32_GAA(T43, T44, T45, split17_in_ggaaa(T44, T45))
U32_GAA(T43, T44, T45, split17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U35_GAA(T43, T44, T45, split17_in_ggaaa(T44, T45))
U35_GAA(T43, T44, T45, split17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, T73, split21_in_gaaa(T73))
U2_ggaaa(T72, T73, split21_out_gaaa(T73, X125, X124)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125)
split21_in_gaaa([]) → split21_out_gaaa([], [], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, T93, split21_in_gaaa(T93))
U1_gaaa(T92, T93, split21_out_gaaa(T93, X163, X162)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163)

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
U2_ggaaa(x0, x1, x2)
split21_in_gaaa(x0)
U1_gaaa(x0, x1, x2)

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

(319) Rewriting (EQUIVALENT transformation)

By rewriting [LPAR04] the rule MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U30_GAA(T43, T44, T45, split17_in_ggaaa(T44, T45)) at position [3] we obtained the following new rules [LPAR04]:

MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U30_GAA(T43, T44, T45, U2_ggaaa(T44, T45, split21_in_gaaa(T45)))

(320) Obligation:

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

U30_GAA(T43, T44, T45, split17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U32_GAA(T43, T44, T45, split17_in_ggaaa(T44, T45))
U32_GAA(T43, T44, T45, split17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U35_GAA(T43, T44, T45, split17_in_ggaaa(T44, T45))
U35_GAA(T43, T44, T45, split17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U30_GAA(T43, T44, T45, U2_ggaaa(T44, T45, split21_in_gaaa(T45)))

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, T73, split21_in_gaaa(T73))
U2_ggaaa(T72, T73, split21_out_gaaa(T73, X125, X124)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125)
split21_in_gaaa([]) → split21_out_gaaa([], [], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, T93, split21_in_gaaa(T93))
U1_gaaa(T92, T93, split21_out_gaaa(T93, X163, X162)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163)

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
U2_ggaaa(x0, x1, x2)
split21_in_gaaa(x0)
U1_gaaa(x0, x1, x2)

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

(321) Rewriting (EQUIVALENT transformation)

By rewriting [LPAR04] the rule MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U32_GAA(T43, T44, T45, split17_in_ggaaa(T44, T45)) at position [3] we obtained the following new rules [LPAR04]:

MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U32_GAA(T43, T44, T45, U2_ggaaa(T44, T45, split21_in_gaaa(T45)))

(322) Obligation:

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

U30_GAA(T43, T44, T45, split17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
U32_GAA(T43, T44, T45, split17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U35_GAA(T43, T44, T45, split17_in_ggaaa(T44, T45))
U35_GAA(T43, T44, T45, split17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U30_GAA(T43, T44, T45, U2_ggaaa(T44, T45, split21_in_gaaa(T45)))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U32_GAA(T43, T44, T45, U2_ggaaa(T44, T45, split21_in_gaaa(T45)))

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, T73, split21_in_gaaa(T73))
U2_ggaaa(T72, T73, split21_out_gaaa(T73, X125, X124)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125)
split21_in_gaaa([]) → split21_out_gaaa([], [], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, T93, split21_in_gaaa(T93))
U1_gaaa(T92, T93, split21_out_gaaa(T93, X163, X162)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163)

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
U2_ggaaa(x0, x1, x2)
split21_in_gaaa(x0)
U1_gaaa(x0, x1, x2)

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

(323) Rewriting (EQUIVALENT transformation)

By rewriting [LPAR04] the rule MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U35_GAA(T43, T44, T45, split17_in_ggaaa(T44, T45)) at position [3] we obtained the following new rules [LPAR04]:

MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U35_GAA(T43, T44, T45, U2_ggaaa(T44, T45, split21_in_gaaa(T45)))

(324) Obligation:

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

U30_GAA(T43, T44, T45, split17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
U32_GAA(T43, T44, T45, split17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
U35_GAA(T43, T44, T45, split17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U30_GAA(T43, T44, T45, U2_ggaaa(T44, T45, split21_in_gaaa(T45)))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U32_GAA(T43, T44, T45, U2_ggaaa(T44, T45, split21_in_gaaa(T45)))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U35_GAA(T43, T44, T45, U2_ggaaa(T44, T45, split21_in_gaaa(T45)))

The TRS R consists of the following rules:

split17_in_ggaaa(T72, T73) → U2_ggaaa(T72, T73, split21_in_gaaa(T73))
U2_ggaaa(T72, T73, split21_out_gaaa(T73, X125, X124)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125)
split21_in_gaaa([]) → split21_out_gaaa([], [], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, T93, split21_in_gaaa(T93))
U1_gaaa(T92, T93, split21_out_gaaa(T93, X163, X162)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163)

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
U2_ggaaa(x0, x1, x2)
split21_in_gaaa(x0)
U1_gaaa(x0, x1, x2)

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

(325) UsableRulesProof (EQUIVALENT transformation)

As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R.

(326) Obligation:

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

U30_GAA(T43, T44, T45, split17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
U32_GAA(T43, T44, T45, split17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
U35_GAA(T43, T44, T45, split17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U30_GAA(T43, T44, T45, U2_ggaaa(T44, T45, split21_in_gaaa(T45)))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U32_GAA(T43, T44, T45, U2_ggaaa(T44, T45, split21_in_gaaa(T45)))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U35_GAA(T43, T44, T45, U2_ggaaa(T44, T45, split21_in_gaaa(T45)))

The TRS R consists of the following rules:

split21_in_gaaa([]) → split21_out_gaaa([], [], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, T93, split21_in_gaaa(T93))
U2_ggaaa(T72, T73, split21_out_gaaa(T73, X125, X124)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125)
U1_gaaa(T92, T93, split21_out_gaaa(T93, X163, X162)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163)

The set Q consists of the following terms:

split17_in_ggaaa(x0, x1)
U2_ggaaa(x0, x1, x2)
split21_in_gaaa(x0)
U1_gaaa(x0, x1, x2)

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

(327) QReductionProof (EQUIVALENT transformation)

We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN].

split17_in_ggaaa(x0, x1)

(328) Obligation:

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

U30_GAA(T43, T44, T45, split17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
U32_GAA(T43, T44, T45, split17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
U35_GAA(T43, T44, T45, split17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U30_GAA(T43, T44, T45, U2_ggaaa(T44, T45, split21_in_gaaa(T45)))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U32_GAA(T43, T44, T45, U2_ggaaa(T44, T45, split21_in_gaaa(T45)))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U35_GAA(T43, T44, T45, U2_ggaaa(T44, T45, split21_in_gaaa(T45)))

The TRS R consists of the following rules:

split21_in_gaaa([]) → split21_out_gaaa([], [], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, T93, split21_in_gaaa(T93))
U2_ggaaa(T72, T73, split21_out_gaaa(T73, X125, X124)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125)
U1_gaaa(T92, T93, split21_out_gaaa(T93, X163, X162)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163)

The set Q consists of the following terms:

U2_ggaaa(x0, x1, x2)
split21_in_gaaa(x0)
U1_gaaa(x0, x1, x2)

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

(329) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U30_GAA(T43, T44, T45, split17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
U32_GAA(T43, T44, T45, split17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U35_GAA(T43, T44, T45, U2_ggaaa(T44, T45, split21_in_gaaa(T45)))
The remaining pairs can at least be oriented weakly.
Used ordering: Polynomial Order [NEGPOLO,POLO] with Interpretation:

POL( U2_ggaaa(x1, ..., x3) ) = x3 + 2


POL( U30_GAA(x1, ..., x4) ) = x4 + 1


POL( U32_GAA(x1, ..., x4) ) = x4 + 1


POL( U35_GAA(x1, ..., x4) ) = x4


POL( split21_in_gaaa(x1) ) = x1


POL( [] ) = 0


POL( split21_out_gaaa(x1, ..., x3) ) = x2 + x3


POL( .(x1, x2) ) = x2 + 1


POL( U1_gaaa(x1, ..., x3) ) = x3 + 1


POL( split17_out_ggaaa(x1, ..., x4) ) = x4 + 2


POL( MERGESORT1_IN_GAA(x1) ) = x1 + 1



The following usable rules [FROCOS05] were oriented:

split21_in_gaaa([]) → split21_out_gaaa([], [], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, T93, split21_in_gaaa(T93))
U2_ggaaa(T72, T73, split21_out_gaaa(T73, X125, X124)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125)
U1_gaaa(T92, T93, split21_out_gaaa(T93, X163, X162)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163)

(330) Obligation:

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

U35_GAA(T43, T44, T45, split17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U30_GAA(T43, T44, T45, U2_ggaaa(T44, T45, split21_in_gaaa(T45)))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U32_GAA(T43, T44, T45, U2_ggaaa(T44, T45, split21_in_gaaa(T45)))

The TRS R consists of the following rules:

split21_in_gaaa([]) → split21_out_gaaa([], [], [])
split21_in_gaaa(.(T92, T93)) → U1_gaaa(T92, T93, split21_in_gaaa(T93))
U2_ggaaa(T72, T73, split21_out_gaaa(T73, X125, X124)) → split17_out_ggaaa(T72, T73, .(T72, X124), X125)
U1_gaaa(T92, T93, split21_out_gaaa(T93, X163, X162)) → split21_out_gaaa(.(T92, T93), .(T92, X162), X163)

The set Q consists of the following terms:

U2_ggaaa(x0, x1, x2)
split21_in_gaaa(x0)
U1_gaaa(x0, x1, x2)

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

(331) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 0 SCCs with 3 less nodes.

(332) TRUE