(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) PrologToDTProblemTransformerProof (SOUND transformation)

Built DT problem from termination graph.

(2) Obligation:

Triples:

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(.(T144, .(T145, T146)), X234, .(T149, T150)) :- split17(T144, .(T145, T146), X230, X231, .(T149, T150)).
mergesort33(.(T144, .(T145, T146)), X234, .(T159, T158)) :- ','(splitc17(T144, .(T145, T146), T156, T157, .(T159, T158)), mergesort33(T156, X232, T158)).
mergesort33(.(T144, .(T145, T146)), X234, .(T169, T168)) :- ','(splitc17(T144, .(T145, T146), T156, T157, .(T169, T168)), ','(mergesortc33(T156, T167, T168), mergesort33(T157, X233, T168))).
mergesort33(.(T144, .(T145, T146)), X234, .(T175, T176)) :- ','(splitc17(T144, .(T145, T146), T156, T157, .(T175, T176)), ','(mergesortc33(T156, T167, T176), ','(mergesortc33(T157, T174, T176), merge34(T167, T174, X234, T175, T176)))).
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).
p67(T249, T251, T250, T252, T256, T257) :- le69(T249, T251).
p67(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) :- ','(lec69(T249, T326), p67(T324, T326, T325, T327, T331, T332)).
p67(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) :- ','(lec69(T249, T351), p95(T349, T351, T350, T352, T356, T357)).
gt97(s(T370), s(T371)) :- gt97(T370, T371).
p95(T349, T351, T350, T352, T356, T357) :- gt97(T349, T351).
p95(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) :- ','(gtc97(T423, T351), p67(T423, T425, T424, T426, T430, T431)).
p95(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) :- ','(gtc97(T448, T351), p95(T448, T450, T449, T451, T455, T456)).
mergesort1(.(T43, .(T44, T45)), T49, .(T50, T48)) :- split17(T44, T45, X80, X79, T48).
mergesort1(.(T43, .(T44, T45)), T58, .(T59, T57)) :- ','(splitc17(T44, T45, T55, T56, T57), mergesort1(.(T43, T56), X38, T57)).
mergesort1(.(T43, .(T44, T45)), T105, .(T106, T104)) :- ','(splitc17(T44, T45, T55, T56, T104), ','(mergesortc1(.(T43, T56), T103, T104), mergesort33(T55, X39, T104))).
mergesort1(.(T43, .(T44, T45)), T114, .(T115, T116)) :- ','(splitc17(T44, T45, T55, T56, T116), ','(mergesortc1(.(T43, T56), T103, T116), ','(mergesortc33(T55, T113, T116), merge34(T103, T113, T114, T115, T116)))).

Clauses:

splitc21([], [], [], T83).
splitc21(.(T92, T93), .(T92, X162), X163, .(T94, T96)) :- splitc21(T93, X163, X162, T96).
mergesortc1([], [], T5).
mergesortc1(.(T8, []), .(T8, []), T9).
mergesortc1(.(T43, .(T44, T45)), T114, .(T115, T116)) :- ','(splitc17(T44, T45, T55, T56, T116), ','(mergesortc1(.(T43, T56), T103, T116), ','(mergesortc33(T55, T113, T116), mergec34(T103, T113, T114, T115, T116)))).
splitc17(T72, T73, .(T72, X124), X125, .(T74, T76)) :- splitc21(T73, X125, X124, T76).
mergesortc33([], [], T123).
mergesortc33(.(T132, []), .(T132, []), T133).
mergesortc33(.(T144, .(T145, T146)), X234, .(T175, T176)) :- ','(splitc17(T144, .(T145, T146), T156, T157, .(T175, T176)), ','(mergesortc33(T156, T167, T176), ','(mergesortc33(T157, T174, T176), mergec34(T167, T174, X234, T175, T176)))).
mergec34([], T203, T203, T204, T205).
mergec34(T218, [], T218, T219, T220).
mergec34(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) :- qc67(T249, T251, T250, T252, T256, T257).
mergec34(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) :- qc95(T473, T475, T474, T476, T480, T481).
lec69(s(T270), s(T271)) :- lec69(T270, T271).
lec69(0, s(0)).
lec69(0, 0).
qc67(T249, T292, [], T293, .(T292, T293), T294) :- lec69(T249, T292).
qc67(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) :- ','(lec69(T249, T326), qc67(T324, T326, T325, T327, T331, T332)).
qc67(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) :- ','(lec69(T249, T351), qc95(T349, T351, T350, T352, T356, T357)).
gtc97(s(T370), s(T371)) :- gtc97(T370, T371).
gtc97(s(0), 0).
qc95(T392, T351, T393, [], .(T392, T393), T394) :- gtc97(T392, T351).
qc95(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) :- ','(gtc97(T423, T351), qc67(T423, T425, T424, T426, T430, T431)).
qc95(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) :- ','(gtc97(T448, T351), qc95(T448, T450, T449, T451, T455, T456)).

Afs:

mergesort1(x1, x2, x3)  =  mergesort1(x1)

(3) TriplesToPiDPProof (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)
splitc17_in: (b,b,f,f,f)
splitc21_in: (b,f,f,f)
mergesortc1_in: (b,f,f)
mergesortc33_in: (b,f,f)
mergec34_in: (b,b,f,f,f)
qc67_in: (b,b,b,b,f,f)
lec69_in: (b,b)
qc95_in: (b,b,b,b,f,f)
gtc97_in: (b,b)
mergesort33_in: (b,f,f)
merge34_in: (b,b,f,f,f)
p67_in: (b,b,b,b,f,f)
le69_in: (b,b)
p95_in: (b,b,b,b,f,f)
gt97_in: (b,b)
Transforming TRIPLES into the following Term Rewriting System:
Pi DP problem:
The TRS P consists of the following rules:

MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T49, .(T50, T48)) → U27_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)) → U28_GAA(T43, T44, T45, T58, T59, T57, splitc17_in_ggaaa(T44, T45, T55, T56, T57))
U28_GAA(T43, T44, T45, T58, T59, T57, splitc17_out_ggaaa(T44, T45, T55, T56, T57)) → U29_GAA(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
U28_GAA(T43, T44, T45, T58, T59, T57, splitc17_out_ggaaa(T44, T45, T55, T56, T57)) → MERGESORT1_IN_GAA(.(T43, T56), X38, T57)
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T105, .(T106, T104)) → U30_GAA(T43, T44, T45, T105, T106, T104, splitc17_in_ggaaa(T44, T45, T55, T56, T104))
U30_GAA(T43, T44, T45, T105, T106, T104, splitc17_out_ggaaa(T44, T45, T55, T56, T104)) → U31_GAA(T43, T44, T45, T105, T106, T104, T55, mergesortc1_in_gaa(.(T43, T56), T103, T104))
U31_GAA(T43, T44, T45, T105, T106, T104, T55, mergesortc1_out_gaa(.(T43, T56), T103, T104)) → U32_GAA(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U31_GAA(T43, T44, T45, T105, T106, T104, T55, mergesortc1_out_gaa(.(T43, T56), T103, T104)) → MERGESORT33_IN_GAA(T55, X39, T104)
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, splitc17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_GAA(T144, T145, T146, X234, T159, T158, splitc17_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, splitc17_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, splitc17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_GAA(T144, T145, T146, X234, T169, T168, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesortc33_in_gaa(T156, T167, T168))
U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesortc33_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, mergesortc33_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, splitc17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_GAA(T144, T145, T146, X234, T175, T176, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_GAA(T144, T145, T146, X234, T175, T176, T157, mergesortc33_in_gaa(T156, T167, T176))
U10_GAA(T144, T145, T146, X234, T175, T176, T157, mergesortc33_out_gaa(T156, T167, T176)) → U11_GAA(T144, T145, T146, X234, T175, T176, T167, mergesortc33_in_gaa(T157, T174, T176))
U11_GAA(T144, T145, T146, X234, T175, T176, T167, mergesortc33_out_gaa(T157, T174, T176)) → U12_GAA(T144, T145, T146, X234, T175, T176, merge34_in_ggaaa(T167, T174, X234, T175, T176))
U11_GAA(T144, T145, T146, X234, T175, T176, T167, mergesortc33_out_gaa(T157, T174, T176)) → MERGE34_IN_GGAAA(T167, T174, X234, T175, T176)
MERGE34_IN_GGAAA(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_GGAAA(T249, T250, T251, T252, T256, T254, T257, p67_in_ggggaa(T249, T251, T250, T252, T256, T257))
MERGE34_IN_GGAAA(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → P67_IN_GGGGAA(T249, T251, T250, T252, T256, T257)
P67_IN_GGGGAA(T249, T251, T250, T252, T256, T257) → U16_GGGGAA(T249, T251, T250, T252, T256, T257, le69_in_gg(T249, T251))
P67_IN_GGGGAA(T249, T251, T250, T252, T256, T257) → LE69_IN_GG(T249, T251)
LE69_IN_GG(s(T270), s(T271)) → U15_GG(T270, T271, le69_in_gg(T270, T271))
LE69_IN_GG(s(T270), s(T271)) → LE69_IN_GG(T270, T271)
P67_IN_GGGGAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U17_GGGGAA(T249, T326, T324, T325, T327, T331, T329, T332, lec69_in_gg(T249, T326))
U17_GGGGAA(T249, T326, T324, T325, T327, T331, T329, T332, lec69_out_gg(T249, T326)) → U18_GGGGAA(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_ggggaa(T324, T326, T325, T327, T331, T332))
U17_GGGGAA(T249, T326, T324, T325, T327, T331, T329, T332, lec69_out_gg(T249, T326)) → P67_IN_GGGGAA(T324, T326, T325, T327, T331, T332)
P67_IN_GGGGAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U19_GGGGAA(T249, T351, T349, T350, T352, T356, T354, T357, lec69_in_gg(T249, T351))
U19_GGGGAA(T249, T351, T349, T350, T352, T356, T354, T357, lec69_out_gg(T249, T351)) → U20_GGGGAA(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_ggggaa(T349, T351, T350, T352, T356, T357))
U19_GGGGAA(T249, T351, T349, T350, T352, T356, T354, T357, lec69_out_gg(T249, T351)) → P95_IN_GGGGAA(T349, T351, T350, T352, T356, T357)
P95_IN_GGGGAA(T349, T351, T350, T352, T356, T357) → U22_GGGGAA(T349, T351, T350, T352, T356, T357, gt97_in_gg(T349, T351))
P95_IN_GGGGAA(T349, T351, T350, T352, T356, T357) → GT97_IN_GG(T349, T351)
GT97_IN_GG(s(T370), s(T371)) → U21_GG(T370, T371, gt97_in_gg(T370, T371))
GT97_IN_GG(s(T370), s(T371)) → GT97_IN_GG(T370, T371)
P95_IN_GGGGAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U23_GGGGAA(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_in_gg(T423, T351))
U23_GGGGAA(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_out_gg(T423, T351)) → U24_GGGGAA(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_ggggaa(T423, T425, T424, T426, T430, T431))
U23_GGGGAA(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_out_gg(T423, T351)) → P67_IN_GGGGAA(T423, T425, T424, T426, T430, T431)
P95_IN_GGGGAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U25_GGGGAA(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_in_gg(T448, T351))
U25_GGGGAA(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_out_gg(T448, T351)) → U26_GGGGAA(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_ggggaa(T448, T450, T449, T451, T455, T456))
U25_GGGGAA(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_out_gg(T448, T351)) → P95_IN_GGGGAA(T448, T450, T449, T451, T455, T456)
MERGE34_IN_GGAAA(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_GGAAA(T473, T474, T475, T476, T480, T478, T481, p95_in_ggggaa(T473, T475, T474, T476, T480, T481))
MERGE34_IN_GGAAA(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → P95_IN_GGGGAA(T473, T475, T474, T476, T480, T481)
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T114, .(T115, T116)) → U33_GAA(T43, T44, T45, T114, T115, T116, splitc17_in_ggaaa(T44, T45, T55, T56, T116))
U33_GAA(T43, T44, T45, T114, T115, T116, splitc17_out_ggaaa(T44, T45, T55, T56, T116)) → U34_GAA(T43, T44, T45, T114, T115, T116, T55, mergesortc1_in_gaa(.(T43, T56), T103, T116))
U34_GAA(T43, T44, T45, T114, T115, T116, T55, mergesortc1_out_gaa(.(T43, T56), T103, T116)) → U35_GAA(T43, T44, T45, T114, T115, T116, T103, mergesortc33_in_gaa(T55, T113, T116))
U35_GAA(T43, T44, T45, T114, T115, T116, T103, mergesortc33_out_gaa(T55, T113, T116)) → U36_GAA(T43, T44, T45, T114, T115, T116, merge34_in_ggaaa(T103, T113, T114, T115, T116))
U35_GAA(T43, T44, T45, T114, T115, T116, T103, mergesortc33_out_gaa(T55, T113, T116)) → MERGE34_IN_GGAAA(T103, T113, T114, T115, T116)

The TRS R consists of the following rules:

splitc17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U43_ggaaa(T72, T73, X124, X125, T74, T76, splitc21_in_gaaa(T73, X125, X124, T76))
splitc21_in_gaaa([], [], [], T83) → splitc21_out_gaaa([], [], [], T83)
splitc21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U38_gaaa(T92, T93, X162, X163, T94, T96, splitc21_in_gaaa(T93, X163, X162, T96))
U38_gaaa(T92, T93, X162, X163, T94, T96, splitc21_out_gaaa(T93, X163, X162, T96)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U43_ggaaa(T72, T73, X124, X125, T74, T76, splitc21_out_gaaa(T73, X125, X124, T76)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
mergesortc1_in_gaa([], [], T5) → mergesortc1_out_gaa([], [], T5)
mergesortc1_in_gaa(.(T8, []), .(T8, []), T9) → mergesortc1_out_gaa(.(T8, []), .(T8, []), T9)
mergesortc1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U39_gaa(T43, T44, T45, T114, T115, T116, splitc17_in_ggaaa(T44, T45, T55, T56, T116))
U39_gaa(T43, T44, T45, T114, T115, T116, splitc17_out_ggaaa(T44, T45, T55, T56, T116)) → U40_gaa(T43, T44, T45, T114, T115, T116, T55, mergesortc1_in_gaa(.(T43, T56), T103, T116))
U40_gaa(T43, T44, T45, T114, T115, T116, T55, mergesortc1_out_gaa(.(T43, T56), T103, T116)) → U41_gaa(T43, T44, T45, T114, T115, T116, T103, mergesortc33_in_gaa(T55, T113, T116))
mergesortc33_in_gaa([], [], T123) → mergesortc33_out_gaa([], [], T123)
mergesortc33_in_gaa(.(T132, []), .(T132, []), T133) → mergesortc33_out_gaa(.(T132, []), .(T132, []), T133)
mergesortc33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U44_gaa(T144, T145, T146, X234, T175, T176, splitc17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U44_gaa(T144, T145, T146, X234, T175, T176, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U45_gaa(T144, T145, T146, X234, T175, T176, T157, mergesortc33_in_gaa(T156, T167, T176))
U45_gaa(T144, T145, T146, X234, T175, T176, T157, mergesortc33_out_gaa(T156, T167, T176)) → U46_gaa(T144, T145, T146, X234, T175, T176, T167, mergesortc33_in_gaa(T157, T174, T176))
U46_gaa(T144, T145, T146, X234, T175, T176, T167, mergesortc33_out_gaa(T157, T174, T176)) → U47_gaa(T144, T145, T146, X234, T175, T176, mergec34_in_ggaaa(T167, T174, X234, T175, T176))
mergec34_in_ggaaa([], T203, T203, T204, T205) → mergec34_out_ggaaa([], T203, T203, T204, T205)
mergec34_in_ggaaa(T218, [], T218, T219, T220) → mergec34_out_ggaaa(T218, [], T218, T219, T220)
mergec34_in_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U48_ggaaa(T249, T250, T251, T252, T256, T254, T257, qc67_in_ggggaa(T249, T251, T250, T252, T256, T257))
qc67_in_ggggaa(T249, T292, [], T293, .(T292, T293), T294) → U51_ggggaa(T249, T292, T293, T294, lec69_in_gg(T249, T292))
lec69_in_gg(s(T270), s(T271)) → U50_gg(T270, T271, lec69_in_gg(T270, T271))
lec69_in_gg(0, s(0)) → lec69_out_gg(0, s(0))
lec69_in_gg(0, 0) → lec69_out_gg(0, 0)
U50_gg(T270, T271, lec69_out_gg(T270, T271)) → lec69_out_gg(s(T270), s(T271))
U51_ggggaa(T249, T292, T293, T294, lec69_out_gg(T249, T292)) → qc67_out_ggggaa(T249, T292, [], T293, .(T292, T293), T294)
qc67_in_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U52_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, lec69_in_gg(T249, T326))
U52_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, lec69_out_gg(T249, T326)) → U53_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, qc67_in_ggggaa(T324, T326, T325, T327, T331, T332))
qc67_in_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U54_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, lec69_in_gg(T249, T351))
U54_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, lec69_out_gg(T249, T351)) → U55_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, qc95_in_ggggaa(T349, T351, T350, T352, T356, T357))
qc95_in_ggggaa(T392, T351, T393, [], .(T392, T393), T394) → U57_ggggaa(T392, T351, T393, T394, gtc97_in_gg(T392, T351))
gtc97_in_gg(s(T370), s(T371)) → U56_gg(T370, T371, gtc97_in_gg(T370, T371))
gtc97_in_gg(s(0), 0) → gtc97_out_gg(s(0), 0)
U56_gg(T370, T371, gtc97_out_gg(T370, T371)) → gtc97_out_gg(s(T370), s(T371))
U57_ggggaa(T392, T351, T393, T394, gtc97_out_gg(T392, T351)) → qc95_out_ggggaa(T392, T351, T393, [], .(T392, T393), T394)
qc95_in_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U58_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_in_gg(T423, T351))
U58_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_out_gg(T423, T351)) → U59_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, qc67_in_ggggaa(T423, T425, T424, T426, T430, T431))
U59_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, qc67_out_ggggaa(T423, T425, T424, T426, T430, T431)) → qc95_out_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
qc95_in_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U60_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_in_gg(T448, T351))
U60_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_out_gg(T448, T351)) → U61_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, qc95_in_ggggaa(T448, T450, T449, T451, T455, T456))
U61_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, qc95_out_ggggaa(T448, T450, T449, T451, T455, T456)) → qc95_out_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U55_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, qc95_out_ggggaa(T349, T351, T350, T352, T356, T357)) → qc67_out_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U53_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, qc67_out_ggggaa(T324, T326, T325, T327, T331, T332)) → qc67_out_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U48_ggaaa(T249, T250, T251, T252, T256, T254, T257, qc67_out_ggggaa(T249, T251, T250, T252, T256, T257)) → mergec34_out_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
mergec34_in_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U49_ggaaa(T473, T474, T475, T476, T480, T478, T481, qc95_in_ggggaa(T473, T475, T474, T476, T480, T481))
U49_ggaaa(T473, T474, T475, T476, T480, T478, T481, qc95_out_ggggaa(T473, T475, T474, T476, T480, T481)) → mergec34_out_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U47_gaa(T144, T145, T146, X234, T175, T176, mergec34_out_ggaaa(T167, T174, X234, T175, T176)) → mergesortc33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U41_gaa(T43, T44, T45, T114, T115, T116, T103, mergesortc33_out_gaa(T55, T113, T116)) → U42_gaa(T43, T44, T45, T114, T115, T116, mergec34_in_ggaaa(T103, T113, T114, T115, T116))
U42_gaa(T43, T44, T45, T114, T115, T116, mergec34_out_ggaaa(T103, T113, T114, T115, T116)) → mergesortc1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
.(x1, x2)  =  .(x1, x2)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
splitc17_in_ggaaa(x1, x2, x3, x4, x5)  =  splitc17_in_ggaaa(x1, x2)
U43_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U43_ggaaa(x1, x2, x7)
splitc21_in_gaaa(x1, x2, x3, x4)  =  splitc21_in_gaaa(x1)
[]  =  []
splitc21_out_gaaa(x1, x2, x3, x4)  =  splitc21_out_gaaa(x1, x2, x3)
U38_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaaa(x1, x2, x7)
splitc17_out_ggaaa(x1, x2, x3, x4, x5)  =  splitc17_out_ggaaa(x1, x2, x3, x4)
mergesortc1_in_gaa(x1, x2, x3)  =  mergesortc1_in_gaa(x1)
mergesortc1_out_gaa(x1, x2, x3)  =  mergesortc1_out_gaa(x1, x2)
U39_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U39_gaa(x1, x2, x3, x7)
U40_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_gaa(x1, x2, x3, x7, x8)
U41_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U41_gaa(x1, x2, x3, x7, x8)
mergesortc33_in_gaa(x1, x2, x3)  =  mergesortc33_in_gaa(x1)
mergesortc33_out_gaa(x1, x2, x3)  =  mergesortc33_out_gaa(x1, x2)
U44_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U44_gaa(x1, x2, x3, x7)
U45_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U45_gaa(x1, x2, x3, x7, x8)
U46_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_gaa(x1, x2, x3, x7, x8)
U47_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U47_gaa(x1, x2, x3, x7)
mergec34_in_ggaaa(x1, x2, x3, x4, x5)  =  mergec34_in_ggaaa(x1, x2)
mergec34_out_ggaaa(x1, x2, x3, x4, x5)  =  mergec34_out_ggaaa(x1, x2, x3)
U48_ggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ggaaa(x1, x2, x3, x4, x8)
qc67_in_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc67_in_ggggaa(x1, x2, x3, x4)
U51_ggggaa(x1, x2, x3, x4, x5)  =  U51_ggggaa(x1, x2, x3, x5)
lec69_in_gg(x1, x2)  =  lec69_in_gg(x1, x2)
s(x1)  =  s(x1)
U50_gg(x1, x2, x3)  =  U50_gg(x1, x2, x3)
0  =  0
lec69_out_gg(x1, x2)  =  lec69_out_gg(x1, x2)
qc67_out_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc67_out_ggggaa(x1, x2, x3, x4, x5)
U52_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U52_ggggaa(x1, x2, x3, x4, x5, x9)
U53_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U53_ggggaa(x1, x2, x3, x4, x5, x9)
U54_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U54_ggggaa(x1, x2, x3, x4, x5, x9)
U55_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U55_ggggaa(x1, x2, x3, x4, x5, x9)
qc95_in_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc95_in_ggggaa(x1, x2, x3, x4)
U57_ggggaa(x1, x2, x3, x4, x5)  =  U57_ggggaa(x1, x2, x3, x5)
gtc97_in_gg(x1, x2)  =  gtc97_in_gg(x1, x2)
U56_gg(x1, x2, x3)  =  U56_gg(x1, x2, x3)
gtc97_out_gg(x1, x2)  =  gtc97_out_gg(x1, x2)
qc95_out_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc95_out_ggggaa(x1, x2, x3, x4, x5)
U58_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U58_ggggaa(x1, x2, x3, x4, x5, x9)
U59_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U59_ggggaa(x1, x2, x3, x4, x5, x9)
U60_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U60_ggggaa(x1, x2, x3, x4, x5, x9)
U61_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U61_ggggaa(x1, x2, x3, x4, x5, x9)
U49_ggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U49_ggaaa(x1, x2, x3, x4, x8)
U42_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U42_gaa(x1, x2, x3, x7)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
merge34_in_ggaaa(x1, x2, x3, x4, x5)  =  merge34_in_ggaaa(x1, x2)
p67_in_ggggaa(x1, x2, x3, x4, x5, x6)  =  p67_in_ggggaa(x1, x2, x3, x4)
le69_in_gg(x1, x2)  =  le69_in_gg(x1, x2)
p95_in_ggggaa(x1, x2, x3, x4, x5, x6)  =  p95_in_ggggaa(x1, x2, x3, x4)
gt97_in_gg(x1, x2)  =  gt97_in_gg(x1, x2)
MERGESORT1_IN_GAA(x1, x2, x3)  =  MERGESORT1_IN_GAA(x1)
U27_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U27_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)
U28_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U28_GAA(x1, x2, x3, x7)
U29_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U29_GAA(x1, x2, x3, 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, x8)  =  U31_GAA(x1, x2, x3, x7, x8)
U32_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U32_GAA(x1, x2, x3, x7)
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)
U8_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U8_GAA(x1, x2, x3, x7)
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, x7, x8)
U12_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U12_GAA(x1, x2, x3, x7)
MERGE34_IN_GGAAA(x1, x2, x3, x4, x5)  =  MERGE34_IN_GGAAA(x1, x2)
U13_GGAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_GGAAA(x1, x2, x3, x4, x8)
P67_IN_GGGGAA(x1, x2, x3, x4, x5, x6)  =  P67_IN_GGGGAA(x1, x2, x3, x4)
U16_GGGGAA(x1, x2, x3, x4, x5, x6, x7)  =  U16_GGGGAA(x1, x2, x3, x4, x7)
LE69_IN_GG(x1, x2)  =  LE69_IN_GG(x1, x2)
U15_GG(x1, x2, x3)  =  U15_GG(x1, x2, x3)
U17_GGGGAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U17_GGGGAA(x1, x2, x3, x4, x5, x9)
U18_GGGGAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_GGGGAA(x1, x2, x3, x4, x5, x9)
U19_GGGGAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_GGGGAA(x1, x2, x3, x4, x5, x9)
U20_GGGGAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_GGGGAA(x1, x2, x3, x4, x5, x9)
P95_IN_GGGGAA(x1, x2, x3, x4, x5, x6)  =  P95_IN_GGGGAA(x1, x2, x3, x4)
U22_GGGGAA(x1, x2, x3, x4, x5, x6, x7)  =  U22_GGGGAA(x1, x2, x3, x4, x7)
GT97_IN_GG(x1, x2)  =  GT97_IN_GG(x1, x2)
U21_GG(x1, x2, x3)  =  U21_GG(x1, x2, x3)
U23_GGGGAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U23_GGGGAA(x1, x2, x3, x4, x5, x9)
U24_GGGGAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U24_GGGGAA(x1, x2, x3, x4, x5, x9)
U25_GGGGAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_GGGGAA(x1, x2, x3, x4, x5, x9)
U26_GGGGAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_GGGGAA(x1, x2, x3, x4, x5, x9)
U14_GGAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_GGAAA(x1, x2, x3, x4, x8)
U33_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U33_GAA(x1, x2, x3, x7)
U34_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U34_GAA(x1, x2, x3, x7, x8)
U35_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U35_GAA(x1, x2, x3, x7, x8)
U36_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U36_GAA(x1, x2, x3, x7)

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

Infinitary Constructor Rewriting Termination of PiDP implies Termination of TRIPLES

(4) Obligation:

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

MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T49, .(T50, T48)) → U27_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)) → U28_GAA(T43, T44, T45, T58, T59, T57, splitc17_in_ggaaa(T44, T45, T55, T56, T57))
U28_GAA(T43, T44, T45, T58, T59, T57, splitc17_out_ggaaa(T44, T45, T55, T56, T57)) → U29_GAA(T43, T44, T45, T58, T59, T57, mergesort1_in_gaa(.(T43, T56), X38, T57))
U28_GAA(T43, T44, T45, T58, T59, T57, splitc17_out_ggaaa(T44, T45, T55, T56, T57)) → MERGESORT1_IN_GAA(.(T43, T56), X38, T57)
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T105, .(T106, T104)) → U30_GAA(T43, T44, T45, T105, T106, T104, splitc17_in_ggaaa(T44, T45, T55, T56, T104))
U30_GAA(T43, T44, T45, T105, T106, T104, splitc17_out_ggaaa(T44, T45, T55, T56, T104)) → U31_GAA(T43, T44, T45, T105, T106, T104, T55, mergesortc1_in_gaa(.(T43, T56), T103, T104))
U31_GAA(T43, T44, T45, T105, T106, T104, T55, mergesortc1_out_gaa(.(T43, T56), T103, T104)) → U32_GAA(T43, T44, T45, T105, T106, T104, mergesort33_in_gaa(T55, X39, T104))
U31_GAA(T43, T44, T45, T105, T106, T104, T55, mergesortc1_out_gaa(.(T43, T56), T103, T104)) → MERGESORT33_IN_GAA(T55, X39, T104)
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, splitc17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_GAA(T144, T145, T146, X234, T159, T158, splitc17_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, splitc17_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, splitc17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_GAA(T144, T145, T146, X234, T169, T168, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesortc33_in_gaa(T156, T167, T168))
U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesortc33_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, mergesortc33_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, splitc17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U9_GAA(T144, T145, T146, X234, T175, T176, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U10_GAA(T144, T145, T146, X234, T175, T176, T157, mergesortc33_in_gaa(T156, T167, T176))
U10_GAA(T144, T145, T146, X234, T175, T176, T157, mergesortc33_out_gaa(T156, T167, T176)) → U11_GAA(T144, T145, T146, X234, T175, T176, T167, mergesortc33_in_gaa(T157, T174, T176))
U11_GAA(T144, T145, T146, X234, T175, T176, T167, mergesortc33_out_gaa(T157, T174, T176)) → U12_GAA(T144, T145, T146, X234, T175, T176, merge34_in_ggaaa(T167, T174, X234, T175, T176))
U11_GAA(T144, T145, T146, X234, T175, T176, T167, mergesortc33_out_gaa(T157, T174, T176)) → MERGE34_IN_GGAAA(T167, T174, X234, T175, T176)
MERGE34_IN_GGAAA(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U13_GGAAA(T249, T250, T251, T252, T256, T254, T257, p67_in_ggggaa(T249, T251, T250, T252, T256, T257))
MERGE34_IN_GGAAA(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → P67_IN_GGGGAA(T249, T251, T250, T252, T256, T257)
P67_IN_GGGGAA(T249, T251, T250, T252, T256, T257) → U16_GGGGAA(T249, T251, T250, T252, T256, T257, le69_in_gg(T249, T251))
P67_IN_GGGGAA(T249, T251, T250, T252, T256, T257) → LE69_IN_GG(T249, T251)
LE69_IN_GG(s(T270), s(T271)) → U15_GG(T270, T271, le69_in_gg(T270, T271))
LE69_IN_GG(s(T270), s(T271)) → LE69_IN_GG(T270, T271)
P67_IN_GGGGAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U17_GGGGAA(T249, T326, T324, T325, T327, T331, T329, T332, lec69_in_gg(T249, T326))
U17_GGGGAA(T249, T326, T324, T325, T327, T331, T329, T332, lec69_out_gg(T249, T326)) → U18_GGGGAA(T249, T326, T324, T325, T327, T331, T329, T332, p67_in_ggggaa(T324, T326, T325, T327, T331, T332))
U17_GGGGAA(T249, T326, T324, T325, T327, T331, T329, T332, lec69_out_gg(T249, T326)) → P67_IN_GGGGAA(T324, T326, T325, T327, T331, T332)
P67_IN_GGGGAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U19_GGGGAA(T249, T351, T349, T350, T352, T356, T354, T357, lec69_in_gg(T249, T351))
U19_GGGGAA(T249, T351, T349, T350, T352, T356, T354, T357, lec69_out_gg(T249, T351)) → U20_GGGGAA(T249, T351, T349, T350, T352, T356, T354, T357, p95_in_ggggaa(T349, T351, T350, T352, T356, T357))
U19_GGGGAA(T249, T351, T349, T350, T352, T356, T354, T357, lec69_out_gg(T249, T351)) → P95_IN_GGGGAA(T349, T351, T350, T352, T356, T357)
P95_IN_GGGGAA(T349, T351, T350, T352, T356, T357) → U22_GGGGAA(T349, T351, T350, T352, T356, T357, gt97_in_gg(T349, T351))
P95_IN_GGGGAA(T349, T351, T350, T352, T356, T357) → GT97_IN_GG(T349, T351)
GT97_IN_GG(s(T370), s(T371)) → U21_GG(T370, T371, gt97_in_gg(T370, T371))
GT97_IN_GG(s(T370), s(T371)) → GT97_IN_GG(T370, T371)
P95_IN_GGGGAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U23_GGGGAA(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_in_gg(T423, T351))
U23_GGGGAA(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_out_gg(T423, T351)) → U24_GGGGAA(T423, T351, T424, T425, T426, T430, T428, T431, p67_in_ggggaa(T423, T425, T424, T426, T430, T431))
U23_GGGGAA(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_out_gg(T423, T351)) → P67_IN_GGGGAA(T423, T425, T424, T426, T430, T431)
P95_IN_GGGGAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U25_GGGGAA(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_in_gg(T448, T351))
U25_GGGGAA(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_out_gg(T448, T351)) → U26_GGGGAA(T448, T351, T449, T450, T451, T455, T453, T456, p95_in_ggggaa(T448, T450, T449, T451, T455, T456))
U25_GGGGAA(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_out_gg(T448, T351)) → P95_IN_GGGGAA(T448, T450, T449, T451, T455, T456)
MERGE34_IN_GGAAA(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U14_GGAAA(T473, T474, T475, T476, T480, T478, T481, p95_in_ggggaa(T473, T475, T474, T476, T480, T481))
MERGE34_IN_GGAAA(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → P95_IN_GGGGAA(T473, T475, T474, T476, T480, T481)
MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T114, .(T115, T116)) → U33_GAA(T43, T44, T45, T114, T115, T116, splitc17_in_ggaaa(T44, T45, T55, T56, T116))
U33_GAA(T43, T44, T45, T114, T115, T116, splitc17_out_ggaaa(T44, T45, T55, T56, T116)) → U34_GAA(T43, T44, T45, T114, T115, T116, T55, mergesortc1_in_gaa(.(T43, T56), T103, T116))
U34_GAA(T43, T44, T45, T114, T115, T116, T55, mergesortc1_out_gaa(.(T43, T56), T103, T116)) → U35_GAA(T43, T44, T45, T114, T115, T116, T103, mergesortc33_in_gaa(T55, T113, T116))
U35_GAA(T43, T44, T45, T114, T115, T116, T103, mergesortc33_out_gaa(T55, T113, T116)) → U36_GAA(T43, T44, T45, T114, T115, T116, merge34_in_ggaaa(T103, T113, T114, T115, T116))
U35_GAA(T43, T44, T45, T114, T115, T116, T103, mergesortc33_out_gaa(T55, T113, T116)) → MERGE34_IN_GGAAA(T103, T113, T114, T115, T116)

The TRS R consists of the following rules:

splitc17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U43_ggaaa(T72, T73, X124, X125, T74, T76, splitc21_in_gaaa(T73, X125, X124, T76))
splitc21_in_gaaa([], [], [], T83) → splitc21_out_gaaa([], [], [], T83)
splitc21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U38_gaaa(T92, T93, X162, X163, T94, T96, splitc21_in_gaaa(T93, X163, X162, T96))
U38_gaaa(T92, T93, X162, X163, T94, T96, splitc21_out_gaaa(T93, X163, X162, T96)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U43_ggaaa(T72, T73, X124, X125, T74, T76, splitc21_out_gaaa(T73, X125, X124, T76)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
mergesortc1_in_gaa([], [], T5) → mergesortc1_out_gaa([], [], T5)
mergesortc1_in_gaa(.(T8, []), .(T8, []), T9) → mergesortc1_out_gaa(.(T8, []), .(T8, []), T9)
mergesortc1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U39_gaa(T43, T44, T45, T114, T115, T116, splitc17_in_ggaaa(T44, T45, T55, T56, T116))
U39_gaa(T43, T44, T45, T114, T115, T116, splitc17_out_ggaaa(T44, T45, T55, T56, T116)) → U40_gaa(T43, T44, T45, T114, T115, T116, T55, mergesortc1_in_gaa(.(T43, T56), T103, T116))
U40_gaa(T43, T44, T45, T114, T115, T116, T55, mergesortc1_out_gaa(.(T43, T56), T103, T116)) → U41_gaa(T43, T44, T45, T114, T115, T116, T103, mergesortc33_in_gaa(T55, T113, T116))
mergesortc33_in_gaa([], [], T123) → mergesortc33_out_gaa([], [], T123)
mergesortc33_in_gaa(.(T132, []), .(T132, []), T133) → mergesortc33_out_gaa(.(T132, []), .(T132, []), T133)
mergesortc33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U44_gaa(T144, T145, T146, X234, T175, T176, splitc17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U44_gaa(T144, T145, T146, X234, T175, T176, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U45_gaa(T144, T145, T146, X234, T175, T176, T157, mergesortc33_in_gaa(T156, T167, T176))
U45_gaa(T144, T145, T146, X234, T175, T176, T157, mergesortc33_out_gaa(T156, T167, T176)) → U46_gaa(T144, T145, T146, X234, T175, T176, T167, mergesortc33_in_gaa(T157, T174, T176))
U46_gaa(T144, T145, T146, X234, T175, T176, T167, mergesortc33_out_gaa(T157, T174, T176)) → U47_gaa(T144, T145, T146, X234, T175, T176, mergec34_in_ggaaa(T167, T174, X234, T175, T176))
mergec34_in_ggaaa([], T203, T203, T204, T205) → mergec34_out_ggaaa([], T203, T203, T204, T205)
mergec34_in_ggaaa(T218, [], T218, T219, T220) → mergec34_out_ggaaa(T218, [], T218, T219, T220)
mergec34_in_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U48_ggaaa(T249, T250, T251, T252, T256, T254, T257, qc67_in_ggggaa(T249, T251, T250, T252, T256, T257))
qc67_in_ggggaa(T249, T292, [], T293, .(T292, T293), T294) → U51_ggggaa(T249, T292, T293, T294, lec69_in_gg(T249, T292))
lec69_in_gg(s(T270), s(T271)) → U50_gg(T270, T271, lec69_in_gg(T270, T271))
lec69_in_gg(0, s(0)) → lec69_out_gg(0, s(0))
lec69_in_gg(0, 0) → lec69_out_gg(0, 0)
U50_gg(T270, T271, lec69_out_gg(T270, T271)) → lec69_out_gg(s(T270), s(T271))
U51_ggggaa(T249, T292, T293, T294, lec69_out_gg(T249, T292)) → qc67_out_ggggaa(T249, T292, [], T293, .(T292, T293), T294)
qc67_in_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U52_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, lec69_in_gg(T249, T326))
U52_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, lec69_out_gg(T249, T326)) → U53_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, qc67_in_ggggaa(T324, T326, T325, T327, T331, T332))
qc67_in_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U54_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, lec69_in_gg(T249, T351))
U54_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, lec69_out_gg(T249, T351)) → U55_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, qc95_in_ggggaa(T349, T351, T350, T352, T356, T357))
qc95_in_ggggaa(T392, T351, T393, [], .(T392, T393), T394) → U57_ggggaa(T392, T351, T393, T394, gtc97_in_gg(T392, T351))
gtc97_in_gg(s(T370), s(T371)) → U56_gg(T370, T371, gtc97_in_gg(T370, T371))
gtc97_in_gg(s(0), 0) → gtc97_out_gg(s(0), 0)
U56_gg(T370, T371, gtc97_out_gg(T370, T371)) → gtc97_out_gg(s(T370), s(T371))
U57_ggggaa(T392, T351, T393, T394, gtc97_out_gg(T392, T351)) → qc95_out_ggggaa(T392, T351, T393, [], .(T392, T393), T394)
qc95_in_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U58_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_in_gg(T423, T351))
U58_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_out_gg(T423, T351)) → U59_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, qc67_in_ggggaa(T423, T425, T424, T426, T430, T431))
U59_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, qc67_out_ggggaa(T423, T425, T424, T426, T430, T431)) → qc95_out_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
qc95_in_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U60_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_in_gg(T448, T351))
U60_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_out_gg(T448, T351)) → U61_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, qc95_in_ggggaa(T448, T450, T449, T451, T455, T456))
U61_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, qc95_out_ggggaa(T448, T450, T449, T451, T455, T456)) → qc95_out_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U55_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, qc95_out_ggggaa(T349, T351, T350, T352, T356, T357)) → qc67_out_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U53_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, qc67_out_ggggaa(T324, T326, T325, T327, T331, T332)) → qc67_out_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U48_ggaaa(T249, T250, T251, T252, T256, T254, T257, qc67_out_ggggaa(T249, T251, T250, T252, T256, T257)) → mergec34_out_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
mergec34_in_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U49_ggaaa(T473, T474, T475, T476, T480, T478, T481, qc95_in_ggggaa(T473, T475, T474, T476, T480, T481))
U49_ggaaa(T473, T474, T475, T476, T480, T478, T481, qc95_out_ggggaa(T473, T475, T474, T476, T480, T481)) → mergec34_out_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U47_gaa(T144, T145, T146, X234, T175, T176, mergec34_out_ggaaa(T167, T174, X234, T175, T176)) → mergesortc33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U41_gaa(T43, T44, T45, T114, T115, T116, T103, mergesortc33_out_gaa(T55, T113, T116)) → U42_gaa(T43, T44, T45, T114, T115, T116, mergec34_in_ggaaa(T103, T113, T114, T115, T116))
U42_gaa(T43, T44, T45, T114, T115, T116, mergec34_out_ggaaa(T103, T113, T114, T115, T116)) → mergesortc1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))

The argument filtering Pi contains the following mapping:
mergesort1_in_gaa(x1, x2, x3)  =  mergesort1_in_gaa(x1)
.(x1, x2)  =  .(x1, x2)
split17_in_ggaaa(x1, x2, x3, x4, x5)  =  split17_in_ggaaa(x1, x2)
split21_in_gaaa(x1, x2, x3, x4)  =  split21_in_gaaa(x1)
splitc17_in_ggaaa(x1, x2, x3, x4, x5)  =  splitc17_in_ggaaa(x1, x2)
U43_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U43_ggaaa(x1, x2, x7)
splitc21_in_gaaa(x1, x2, x3, x4)  =  splitc21_in_gaaa(x1)
[]  =  []
splitc21_out_gaaa(x1, x2, x3, x4)  =  splitc21_out_gaaa(x1, x2, x3)
U38_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaaa(x1, x2, x7)
splitc17_out_ggaaa(x1, x2, x3, x4, x5)  =  splitc17_out_ggaaa(x1, x2, x3, x4)
mergesortc1_in_gaa(x1, x2, x3)  =  mergesortc1_in_gaa(x1)
mergesortc1_out_gaa(x1, x2, x3)  =  mergesortc1_out_gaa(x1, x2)
U39_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U39_gaa(x1, x2, x3, x7)
U40_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_gaa(x1, x2, x3, x7, x8)
U41_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U41_gaa(x1, x2, x3, x7, x8)
mergesortc33_in_gaa(x1, x2, x3)  =  mergesortc33_in_gaa(x1)
mergesortc33_out_gaa(x1, x2, x3)  =  mergesortc33_out_gaa(x1, x2)
U44_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U44_gaa(x1, x2, x3, x7)
U45_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U45_gaa(x1, x2, x3, x7, x8)
U46_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_gaa(x1, x2, x3, x7, x8)
U47_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U47_gaa(x1, x2, x3, x7)
mergec34_in_ggaaa(x1, x2, x3, x4, x5)  =  mergec34_in_ggaaa(x1, x2)
mergec34_out_ggaaa(x1, x2, x3, x4, x5)  =  mergec34_out_ggaaa(x1, x2, x3)
U48_ggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ggaaa(x1, x2, x3, x4, x8)
qc67_in_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc67_in_ggggaa(x1, x2, x3, x4)
U51_ggggaa(x1, x2, x3, x4, x5)  =  U51_ggggaa(x1, x2, x3, x5)
lec69_in_gg(x1, x2)  =  lec69_in_gg(x1, x2)
s(x1)  =  s(x1)
U50_gg(x1, x2, x3)  =  U50_gg(x1, x2, x3)
0  =  0
lec69_out_gg(x1, x2)  =  lec69_out_gg(x1, x2)
qc67_out_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc67_out_ggggaa(x1, x2, x3, x4, x5)
U52_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U52_ggggaa(x1, x2, x3, x4, x5, x9)
U53_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U53_ggggaa(x1, x2, x3, x4, x5, x9)
U54_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U54_ggggaa(x1, x2, x3, x4, x5, x9)
U55_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U55_ggggaa(x1, x2, x3, x4, x5, x9)
qc95_in_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc95_in_ggggaa(x1, x2, x3, x4)
U57_ggggaa(x1, x2, x3, x4, x5)  =  U57_ggggaa(x1, x2, x3, x5)
gtc97_in_gg(x1, x2)  =  gtc97_in_gg(x1, x2)
U56_gg(x1, x2, x3)  =  U56_gg(x1, x2, x3)
gtc97_out_gg(x1, x2)  =  gtc97_out_gg(x1, x2)
qc95_out_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc95_out_ggggaa(x1, x2, x3, x4, x5)
U58_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U58_ggggaa(x1, x2, x3, x4, x5, x9)
U59_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U59_ggggaa(x1, x2, x3, x4, x5, x9)
U60_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U60_ggggaa(x1, x2, x3, x4, x5, x9)
U61_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U61_ggggaa(x1, x2, x3, x4, x5, x9)
U49_ggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U49_ggaaa(x1, x2, x3, x4, x8)
U42_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U42_gaa(x1, x2, x3, x7)
mergesort33_in_gaa(x1, x2, x3)  =  mergesort33_in_gaa(x1)
merge34_in_ggaaa(x1, x2, x3, x4, x5)  =  merge34_in_ggaaa(x1, x2)
p67_in_ggggaa(x1, x2, x3, x4, x5, x6)  =  p67_in_ggggaa(x1, x2, x3, x4)
le69_in_gg(x1, x2)  =  le69_in_gg(x1, x2)
p95_in_ggggaa(x1, x2, x3, x4, x5, x6)  =  p95_in_ggggaa(x1, x2, x3, x4)
gt97_in_gg(x1, x2)  =  gt97_in_gg(x1, x2)
MERGESORT1_IN_GAA(x1, x2, x3)  =  MERGESORT1_IN_GAA(x1)
U27_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U27_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)
U28_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U28_GAA(x1, x2, x3, x7)
U29_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U29_GAA(x1, x2, x3, 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, x8)  =  U31_GAA(x1, x2, x3, x7, x8)
U32_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U32_GAA(x1, x2, x3, x7)
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)
U8_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U8_GAA(x1, x2, x3, x7)
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, x7, x8)
U12_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U12_GAA(x1, x2, x3, x7)
MERGE34_IN_GGAAA(x1, x2, x3, x4, x5)  =  MERGE34_IN_GGAAA(x1, x2)
U13_GGAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U13_GGAAA(x1, x2, x3, x4, x8)
P67_IN_GGGGAA(x1, x2, x3, x4, x5, x6)  =  P67_IN_GGGGAA(x1, x2, x3, x4)
U16_GGGGAA(x1, x2, x3, x4, x5, x6, x7)  =  U16_GGGGAA(x1, x2, x3, x4, x7)
LE69_IN_GG(x1, x2)  =  LE69_IN_GG(x1, x2)
U15_GG(x1, x2, x3)  =  U15_GG(x1, x2, x3)
U17_GGGGAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U17_GGGGAA(x1, x2, x3, x4, x5, x9)
U18_GGGGAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U18_GGGGAA(x1, x2, x3, x4, x5, x9)
U19_GGGGAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_GGGGAA(x1, x2, x3, x4, x5, x9)
U20_GGGGAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U20_GGGGAA(x1, x2, x3, x4, x5, x9)
P95_IN_GGGGAA(x1, x2, x3, x4, x5, x6)  =  P95_IN_GGGGAA(x1, x2, x3, x4)
U22_GGGGAA(x1, x2, x3, x4, x5, x6, x7)  =  U22_GGGGAA(x1, x2, x3, x4, x7)
GT97_IN_GG(x1, x2)  =  GT97_IN_GG(x1, x2)
U21_GG(x1, x2, x3)  =  U21_GG(x1, x2, x3)
U23_GGGGAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U23_GGGGAA(x1, x2, x3, x4, x5, x9)
U24_GGGGAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U24_GGGGAA(x1, x2, x3, x4, x5, x9)
U25_GGGGAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_GGGGAA(x1, x2, x3, x4, x5, x9)
U26_GGGGAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U26_GGGGAA(x1, x2, x3, x4, x5, x9)
U14_GGAAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U14_GGAAA(x1, x2, x3, x4, x8)
U33_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U33_GAA(x1, x2, x3, x7)
U34_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U34_GAA(x1, x2, x3, x7, x8)
U35_GAA(x1, x2, x3, x4, x5, x6, x7, x8)  =  U35_GAA(x1, x2, x3, x7, x8)
U36_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U36_GAA(x1, x2, x3, x7)

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

(5) DependencyGraphProof (EQUIVALENT transformation)

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

(6) Complex Obligation (AND)

(7) Obligation:

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

GT97_IN_GG(s(T370), s(T371)) → GT97_IN_GG(T370, T371)

The TRS R consists of the following rules:

splitc17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U43_ggaaa(T72, T73, X124, X125, T74, T76, splitc21_in_gaaa(T73, X125, X124, T76))
splitc21_in_gaaa([], [], [], T83) → splitc21_out_gaaa([], [], [], T83)
splitc21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U38_gaaa(T92, T93, X162, X163, T94, T96, splitc21_in_gaaa(T93, X163, X162, T96))
U38_gaaa(T92, T93, X162, X163, T94, T96, splitc21_out_gaaa(T93, X163, X162, T96)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U43_ggaaa(T72, T73, X124, X125, T74, T76, splitc21_out_gaaa(T73, X125, X124, T76)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
mergesortc1_in_gaa([], [], T5) → mergesortc1_out_gaa([], [], T5)
mergesortc1_in_gaa(.(T8, []), .(T8, []), T9) → mergesortc1_out_gaa(.(T8, []), .(T8, []), T9)
mergesortc1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U39_gaa(T43, T44, T45, T114, T115, T116, splitc17_in_ggaaa(T44, T45, T55, T56, T116))
U39_gaa(T43, T44, T45, T114, T115, T116, splitc17_out_ggaaa(T44, T45, T55, T56, T116)) → U40_gaa(T43, T44, T45, T114, T115, T116, T55, mergesortc1_in_gaa(.(T43, T56), T103, T116))
U40_gaa(T43, T44, T45, T114, T115, T116, T55, mergesortc1_out_gaa(.(T43, T56), T103, T116)) → U41_gaa(T43, T44, T45, T114, T115, T116, T103, mergesortc33_in_gaa(T55, T113, T116))
mergesortc33_in_gaa([], [], T123) → mergesortc33_out_gaa([], [], T123)
mergesortc33_in_gaa(.(T132, []), .(T132, []), T133) → mergesortc33_out_gaa(.(T132, []), .(T132, []), T133)
mergesortc33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U44_gaa(T144, T145, T146, X234, T175, T176, splitc17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U44_gaa(T144, T145, T146, X234, T175, T176, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U45_gaa(T144, T145, T146, X234, T175, T176, T157, mergesortc33_in_gaa(T156, T167, T176))
U45_gaa(T144, T145, T146, X234, T175, T176, T157, mergesortc33_out_gaa(T156, T167, T176)) → U46_gaa(T144, T145, T146, X234, T175, T176, T167, mergesortc33_in_gaa(T157, T174, T176))
U46_gaa(T144, T145, T146, X234, T175, T176, T167, mergesortc33_out_gaa(T157, T174, T176)) → U47_gaa(T144, T145, T146, X234, T175, T176, mergec34_in_ggaaa(T167, T174, X234, T175, T176))
mergec34_in_ggaaa([], T203, T203, T204, T205) → mergec34_out_ggaaa([], T203, T203, T204, T205)
mergec34_in_ggaaa(T218, [], T218, T219, T220) → mergec34_out_ggaaa(T218, [], T218, T219, T220)
mergec34_in_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U48_ggaaa(T249, T250, T251, T252, T256, T254, T257, qc67_in_ggggaa(T249, T251, T250, T252, T256, T257))
qc67_in_ggggaa(T249, T292, [], T293, .(T292, T293), T294) → U51_ggggaa(T249, T292, T293, T294, lec69_in_gg(T249, T292))
lec69_in_gg(s(T270), s(T271)) → U50_gg(T270, T271, lec69_in_gg(T270, T271))
lec69_in_gg(0, s(0)) → lec69_out_gg(0, s(0))
lec69_in_gg(0, 0) → lec69_out_gg(0, 0)
U50_gg(T270, T271, lec69_out_gg(T270, T271)) → lec69_out_gg(s(T270), s(T271))
U51_ggggaa(T249, T292, T293, T294, lec69_out_gg(T249, T292)) → qc67_out_ggggaa(T249, T292, [], T293, .(T292, T293), T294)
qc67_in_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U52_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, lec69_in_gg(T249, T326))
U52_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, lec69_out_gg(T249, T326)) → U53_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, qc67_in_ggggaa(T324, T326, T325, T327, T331, T332))
qc67_in_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U54_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, lec69_in_gg(T249, T351))
U54_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, lec69_out_gg(T249, T351)) → U55_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, qc95_in_ggggaa(T349, T351, T350, T352, T356, T357))
qc95_in_ggggaa(T392, T351, T393, [], .(T392, T393), T394) → U57_ggggaa(T392, T351, T393, T394, gtc97_in_gg(T392, T351))
gtc97_in_gg(s(T370), s(T371)) → U56_gg(T370, T371, gtc97_in_gg(T370, T371))
gtc97_in_gg(s(0), 0) → gtc97_out_gg(s(0), 0)
U56_gg(T370, T371, gtc97_out_gg(T370, T371)) → gtc97_out_gg(s(T370), s(T371))
U57_ggggaa(T392, T351, T393, T394, gtc97_out_gg(T392, T351)) → qc95_out_ggggaa(T392, T351, T393, [], .(T392, T393), T394)
qc95_in_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U58_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_in_gg(T423, T351))
U58_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_out_gg(T423, T351)) → U59_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, qc67_in_ggggaa(T423, T425, T424, T426, T430, T431))
U59_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, qc67_out_ggggaa(T423, T425, T424, T426, T430, T431)) → qc95_out_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
qc95_in_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U60_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_in_gg(T448, T351))
U60_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_out_gg(T448, T351)) → U61_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, qc95_in_ggggaa(T448, T450, T449, T451, T455, T456))
U61_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, qc95_out_ggggaa(T448, T450, T449, T451, T455, T456)) → qc95_out_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U55_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, qc95_out_ggggaa(T349, T351, T350, T352, T356, T357)) → qc67_out_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U53_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, qc67_out_ggggaa(T324, T326, T325, T327, T331, T332)) → qc67_out_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U48_ggaaa(T249, T250, T251, T252, T256, T254, T257, qc67_out_ggggaa(T249, T251, T250, T252, T256, T257)) → mergec34_out_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
mergec34_in_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U49_ggaaa(T473, T474, T475, T476, T480, T478, T481, qc95_in_ggggaa(T473, T475, T474, T476, T480, T481))
U49_ggaaa(T473, T474, T475, T476, T480, T478, T481, qc95_out_ggggaa(T473, T475, T474, T476, T480, T481)) → mergec34_out_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U47_gaa(T144, T145, T146, X234, T175, T176, mergec34_out_ggaaa(T167, T174, X234, T175, T176)) → mergesortc33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U41_gaa(T43, T44, T45, T114, T115, T116, T103, mergesortc33_out_gaa(T55, T113, T116)) → U42_gaa(T43, T44, T45, T114, T115, T116, mergec34_in_ggaaa(T103, T113, T114, T115, T116))
U42_gaa(T43, T44, T45, T114, T115, T116, mergec34_out_ggaaa(T103, T113, T114, T115, T116)) → mergesortc1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))

The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
splitc17_in_ggaaa(x1, x2, x3, x4, x5)  =  splitc17_in_ggaaa(x1, x2)
U43_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U43_ggaaa(x1, x2, x7)
splitc21_in_gaaa(x1, x2, x3, x4)  =  splitc21_in_gaaa(x1)
[]  =  []
splitc21_out_gaaa(x1, x2, x3, x4)  =  splitc21_out_gaaa(x1, x2, x3)
U38_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaaa(x1, x2, x7)
splitc17_out_ggaaa(x1, x2, x3, x4, x5)  =  splitc17_out_ggaaa(x1, x2, x3, x4)
mergesortc1_in_gaa(x1, x2, x3)  =  mergesortc1_in_gaa(x1)
mergesortc1_out_gaa(x1, x2, x3)  =  mergesortc1_out_gaa(x1, x2)
U39_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U39_gaa(x1, x2, x3, x7)
U40_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_gaa(x1, x2, x3, x7, x8)
U41_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U41_gaa(x1, x2, x3, x7, x8)
mergesortc33_in_gaa(x1, x2, x3)  =  mergesortc33_in_gaa(x1)
mergesortc33_out_gaa(x1, x2, x3)  =  mergesortc33_out_gaa(x1, x2)
U44_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U44_gaa(x1, x2, x3, x7)
U45_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U45_gaa(x1, x2, x3, x7, x8)
U46_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_gaa(x1, x2, x3, x7, x8)
U47_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U47_gaa(x1, x2, x3, x7)
mergec34_in_ggaaa(x1, x2, x3, x4, x5)  =  mergec34_in_ggaaa(x1, x2)
mergec34_out_ggaaa(x1, x2, x3, x4, x5)  =  mergec34_out_ggaaa(x1, x2, x3)
U48_ggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ggaaa(x1, x2, x3, x4, x8)
qc67_in_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc67_in_ggggaa(x1, x2, x3, x4)
U51_ggggaa(x1, x2, x3, x4, x5)  =  U51_ggggaa(x1, x2, x3, x5)
lec69_in_gg(x1, x2)  =  lec69_in_gg(x1, x2)
s(x1)  =  s(x1)
U50_gg(x1, x2, x3)  =  U50_gg(x1, x2, x3)
0  =  0
lec69_out_gg(x1, x2)  =  lec69_out_gg(x1, x2)
qc67_out_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc67_out_ggggaa(x1, x2, x3, x4, x5)
U52_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U52_ggggaa(x1, x2, x3, x4, x5, x9)
U53_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U53_ggggaa(x1, x2, x3, x4, x5, x9)
U54_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U54_ggggaa(x1, x2, x3, x4, x5, x9)
U55_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U55_ggggaa(x1, x2, x3, x4, x5, x9)
qc95_in_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc95_in_ggggaa(x1, x2, x3, x4)
U57_ggggaa(x1, x2, x3, x4, x5)  =  U57_ggggaa(x1, x2, x3, x5)
gtc97_in_gg(x1, x2)  =  gtc97_in_gg(x1, x2)
U56_gg(x1, x2, x3)  =  U56_gg(x1, x2, x3)
gtc97_out_gg(x1, x2)  =  gtc97_out_gg(x1, x2)
qc95_out_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc95_out_ggggaa(x1, x2, x3, x4, x5)
U58_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U58_ggggaa(x1, x2, x3, x4, x5, x9)
U59_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U59_ggggaa(x1, x2, x3, x4, x5, x9)
U60_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U60_ggggaa(x1, x2, x3, x4, x5, x9)
U61_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U61_ggggaa(x1, x2, x3, x4, x5, x9)
U49_ggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U49_ggaaa(x1, x2, x3, x4, x8)
U42_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U42_gaa(x1, x2, x3, x7)
GT97_IN_GG(x1, x2)  =  GT97_IN_GG(x1, x2)

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

(8) UsableRulesProof (EQUIVALENT transformation)

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

(9) Obligation:

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

GT97_IN_GG(s(T370), s(T371)) → GT97_IN_GG(T370, T371)

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

(10) PiDPToQDPProof (EQUIVALENT transformation)

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

(11) Obligation:

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

GT97_IN_GG(s(T370), s(T371)) → GT97_IN_GG(T370, T371)

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

(12) 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_GG(s(T370), s(T371)) → GT97_IN_GG(T370, T371)
    The graph contains the following edges 1 > 1, 2 > 2

(13) YES

(14) Obligation:

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

LE69_IN_GG(s(T270), s(T271)) → LE69_IN_GG(T270, T271)

The TRS R consists of the following rules:

splitc17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U43_ggaaa(T72, T73, X124, X125, T74, T76, splitc21_in_gaaa(T73, X125, X124, T76))
splitc21_in_gaaa([], [], [], T83) → splitc21_out_gaaa([], [], [], T83)
splitc21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U38_gaaa(T92, T93, X162, X163, T94, T96, splitc21_in_gaaa(T93, X163, X162, T96))
U38_gaaa(T92, T93, X162, X163, T94, T96, splitc21_out_gaaa(T93, X163, X162, T96)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U43_ggaaa(T72, T73, X124, X125, T74, T76, splitc21_out_gaaa(T73, X125, X124, T76)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
mergesortc1_in_gaa([], [], T5) → mergesortc1_out_gaa([], [], T5)
mergesortc1_in_gaa(.(T8, []), .(T8, []), T9) → mergesortc1_out_gaa(.(T8, []), .(T8, []), T9)
mergesortc1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U39_gaa(T43, T44, T45, T114, T115, T116, splitc17_in_ggaaa(T44, T45, T55, T56, T116))
U39_gaa(T43, T44, T45, T114, T115, T116, splitc17_out_ggaaa(T44, T45, T55, T56, T116)) → U40_gaa(T43, T44, T45, T114, T115, T116, T55, mergesortc1_in_gaa(.(T43, T56), T103, T116))
U40_gaa(T43, T44, T45, T114, T115, T116, T55, mergesortc1_out_gaa(.(T43, T56), T103, T116)) → U41_gaa(T43, T44, T45, T114, T115, T116, T103, mergesortc33_in_gaa(T55, T113, T116))
mergesortc33_in_gaa([], [], T123) → mergesortc33_out_gaa([], [], T123)
mergesortc33_in_gaa(.(T132, []), .(T132, []), T133) → mergesortc33_out_gaa(.(T132, []), .(T132, []), T133)
mergesortc33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U44_gaa(T144, T145, T146, X234, T175, T176, splitc17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U44_gaa(T144, T145, T146, X234, T175, T176, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U45_gaa(T144, T145, T146, X234, T175, T176, T157, mergesortc33_in_gaa(T156, T167, T176))
U45_gaa(T144, T145, T146, X234, T175, T176, T157, mergesortc33_out_gaa(T156, T167, T176)) → U46_gaa(T144, T145, T146, X234, T175, T176, T167, mergesortc33_in_gaa(T157, T174, T176))
U46_gaa(T144, T145, T146, X234, T175, T176, T167, mergesortc33_out_gaa(T157, T174, T176)) → U47_gaa(T144, T145, T146, X234, T175, T176, mergec34_in_ggaaa(T167, T174, X234, T175, T176))
mergec34_in_ggaaa([], T203, T203, T204, T205) → mergec34_out_ggaaa([], T203, T203, T204, T205)
mergec34_in_ggaaa(T218, [], T218, T219, T220) → mergec34_out_ggaaa(T218, [], T218, T219, T220)
mergec34_in_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U48_ggaaa(T249, T250, T251, T252, T256, T254, T257, qc67_in_ggggaa(T249, T251, T250, T252, T256, T257))
qc67_in_ggggaa(T249, T292, [], T293, .(T292, T293), T294) → U51_ggggaa(T249, T292, T293, T294, lec69_in_gg(T249, T292))
lec69_in_gg(s(T270), s(T271)) → U50_gg(T270, T271, lec69_in_gg(T270, T271))
lec69_in_gg(0, s(0)) → lec69_out_gg(0, s(0))
lec69_in_gg(0, 0) → lec69_out_gg(0, 0)
U50_gg(T270, T271, lec69_out_gg(T270, T271)) → lec69_out_gg(s(T270), s(T271))
U51_ggggaa(T249, T292, T293, T294, lec69_out_gg(T249, T292)) → qc67_out_ggggaa(T249, T292, [], T293, .(T292, T293), T294)
qc67_in_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U52_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, lec69_in_gg(T249, T326))
U52_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, lec69_out_gg(T249, T326)) → U53_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, qc67_in_ggggaa(T324, T326, T325, T327, T331, T332))
qc67_in_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U54_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, lec69_in_gg(T249, T351))
U54_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, lec69_out_gg(T249, T351)) → U55_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, qc95_in_ggggaa(T349, T351, T350, T352, T356, T357))
qc95_in_ggggaa(T392, T351, T393, [], .(T392, T393), T394) → U57_ggggaa(T392, T351, T393, T394, gtc97_in_gg(T392, T351))
gtc97_in_gg(s(T370), s(T371)) → U56_gg(T370, T371, gtc97_in_gg(T370, T371))
gtc97_in_gg(s(0), 0) → gtc97_out_gg(s(0), 0)
U56_gg(T370, T371, gtc97_out_gg(T370, T371)) → gtc97_out_gg(s(T370), s(T371))
U57_ggggaa(T392, T351, T393, T394, gtc97_out_gg(T392, T351)) → qc95_out_ggggaa(T392, T351, T393, [], .(T392, T393), T394)
qc95_in_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U58_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_in_gg(T423, T351))
U58_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_out_gg(T423, T351)) → U59_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, qc67_in_ggggaa(T423, T425, T424, T426, T430, T431))
U59_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, qc67_out_ggggaa(T423, T425, T424, T426, T430, T431)) → qc95_out_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
qc95_in_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U60_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_in_gg(T448, T351))
U60_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_out_gg(T448, T351)) → U61_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, qc95_in_ggggaa(T448, T450, T449, T451, T455, T456))
U61_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, qc95_out_ggggaa(T448, T450, T449, T451, T455, T456)) → qc95_out_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U55_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, qc95_out_ggggaa(T349, T351, T350, T352, T356, T357)) → qc67_out_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U53_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, qc67_out_ggggaa(T324, T326, T325, T327, T331, T332)) → qc67_out_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U48_ggaaa(T249, T250, T251, T252, T256, T254, T257, qc67_out_ggggaa(T249, T251, T250, T252, T256, T257)) → mergec34_out_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
mergec34_in_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U49_ggaaa(T473, T474, T475, T476, T480, T478, T481, qc95_in_ggggaa(T473, T475, T474, T476, T480, T481))
U49_ggaaa(T473, T474, T475, T476, T480, T478, T481, qc95_out_ggggaa(T473, T475, T474, T476, T480, T481)) → mergec34_out_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U47_gaa(T144, T145, T146, X234, T175, T176, mergec34_out_ggaaa(T167, T174, X234, T175, T176)) → mergesortc33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U41_gaa(T43, T44, T45, T114, T115, T116, T103, mergesortc33_out_gaa(T55, T113, T116)) → U42_gaa(T43, T44, T45, T114, T115, T116, mergec34_in_ggaaa(T103, T113, T114, T115, T116))
U42_gaa(T43, T44, T45, T114, T115, T116, mergec34_out_ggaaa(T103, T113, T114, T115, T116)) → mergesortc1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))

The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
splitc17_in_ggaaa(x1, x2, x3, x4, x5)  =  splitc17_in_ggaaa(x1, x2)
U43_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U43_ggaaa(x1, x2, x7)
splitc21_in_gaaa(x1, x2, x3, x4)  =  splitc21_in_gaaa(x1)
[]  =  []
splitc21_out_gaaa(x1, x2, x3, x4)  =  splitc21_out_gaaa(x1, x2, x3)
U38_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaaa(x1, x2, x7)
splitc17_out_ggaaa(x1, x2, x3, x4, x5)  =  splitc17_out_ggaaa(x1, x2, x3, x4)
mergesortc1_in_gaa(x1, x2, x3)  =  mergesortc1_in_gaa(x1)
mergesortc1_out_gaa(x1, x2, x3)  =  mergesortc1_out_gaa(x1, x2)
U39_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U39_gaa(x1, x2, x3, x7)
U40_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_gaa(x1, x2, x3, x7, x8)
U41_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U41_gaa(x1, x2, x3, x7, x8)
mergesortc33_in_gaa(x1, x2, x3)  =  mergesortc33_in_gaa(x1)
mergesortc33_out_gaa(x1, x2, x3)  =  mergesortc33_out_gaa(x1, x2)
U44_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U44_gaa(x1, x2, x3, x7)
U45_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U45_gaa(x1, x2, x3, x7, x8)
U46_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_gaa(x1, x2, x3, x7, x8)
U47_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U47_gaa(x1, x2, x3, x7)
mergec34_in_ggaaa(x1, x2, x3, x4, x5)  =  mergec34_in_ggaaa(x1, x2)
mergec34_out_ggaaa(x1, x2, x3, x4, x5)  =  mergec34_out_ggaaa(x1, x2, x3)
U48_ggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ggaaa(x1, x2, x3, x4, x8)
qc67_in_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc67_in_ggggaa(x1, x2, x3, x4)
U51_ggggaa(x1, x2, x3, x4, x5)  =  U51_ggggaa(x1, x2, x3, x5)
lec69_in_gg(x1, x2)  =  lec69_in_gg(x1, x2)
s(x1)  =  s(x1)
U50_gg(x1, x2, x3)  =  U50_gg(x1, x2, x3)
0  =  0
lec69_out_gg(x1, x2)  =  lec69_out_gg(x1, x2)
qc67_out_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc67_out_ggggaa(x1, x2, x3, x4, x5)
U52_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U52_ggggaa(x1, x2, x3, x4, x5, x9)
U53_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U53_ggggaa(x1, x2, x3, x4, x5, x9)
U54_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U54_ggggaa(x1, x2, x3, x4, x5, x9)
U55_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U55_ggggaa(x1, x2, x3, x4, x5, x9)
qc95_in_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc95_in_ggggaa(x1, x2, x3, x4)
U57_ggggaa(x1, x2, x3, x4, x5)  =  U57_ggggaa(x1, x2, x3, x5)
gtc97_in_gg(x1, x2)  =  gtc97_in_gg(x1, x2)
U56_gg(x1, x2, x3)  =  U56_gg(x1, x2, x3)
gtc97_out_gg(x1, x2)  =  gtc97_out_gg(x1, x2)
qc95_out_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc95_out_ggggaa(x1, x2, x3, x4, x5)
U58_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U58_ggggaa(x1, x2, x3, x4, x5, x9)
U59_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U59_ggggaa(x1, x2, x3, x4, x5, x9)
U60_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U60_ggggaa(x1, x2, x3, x4, x5, x9)
U61_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U61_ggggaa(x1, x2, x3, x4, x5, x9)
U49_ggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U49_ggaaa(x1, x2, x3, x4, x8)
U42_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U42_gaa(x1, x2, x3, x7)
LE69_IN_GG(x1, x2)  =  LE69_IN_GG(x1, x2)

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

(15) UsableRulesProof (EQUIVALENT transformation)

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

(16) Obligation:

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

LE69_IN_GG(s(T270), s(T271)) → LE69_IN_GG(T270, T271)

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

(17) PiDPToQDPProof (EQUIVALENT transformation)

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

(18) Obligation:

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

LE69_IN_GG(s(T270), s(T271)) → LE69_IN_GG(T270, T271)

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

(19) 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_GG(s(T270), s(T271)) → LE69_IN_GG(T270, T271)
    The graph contains the following edges 1 > 1, 2 > 2

(20) YES

(21) Obligation:

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

P67_IN_GGGGAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U17_GGGGAA(T249, T326, T324, T325, T327, T331, T329, T332, lec69_in_gg(T249, T326))
U17_GGGGAA(T249, T326, T324, T325, T327, T331, T329, T332, lec69_out_gg(T249, T326)) → P67_IN_GGGGAA(T324, T326, T325, T327, T331, T332)
P67_IN_GGGGAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U19_GGGGAA(T249, T351, T349, T350, T352, T356, T354, T357, lec69_in_gg(T249, T351))
U19_GGGGAA(T249, T351, T349, T350, T352, T356, T354, T357, lec69_out_gg(T249, T351)) → P95_IN_GGGGAA(T349, T351, T350, T352, T356, T357)
P95_IN_GGGGAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U23_GGGGAA(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_in_gg(T423, T351))
U23_GGGGAA(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_out_gg(T423, T351)) → P67_IN_GGGGAA(T423, T425, T424, T426, T430, T431)
P95_IN_GGGGAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U25_GGGGAA(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_in_gg(T448, T351))
U25_GGGGAA(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_out_gg(T448, T351)) → P95_IN_GGGGAA(T448, T450, T449, T451, T455, T456)

The TRS R consists of the following rules:

splitc17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U43_ggaaa(T72, T73, X124, X125, T74, T76, splitc21_in_gaaa(T73, X125, X124, T76))
splitc21_in_gaaa([], [], [], T83) → splitc21_out_gaaa([], [], [], T83)
splitc21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U38_gaaa(T92, T93, X162, X163, T94, T96, splitc21_in_gaaa(T93, X163, X162, T96))
U38_gaaa(T92, T93, X162, X163, T94, T96, splitc21_out_gaaa(T93, X163, X162, T96)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U43_ggaaa(T72, T73, X124, X125, T74, T76, splitc21_out_gaaa(T73, X125, X124, T76)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
mergesortc1_in_gaa([], [], T5) → mergesortc1_out_gaa([], [], T5)
mergesortc1_in_gaa(.(T8, []), .(T8, []), T9) → mergesortc1_out_gaa(.(T8, []), .(T8, []), T9)
mergesortc1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U39_gaa(T43, T44, T45, T114, T115, T116, splitc17_in_ggaaa(T44, T45, T55, T56, T116))
U39_gaa(T43, T44, T45, T114, T115, T116, splitc17_out_ggaaa(T44, T45, T55, T56, T116)) → U40_gaa(T43, T44, T45, T114, T115, T116, T55, mergesortc1_in_gaa(.(T43, T56), T103, T116))
U40_gaa(T43, T44, T45, T114, T115, T116, T55, mergesortc1_out_gaa(.(T43, T56), T103, T116)) → U41_gaa(T43, T44, T45, T114, T115, T116, T103, mergesortc33_in_gaa(T55, T113, T116))
mergesortc33_in_gaa([], [], T123) → mergesortc33_out_gaa([], [], T123)
mergesortc33_in_gaa(.(T132, []), .(T132, []), T133) → mergesortc33_out_gaa(.(T132, []), .(T132, []), T133)
mergesortc33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U44_gaa(T144, T145, T146, X234, T175, T176, splitc17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U44_gaa(T144, T145, T146, X234, T175, T176, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U45_gaa(T144, T145, T146, X234, T175, T176, T157, mergesortc33_in_gaa(T156, T167, T176))
U45_gaa(T144, T145, T146, X234, T175, T176, T157, mergesortc33_out_gaa(T156, T167, T176)) → U46_gaa(T144, T145, T146, X234, T175, T176, T167, mergesortc33_in_gaa(T157, T174, T176))
U46_gaa(T144, T145, T146, X234, T175, T176, T167, mergesortc33_out_gaa(T157, T174, T176)) → U47_gaa(T144, T145, T146, X234, T175, T176, mergec34_in_ggaaa(T167, T174, X234, T175, T176))
mergec34_in_ggaaa([], T203, T203, T204, T205) → mergec34_out_ggaaa([], T203, T203, T204, T205)
mergec34_in_ggaaa(T218, [], T218, T219, T220) → mergec34_out_ggaaa(T218, [], T218, T219, T220)
mergec34_in_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U48_ggaaa(T249, T250, T251, T252, T256, T254, T257, qc67_in_ggggaa(T249, T251, T250, T252, T256, T257))
qc67_in_ggggaa(T249, T292, [], T293, .(T292, T293), T294) → U51_ggggaa(T249, T292, T293, T294, lec69_in_gg(T249, T292))
lec69_in_gg(s(T270), s(T271)) → U50_gg(T270, T271, lec69_in_gg(T270, T271))
lec69_in_gg(0, s(0)) → lec69_out_gg(0, s(0))
lec69_in_gg(0, 0) → lec69_out_gg(0, 0)
U50_gg(T270, T271, lec69_out_gg(T270, T271)) → lec69_out_gg(s(T270), s(T271))
U51_ggggaa(T249, T292, T293, T294, lec69_out_gg(T249, T292)) → qc67_out_ggggaa(T249, T292, [], T293, .(T292, T293), T294)
qc67_in_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U52_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, lec69_in_gg(T249, T326))
U52_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, lec69_out_gg(T249, T326)) → U53_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, qc67_in_ggggaa(T324, T326, T325, T327, T331, T332))
qc67_in_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U54_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, lec69_in_gg(T249, T351))
U54_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, lec69_out_gg(T249, T351)) → U55_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, qc95_in_ggggaa(T349, T351, T350, T352, T356, T357))
qc95_in_ggggaa(T392, T351, T393, [], .(T392, T393), T394) → U57_ggggaa(T392, T351, T393, T394, gtc97_in_gg(T392, T351))
gtc97_in_gg(s(T370), s(T371)) → U56_gg(T370, T371, gtc97_in_gg(T370, T371))
gtc97_in_gg(s(0), 0) → gtc97_out_gg(s(0), 0)
U56_gg(T370, T371, gtc97_out_gg(T370, T371)) → gtc97_out_gg(s(T370), s(T371))
U57_ggggaa(T392, T351, T393, T394, gtc97_out_gg(T392, T351)) → qc95_out_ggggaa(T392, T351, T393, [], .(T392, T393), T394)
qc95_in_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U58_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_in_gg(T423, T351))
U58_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_out_gg(T423, T351)) → U59_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, qc67_in_ggggaa(T423, T425, T424, T426, T430, T431))
U59_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, qc67_out_ggggaa(T423, T425, T424, T426, T430, T431)) → qc95_out_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
qc95_in_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U60_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_in_gg(T448, T351))
U60_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_out_gg(T448, T351)) → U61_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, qc95_in_ggggaa(T448, T450, T449, T451, T455, T456))
U61_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, qc95_out_ggggaa(T448, T450, T449, T451, T455, T456)) → qc95_out_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U55_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, qc95_out_ggggaa(T349, T351, T350, T352, T356, T357)) → qc67_out_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U53_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, qc67_out_ggggaa(T324, T326, T325, T327, T331, T332)) → qc67_out_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U48_ggaaa(T249, T250, T251, T252, T256, T254, T257, qc67_out_ggggaa(T249, T251, T250, T252, T256, T257)) → mergec34_out_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
mergec34_in_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U49_ggaaa(T473, T474, T475, T476, T480, T478, T481, qc95_in_ggggaa(T473, T475, T474, T476, T480, T481))
U49_ggaaa(T473, T474, T475, T476, T480, T478, T481, qc95_out_ggggaa(T473, T475, T474, T476, T480, T481)) → mergec34_out_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U47_gaa(T144, T145, T146, X234, T175, T176, mergec34_out_ggaaa(T167, T174, X234, T175, T176)) → mergesortc33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U41_gaa(T43, T44, T45, T114, T115, T116, T103, mergesortc33_out_gaa(T55, T113, T116)) → U42_gaa(T43, T44, T45, T114, T115, T116, mergec34_in_ggaaa(T103, T113, T114, T115, T116))
U42_gaa(T43, T44, T45, T114, T115, T116, mergec34_out_ggaaa(T103, T113, T114, T115, T116)) → mergesortc1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))

The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
splitc17_in_ggaaa(x1, x2, x3, x4, x5)  =  splitc17_in_ggaaa(x1, x2)
U43_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U43_ggaaa(x1, x2, x7)
splitc21_in_gaaa(x1, x2, x3, x4)  =  splitc21_in_gaaa(x1)
[]  =  []
splitc21_out_gaaa(x1, x2, x3, x4)  =  splitc21_out_gaaa(x1, x2, x3)
U38_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaaa(x1, x2, x7)
splitc17_out_ggaaa(x1, x2, x3, x4, x5)  =  splitc17_out_ggaaa(x1, x2, x3, x4)
mergesortc1_in_gaa(x1, x2, x3)  =  mergesortc1_in_gaa(x1)
mergesortc1_out_gaa(x1, x2, x3)  =  mergesortc1_out_gaa(x1, x2)
U39_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U39_gaa(x1, x2, x3, x7)
U40_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_gaa(x1, x2, x3, x7, x8)
U41_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U41_gaa(x1, x2, x3, x7, x8)
mergesortc33_in_gaa(x1, x2, x3)  =  mergesortc33_in_gaa(x1)
mergesortc33_out_gaa(x1, x2, x3)  =  mergesortc33_out_gaa(x1, x2)
U44_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U44_gaa(x1, x2, x3, x7)
U45_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U45_gaa(x1, x2, x3, x7, x8)
U46_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_gaa(x1, x2, x3, x7, x8)
U47_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U47_gaa(x1, x2, x3, x7)
mergec34_in_ggaaa(x1, x2, x3, x4, x5)  =  mergec34_in_ggaaa(x1, x2)
mergec34_out_ggaaa(x1, x2, x3, x4, x5)  =  mergec34_out_ggaaa(x1, x2, x3)
U48_ggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ggaaa(x1, x2, x3, x4, x8)
qc67_in_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc67_in_ggggaa(x1, x2, x3, x4)
U51_ggggaa(x1, x2, x3, x4, x5)  =  U51_ggggaa(x1, x2, x3, x5)
lec69_in_gg(x1, x2)  =  lec69_in_gg(x1, x2)
s(x1)  =  s(x1)
U50_gg(x1, x2, x3)  =  U50_gg(x1, x2, x3)
0  =  0
lec69_out_gg(x1, x2)  =  lec69_out_gg(x1, x2)
qc67_out_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc67_out_ggggaa(x1, x2, x3, x4, x5)
U52_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U52_ggggaa(x1, x2, x3, x4, x5, x9)
U53_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U53_ggggaa(x1, x2, x3, x4, x5, x9)
U54_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U54_ggggaa(x1, x2, x3, x4, x5, x9)
U55_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U55_ggggaa(x1, x2, x3, x4, x5, x9)
qc95_in_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc95_in_ggggaa(x1, x2, x3, x4)
U57_ggggaa(x1, x2, x3, x4, x5)  =  U57_ggggaa(x1, x2, x3, x5)
gtc97_in_gg(x1, x2)  =  gtc97_in_gg(x1, x2)
U56_gg(x1, x2, x3)  =  U56_gg(x1, x2, x3)
gtc97_out_gg(x1, x2)  =  gtc97_out_gg(x1, x2)
qc95_out_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc95_out_ggggaa(x1, x2, x3, x4, x5)
U58_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U58_ggggaa(x1, x2, x3, x4, x5, x9)
U59_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U59_ggggaa(x1, x2, x3, x4, x5, x9)
U60_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U60_ggggaa(x1, x2, x3, x4, x5, x9)
U61_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U61_ggggaa(x1, x2, x3, x4, x5, x9)
U49_ggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U49_ggaaa(x1, x2, x3, x4, x8)
U42_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U42_gaa(x1, x2, x3, x7)
P67_IN_GGGGAA(x1, x2, x3, x4, x5, x6)  =  P67_IN_GGGGAA(x1, x2, x3, x4)
U17_GGGGAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U17_GGGGAA(x1, x2, x3, x4, x5, x9)
U19_GGGGAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_GGGGAA(x1, x2, x3, x4, x5, x9)
P95_IN_GGGGAA(x1, x2, x3, x4, x5, x6)  =  P95_IN_GGGGAA(x1, x2, x3, x4)
U23_GGGGAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U23_GGGGAA(x1, x2, x3, x4, x5, x9)
U25_GGGGAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_GGGGAA(x1, x2, x3, x4, x5, x9)

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

(22) UsableRulesProof (EQUIVALENT transformation)

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

(23) Obligation:

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

P67_IN_GGGGAA(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U17_GGGGAA(T249, T326, T324, T325, T327, T331, T329, T332, lec69_in_gg(T249, T326))
U17_GGGGAA(T249, T326, T324, T325, T327, T331, T329, T332, lec69_out_gg(T249, T326)) → P67_IN_GGGGAA(T324, T326, T325, T327, T331, T332)
P67_IN_GGGGAA(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U19_GGGGAA(T249, T351, T349, T350, T352, T356, T354, T357, lec69_in_gg(T249, T351))
U19_GGGGAA(T249, T351, T349, T350, T352, T356, T354, T357, lec69_out_gg(T249, T351)) → P95_IN_GGGGAA(T349, T351, T350, T352, T356, T357)
P95_IN_GGGGAA(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U23_GGGGAA(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_in_gg(T423, T351))
U23_GGGGAA(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_out_gg(T423, T351)) → P67_IN_GGGGAA(T423, T425, T424, T426, T430, T431)
P95_IN_GGGGAA(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U25_GGGGAA(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_in_gg(T448, T351))
U25_GGGGAA(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_out_gg(T448, T351)) → P95_IN_GGGGAA(T448, T450, T449, T451, T455, T456)

The TRS R consists of the following rules:

lec69_in_gg(s(T270), s(T271)) → U50_gg(T270, T271, lec69_in_gg(T270, T271))
lec69_in_gg(0, s(0)) → lec69_out_gg(0, s(0))
lec69_in_gg(0, 0) → lec69_out_gg(0, 0)
gtc97_in_gg(s(T370), s(T371)) → U56_gg(T370, T371, gtc97_in_gg(T370, T371))
gtc97_in_gg(s(0), 0) → gtc97_out_gg(s(0), 0)
U50_gg(T270, T271, lec69_out_gg(T270, T271)) → lec69_out_gg(s(T270), s(T271))
U56_gg(T370, T371, gtc97_out_gg(T370, T371)) → gtc97_out_gg(s(T370), s(T371))

The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
lec69_in_gg(x1, x2)  =  lec69_in_gg(x1, x2)
s(x1)  =  s(x1)
U50_gg(x1, x2, x3)  =  U50_gg(x1, x2, x3)
0  =  0
lec69_out_gg(x1, x2)  =  lec69_out_gg(x1, x2)
gtc97_in_gg(x1, x2)  =  gtc97_in_gg(x1, x2)
U56_gg(x1, x2, x3)  =  U56_gg(x1, x2, x3)
gtc97_out_gg(x1, x2)  =  gtc97_out_gg(x1, x2)
P67_IN_GGGGAA(x1, x2, x3, x4, x5, x6)  =  P67_IN_GGGGAA(x1, x2, x3, x4)
U17_GGGGAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U17_GGGGAA(x1, x2, x3, x4, x5, x9)
U19_GGGGAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U19_GGGGAA(x1, x2, x3, x4, x5, x9)
P95_IN_GGGGAA(x1, x2, x3, x4, x5, x6)  =  P95_IN_GGGGAA(x1, x2, x3, x4)
U23_GGGGAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U23_GGGGAA(x1, x2, x3, x4, x5, x9)
U25_GGGGAA(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U25_GGGGAA(x1, x2, x3, x4, x5, x9)

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

(24) PiDPToQDPProof (SOUND transformation)

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

(25) Obligation:

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

P67_IN_GGGGAA(T249, T326, .(T324, T325), T327) → U17_GGGGAA(T249, T326, T324, T325, T327, lec69_in_gg(T249, T326))
U17_GGGGAA(T249, T326, T324, T325, T327, lec69_out_gg(T249, T326)) → P67_IN_GGGGAA(T324, T326, T325, T327)
P67_IN_GGGGAA(T249, T351, .(T349, T350), T352) → U19_GGGGAA(T249, T351, T349, T350, T352, lec69_in_gg(T249, T351))
U19_GGGGAA(T249, T351, T349, T350, T352, lec69_out_gg(T249, T351)) → P95_IN_GGGGAA(T349, T351, T350, T352)
P95_IN_GGGGAA(T423, T351, T424, .(T425, T426)) → U23_GGGGAA(T423, T351, T424, T425, T426, gtc97_in_gg(T423, T351))
U23_GGGGAA(T423, T351, T424, T425, T426, gtc97_out_gg(T423, T351)) → P67_IN_GGGGAA(T423, T425, T424, T426)
P95_IN_GGGGAA(T448, T351, T449, .(T450, T451)) → U25_GGGGAA(T448, T351, T449, T450, T451, gtc97_in_gg(T448, T351))
U25_GGGGAA(T448, T351, T449, T450, T451, gtc97_out_gg(T448, T351)) → P95_IN_GGGGAA(T448, T450, T449, T451)

The TRS R consists of the following rules:

lec69_in_gg(s(T270), s(T271)) → U50_gg(T270, T271, lec69_in_gg(T270, T271))
lec69_in_gg(0, s(0)) → lec69_out_gg(0, s(0))
lec69_in_gg(0, 0) → lec69_out_gg(0, 0)
gtc97_in_gg(s(T370), s(T371)) → U56_gg(T370, T371, gtc97_in_gg(T370, T371))
gtc97_in_gg(s(0), 0) → gtc97_out_gg(s(0), 0)
U50_gg(T270, T271, lec69_out_gg(T270, T271)) → lec69_out_gg(s(T270), s(T271))
U56_gg(T370, T371, gtc97_out_gg(T370, T371)) → gtc97_out_gg(s(T370), s(T371))

The set Q consists of the following terms:

lec69_in_gg(x0, x1)
gtc97_in_gg(x0, x1)
U50_gg(x0, x1, x2)
U56_gg(x0, x1, x2)

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

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

  • U17_GGGGAA(T249, T326, T324, T325, T327, lec69_out_gg(T249, T326)) → P67_IN_GGGGAA(T324, T326, T325, T327)
    The graph contains the following edges 3 >= 1, 2 >= 2, 6 > 2, 4 >= 3, 5 >= 4

  • U23_GGGGAA(T423, T351, T424, T425, T426, gtc97_out_gg(T423, T351)) → P67_IN_GGGGAA(T423, T425, T424, T426)
    The graph contains the following edges 1 >= 1, 6 > 1, 4 >= 2, 3 >= 3, 5 >= 4

  • P67_IN_GGGGAA(T249, T326, .(T324, T325), T327) → U17_GGGGAA(T249, T326, T324, T325, T327, lec69_in_gg(T249, T326))
    The graph contains the following edges 1 >= 1, 2 >= 2, 3 > 3, 3 > 4, 4 >= 5

  • P67_IN_GGGGAA(T249, T351, .(T349, T350), T352) → U19_GGGGAA(T249, T351, T349, T350, T352, lec69_in_gg(T249, T351))
    The graph contains the following edges 1 >= 1, 2 >= 2, 3 > 3, 3 > 4, 4 >= 5

  • U19_GGGGAA(T249, T351, T349, T350, T352, lec69_out_gg(T249, T351)) → P95_IN_GGGGAA(T349, T351, T350, T352)
    The graph contains the following edges 3 >= 1, 2 >= 2, 6 > 2, 4 >= 3, 5 >= 4

  • U25_GGGGAA(T448, T351, T449, T450, T451, gtc97_out_gg(T448, T351)) → P95_IN_GGGGAA(T448, T450, T449, T451)
    The graph contains the following edges 1 >= 1, 6 > 1, 4 >= 2, 3 >= 3, 5 >= 4

  • P95_IN_GGGGAA(T423, T351, T424, .(T425, T426)) → U23_GGGGAA(T423, T351, T424, T425, T426, gtc97_in_gg(T423, T351))
    The graph contains the following edges 1 >= 1, 2 >= 2, 3 >= 3, 4 > 4, 4 > 5

  • P95_IN_GGGGAA(T448, T351, T449, .(T450, T451)) → U25_GGGGAA(T448, T351, T449, T450, T451, gtc97_in_gg(T448, T351))
    The graph contains the following edges 1 >= 1, 2 >= 2, 3 >= 3, 4 > 4, 4 > 5

(27) YES

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

splitc17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U43_ggaaa(T72, T73, X124, X125, T74, T76, splitc21_in_gaaa(T73, X125, X124, T76))
splitc21_in_gaaa([], [], [], T83) → splitc21_out_gaaa([], [], [], T83)
splitc21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U38_gaaa(T92, T93, X162, X163, T94, T96, splitc21_in_gaaa(T93, X163, X162, T96))
U38_gaaa(T92, T93, X162, X163, T94, T96, splitc21_out_gaaa(T93, X163, X162, T96)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U43_ggaaa(T72, T73, X124, X125, T74, T76, splitc21_out_gaaa(T73, X125, X124, T76)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
mergesortc1_in_gaa([], [], T5) → mergesortc1_out_gaa([], [], T5)
mergesortc1_in_gaa(.(T8, []), .(T8, []), T9) → mergesortc1_out_gaa(.(T8, []), .(T8, []), T9)
mergesortc1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U39_gaa(T43, T44, T45, T114, T115, T116, splitc17_in_ggaaa(T44, T45, T55, T56, T116))
U39_gaa(T43, T44, T45, T114, T115, T116, splitc17_out_ggaaa(T44, T45, T55, T56, T116)) → U40_gaa(T43, T44, T45, T114, T115, T116, T55, mergesortc1_in_gaa(.(T43, T56), T103, T116))
U40_gaa(T43, T44, T45, T114, T115, T116, T55, mergesortc1_out_gaa(.(T43, T56), T103, T116)) → U41_gaa(T43, T44, T45, T114, T115, T116, T103, mergesortc33_in_gaa(T55, T113, T116))
mergesortc33_in_gaa([], [], T123) → mergesortc33_out_gaa([], [], T123)
mergesortc33_in_gaa(.(T132, []), .(T132, []), T133) → mergesortc33_out_gaa(.(T132, []), .(T132, []), T133)
mergesortc33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U44_gaa(T144, T145, T146, X234, T175, T176, splitc17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U44_gaa(T144, T145, T146, X234, T175, T176, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U45_gaa(T144, T145, T146, X234, T175, T176, T157, mergesortc33_in_gaa(T156, T167, T176))
U45_gaa(T144, T145, T146, X234, T175, T176, T157, mergesortc33_out_gaa(T156, T167, T176)) → U46_gaa(T144, T145, T146, X234, T175, T176, T167, mergesortc33_in_gaa(T157, T174, T176))
U46_gaa(T144, T145, T146, X234, T175, T176, T167, mergesortc33_out_gaa(T157, T174, T176)) → U47_gaa(T144, T145, T146, X234, T175, T176, mergec34_in_ggaaa(T167, T174, X234, T175, T176))
mergec34_in_ggaaa([], T203, T203, T204, T205) → mergec34_out_ggaaa([], T203, T203, T204, T205)
mergec34_in_ggaaa(T218, [], T218, T219, T220) → mergec34_out_ggaaa(T218, [], T218, T219, T220)
mergec34_in_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U48_ggaaa(T249, T250, T251, T252, T256, T254, T257, qc67_in_ggggaa(T249, T251, T250, T252, T256, T257))
qc67_in_ggggaa(T249, T292, [], T293, .(T292, T293), T294) → U51_ggggaa(T249, T292, T293, T294, lec69_in_gg(T249, T292))
lec69_in_gg(s(T270), s(T271)) → U50_gg(T270, T271, lec69_in_gg(T270, T271))
lec69_in_gg(0, s(0)) → lec69_out_gg(0, s(0))
lec69_in_gg(0, 0) → lec69_out_gg(0, 0)
U50_gg(T270, T271, lec69_out_gg(T270, T271)) → lec69_out_gg(s(T270), s(T271))
U51_ggggaa(T249, T292, T293, T294, lec69_out_gg(T249, T292)) → qc67_out_ggggaa(T249, T292, [], T293, .(T292, T293), T294)
qc67_in_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U52_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, lec69_in_gg(T249, T326))
U52_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, lec69_out_gg(T249, T326)) → U53_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, qc67_in_ggggaa(T324, T326, T325, T327, T331, T332))
qc67_in_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U54_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, lec69_in_gg(T249, T351))
U54_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, lec69_out_gg(T249, T351)) → U55_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, qc95_in_ggggaa(T349, T351, T350, T352, T356, T357))
qc95_in_ggggaa(T392, T351, T393, [], .(T392, T393), T394) → U57_ggggaa(T392, T351, T393, T394, gtc97_in_gg(T392, T351))
gtc97_in_gg(s(T370), s(T371)) → U56_gg(T370, T371, gtc97_in_gg(T370, T371))
gtc97_in_gg(s(0), 0) → gtc97_out_gg(s(0), 0)
U56_gg(T370, T371, gtc97_out_gg(T370, T371)) → gtc97_out_gg(s(T370), s(T371))
U57_ggggaa(T392, T351, T393, T394, gtc97_out_gg(T392, T351)) → qc95_out_ggggaa(T392, T351, T393, [], .(T392, T393), T394)
qc95_in_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U58_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_in_gg(T423, T351))
U58_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_out_gg(T423, T351)) → U59_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, qc67_in_ggggaa(T423, T425, T424, T426, T430, T431))
U59_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, qc67_out_ggggaa(T423, T425, T424, T426, T430, T431)) → qc95_out_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
qc95_in_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U60_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_in_gg(T448, T351))
U60_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_out_gg(T448, T351)) → U61_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, qc95_in_ggggaa(T448, T450, T449, T451, T455, T456))
U61_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, qc95_out_ggggaa(T448, T450, T449, T451, T455, T456)) → qc95_out_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U55_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, qc95_out_ggggaa(T349, T351, T350, T352, T356, T357)) → qc67_out_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U53_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, qc67_out_ggggaa(T324, T326, T325, T327, T331, T332)) → qc67_out_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U48_ggaaa(T249, T250, T251, T252, T256, T254, T257, qc67_out_ggggaa(T249, T251, T250, T252, T256, T257)) → mergec34_out_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
mergec34_in_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U49_ggaaa(T473, T474, T475, T476, T480, T478, T481, qc95_in_ggggaa(T473, T475, T474, T476, T480, T481))
U49_ggaaa(T473, T474, T475, T476, T480, T478, T481, qc95_out_ggggaa(T473, T475, T474, T476, T480, T481)) → mergec34_out_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U47_gaa(T144, T145, T146, X234, T175, T176, mergec34_out_ggaaa(T167, T174, X234, T175, T176)) → mergesortc33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U41_gaa(T43, T44, T45, T114, T115, T116, T103, mergesortc33_out_gaa(T55, T113, T116)) → U42_gaa(T43, T44, T45, T114, T115, T116, mergec34_in_ggaaa(T103, T113, T114, T115, T116))
U42_gaa(T43, T44, T45, T114, T115, T116, mergec34_out_ggaaa(T103, T113, T114, T115, T116)) → mergesortc1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))

The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
splitc17_in_ggaaa(x1, x2, x3, x4, x5)  =  splitc17_in_ggaaa(x1, x2)
U43_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U43_ggaaa(x1, x2, x7)
splitc21_in_gaaa(x1, x2, x3, x4)  =  splitc21_in_gaaa(x1)
[]  =  []
splitc21_out_gaaa(x1, x2, x3, x4)  =  splitc21_out_gaaa(x1, x2, x3)
U38_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaaa(x1, x2, x7)
splitc17_out_ggaaa(x1, x2, x3, x4, x5)  =  splitc17_out_ggaaa(x1, x2, x3, x4)
mergesortc1_in_gaa(x1, x2, x3)  =  mergesortc1_in_gaa(x1)
mergesortc1_out_gaa(x1, x2, x3)  =  mergesortc1_out_gaa(x1, x2)
U39_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U39_gaa(x1, x2, x3, x7)
U40_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_gaa(x1, x2, x3, x7, x8)
U41_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U41_gaa(x1, x2, x3, x7, x8)
mergesortc33_in_gaa(x1, x2, x3)  =  mergesortc33_in_gaa(x1)
mergesortc33_out_gaa(x1, x2, x3)  =  mergesortc33_out_gaa(x1, x2)
U44_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U44_gaa(x1, x2, x3, x7)
U45_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U45_gaa(x1, x2, x3, x7, x8)
U46_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_gaa(x1, x2, x3, x7, x8)
U47_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U47_gaa(x1, x2, x3, x7)
mergec34_in_ggaaa(x1, x2, x3, x4, x5)  =  mergec34_in_ggaaa(x1, x2)
mergec34_out_ggaaa(x1, x2, x3, x4, x5)  =  mergec34_out_ggaaa(x1, x2, x3)
U48_ggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ggaaa(x1, x2, x3, x4, x8)
qc67_in_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc67_in_ggggaa(x1, x2, x3, x4)
U51_ggggaa(x1, x2, x3, x4, x5)  =  U51_ggggaa(x1, x2, x3, x5)
lec69_in_gg(x1, x2)  =  lec69_in_gg(x1, x2)
s(x1)  =  s(x1)
U50_gg(x1, x2, x3)  =  U50_gg(x1, x2, x3)
0  =  0
lec69_out_gg(x1, x2)  =  lec69_out_gg(x1, x2)
qc67_out_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc67_out_ggggaa(x1, x2, x3, x4, x5)
U52_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U52_ggggaa(x1, x2, x3, x4, x5, x9)
U53_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U53_ggggaa(x1, x2, x3, x4, x5, x9)
U54_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U54_ggggaa(x1, x2, x3, x4, x5, x9)
U55_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U55_ggggaa(x1, x2, x3, x4, x5, x9)
qc95_in_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc95_in_ggggaa(x1, x2, x3, x4)
U57_ggggaa(x1, x2, x3, x4, x5)  =  U57_ggggaa(x1, x2, x3, x5)
gtc97_in_gg(x1, x2)  =  gtc97_in_gg(x1, x2)
U56_gg(x1, x2, x3)  =  U56_gg(x1, x2, x3)
gtc97_out_gg(x1, x2)  =  gtc97_out_gg(x1, x2)
qc95_out_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc95_out_ggggaa(x1, x2, x3, x4, x5)
U58_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U58_ggggaa(x1, x2, x3, x4, x5, x9)
U59_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U59_ggggaa(x1, x2, x3, x4, x5, x9)
U60_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U60_ggggaa(x1, x2, x3, x4, x5, x9)
U61_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U61_ggggaa(x1, x2, x3, x4, x5, x9)
U49_ggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U49_ggaaa(x1, x2, x3, x4, x8)
U42_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U42_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

(29) UsableRulesProof (EQUIVALENT transformation)

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

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

(31) PiDPToQDPProof (SOUND transformation)

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

(32) 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.

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

(34) YES

(35) 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, splitc17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_GAA(T144, T145, T146, X234, T159, T158, splitc17_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, splitc17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_GAA(T144, T145, T146, X234, T169, T168, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesortc33_in_gaa(T156, T167, T168))
U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesortc33_out_gaa(T156, T167, T168)) → MERGESORT33_IN_GAA(T157, X233, T168)

The TRS R consists of the following rules:

splitc17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U43_ggaaa(T72, T73, X124, X125, T74, T76, splitc21_in_gaaa(T73, X125, X124, T76))
splitc21_in_gaaa([], [], [], T83) → splitc21_out_gaaa([], [], [], T83)
splitc21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U38_gaaa(T92, T93, X162, X163, T94, T96, splitc21_in_gaaa(T93, X163, X162, T96))
U38_gaaa(T92, T93, X162, X163, T94, T96, splitc21_out_gaaa(T93, X163, X162, T96)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U43_ggaaa(T72, T73, X124, X125, T74, T76, splitc21_out_gaaa(T73, X125, X124, T76)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
mergesortc1_in_gaa([], [], T5) → mergesortc1_out_gaa([], [], T5)
mergesortc1_in_gaa(.(T8, []), .(T8, []), T9) → mergesortc1_out_gaa(.(T8, []), .(T8, []), T9)
mergesortc1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U39_gaa(T43, T44, T45, T114, T115, T116, splitc17_in_ggaaa(T44, T45, T55, T56, T116))
U39_gaa(T43, T44, T45, T114, T115, T116, splitc17_out_ggaaa(T44, T45, T55, T56, T116)) → U40_gaa(T43, T44, T45, T114, T115, T116, T55, mergesortc1_in_gaa(.(T43, T56), T103, T116))
U40_gaa(T43, T44, T45, T114, T115, T116, T55, mergesortc1_out_gaa(.(T43, T56), T103, T116)) → U41_gaa(T43, T44, T45, T114, T115, T116, T103, mergesortc33_in_gaa(T55, T113, T116))
mergesortc33_in_gaa([], [], T123) → mergesortc33_out_gaa([], [], T123)
mergesortc33_in_gaa(.(T132, []), .(T132, []), T133) → mergesortc33_out_gaa(.(T132, []), .(T132, []), T133)
mergesortc33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U44_gaa(T144, T145, T146, X234, T175, T176, splitc17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U44_gaa(T144, T145, T146, X234, T175, T176, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U45_gaa(T144, T145, T146, X234, T175, T176, T157, mergesortc33_in_gaa(T156, T167, T176))
U45_gaa(T144, T145, T146, X234, T175, T176, T157, mergesortc33_out_gaa(T156, T167, T176)) → U46_gaa(T144, T145, T146, X234, T175, T176, T167, mergesortc33_in_gaa(T157, T174, T176))
U46_gaa(T144, T145, T146, X234, T175, T176, T167, mergesortc33_out_gaa(T157, T174, T176)) → U47_gaa(T144, T145, T146, X234, T175, T176, mergec34_in_ggaaa(T167, T174, X234, T175, T176))
mergec34_in_ggaaa([], T203, T203, T204, T205) → mergec34_out_ggaaa([], T203, T203, T204, T205)
mergec34_in_ggaaa(T218, [], T218, T219, T220) → mergec34_out_ggaaa(T218, [], T218, T219, T220)
mergec34_in_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U48_ggaaa(T249, T250, T251, T252, T256, T254, T257, qc67_in_ggggaa(T249, T251, T250, T252, T256, T257))
qc67_in_ggggaa(T249, T292, [], T293, .(T292, T293), T294) → U51_ggggaa(T249, T292, T293, T294, lec69_in_gg(T249, T292))
lec69_in_gg(s(T270), s(T271)) → U50_gg(T270, T271, lec69_in_gg(T270, T271))
lec69_in_gg(0, s(0)) → lec69_out_gg(0, s(0))
lec69_in_gg(0, 0) → lec69_out_gg(0, 0)
U50_gg(T270, T271, lec69_out_gg(T270, T271)) → lec69_out_gg(s(T270), s(T271))
U51_ggggaa(T249, T292, T293, T294, lec69_out_gg(T249, T292)) → qc67_out_ggggaa(T249, T292, [], T293, .(T292, T293), T294)
qc67_in_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U52_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, lec69_in_gg(T249, T326))
U52_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, lec69_out_gg(T249, T326)) → U53_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, qc67_in_ggggaa(T324, T326, T325, T327, T331, T332))
qc67_in_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U54_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, lec69_in_gg(T249, T351))
U54_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, lec69_out_gg(T249, T351)) → U55_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, qc95_in_ggggaa(T349, T351, T350, T352, T356, T357))
qc95_in_ggggaa(T392, T351, T393, [], .(T392, T393), T394) → U57_ggggaa(T392, T351, T393, T394, gtc97_in_gg(T392, T351))
gtc97_in_gg(s(T370), s(T371)) → U56_gg(T370, T371, gtc97_in_gg(T370, T371))
gtc97_in_gg(s(0), 0) → gtc97_out_gg(s(0), 0)
U56_gg(T370, T371, gtc97_out_gg(T370, T371)) → gtc97_out_gg(s(T370), s(T371))
U57_ggggaa(T392, T351, T393, T394, gtc97_out_gg(T392, T351)) → qc95_out_ggggaa(T392, T351, T393, [], .(T392, T393), T394)
qc95_in_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U58_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_in_gg(T423, T351))
U58_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_out_gg(T423, T351)) → U59_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, qc67_in_ggggaa(T423, T425, T424, T426, T430, T431))
U59_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, qc67_out_ggggaa(T423, T425, T424, T426, T430, T431)) → qc95_out_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
qc95_in_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U60_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_in_gg(T448, T351))
U60_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_out_gg(T448, T351)) → U61_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, qc95_in_ggggaa(T448, T450, T449, T451, T455, T456))
U61_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, qc95_out_ggggaa(T448, T450, T449, T451, T455, T456)) → qc95_out_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U55_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, qc95_out_ggggaa(T349, T351, T350, T352, T356, T357)) → qc67_out_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U53_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, qc67_out_ggggaa(T324, T326, T325, T327, T331, T332)) → qc67_out_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U48_ggaaa(T249, T250, T251, T252, T256, T254, T257, qc67_out_ggggaa(T249, T251, T250, T252, T256, T257)) → mergec34_out_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
mergec34_in_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U49_ggaaa(T473, T474, T475, T476, T480, T478, T481, qc95_in_ggggaa(T473, T475, T474, T476, T480, T481))
U49_ggaaa(T473, T474, T475, T476, T480, T478, T481, qc95_out_ggggaa(T473, T475, T474, T476, T480, T481)) → mergec34_out_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U47_gaa(T144, T145, T146, X234, T175, T176, mergec34_out_ggaaa(T167, T174, X234, T175, T176)) → mergesortc33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U41_gaa(T43, T44, T45, T114, T115, T116, T103, mergesortc33_out_gaa(T55, T113, T116)) → U42_gaa(T43, T44, T45, T114, T115, T116, mergec34_in_ggaaa(T103, T113, T114, T115, T116))
U42_gaa(T43, T44, T45, T114, T115, T116, mergec34_out_ggaaa(T103, T113, T114, T115, T116)) → mergesortc1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))

The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
splitc17_in_ggaaa(x1, x2, x3, x4, x5)  =  splitc17_in_ggaaa(x1, x2)
U43_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U43_ggaaa(x1, x2, x7)
splitc21_in_gaaa(x1, x2, x3, x4)  =  splitc21_in_gaaa(x1)
[]  =  []
splitc21_out_gaaa(x1, x2, x3, x4)  =  splitc21_out_gaaa(x1, x2, x3)
U38_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaaa(x1, x2, x7)
splitc17_out_ggaaa(x1, x2, x3, x4, x5)  =  splitc17_out_ggaaa(x1, x2, x3, x4)
mergesortc1_in_gaa(x1, x2, x3)  =  mergesortc1_in_gaa(x1)
mergesortc1_out_gaa(x1, x2, x3)  =  mergesortc1_out_gaa(x1, x2)
U39_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U39_gaa(x1, x2, x3, x7)
U40_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_gaa(x1, x2, x3, x7, x8)
U41_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U41_gaa(x1, x2, x3, x7, x8)
mergesortc33_in_gaa(x1, x2, x3)  =  mergesortc33_in_gaa(x1)
mergesortc33_out_gaa(x1, x2, x3)  =  mergesortc33_out_gaa(x1, x2)
U44_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U44_gaa(x1, x2, x3, x7)
U45_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U45_gaa(x1, x2, x3, x7, x8)
U46_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_gaa(x1, x2, x3, x7, x8)
U47_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U47_gaa(x1, x2, x3, x7)
mergec34_in_ggaaa(x1, x2, x3, x4, x5)  =  mergec34_in_ggaaa(x1, x2)
mergec34_out_ggaaa(x1, x2, x3, x4, x5)  =  mergec34_out_ggaaa(x1, x2, x3)
U48_ggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ggaaa(x1, x2, x3, x4, x8)
qc67_in_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc67_in_ggggaa(x1, x2, x3, x4)
U51_ggggaa(x1, x2, x3, x4, x5)  =  U51_ggggaa(x1, x2, x3, x5)
lec69_in_gg(x1, x2)  =  lec69_in_gg(x1, x2)
s(x1)  =  s(x1)
U50_gg(x1, x2, x3)  =  U50_gg(x1, x2, x3)
0  =  0
lec69_out_gg(x1, x2)  =  lec69_out_gg(x1, x2)
qc67_out_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc67_out_ggggaa(x1, x2, x3, x4, x5)
U52_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U52_ggggaa(x1, x2, x3, x4, x5, x9)
U53_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U53_ggggaa(x1, x2, x3, x4, x5, x9)
U54_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U54_ggggaa(x1, x2, x3, x4, x5, x9)
U55_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U55_ggggaa(x1, x2, x3, x4, x5, x9)
qc95_in_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc95_in_ggggaa(x1, x2, x3, x4)
U57_ggggaa(x1, x2, x3, x4, x5)  =  U57_ggggaa(x1, x2, x3, x5)
gtc97_in_gg(x1, x2)  =  gtc97_in_gg(x1, x2)
U56_gg(x1, x2, x3)  =  U56_gg(x1, x2, x3)
gtc97_out_gg(x1, x2)  =  gtc97_out_gg(x1, x2)
qc95_out_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc95_out_ggggaa(x1, x2, x3, x4, x5)
U58_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U58_ggggaa(x1, x2, x3, x4, x5, x9)
U59_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U59_ggggaa(x1, x2, x3, x4, x5, x9)
U60_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U60_ggggaa(x1, x2, x3, x4, x5, x9)
U61_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U61_ggggaa(x1, x2, x3, x4, x5, x9)
U49_ggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U49_ggaaa(x1, x2, x3, x4, x8)
U42_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U42_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)

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

(36) UsableRulesProof (EQUIVALENT transformation)

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

(37) 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, splitc17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T159, T158)))
U4_GAA(T144, T145, T146, X234, T159, T158, splitc17_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, splitc17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168)))
U6_GAA(T144, T145, T146, X234, T169, T168, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T169, T168))) → U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesortc33_in_gaa(T156, T167, T168))
U7_GAA(T144, T145, T146, X234, T169, T168, T157, mergesortc33_out_gaa(T156, T167, T168)) → MERGESORT33_IN_GAA(T157, X233, T168)

The TRS R consists of the following rules:

splitc17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U43_ggaaa(T72, T73, X124, X125, T74, T76, splitc21_in_gaaa(T73, X125, X124, T76))
mergesortc33_in_gaa([], [], T123) → mergesortc33_out_gaa([], [], T123)
mergesortc33_in_gaa(.(T132, []), .(T132, []), T133) → mergesortc33_out_gaa(.(T132, []), .(T132, []), T133)
mergesortc33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U44_gaa(T144, T145, T146, X234, T175, T176, splitc17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U43_ggaaa(T72, T73, X124, X125, T74, T76, splitc21_out_gaaa(T73, X125, X124, T76)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
U44_gaa(T144, T145, T146, X234, T175, T176, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U45_gaa(T144, T145, T146, X234, T175, T176, T157, mergesortc33_in_gaa(T156, T167, T176))
splitc21_in_gaaa([], [], [], T83) → splitc21_out_gaaa([], [], [], T83)
splitc21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U38_gaaa(T92, T93, X162, X163, T94, T96, splitc21_in_gaaa(T93, X163, X162, T96))
U45_gaa(T144, T145, T146, X234, T175, T176, T157, mergesortc33_out_gaa(T156, T167, T176)) → U46_gaa(T144, T145, T146, X234, T175, T176, T167, mergesortc33_in_gaa(T157, T174, T176))
U38_gaaa(T92, T93, X162, X163, T94, T96, splitc21_out_gaaa(T93, X163, X162, T96)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U46_gaa(T144, T145, T146, X234, T175, T176, T167, mergesortc33_out_gaa(T157, T174, T176)) → U47_gaa(T144, T145, T146, X234, T175, T176, mergec34_in_ggaaa(T167, T174, X234, T175, T176))
U47_gaa(T144, T145, T146, X234, T175, T176, mergec34_out_ggaaa(T167, T174, X234, T175, T176)) → mergesortc33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
mergec34_in_ggaaa([], T203, T203, T204, T205) → mergec34_out_ggaaa([], T203, T203, T204, T205)
mergec34_in_ggaaa(T218, [], T218, T219, T220) → mergec34_out_ggaaa(T218, [], T218, T219, T220)
mergec34_in_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U48_ggaaa(T249, T250, T251, T252, T256, T254, T257, qc67_in_ggggaa(T249, T251, T250, T252, T256, T257))
mergec34_in_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U49_ggaaa(T473, T474, T475, T476, T480, T478, T481, qc95_in_ggggaa(T473, T475, T474, T476, T480, T481))
U48_ggaaa(T249, T250, T251, T252, T256, T254, T257, qc67_out_ggggaa(T249, T251, T250, T252, T256, T257)) → mergec34_out_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
U49_ggaaa(T473, T474, T475, T476, T480, T478, T481, qc95_out_ggggaa(T473, T475, T474, T476, T480, T481)) → mergec34_out_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
qc67_in_ggggaa(T249, T292, [], T293, .(T292, T293), T294) → U51_ggggaa(T249, T292, T293, T294, lec69_in_gg(T249, T292))
qc67_in_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U52_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, lec69_in_gg(T249, T326))
qc67_in_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U54_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, lec69_in_gg(T249, T351))
qc95_in_ggggaa(T392, T351, T393, [], .(T392, T393), T394) → U57_ggggaa(T392, T351, T393, T394, gtc97_in_gg(T392, T351))
qc95_in_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U58_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_in_gg(T423, T351))
qc95_in_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U60_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_in_gg(T448, T351))
U51_ggggaa(T249, T292, T293, T294, lec69_out_gg(T249, T292)) → qc67_out_ggggaa(T249, T292, [], T293, .(T292, T293), T294)
U52_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, lec69_out_gg(T249, T326)) → U53_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, qc67_in_ggggaa(T324, T326, T325, T327, T331, T332))
U54_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, lec69_out_gg(T249, T351)) → U55_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, qc95_in_ggggaa(T349, T351, T350, T352, T356, T357))
U57_ggggaa(T392, T351, T393, T394, gtc97_out_gg(T392, T351)) → qc95_out_ggggaa(T392, T351, T393, [], .(T392, T393), T394)
U58_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_out_gg(T423, T351)) → U59_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, qc67_in_ggggaa(T423, T425, T424, T426, T430, T431))
U60_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_out_gg(T448, T351)) → U61_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, qc95_in_ggggaa(T448, T450, T449, T451, T455, T456))
lec69_in_gg(s(T270), s(T271)) → U50_gg(T270, T271, lec69_in_gg(T270, T271))
lec69_in_gg(0, s(0)) → lec69_out_gg(0, s(0))
lec69_in_gg(0, 0) → lec69_out_gg(0, 0)
U53_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, qc67_out_ggggaa(T324, T326, T325, T327, T331, T332)) → qc67_out_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U55_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, qc95_out_ggggaa(T349, T351, T350, T352, T356, T357)) → qc67_out_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
gtc97_in_gg(s(T370), s(T371)) → U56_gg(T370, T371, gtc97_in_gg(T370, T371))
gtc97_in_gg(s(0), 0) → gtc97_out_gg(s(0), 0)
U59_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, qc67_out_ggggaa(T423, T425, T424, T426, T430, T431)) → qc95_out_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
U61_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, qc95_out_ggggaa(T448, T450, T449, T451, T455, T456)) → qc95_out_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U50_gg(T270, T271, lec69_out_gg(T270, T271)) → lec69_out_gg(s(T270), s(T271))
U56_gg(T370, T371, gtc97_out_gg(T370, T371)) → gtc97_out_gg(s(T370), s(T371))

The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
splitc17_in_ggaaa(x1, x2, x3, x4, x5)  =  splitc17_in_ggaaa(x1, x2)
U43_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U43_ggaaa(x1, x2, x7)
splitc21_in_gaaa(x1, x2, x3, x4)  =  splitc21_in_gaaa(x1)
[]  =  []
splitc21_out_gaaa(x1, x2, x3, x4)  =  splitc21_out_gaaa(x1, x2, x3)
U38_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaaa(x1, x2, x7)
splitc17_out_ggaaa(x1, x2, x3, x4, x5)  =  splitc17_out_ggaaa(x1, x2, x3, x4)
mergesortc33_in_gaa(x1, x2, x3)  =  mergesortc33_in_gaa(x1)
mergesortc33_out_gaa(x1, x2, x3)  =  mergesortc33_out_gaa(x1, x2)
U44_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U44_gaa(x1, x2, x3, x7)
U45_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U45_gaa(x1, x2, x3, x7, x8)
U46_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_gaa(x1, x2, x3, x7, x8)
U47_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U47_gaa(x1, x2, x3, x7)
mergec34_in_ggaaa(x1, x2, x3, x4, x5)  =  mergec34_in_ggaaa(x1, x2)
mergec34_out_ggaaa(x1, x2, x3, x4, x5)  =  mergec34_out_ggaaa(x1, x2, x3)
U48_ggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ggaaa(x1, x2, x3, x4, x8)
qc67_in_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc67_in_ggggaa(x1, x2, x3, x4)
U51_ggggaa(x1, x2, x3, x4, x5)  =  U51_ggggaa(x1, x2, x3, x5)
lec69_in_gg(x1, x2)  =  lec69_in_gg(x1, x2)
s(x1)  =  s(x1)
U50_gg(x1, x2, x3)  =  U50_gg(x1, x2, x3)
0  =  0
lec69_out_gg(x1, x2)  =  lec69_out_gg(x1, x2)
qc67_out_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc67_out_ggggaa(x1, x2, x3, x4, x5)
U52_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U52_ggggaa(x1, x2, x3, x4, x5, x9)
U53_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U53_ggggaa(x1, x2, x3, x4, x5, x9)
U54_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U54_ggggaa(x1, x2, x3, x4, x5, x9)
U55_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U55_ggggaa(x1, x2, x3, x4, x5, x9)
qc95_in_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc95_in_ggggaa(x1, x2, x3, x4)
U57_ggggaa(x1, x2, x3, x4, x5)  =  U57_ggggaa(x1, x2, x3, x5)
gtc97_in_gg(x1, x2)  =  gtc97_in_gg(x1, x2)
U56_gg(x1, x2, x3)  =  U56_gg(x1, x2, x3)
gtc97_out_gg(x1, x2)  =  gtc97_out_gg(x1, x2)
qc95_out_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc95_out_ggggaa(x1, x2, x3, x4, x5)
U58_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U58_ggggaa(x1, x2, x3, x4, x5, x9)
U59_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U59_ggggaa(x1, x2, x3, x4, x5, x9)
U60_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U60_ggggaa(x1, x2, x3, x4, x5, x9)
U61_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U61_ggggaa(x1, x2, x3, x4, x5, x9)
U49_ggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U49_ggaaa(x1, x2, x3, x4, x8)
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)

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

(38) PiDPToQDPProof (SOUND transformation)

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

(39) Obligation:

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

MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(T144, T145, T146, splitc17_in_ggaaa(T144, .(T145, T146)))
U4_GAA(T144, T145, T146, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(T144, T145, T146, splitc17_in_ggaaa(T144, .(T145, T146)))
U6_GAA(T144, T145, T146, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U7_GAA(T144, T145, T146, T157, mergesortc33_in_gaa(T156))
U7_GAA(T144, T145, T146, T157, mergesortc33_out_gaa(T156, T167)) → MERGESORT33_IN_GAA(T157)

The TRS R consists of the following rules:

splitc17_in_ggaaa(T72, T73) → U43_ggaaa(T72, T73, splitc21_in_gaaa(T73))
mergesortc33_in_gaa([]) → mergesortc33_out_gaa([], [])
mergesortc33_in_gaa(.(T132, [])) → mergesortc33_out_gaa(.(T132, []), .(T132, []))
mergesortc33_in_gaa(.(T144, .(T145, T146))) → U44_gaa(T144, T145, T146, splitc17_in_ggaaa(T144, .(T145, T146)))
U43_ggaaa(T72, T73, splitc21_out_gaaa(T73, X125, X124)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125)
U44_gaa(T144, T145, T146, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U45_gaa(T144, T145, T146, T157, mergesortc33_in_gaa(T156))
splitc21_in_gaaa([]) → splitc21_out_gaaa([], [], [])
splitc21_in_gaaa(.(T92, T93)) → U38_gaaa(T92, T93, splitc21_in_gaaa(T93))
U45_gaa(T144, T145, T146, T157, mergesortc33_out_gaa(T156, T167)) → U46_gaa(T144, T145, T146, T167, mergesortc33_in_gaa(T157))
U38_gaaa(T92, T93, splitc21_out_gaaa(T93, X163, X162)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163)
U46_gaa(T144, T145, T146, T167, mergesortc33_out_gaa(T157, T174)) → U47_gaa(T144, T145, T146, mergec34_in_ggaaa(T167, T174))
U47_gaa(T144, T145, T146, mergec34_out_ggaaa(T167, T174, X234)) → mergesortc33_out_gaa(.(T144, .(T145, T146)), X234)
mergec34_in_ggaaa([], T203) → mergec34_out_ggaaa([], T203, T203)
mergec34_in_ggaaa(T218, []) → mergec34_out_ggaaa(T218, [], T218)
mergec34_in_ggaaa(.(T249, T250), .(T251, T252)) → U48_ggaaa(T249, T250, T251, T252, qc67_in_ggggaa(T249, T251, T250, T252))
mergec34_in_ggaaa(.(T473, T474), .(T475, T476)) → U49_ggaaa(T473, T474, T475, T476, qc95_in_ggggaa(T473, T475, T474, T476))
U48_ggaaa(T249, T250, T251, T252, qc67_out_ggggaa(T249, T251, T250, T252, T256)) → mergec34_out_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256))
U49_ggaaa(T473, T474, T475, T476, qc95_out_ggggaa(T473, T475, T474, T476, T480)) → mergec34_out_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480))
qc67_in_ggggaa(T249, T292, [], T293) → U51_ggggaa(T249, T292, T293, lec69_in_gg(T249, T292))
qc67_in_ggggaa(T249, T326, .(T324, T325), T327) → U52_ggggaa(T249, T326, T324, T325, T327, lec69_in_gg(T249, T326))
qc67_in_ggggaa(T249, T351, .(T349, T350), T352) → U54_ggggaa(T249, T351, T349, T350, T352, lec69_in_gg(T249, T351))
qc95_in_ggggaa(T392, T351, T393, []) → U57_ggggaa(T392, T351, T393, gtc97_in_gg(T392, T351))
qc95_in_ggggaa(T423, T351, T424, .(T425, T426)) → U58_ggggaa(T423, T351, T424, T425, T426, gtc97_in_gg(T423, T351))
qc95_in_ggggaa(T448, T351, T449, .(T450, T451)) → U60_ggggaa(T448, T351, T449, T450, T451, gtc97_in_gg(T448, T351))
U51_ggggaa(T249, T292, T293, lec69_out_gg(T249, T292)) → qc67_out_ggggaa(T249, T292, [], T293, .(T292, T293))
U52_ggggaa(T249, T326, T324, T325, T327, lec69_out_gg(T249, T326)) → U53_ggggaa(T249, T326, T324, T325, T327, qc67_in_ggggaa(T324, T326, T325, T327))
U54_ggggaa(T249, T351, T349, T350, T352, lec69_out_gg(T249, T351)) → U55_ggggaa(T249, T351, T349, T350, T352, qc95_in_ggggaa(T349, T351, T350, T352))
U57_ggggaa(T392, T351, T393, gtc97_out_gg(T392, T351)) → qc95_out_ggggaa(T392, T351, T393, [], .(T392, T393))
U58_ggggaa(T423, T351, T424, T425, T426, gtc97_out_gg(T423, T351)) → U59_ggggaa(T423, T351, T424, T425, T426, qc67_in_ggggaa(T423, T425, T424, T426))
U60_ggggaa(T448, T351, T449, T450, T451, gtc97_out_gg(T448, T351)) → U61_ggggaa(T448, T351, T449, T450, T451, qc95_in_ggggaa(T448, T450, T449, T451))
lec69_in_gg(s(T270), s(T271)) → U50_gg(T270, T271, lec69_in_gg(T270, T271))
lec69_in_gg(0, s(0)) → lec69_out_gg(0, s(0))
lec69_in_gg(0, 0) → lec69_out_gg(0, 0)
U53_ggggaa(T249, T326, T324, T325, T327, qc67_out_ggggaa(T324, T326, T325, T327, T331)) → qc67_out_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331))
U55_ggggaa(T249, T351, T349, T350, T352, qc95_out_ggggaa(T349, T351, T350, T352, T356)) → qc67_out_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356))
gtc97_in_gg(s(T370), s(T371)) → U56_gg(T370, T371, gtc97_in_gg(T370, T371))
gtc97_in_gg(s(0), 0) → gtc97_out_gg(s(0), 0)
U59_ggggaa(T423, T351, T424, T425, T426, qc67_out_ggggaa(T423, T425, T424, T426, T430)) → qc95_out_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430))
U61_ggggaa(T448, T351, T449, T450, T451, qc95_out_ggggaa(T448, T450, T449, T451, T455)) → qc95_out_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455))
U50_gg(T270, T271, lec69_out_gg(T270, T271)) → lec69_out_gg(s(T270), s(T271))
U56_gg(T370, T371, gtc97_out_gg(T370, T371)) → gtc97_out_gg(s(T370), s(T371))

The set Q consists of the following terms:

splitc17_in_ggaaa(x0, x1)
mergesortc33_in_gaa(x0)
U43_ggaaa(x0, x1, x2)
U44_gaa(x0, x1, x2, x3)
splitc21_in_gaaa(x0)
U45_gaa(x0, x1, x2, x3, x4)
U38_gaaa(x0, x1, x2)
U46_gaa(x0, x1, x2, x3, x4)
U47_gaa(x0, x1, x2, x3)
mergec34_in_ggaaa(x0, x1)
U48_ggaaa(x0, x1, x2, x3, x4)
U49_ggaaa(x0, x1, x2, x3, x4)
qc67_in_ggggaa(x0, x1, x2, x3)
qc95_in_ggggaa(x0, x1, x2, x3)
U51_ggggaa(x0, x1, x2, x3)
U52_ggggaa(x0, x1, x2, x3, x4, x5)
U54_ggggaa(x0, x1, x2, x3, x4, x5)
U57_ggggaa(x0, x1, x2, x3)
U58_ggggaa(x0, x1, x2, x3, x4, x5)
U60_ggggaa(x0, x1, x2, x3, x4, x5)
lec69_in_gg(x0, x1)
U53_ggggaa(x0, x1, x2, x3, x4, x5)
U55_ggggaa(x0, x1, x2, x3, x4, x5)
gtc97_in_gg(x0, x1)
U59_ggggaa(x0, x1, x2, x3, x4, x5)
U61_ggggaa(x0, x1, x2, x3, x4, x5)
U50_gg(x0, x1, x2)
U56_gg(x0, x1, x2)

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

(40) Rewriting (EQUIVALENT transformation)

By rewriting [LPAR04] the rule MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(T144, T145, T146, splitc17_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, U43_ggaaa(T144, .(T145, T146), splitc21_in_gaaa(.(T145, T146))))

(41) Obligation:

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

U4_GAA(T144, T145, T146, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(T144, T145, T146, splitc17_in_ggaaa(T144, .(T145, T146)))
U6_GAA(T144, T145, T146, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U7_GAA(T144, T145, T146, T157, mergesortc33_in_gaa(T156))
U7_GAA(T144, T145, T146, T157, mergesortc33_out_gaa(T156, T167)) → MERGESORT33_IN_GAA(T157)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(T144, T145, T146, U43_ggaaa(T144, .(T145, T146), splitc21_in_gaaa(.(T145, T146))))

The TRS R consists of the following rules:

splitc17_in_ggaaa(T72, T73) → U43_ggaaa(T72, T73, splitc21_in_gaaa(T73))
mergesortc33_in_gaa([]) → mergesortc33_out_gaa([], [])
mergesortc33_in_gaa(.(T132, [])) → mergesortc33_out_gaa(.(T132, []), .(T132, []))
mergesortc33_in_gaa(.(T144, .(T145, T146))) → U44_gaa(T144, T145, T146, splitc17_in_ggaaa(T144, .(T145, T146)))
U43_ggaaa(T72, T73, splitc21_out_gaaa(T73, X125, X124)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125)
U44_gaa(T144, T145, T146, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U45_gaa(T144, T145, T146, T157, mergesortc33_in_gaa(T156))
splitc21_in_gaaa([]) → splitc21_out_gaaa([], [], [])
splitc21_in_gaaa(.(T92, T93)) → U38_gaaa(T92, T93, splitc21_in_gaaa(T93))
U45_gaa(T144, T145, T146, T157, mergesortc33_out_gaa(T156, T167)) → U46_gaa(T144, T145, T146, T167, mergesortc33_in_gaa(T157))
U38_gaaa(T92, T93, splitc21_out_gaaa(T93, X163, X162)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163)
U46_gaa(T144, T145, T146, T167, mergesortc33_out_gaa(T157, T174)) → U47_gaa(T144, T145, T146, mergec34_in_ggaaa(T167, T174))
U47_gaa(T144, T145, T146, mergec34_out_ggaaa(T167, T174, X234)) → mergesortc33_out_gaa(.(T144, .(T145, T146)), X234)
mergec34_in_ggaaa([], T203) → mergec34_out_ggaaa([], T203, T203)
mergec34_in_ggaaa(T218, []) → mergec34_out_ggaaa(T218, [], T218)
mergec34_in_ggaaa(.(T249, T250), .(T251, T252)) → U48_ggaaa(T249, T250, T251, T252, qc67_in_ggggaa(T249, T251, T250, T252))
mergec34_in_ggaaa(.(T473, T474), .(T475, T476)) → U49_ggaaa(T473, T474, T475, T476, qc95_in_ggggaa(T473, T475, T474, T476))
U48_ggaaa(T249, T250, T251, T252, qc67_out_ggggaa(T249, T251, T250, T252, T256)) → mergec34_out_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256))
U49_ggaaa(T473, T474, T475, T476, qc95_out_ggggaa(T473, T475, T474, T476, T480)) → mergec34_out_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480))
qc67_in_ggggaa(T249, T292, [], T293) → U51_ggggaa(T249, T292, T293, lec69_in_gg(T249, T292))
qc67_in_ggggaa(T249, T326, .(T324, T325), T327) → U52_ggggaa(T249, T326, T324, T325, T327, lec69_in_gg(T249, T326))
qc67_in_ggggaa(T249, T351, .(T349, T350), T352) → U54_ggggaa(T249, T351, T349, T350, T352, lec69_in_gg(T249, T351))
qc95_in_ggggaa(T392, T351, T393, []) → U57_ggggaa(T392, T351, T393, gtc97_in_gg(T392, T351))
qc95_in_ggggaa(T423, T351, T424, .(T425, T426)) → U58_ggggaa(T423, T351, T424, T425, T426, gtc97_in_gg(T423, T351))
qc95_in_ggggaa(T448, T351, T449, .(T450, T451)) → U60_ggggaa(T448, T351, T449, T450, T451, gtc97_in_gg(T448, T351))
U51_ggggaa(T249, T292, T293, lec69_out_gg(T249, T292)) → qc67_out_ggggaa(T249, T292, [], T293, .(T292, T293))
U52_ggggaa(T249, T326, T324, T325, T327, lec69_out_gg(T249, T326)) → U53_ggggaa(T249, T326, T324, T325, T327, qc67_in_ggggaa(T324, T326, T325, T327))
U54_ggggaa(T249, T351, T349, T350, T352, lec69_out_gg(T249, T351)) → U55_ggggaa(T249, T351, T349, T350, T352, qc95_in_ggggaa(T349, T351, T350, T352))
U57_ggggaa(T392, T351, T393, gtc97_out_gg(T392, T351)) → qc95_out_ggggaa(T392, T351, T393, [], .(T392, T393))
U58_ggggaa(T423, T351, T424, T425, T426, gtc97_out_gg(T423, T351)) → U59_ggggaa(T423, T351, T424, T425, T426, qc67_in_ggggaa(T423, T425, T424, T426))
U60_ggggaa(T448, T351, T449, T450, T451, gtc97_out_gg(T448, T351)) → U61_ggggaa(T448, T351, T449, T450, T451, qc95_in_ggggaa(T448, T450, T449, T451))
lec69_in_gg(s(T270), s(T271)) → U50_gg(T270, T271, lec69_in_gg(T270, T271))
lec69_in_gg(0, s(0)) → lec69_out_gg(0, s(0))
lec69_in_gg(0, 0) → lec69_out_gg(0, 0)
U53_ggggaa(T249, T326, T324, T325, T327, qc67_out_ggggaa(T324, T326, T325, T327, T331)) → qc67_out_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331))
U55_ggggaa(T249, T351, T349, T350, T352, qc95_out_ggggaa(T349, T351, T350, T352, T356)) → qc67_out_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356))
gtc97_in_gg(s(T370), s(T371)) → U56_gg(T370, T371, gtc97_in_gg(T370, T371))
gtc97_in_gg(s(0), 0) → gtc97_out_gg(s(0), 0)
U59_ggggaa(T423, T351, T424, T425, T426, qc67_out_ggggaa(T423, T425, T424, T426, T430)) → qc95_out_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430))
U61_ggggaa(T448, T351, T449, T450, T451, qc95_out_ggggaa(T448, T450, T449, T451, T455)) → qc95_out_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455))
U50_gg(T270, T271, lec69_out_gg(T270, T271)) → lec69_out_gg(s(T270), s(T271))
U56_gg(T370, T371, gtc97_out_gg(T370, T371)) → gtc97_out_gg(s(T370), s(T371))

The set Q consists of the following terms:

splitc17_in_ggaaa(x0, x1)
mergesortc33_in_gaa(x0)
U43_ggaaa(x0, x1, x2)
U44_gaa(x0, x1, x2, x3)
splitc21_in_gaaa(x0)
U45_gaa(x0, x1, x2, x3, x4)
U38_gaaa(x0, x1, x2)
U46_gaa(x0, x1, x2, x3, x4)
U47_gaa(x0, x1, x2, x3)
mergec34_in_ggaaa(x0, x1)
U48_ggaaa(x0, x1, x2, x3, x4)
U49_ggaaa(x0, x1, x2, x3, x4)
qc67_in_ggggaa(x0, x1, x2, x3)
qc95_in_ggggaa(x0, x1, x2, x3)
U51_ggggaa(x0, x1, x2, x3)
U52_ggggaa(x0, x1, x2, x3, x4, x5)
U54_ggggaa(x0, x1, x2, x3, x4, x5)
U57_ggggaa(x0, x1, x2, x3)
U58_ggggaa(x0, x1, x2, x3, x4, x5)
U60_ggggaa(x0, x1, x2, x3, x4, x5)
lec69_in_gg(x0, x1)
U53_ggggaa(x0, x1, x2, x3, x4, x5)
U55_ggggaa(x0, x1, x2, x3, x4, x5)
gtc97_in_gg(x0, x1)
U59_ggggaa(x0, x1, x2, x3, x4, x5)
U61_ggggaa(x0, x1, x2, x3, x4, x5)
U50_gg(x0, x1, x2)
U56_gg(x0, x1, x2)

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

(42) Rewriting (EQUIVALENT transformation)

By rewriting [LPAR04] the rule MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(T144, T145, T146, splitc17_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, U43_ggaaa(T144, .(T145, T146), splitc21_in_gaaa(.(T145, T146))))

(43) Obligation:

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

U4_GAA(T144, T145, T146, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(T144, T145, T146, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U7_GAA(T144, T145, T146, T157, mergesortc33_in_gaa(T156))
U7_GAA(T144, T145, T146, T157, mergesortc33_out_gaa(T156, T167)) → MERGESORT33_IN_GAA(T157)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(T144, T145, T146, U43_ggaaa(T144, .(T145, T146), splitc21_in_gaaa(.(T145, T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(T144, T145, T146, U43_ggaaa(T144, .(T145, T146), splitc21_in_gaaa(.(T145, T146))))

The TRS R consists of the following rules:

splitc17_in_ggaaa(T72, T73) → U43_ggaaa(T72, T73, splitc21_in_gaaa(T73))
mergesortc33_in_gaa([]) → mergesortc33_out_gaa([], [])
mergesortc33_in_gaa(.(T132, [])) → mergesortc33_out_gaa(.(T132, []), .(T132, []))
mergesortc33_in_gaa(.(T144, .(T145, T146))) → U44_gaa(T144, T145, T146, splitc17_in_ggaaa(T144, .(T145, T146)))
U43_ggaaa(T72, T73, splitc21_out_gaaa(T73, X125, X124)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125)
U44_gaa(T144, T145, T146, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U45_gaa(T144, T145, T146, T157, mergesortc33_in_gaa(T156))
splitc21_in_gaaa([]) → splitc21_out_gaaa([], [], [])
splitc21_in_gaaa(.(T92, T93)) → U38_gaaa(T92, T93, splitc21_in_gaaa(T93))
U45_gaa(T144, T145, T146, T157, mergesortc33_out_gaa(T156, T167)) → U46_gaa(T144, T145, T146, T167, mergesortc33_in_gaa(T157))
U38_gaaa(T92, T93, splitc21_out_gaaa(T93, X163, X162)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163)
U46_gaa(T144, T145, T146, T167, mergesortc33_out_gaa(T157, T174)) → U47_gaa(T144, T145, T146, mergec34_in_ggaaa(T167, T174))
U47_gaa(T144, T145, T146, mergec34_out_ggaaa(T167, T174, X234)) → mergesortc33_out_gaa(.(T144, .(T145, T146)), X234)
mergec34_in_ggaaa([], T203) → mergec34_out_ggaaa([], T203, T203)
mergec34_in_ggaaa(T218, []) → mergec34_out_ggaaa(T218, [], T218)
mergec34_in_ggaaa(.(T249, T250), .(T251, T252)) → U48_ggaaa(T249, T250, T251, T252, qc67_in_ggggaa(T249, T251, T250, T252))
mergec34_in_ggaaa(.(T473, T474), .(T475, T476)) → U49_ggaaa(T473, T474, T475, T476, qc95_in_ggggaa(T473, T475, T474, T476))
U48_ggaaa(T249, T250, T251, T252, qc67_out_ggggaa(T249, T251, T250, T252, T256)) → mergec34_out_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256))
U49_ggaaa(T473, T474, T475, T476, qc95_out_ggggaa(T473, T475, T474, T476, T480)) → mergec34_out_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480))
qc67_in_ggggaa(T249, T292, [], T293) → U51_ggggaa(T249, T292, T293, lec69_in_gg(T249, T292))
qc67_in_ggggaa(T249, T326, .(T324, T325), T327) → U52_ggggaa(T249, T326, T324, T325, T327, lec69_in_gg(T249, T326))
qc67_in_ggggaa(T249, T351, .(T349, T350), T352) → U54_ggggaa(T249, T351, T349, T350, T352, lec69_in_gg(T249, T351))
qc95_in_ggggaa(T392, T351, T393, []) → U57_ggggaa(T392, T351, T393, gtc97_in_gg(T392, T351))
qc95_in_ggggaa(T423, T351, T424, .(T425, T426)) → U58_ggggaa(T423, T351, T424, T425, T426, gtc97_in_gg(T423, T351))
qc95_in_ggggaa(T448, T351, T449, .(T450, T451)) → U60_ggggaa(T448, T351, T449, T450, T451, gtc97_in_gg(T448, T351))
U51_ggggaa(T249, T292, T293, lec69_out_gg(T249, T292)) → qc67_out_ggggaa(T249, T292, [], T293, .(T292, T293))
U52_ggggaa(T249, T326, T324, T325, T327, lec69_out_gg(T249, T326)) → U53_ggggaa(T249, T326, T324, T325, T327, qc67_in_ggggaa(T324, T326, T325, T327))
U54_ggggaa(T249, T351, T349, T350, T352, lec69_out_gg(T249, T351)) → U55_ggggaa(T249, T351, T349, T350, T352, qc95_in_ggggaa(T349, T351, T350, T352))
U57_ggggaa(T392, T351, T393, gtc97_out_gg(T392, T351)) → qc95_out_ggggaa(T392, T351, T393, [], .(T392, T393))
U58_ggggaa(T423, T351, T424, T425, T426, gtc97_out_gg(T423, T351)) → U59_ggggaa(T423, T351, T424, T425, T426, qc67_in_ggggaa(T423, T425, T424, T426))
U60_ggggaa(T448, T351, T449, T450, T451, gtc97_out_gg(T448, T351)) → U61_ggggaa(T448, T351, T449, T450, T451, qc95_in_ggggaa(T448, T450, T449, T451))
lec69_in_gg(s(T270), s(T271)) → U50_gg(T270, T271, lec69_in_gg(T270, T271))
lec69_in_gg(0, s(0)) → lec69_out_gg(0, s(0))
lec69_in_gg(0, 0) → lec69_out_gg(0, 0)
U53_ggggaa(T249, T326, T324, T325, T327, qc67_out_ggggaa(T324, T326, T325, T327, T331)) → qc67_out_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331))
U55_ggggaa(T249, T351, T349, T350, T352, qc95_out_ggggaa(T349, T351, T350, T352, T356)) → qc67_out_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356))
gtc97_in_gg(s(T370), s(T371)) → U56_gg(T370, T371, gtc97_in_gg(T370, T371))
gtc97_in_gg(s(0), 0) → gtc97_out_gg(s(0), 0)
U59_ggggaa(T423, T351, T424, T425, T426, qc67_out_ggggaa(T423, T425, T424, T426, T430)) → qc95_out_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430))
U61_ggggaa(T448, T351, T449, T450, T451, qc95_out_ggggaa(T448, T450, T449, T451, T455)) → qc95_out_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455))
U50_gg(T270, T271, lec69_out_gg(T270, T271)) → lec69_out_gg(s(T270), s(T271))
U56_gg(T370, T371, gtc97_out_gg(T370, T371)) → gtc97_out_gg(s(T370), s(T371))

The set Q consists of the following terms:

splitc17_in_ggaaa(x0, x1)
mergesortc33_in_gaa(x0)
U43_ggaaa(x0, x1, x2)
U44_gaa(x0, x1, x2, x3)
splitc21_in_gaaa(x0)
U45_gaa(x0, x1, x2, x3, x4)
U38_gaaa(x0, x1, x2)
U46_gaa(x0, x1, x2, x3, x4)
U47_gaa(x0, x1, x2, x3)
mergec34_in_ggaaa(x0, x1)
U48_ggaaa(x0, x1, x2, x3, x4)
U49_ggaaa(x0, x1, x2, x3, x4)
qc67_in_ggggaa(x0, x1, x2, x3)
qc95_in_ggggaa(x0, x1, x2, x3)
U51_ggggaa(x0, x1, x2, x3)
U52_ggggaa(x0, x1, x2, x3, x4, x5)
U54_ggggaa(x0, x1, x2, x3, x4, x5)
U57_ggggaa(x0, x1, x2, x3)
U58_ggggaa(x0, x1, x2, x3, x4, x5)
U60_ggggaa(x0, x1, x2, x3, x4, x5)
lec69_in_gg(x0, x1)
U53_ggggaa(x0, x1, x2, x3, x4, x5)
U55_ggggaa(x0, x1, x2, x3, x4, x5)
gtc97_in_gg(x0, x1)
U59_ggggaa(x0, x1, x2, x3, x4, x5)
U61_ggggaa(x0, x1, x2, x3, x4, x5)
U50_gg(x0, x1, x2)
U56_gg(x0, x1, x2)

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

(44) Rewriting (EQUIVALENT transformation)

By rewriting [LPAR04] the rule MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(T144, T145, T146, U43_ggaaa(T144, .(T145, T146), splitc21_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, U43_ggaaa(T144, .(T145, T146), U38_gaaa(T145, T146, splitc21_in_gaaa(T146))))

(45) Obligation:

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

U4_GAA(T144, T145, T146, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(T144, T145, T146, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U7_GAA(T144, T145, T146, T157, mergesortc33_in_gaa(T156))
U7_GAA(T144, T145, T146, T157, mergesortc33_out_gaa(T156, T167)) → MERGESORT33_IN_GAA(T157)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(T144, T145, T146, U43_ggaaa(T144, .(T145, T146), splitc21_in_gaaa(.(T145, T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(T144, T145, T146, U43_ggaaa(T144, .(T145, T146), U38_gaaa(T145, T146, splitc21_in_gaaa(T146))))

The TRS R consists of the following rules:

splitc17_in_ggaaa(T72, T73) → U43_ggaaa(T72, T73, splitc21_in_gaaa(T73))
mergesortc33_in_gaa([]) → mergesortc33_out_gaa([], [])
mergesortc33_in_gaa(.(T132, [])) → mergesortc33_out_gaa(.(T132, []), .(T132, []))
mergesortc33_in_gaa(.(T144, .(T145, T146))) → U44_gaa(T144, T145, T146, splitc17_in_ggaaa(T144, .(T145, T146)))
U43_ggaaa(T72, T73, splitc21_out_gaaa(T73, X125, X124)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125)
U44_gaa(T144, T145, T146, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U45_gaa(T144, T145, T146, T157, mergesortc33_in_gaa(T156))
splitc21_in_gaaa([]) → splitc21_out_gaaa([], [], [])
splitc21_in_gaaa(.(T92, T93)) → U38_gaaa(T92, T93, splitc21_in_gaaa(T93))
U45_gaa(T144, T145, T146, T157, mergesortc33_out_gaa(T156, T167)) → U46_gaa(T144, T145, T146, T167, mergesortc33_in_gaa(T157))
U38_gaaa(T92, T93, splitc21_out_gaaa(T93, X163, X162)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163)
U46_gaa(T144, T145, T146, T167, mergesortc33_out_gaa(T157, T174)) → U47_gaa(T144, T145, T146, mergec34_in_ggaaa(T167, T174))
U47_gaa(T144, T145, T146, mergec34_out_ggaaa(T167, T174, X234)) → mergesortc33_out_gaa(.(T144, .(T145, T146)), X234)
mergec34_in_ggaaa([], T203) → mergec34_out_ggaaa([], T203, T203)
mergec34_in_ggaaa(T218, []) → mergec34_out_ggaaa(T218, [], T218)
mergec34_in_ggaaa(.(T249, T250), .(T251, T252)) → U48_ggaaa(T249, T250, T251, T252, qc67_in_ggggaa(T249, T251, T250, T252))
mergec34_in_ggaaa(.(T473, T474), .(T475, T476)) → U49_ggaaa(T473, T474, T475, T476, qc95_in_ggggaa(T473, T475, T474, T476))
U48_ggaaa(T249, T250, T251, T252, qc67_out_ggggaa(T249, T251, T250, T252, T256)) → mergec34_out_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256))
U49_ggaaa(T473, T474, T475, T476, qc95_out_ggggaa(T473, T475, T474, T476, T480)) → mergec34_out_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480))
qc67_in_ggggaa(T249, T292, [], T293) → U51_ggggaa(T249, T292, T293, lec69_in_gg(T249, T292))
qc67_in_ggggaa(T249, T326, .(T324, T325), T327) → U52_ggggaa(T249, T326, T324, T325, T327, lec69_in_gg(T249, T326))
qc67_in_ggggaa(T249, T351, .(T349, T350), T352) → U54_ggggaa(T249, T351, T349, T350, T352, lec69_in_gg(T249, T351))
qc95_in_ggggaa(T392, T351, T393, []) → U57_ggggaa(T392, T351, T393, gtc97_in_gg(T392, T351))
qc95_in_ggggaa(T423, T351, T424, .(T425, T426)) → U58_ggggaa(T423, T351, T424, T425, T426, gtc97_in_gg(T423, T351))
qc95_in_ggggaa(T448, T351, T449, .(T450, T451)) → U60_ggggaa(T448, T351, T449, T450, T451, gtc97_in_gg(T448, T351))
U51_ggggaa(T249, T292, T293, lec69_out_gg(T249, T292)) → qc67_out_ggggaa(T249, T292, [], T293, .(T292, T293))
U52_ggggaa(T249, T326, T324, T325, T327, lec69_out_gg(T249, T326)) → U53_ggggaa(T249, T326, T324, T325, T327, qc67_in_ggggaa(T324, T326, T325, T327))
U54_ggggaa(T249, T351, T349, T350, T352, lec69_out_gg(T249, T351)) → U55_ggggaa(T249, T351, T349, T350, T352, qc95_in_ggggaa(T349, T351, T350, T352))
U57_ggggaa(T392, T351, T393, gtc97_out_gg(T392, T351)) → qc95_out_ggggaa(T392, T351, T393, [], .(T392, T393))
U58_ggggaa(T423, T351, T424, T425, T426, gtc97_out_gg(T423, T351)) → U59_ggggaa(T423, T351, T424, T425, T426, qc67_in_ggggaa(T423, T425, T424, T426))
U60_ggggaa(T448, T351, T449, T450, T451, gtc97_out_gg(T448, T351)) → U61_ggggaa(T448, T351, T449, T450, T451, qc95_in_ggggaa(T448, T450, T449, T451))
lec69_in_gg(s(T270), s(T271)) → U50_gg(T270, T271, lec69_in_gg(T270, T271))
lec69_in_gg(0, s(0)) → lec69_out_gg(0, s(0))
lec69_in_gg(0, 0) → lec69_out_gg(0, 0)
U53_ggggaa(T249, T326, T324, T325, T327, qc67_out_ggggaa(T324, T326, T325, T327, T331)) → qc67_out_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331))
U55_ggggaa(T249, T351, T349, T350, T352, qc95_out_ggggaa(T349, T351, T350, T352, T356)) → qc67_out_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356))
gtc97_in_gg(s(T370), s(T371)) → U56_gg(T370, T371, gtc97_in_gg(T370, T371))
gtc97_in_gg(s(0), 0) → gtc97_out_gg(s(0), 0)
U59_ggggaa(T423, T351, T424, T425, T426, qc67_out_ggggaa(T423, T425, T424, T426, T430)) → qc95_out_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430))
U61_ggggaa(T448, T351, T449, T450, T451, qc95_out_ggggaa(T448, T450, T449, T451, T455)) → qc95_out_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455))
U50_gg(T270, T271, lec69_out_gg(T270, T271)) → lec69_out_gg(s(T270), s(T271))
U56_gg(T370, T371, gtc97_out_gg(T370, T371)) → gtc97_out_gg(s(T370), s(T371))

The set Q consists of the following terms:

splitc17_in_ggaaa(x0, x1)
mergesortc33_in_gaa(x0)
U43_ggaaa(x0, x1, x2)
U44_gaa(x0, x1, x2, x3)
splitc21_in_gaaa(x0)
U45_gaa(x0, x1, x2, x3, x4)
U38_gaaa(x0, x1, x2)
U46_gaa(x0, x1, x2, x3, x4)
U47_gaa(x0, x1, x2, x3)
mergec34_in_ggaaa(x0, x1)
U48_ggaaa(x0, x1, x2, x3, x4)
U49_ggaaa(x0, x1, x2, x3, x4)
qc67_in_ggggaa(x0, x1, x2, x3)
qc95_in_ggggaa(x0, x1, x2, x3)
U51_ggggaa(x0, x1, x2, x3)
U52_ggggaa(x0, x1, x2, x3, x4, x5)
U54_ggggaa(x0, x1, x2, x3, x4, x5)
U57_ggggaa(x0, x1, x2, x3)
U58_ggggaa(x0, x1, x2, x3, x4, x5)
U60_ggggaa(x0, x1, x2, x3, x4, x5)
lec69_in_gg(x0, x1)
U53_ggggaa(x0, x1, x2, x3, x4, x5)
U55_ggggaa(x0, x1, x2, x3, x4, x5)
gtc97_in_gg(x0, x1)
U59_ggggaa(x0, x1, x2, x3, x4, x5)
U61_ggggaa(x0, x1, x2, x3, x4, x5)
U50_gg(x0, x1, x2)
U56_gg(x0, x1, x2)

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

(46) Rewriting (EQUIVALENT transformation)

By rewriting [LPAR04] the rule MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(T144, T145, T146, U43_ggaaa(T144, .(T145, T146), splitc21_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, U43_ggaaa(T144, .(T145, T146), U38_gaaa(T145, T146, splitc21_in_gaaa(T146))))

(47) Obligation:

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

U4_GAA(T144, T145, T146, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(T144, T145, T146, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U7_GAA(T144, T145, T146, T157, mergesortc33_in_gaa(T156))
U7_GAA(T144, T145, T146, T157, mergesortc33_out_gaa(T156, T167)) → MERGESORT33_IN_GAA(T157)
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(T144, T145, T146, U43_ggaaa(T144, .(T145, T146), U38_gaaa(T145, T146, splitc21_in_gaaa(T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(T144, T145, T146, U43_ggaaa(T144, .(T145, T146), U38_gaaa(T145, T146, splitc21_in_gaaa(T146))))

The TRS R consists of the following rules:

splitc17_in_ggaaa(T72, T73) → U43_ggaaa(T72, T73, splitc21_in_gaaa(T73))
mergesortc33_in_gaa([]) → mergesortc33_out_gaa([], [])
mergesortc33_in_gaa(.(T132, [])) → mergesortc33_out_gaa(.(T132, []), .(T132, []))
mergesortc33_in_gaa(.(T144, .(T145, T146))) → U44_gaa(T144, T145, T146, splitc17_in_ggaaa(T144, .(T145, T146)))
U43_ggaaa(T72, T73, splitc21_out_gaaa(T73, X125, X124)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125)
U44_gaa(T144, T145, T146, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U45_gaa(T144, T145, T146, T157, mergesortc33_in_gaa(T156))
splitc21_in_gaaa([]) → splitc21_out_gaaa([], [], [])
splitc21_in_gaaa(.(T92, T93)) → U38_gaaa(T92, T93, splitc21_in_gaaa(T93))
U45_gaa(T144, T145, T146, T157, mergesortc33_out_gaa(T156, T167)) → U46_gaa(T144, T145, T146, T167, mergesortc33_in_gaa(T157))
U38_gaaa(T92, T93, splitc21_out_gaaa(T93, X163, X162)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163)
U46_gaa(T144, T145, T146, T167, mergesortc33_out_gaa(T157, T174)) → U47_gaa(T144, T145, T146, mergec34_in_ggaaa(T167, T174))
U47_gaa(T144, T145, T146, mergec34_out_ggaaa(T167, T174, X234)) → mergesortc33_out_gaa(.(T144, .(T145, T146)), X234)
mergec34_in_ggaaa([], T203) → mergec34_out_ggaaa([], T203, T203)
mergec34_in_ggaaa(T218, []) → mergec34_out_ggaaa(T218, [], T218)
mergec34_in_ggaaa(.(T249, T250), .(T251, T252)) → U48_ggaaa(T249, T250, T251, T252, qc67_in_ggggaa(T249, T251, T250, T252))
mergec34_in_ggaaa(.(T473, T474), .(T475, T476)) → U49_ggaaa(T473, T474, T475, T476, qc95_in_ggggaa(T473, T475, T474, T476))
U48_ggaaa(T249, T250, T251, T252, qc67_out_ggggaa(T249, T251, T250, T252, T256)) → mergec34_out_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256))
U49_ggaaa(T473, T474, T475, T476, qc95_out_ggggaa(T473, T475, T474, T476, T480)) → mergec34_out_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480))
qc67_in_ggggaa(T249, T292, [], T293) → U51_ggggaa(T249, T292, T293, lec69_in_gg(T249, T292))
qc67_in_ggggaa(T249, T326, .(T324, T325), T327) → U52_ggggaa(T249, T326, T324, T325, T327, lec69_in_gg(T249, T326))
qc67_in_ggggaa(T249, T351, .(T349, T350), T352) → U54_ggggaa(T249, T351, T349, T350, T352, lec69_in_gg(T249, T351))
qc95_in_ggggaa(T392, T351, T393, []) → U57_ggggaa(T392, T351, T393, gtc97_in_gg(T392, T351))
qc95_in_ggggaa(T423, T351, T424, .(T425, T426)) → U58_ggggaa(T423, T351, T424, T425, T426, gtc97_in_gg(T423, T351))
qc95_in_ggggaa(T448, T351, T449, .(T450, T451)) → U60_ggggaa(T448, T351, T449, T450, T451, gtc97_in_gg(T448, T351))
U51_ggggaa(T249, T292, T293, lec69_out_gg(T249, T292)) → qc67_out_ggggaa(T249, T292, [], T293, .(T292, T293))
U52_ggggaa(T249, T326, T324, T325, T327, lec69_out_gg(T249, T326)) → U53_ggggaa(T249, T326, T324, T325, T327, qc67_in_ggggaa(T324, T326, T325, T327))
U54_ggggaa(T249, T351, T349, T350, T352, lec69_out_gg(T249, T351)) → U55_ggggaa(T249, T351, T349, T350, T352, qc95_in_ggggaa(T349, T351, T350, T352))
U57_ggggaa(T392, T351, T393, gtc97_out_gg(T392, T351)) → qc95_out_ggggaa(T392, T351, T393, [], .(T392, T393))
U58_ggggaa(T423, T351, T424, T425, T426, gtc97_out_gg(T423, T351)) → U59_ggggaa(T423, T351, T424, T425, T426, qc67_in_ggggaa(T423, T425, T424, T426))
U60_ggggaa(T448, T351, T449, T450, T451, gtc97_out_gg(T448, T351)) → U61_ggggaa(T448, T351, T449, T450, T451, qc95_in_ggggaa(T448, T450, T449, T451))
lec69_in_gg(s(T270), s(T271)) → U50_gg(T270, T271, lec69_in_gg(T270, T271))
lec69_in_gg(0, s(0)) → lec69_out_gg(0, s(0))
lec69_in_gg(0, 0) → lec69_out_gg(0, 0)
U53_ggggaa(T249, T326, T324, T325, T327, qc67_out_ggggaa(T324, T326, T325, T327, T331)) → qc67_out_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331))
U55_ggggaa(T249, T351, T349, T350, T352, qc95_out_ggggaa(T349, T351, T350, T352, T356)) → qc67_out_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356))
gtc97_in_gg(s(T370), s(T371)) → U56_gg(T370, T371, gtc97_in_gg(T370, T371))
gtc97_in_gg(s(0), 0) → gtc97_out_gg(s(0), 0)
U59_ggggaa(T423, T351, T424, T425, T426, qc67_out_ggggaa(T423, T425, T424, T426, T430)) → qc95_out_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430))
U61_ggggaa(T448, T351, T449, T450, T451, qc95_out_ggggaa(T448, T450, T449, T451, T455)) → qc95_out_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455))
U50_gg(T270, T271, lec69_out_gg(T270, T271)) → lec69_out_gg(s(T270), s(T271))
U56_gg(T370, T371, gtc97_out_gg(T370, T371)) → gtc97_out_gg(s(T370), s(T371))

The set Q consists of the following terms:

splitc17_in_ggaaa(x0, x1)
mergesortc33_in_gaa(x0)
U43_ggaaa(x0, x1, x2)
U44_gaa(x0, x1, x2, x3)
splitc21_in_gaaa(x0)
U45_gaa(x0, x1, x2, x3, x4)
U38_gaaa(x0, x1, x2)
U46_gaa(x0, x1, x2, x3, x4)
U47_gaa(x0, x1, x2, x3)
mergec34_in_ggaaa(x0, x1)
U48_ggaaa(x0, x1, x2, x3, x4)
U49_ggaaa(x0, x1, x2, x3, x4)
qc67_in_ggggaa(x0, x1, x2, x3)
qc95_in_ggggaa(x0, x1, x2, x3)
U51_ggggaa(x0, x1, x2, x3)
U52_ggggaa(x0, x1, x2, x3, x4, x5)
U54_ggggaa(x0, x1, x2, x3, x4, x5)
U57_ggggaa(x0, x1, x2, x3)
U58_ggggaa(x0, x1, x2, x3, x4, x5)
U60_ggggaa(x0, x1, x2, x3, x4, x5)
lec69_in_gg(x0, x1)
U53_ggggaa(x0, x1, x2, x3, x4, x5)
U55_ggggaa(x0, x1, x2, x3, x4, x5)
gtc97_in_gg(x0, x1)
U59_ggggaa(x0, x1, x2, x3, x4, x5)
U61_ggggaa(x0, x1, x2, x3, x4, x5)
U50_gg(x0, x1, x2)
U56_gg(x0, x1, x2)

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

(48) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U7_GAA(T144, T145, T146, T157, mergesortc33_out_gaa(T156, T167)) → MERGESORT33_IN_GAA(T157)
The remaining pairs can at least be oriented weakly.
Used ordering: Matrix interpretation [MATRO]:

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

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

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

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

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

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

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

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

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

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

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

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

POL(U44_gaa(x1, x2, x3, x4)) =
/0\
\0/
+
/00\
\00/
·x1 +
/00\
\00/
·x2 +
/00\
\00/
·x3 +
/00\
\01/
·x4

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

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

POL(U45_gaa(x1, x2, x3, x4, x5)) =
/0\
\0/
+
/00\
\00/
·x1 +
/00\
\00/
·x2 +
/00\
\00/
·x3 +
/00\
\00/
·x4 +
/00\
\01/
·x5

POL(U46_gaa(x1, x2, x3, x4, x5)) =
/0\
\1/
+
/00\
\00/
·x1 +
/00\
\00/
·x2 +
/00\
\00/
·x3 +
/00\
\00/
·x4 +
/00\
\00/
·x5

POL(U47_gaa(x1, x2, x3, x4)) =
/0\
\1/
+
/00\
\00/
·x1 +
/00\
\00/
·x2 +
/00\
\00/
·x3 +
/00\
\00/
·x4

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

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

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

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

POL(U49_ggaaa(x1, x2, x3, x4, x5)) =
/0\
\0/
+
/00\
\00/
·x1 +
/00\
\10/
·x2 +
/00\
\10/
·x3 +
/01\
\11/
·x4 +
/00\
\01/
·x5

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

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

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

POL(U52_ggggaa(x1, x2, x3, x4, x5, x6)) =
/0\
\0/
+
/00\
\00/
·x1 +
/00\
\00/
·x2 +
/01\
\00/
·x3 +
/01\
\00/
·x4 +
/00\
\11/
·x5 +
/00\
\11/
·x6

POL(U54_ggggaa(x1, x2, x3, x4, x5, x6)) =
/1\
\0/
+
/00\
\00/
·x1 +
/11\
\00/
·x2 +
/10\
\10/
·x3 +
/10\
\00/
·x4 +
/10\
\01/
·x5 +
/00\
\11/
·x6

POL(qc67_out_ggggaa(x1, x2, x3, x4, x5)) =
/1\
\1/
+
/11\
\00/
·x1 +
/11\
\01/
·x2 +
/00\
\01/
·x3 +
/01\
\00/
·x4 +
/00\
\00/
·x5

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

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

POL(U58_ggggaa(x1, x2, x3, x4, x5, x6)) =
/0\
\1/
+
/00\
\10/
·x1 +
/00\
\00/
·x2 +
/01\
\10/
·x3 +
/10\
\01/
·x4 +
/00\
\11/
·x5 +
/00\
\11/
·x6

POL(U60_ggggaa(x1, x2, x3, x4, x5, x6)) =
/0\
\0/
+
/00\
\00/
·x1 +
/00\
\01/
·x2 +
/11\
\00/
·x3 +
/10\
\00/
·x4 +
/01\
\10/
·x5 +
/11\
\00/
·x6

POL(qc95_out_ggggaa(x1, x2, x3, x4, x5)) =
/0\
\0/
+
/11\
\00/
·x1 +
/01\
\10/
·x2 +
/11\
\00/
·x3 +
/00\
\11/
·x4 +
/11\
\10/
·x5

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

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

POL(0) =
/0\
\0/

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

POL(U53_ggggaa(x1, x2, x3, x4, x5, x6)) =
/0\
\0/
+
/11\
\01/
·x1 +
/01\
\00/
·x2 +
/00\
\00/
·x3 +
/11\
\00/
·x4 +
/00\
\10/
·x5 +
/01\
\00/
·x6

POL(U55_ggggaa(x1, x2, x3, x4, x5, x6)) =
/0\
\1/
+
/01\
\11/
·x1 +
/01\
\00/
·x2 +
/01\
\10/
·x3 +
/11\
\01/
·x4 +
/10\
\00/
·x5 +
/10\
\10/
·x6

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

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

POL(U59_ggggaa(x1, x2, x3, x4, x5, x6)) =
/0\
\0/
+
/10\
\01/
·x1 +
/10\
\01/
·x2 +
/01\
\00/
·x3 +
/00\
\10/
·x4 +
/01\
\00/
·x5 +
/11\
\00/
·x6

POL(U61_ggggaa(x1, x2, x3, x4, x5, x6)) =
/0\
\0/
+
/00\
\11/
·x1 +
/00\
\00/
·x2 +
/00\
\00/
·x3 +
/00\
\10/
·x4 +
/00\
\01/
·x5 +
/00\
\01/
·x6

The following usable rules [FROCOS05] were oriented:

mergesortc33_in_gaa([]) → mergesortc33_out_gaa([], [])
mergesortc33_in_gaa(.(T132, [])) → mergesortc33_out_gaa(.(T132, []), .(T132, []))
mergesortc33_in_gaa(.(T144, .(T145, T146))) → U44_gaa(T144, T145, T146, splitc17_in_ggaaa(T144, .(T145, T146)))
splitc21_in_gaaa([]) → splitc21_out_gaaa([], [], [])
splitc21_in_gaaa(.(T92, T93)) → U38_gaaa(T92, T93, splitc21_in_gaaa(T93))
U38_gaaa(T92, T93, splitc21_out_gaaa(T93, X163, X162)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163)
U43_ggaaa(T72, T73, splitc21_out_gaaa(T73, X125, X124)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125)
U44_gaa(T144, T145, T146, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U45_gaa(T144, T145, T146, T157, mergesortc33_in_gaa(T156))
splitc17_in_ggaaa(T72, T73) → U43_ggaaa(T72, T73, splitc21_in_gaaa(T73))
U45_gaa(T144, T145, T146, T157, mergesortc33_out_gaa(T156, T167)) → U46_gaa(T144, T145, T146, T167, mergesortc33_in_gaa(T157))
U46_gaa(T144, T145, T146, T167, mergesortc33_out_gaa(T157, T174)) → U47_gaa(T144, T145, T146, mergec34_in_ggaaa(T167, T174))
U47_gaa(T144, T145, T146, mergec34_out_ggaaa(T167, T174, X234)) → mergesortc33_out_gaa(.(T144, .(T145, T146)), X234)

(49) Obligation:

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

U4_GAA(T144, T145, T146, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
U6_GAA(T144, T145, T146, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U7_GAA(T144, T145, T146, T157, mergesortc33_in_gaa(T156))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(T144, T145, T146, U43_ggaaa(T144, .(T145, T146), U38_gaaa(T145, T146, splitc21_in_gaaa(T146))))
MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U6_GAA(T144, T145, T146, U43_ggaaa(T144, .(T145, T146), U38_gaaa(T145, T146, splitc21_in_gaaa(T146))))

The TRS R consists of the following rules:

splitc17_in_ggaaa(T72, T73) → U43_ggaaa(T72, T73, splitc21_in_gaaa(T73))
mergesortc33_in_gaa([]) → mergesortc33_out_gaa([], [])
mergesortc33_in_gaa(.(T132, [])) → mergesortc33_out_gaa(.(T132, []), .(T132, []))
mergesortc33_in_gaa(.(T144, .(T145, T146))) → U44_gaa(T144, T145, T146, splitc17_in_ggaaa(T144, .(T145, T146)))
U43_ggaaa(T72, T73, splitc21_out_gaaa(T73, X125, X124)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125)
U44_gaa(T144, T145, T146, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U45_gaa(T144, T145, T146, T157, mergesortc33_in_gaa(T156))
splitc21_in_gaaa([]) → splitc21_out_gaaa([], [], [])
splitc21_in_gaaa(.(T92, T93)) → U38_gaaa(T92, T93, splitc21_in_gaaa(T93))
U45_gaa(T144, T145, T146, T157, mergesortc33_out_gaa(T156, T167)) → U46_gaa(T144, T145, T146, T167, mergesortc33_in_gaa(T157))
U38_gaaa(T92, T93, splitc21_out_gaaa(T93, X163, X162)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163)
U46_gaa(T144, T145, T146, T167, mergesortc33_out_gaa(T157, T174)) → U47_gaa(T144, T145, T146, mergec34_in_ggaaa(T167, T174))
U47_gaa(T144, T145, T146, mergec34_out_ggaaa(T167, T174, X234)) → mergesortc33_out_gaa(.(T144, .(T145, T146)), X234)
mergec34_in_ggaaa([], T203) → mergec34_out_ggaaa([], T203, T203)
mergec34_in_ggaaa(T218, []) → mergec34_out_ggaaa(T218, [], T218)
mergec34_in_ggaaa(.(T249, T250), .(T251, T252)) → U48_ggaaa(T249, T250, T251, T252, qc67_in_ggggaa(T249, T251, T250, T252))
mergec34_in_ggaaa(.(T473, T474), .(T475, T476)) → U49_ggaaa(T473, T474, T475, T476, qc95_in_ggggaa(T473, T475, T474, T476))
U48_ggaaa(T249, T250, T251, T252, qc67_out_ggggaa(T249, T251, T250, T252, T256)) → mergec34_out_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256))
U49_ggaaa(T473, T474, T475, T476, qc95_out_ggggaa(T473, T475, T474, T476, T480)) → mergec34_out_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480))
qc67_in_ggggaa(T249, T292, [], T293) → U51_ggggaa(T249, T292, T293, lec69_in_gg(T249, T292))
qc67_in_ggggaa(T249, T326, .(T324, T325), T327) → U52_ggggaa(T249, T326, T324, T325, T327, lec69_in_gg(T249, T326))
qc67_in_ggggaa(T249, T351, .(T349, T350), T352) → U54_ggggaa(T249, T351, T349, T350, T352, lec69_in_gg(T249, T351))
qc95_in_ggggaa(T392, T351, T393, []) → U57_ggggaa(T392, T351, T393, gtc97_in_gg(T392, T351))
qc95_in_ggggaa(T423, T351, T424, .(T425, T426)) → U58_ggggaa(T423, T351, T424, T425, T426, gtc97_in_gg(T423, T351))
qc95_in_ggggaa(T448, T351, T449, .(T450, T451)) → U60_ggggaa(T448, T351, T449, T450, T451, gtc97_in_gg(T448, T351))
U51_ggggaa(T249, T292, T293, lec69_out_gg(T249, T292)) → qc67_out_ggggaa(T249, T292, [], T293, .(T292, T293))
U52_ggggaa(T249, T326, T324, T325, T327, lec69_out_gg(T249, T326)) → U53_ggggaa(T249, T326, T324, T325, T327, qc67_in_ggggaa(T324, T326, T325, T327))
U54_ggggaa(T249, T351, T349, T350, T352, lec69_out_gg(T249, T351)) → U55_ggggaa(T249, T351, T349, T350, T352, qc95_in_ggggaa(T349, T351, T350, T352))
U57_ggggaa(T392, T351, T393, gtc97_out_gg(T392, T351)) → qc95_out_ggggaa(T392, T351, T393, [], .(T392, T393))
U58_ggggaa(T423, T351, T424, T425, T426, gtc97_out_gg(T423, T351)) → U59_ggggaa(T423, T351, T424, T425, T426, qc67_in_ggggaa(T423, T425, T424, T426))
U60_ggggaa(T448, T351, T449, T450, T451, gtc97_out_gg(T448, T351)) → U61_ggggaa(T448, T351, T449, T450, T451, qc95_in_ggggaa(T448, T450, T449, T451))
lec69_in_gg(s(T270), s(T271)) → U50_gg(T270, T271, lec69_in_gg(T270, T271))
lec69_in_gg(0, s(0)) → lec69_out_gg(0, s(0))
lec69_in_gg(0, 0) → lec69_out_gg(0, 0)
U53_ggggaa(T249, T326, T324, T325, T327, qc67_out_ggggaa(T324, T326, T325, T327, T331)) → qc67_out_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331))
U55_ggggaa(T249, T351, T349, T350, T352, qc95_out_ggggaa(T349, T351, T350, T352, T356)) → qc67_out_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356))
gtc97_in_gg(s(T370), s(T371)) → U56_gg(T370, T371, gtc97_in_gg(T370, T371))
gtc97_in_gg(s(0), 0) → gtc97_out_gg(s(0), 0)
U59_ggggaa(T423, T351, T424, T425, T426, qc67_out_ggggaa(T423, T425, T424, T426, T430)) → qc95_out_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430))
U61_ggggaa(T448, T351, T449, T450, T451, qc95_out_ggggaa(T448, T450, T449, T451, T455)) → qc95_out_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455))
U50_gg(T270, T271, lec69_out_gg(T270, T271)) → lec69_out_gg(s(T270), s(T271))
U56_gg(T370, T371, gtc97_out_gg(T370, T371)) → gtc97_out_gg(s(T370), s(T371))

The set Q consists of the following terms:

splitc17_in_ggaaa(x0, x1)
mergesortc33_in_gaa(x0)
U43_ggaaa(x0, x1, x2)
U44_gaa(x0, x1, x2, x3)
splitc21_in_gaaa(x0)
U45_gaa(x0, x1, x2, x3, x4)
U38_gaaa(x0, x1, x2)
U46_gaa(x0, x1, x2, x3, x4)
U47_gaa(x0, x1, x2, x3)
mergec34_in_ggaaa(x0, x1)
U48_ggaaa(x0, x1, x2, x3, x4)
U49_ggaaa(x0, x1, x2, x3, x4)
qc67_in_ggggaa(x0, x1, x2, x3)
qc95_in_ggggaa(x0, x1, x2, x3)
U51_ggggaa(x0, x1, x2, x3)
U52_ggggaa(x0, x1, x2, x3, x4, x5)
U54_ggggaa(x0, x1, x2, x3, x4, x5)
U57_ggggaa(x0, x1, x2, x3)
U58_ggggaa(x0, x1, x2, x3, x4, x5)
U60_ggggaa(x0, x1, x2, x3, x4, x5)
lec69_in_gg(x0, x1)
U53_ggggaa(x0, x1, x2, x3, x4, x5)
U55_ggggaa(x0, x1, x2, x3, x4, x5)
gtc97_in_gg(x0, x1)
U59_ggggaa(x0, x1, x2, x3, x4, x5)
U61_ggggaa(x0, x1, x2, x3, x4, x5)
U50_gg(x0, x1, x2)
U56_gg(x0, x1, x2)

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

(50) DependencyGraphProof (EQUIVALENT transformation)

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

(51) Obligation:

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

MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(T144, T145, T146, U43_ggaaa(T144, .(T145, T146), U38_gaaa(T145, T146, splitc21_in_gaaa(T146))))
U4_GAA(T144, T145, T146, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)

The TRS R consists of the following rules:

splitc17_in_ggaaa(T72, T73) → U43_ggaaa(T72, T73, splitc21_in_gaaa(T73))
mergesortc33_in_gaa([]) → mergesortc33_out_gaa([], [])
mergesortc33_in_gaa(.(T132, [])) → mergesortc33_out_gaa(.(T132, []), .(T132, []))
mergesortc33_in_gaa(.(T144, .(T145, T146))) → U44_gaa(T144, T145, T146, splitc17_in_ggaaa(T144, .(T145, T146)))
U43_ggaaa(T72, T73, splitc21_out_gaaa(T73, X125, X124)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125)
U44_gaa(T144, T145, T146, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157)) → U45_gaa(T144, T145, T146, T157, mergesortc33_in_gaa(T156))
splitc21_in_gaaa([]) → splitc21_out_gaaa([], [], [])
splitc21_in_gaaa(.(T92, T93)) → U38_gaaa(T92, T93, splitc21_in_gaaa(T93))
U45_gaa(T144, T145, T146, T157, mergesortc33_out_gaa(T156, T167)) → U46_gaa(T144, T145, T146, T167, mergesortc33_in_gaa(T157))
U38_gaaa(T92, T93, splitc21_out_gaaa(T93, X163, X162)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163)
U46_gaa(T144, T145, T146, T167, mergesortc33_out_gaa(T157, T174)) → U47_gaa(T144, T145, T146, mergec34_in_ggaaa(T167, T174))
U47_gaa(T144, T145, T146, mergec34_out_ggaaa(T167, T174, X234)) → mergesortc33_out_gaa(.(T144, .(T145, T146)), X234)
mergec34_in_ggaaa([], T203) → mergec34_out_ggaaa([], T203, T203)
mergec34_in_ggaaa(T218, []) → mergec34_out_ggaaa(T218, [], T218)
mergec34_in_ggaaa(.(T249, T250), .(T251, T252)) → U48_ggaaa(T249, T250, T251, T252, qc67_in_ggggaa(T249, T251, T250, T252))
mergec34_in_ggaaa(.(T473, T474), .(T475, T476)) → U49_ggaaa(T473, T474, T475, T476, qc95_in_ggggaa(T473, T475, T474, T476))
U48_ggaaa(T249, T250, T251, T252, qc67_out_ggggaa(T249, T251, T250, T252, T256)) → mergec34_out_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256))
U49_ggaaa(T473, T474, T475, T476, qc95_out_ggggaa(T473, T475, T474, T476, T480)) → mergec34_out_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480))
qc67_in_ggggaa(T249, T292, [], T293) → U51_ggggaa(T249, T292, T293, lec69_in_gg(T249, T292))
qc67_in_ggggaa(T249, T326, .(T324, T325), T327) → U52_ggggaa(T249, T326, T324, T325, T327, lec69_in_gg(T249, T326))
qc67_in_ggggaa(T249, T351, .(T349, T350), T352) → U54_ggggaa(T249, T351, T349, T350, T352, lec69_in_gg(T249, T351))
qc95_in_ggggaa(T392, T351, T393, []) → U57_ggggaa(T392, T351, T393, gtc97_in_gg(T392, T351))
qc95_in_ggggaa(T423, T351, T424, .(T425, T426)) → U58_ggggaa(T423, T351, T424, T425, T426, gtc97_in_gg(T423, T351))
qc95_in_ggggaa(T448, T351, T449, .(T450, T451)) → U60_ggggaa(T448, T351, T449, T450, T451, gtc97_in_gg(T448, T351))
U51_ggggaa(T249, T292, T293, lec69_out_gg(T249, T292)) → qc67_out_ggggaa(T249, T292, [], T293, .(T292, T293))
U52_ggggaa(T249, T326, T324, T325, T327, lec69_out_gg(T249, T326)) → U53_ggggaa(T249, T326, T324, T325, T327, qc67_in_ggggaa(T324, T326, T325, T327))
U54_ggggaa(T249, T351, T349, T350, T352, lec69_out_gg(T249, T351)) → U55_ggggaa(T249, T351, T349, T350, T352, qc95_in_ggggaa(T349, T351, T350, T352))
U57_ggggaa(T392, T351, T393, gtc97_out_gg(T392, T351)) → qc95_out_ggggaa(T392, T351, T393, [], .(T392, T393))
U58_ggggaa(T423, T351, T424, T425, T426, gtc97_out_gg(T423, T351)) → U59_ggggaa(T423, T351, T424, T425, T426, qc67_in_ggggaa(T423, T425, T424, T426))
U60_ggggaa(T448, T351, T449, T450, T451, gtc97_out_gg(T448, T351)) → U61_ggggaa(T448, T351, T449, T450, T451, qc95_in_ggggaa(T448, T450, T449, T451))
lec69_in_gg(s(T270), s(T271)) → U50_gg(T270, T271, lec69_in_gg(T270, T271))
lec69_in_gg(0, s(0)) → lec69_out_gg(0, s(0))
lec69_in_gg(0, 0) → lec69_out_gg(0, 0)
U53_ggggaa(T249, T326, T324, T325, T327, qc67_out_ggggaa(T324, T326, T325, T327, T331)) → qc67_out_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331))
U55_ggggaa(T249, T351, T349, T350, T352, qc95_out_ggggaa(T349, T351, T350, T352, T356)) → qc67_out_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356))
gtc97_in_gg(s(T370), s(T371)) → U56_gg(T370, T371, gtc97_in_gg(T370, T371))
gtc97_in_gg(s(0), 0) → gtc97_out_gg(s(0), 0)
U59_ggggaa(T423, T351, T424, T425, T426, qc67_out_ggggaa(T423, T425, T424, T426, T430)) → qc95_out_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430))
U61_ggggaa(T448, T351, T449, T450, T451, qc95_out_ggggaa(T448, T450, T449, T451, T455)) → qc95_out_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455))
U50_gg(T270, T271, lec69_out_gg(T270, T271)) → lec69_out_gg(s(T270), s(T271))
U56_gg(T370, T371, gtc97_out_gg(T370, T371)) → gtc97_out_gg(s(T370), s(T371))

The set Q consists of the following terms:

splitc17_in_ggaaa(x0, x1)
mergesortc33_in_gaa(x0)
U43_ggaaa(x0, x1, x2)
U44_gaa(x0, x1, x2, x3)
splitc21_in_gaaa(x0)
U45_gaa(x0, x1, x2, x3, x4)
U38_gaaa(x0, x1, x2)
U46_gaa(x0, x1, x2, x3, x4)
U47_gaa(x0, x1, x2, x3)
mergec34_in_ggaaa(x0, x1)
U48_ggaaa(x0, x1, x2, x3, x4)
U49_ggaaa(x0, x1, x2, x3, x4)
qc67_in_ggggaa(x0, x1, x2, x3)
qc95_in_ggggaa(x0, x1, x2, x3)
U51_ggggaa(x0, x1, x2, x3)
U52_ggggaa(x0, x1, x2, x3, x4, x5)
U54_ggggaa(x0, x1, x2, x3, x4, x5)
U57_ggggaa(x0, x1, x2, x3)
U58_ggggaa(x0, x1, x2, x3, x4, x5)
U60_ggggaa(x0, x1, x2, x3, x4, x5)
lec69_in_gg(x0, x1)
U53_ggggaa(x0, x1, x2, x3, x4, x5)
U55_ggggaa(x0, x1, x2, x3, x4, x5)
gtc97_in_gg(x0, x1)
U59_ggggaa(x0, x1, x2, x3, x4, x5)
U61_ggggaa(x0, x1, x2, x3, x4, x5)
U50_gg(x0, x1, x2)
U56_gg(x0, x1, x2)

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

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

(53) Obligation:

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

MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(T144, T145, T146, U43_ggaaa(T144, .(T145, T146), U38_gaaa(T145, T146, splitc21_in_gaaa(T146))))
U4_GAA(T144, T145, T146, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)

The TRS R consists of the following rules:

splitc21_in_gaaa([]) → splitc21_out_gaaa([], [], [])
splitc21_in_gaaa(.(T92, T93)) → U38_gaaa(T92, T93, splitc21_in_gaaa(T93))
U38_gaaa(T92, T93, splitc21_out_gaaa(T93, X163, X162)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163)
U43_ggaaa(T72, T73, splitc21_out_gaaa(T73, X125, X124)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125)

The set Q consists of the following terms:

splitc17_in_ggaaa(x0, x1)
mergesortc33_in_gaa(x0)
U43_ggaaa(x0, x1, x2)
U44_gaa(x0, x1, x2, x3)
splitc21_in_gaaa(x0)
U45_gaa(x0, x1, x2, x3, x4)
U38_gaaa(x0, x1, x2)
U46_gaa(x0, x1, x2, x3, x4)
U47_gaa(x0, x1, x2, x3)
mergec34_in_ggaaa(x0, x1)
U48_ggaaa(x0, x1, x2, x3, x4)
U49_ggaaa(x0, x1, x2, x3, x4)
qc67_in_ggggaa(x0, x1, x2, x3)
qc95_in_ggggaa(x0, x1, x2, x3)
U51_ggggaa(x0, x1, x2, x3)
U52_ggggaa(x0, x1, x2, x3, x4, x5)
U54_ggggaa(x0, x1, x2, x3, x4, x5)
U57_ggggaa(x0, x1, x2, x3)
U58_ggggaa(x0, x1, x2, x3, x4, x5)
U60_ggggaa(x0, x1, x2, x3, x4, x5)
lec69_in_gg(x0, x1)
U53_ggggaa(x0, x1, x2, x3, x4, x5)
U55_ggggaa(x0, x1, x2, x3, x4, x5)
gtc97_in_gg(x0, x1)
U59_ggggaa(x0, x1, x2, x3, x4, x5)
U61_ggggaa(x0, x1, x2, x3, x4, x5)
U50_gg(x0, x1, x2)
U56_gg(x0, x1, x2)

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

(54) 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].

splitc17_in_ggaaa(x0, x1)
mergesortc33_in_gaa(x0)
U44_gaa(x0, x1, x2, x3)
U45_gaa(x0, x1, x2, x3, x4)
U46_gaa(x0, x1, x2, x3, x4)
U47_gaa(x0, x1, x2, x3)
mergec34_in_ggaaa(x0, x1)
U48_ggaaa(x0, x1, x2, x3, x4)
U49_ggaaa(x0, x1, x2, x3, x4)
qc67_in_ggggaa(x0, x1, x2, x3)
qc95_in_ggggaa(x0, x1, x2, x3)
U51_ggggaa(x0, x1, x2, x3)
U52_ggggaa(x0, x1, x2, x3, x4, x5)
U54_ggggaa(x0, x1, x2, x3, x4, x5)
U57_ggggaa(x0, x1, x2, x3)
U58_ggggaa(x0, x1, x2, x3, x4, x5)
U60_ggggaa(x0, x1, x2, x3, x4, x5)
lec69_in_gg(x0, x1)
U53_ggggaa(x0, x1, x2, x3, x4, x5)
U55_ggggaa(x0, x1, x2, x3, x4, x5)
gtc97_in_gg(x0, x1)
U59_ggggaa(x0, x1, x2, x3, x4, x5)
U61_ggggaa(x0, x1, x2, x3, x4, x5)
U50_gg(x0, x1, x2)
U56_gg(x0, x1, x2)

(55) Obligation:

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

MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(T144, T145, T146, U43_ggaaa(T144, .(T145, T146), U38_gaaa(T145, T146, splitc21_in_gaaa(T146))))
U4_GAA(T144, T145, T146, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)

The TRS R consists of the following rules:

splitc21_in_gaaa([]) → splitc21_out_gaaa([], [], [])
splitc21_in_gaaa(.(T92, T93)) → U38_gaaa(T92, T93, splitc21_in_gaaa(T93))
U38_gaaa(T92, T93, splitc21_out_gaaa(T93, X163, X162)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163)
U43_ggaaa(T72, T73, splitc21_out_gaaa(T73, X125, X124)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125)

The set Q consists of the following terms:

U43_ggaaa(x0, x1, x2)
splitc21_in_gaaa(x0)
U38_gaaa(x0, x1, x2)

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

(56) 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, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157)) → MERGESORT33_IN_GAA(T156)
The remaining pairs can at least be oriented weakly.
Used ordering: Matrix interpretation [MATRO]:

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

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

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

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

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

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

POL(splitc17_out_ggaaa(x1, x2, x3, x4)) =
/0\
\0/
+
/00\
\00/
·x1 +
/00\
\00/
·x2 +
/00\
\10/
·x3 +
/00\
\00/
·x4

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

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

The following usable rules [FROCOS05] were oriented:

splitc21_in_gaaa([]) → splitc21_out_gaaa([], [], [])
splitc21_in_gaaa(.(T92, T93)) → U38_gaaa(T92, T93, splitc21_in_gaaa(T93))
U38_gaaa(T92, T93, splitc21_out_gaaa(T93, X163, X162)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163)
U43_ggaaa(T72, T73, splitc21_out_gaaa(T73, X125, X124)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125)

(57) Obligation:

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

MERGESORT33_IN_GAA(.(T144, .(T145, T146))) → U4_GAA(T144, T145, T146, U43_ggaaa(T144, .(T145, T146), U38_gaaa(T145, T146, splitc21_in_gaaa(T146))))

The TRS R consists of the following rules:

splitc21_in_gaaa([]) → splitc21_out_gaaa([], [], [])
splitc21_in_gaaa(.(T92, T93)) → U38_gaaa(T92, T93, splitc21_in_gaaa(T93))
U38_gaaa(T92, T93, splitc21_out_gaaa(T93, X163, X162)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163)
U43_ggaaa(T72, T73, splitc21_out_gaaa(T73, X125, X124)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125)

The set Q consists of the following terms:

U43_ggaaa(x0, x1, x2)
splitc21_in_gaaa(x0)
U38_gaaa(x0, x1, x2)

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

(58) DependencyGraphProof (EQUIVALENT transformation)

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

(59) TRUE

(60) Obligation:

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

MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T58, .(T59, T57)) → U28_GAA(T43, T44, T45, T58, T59, T57, splitc17_in_ggaaa(T44, T45, T55, T56, T57))
U28_GAA(T43, T44, T45, T58, T59, T57, splitc17_out_ggaaa(T44, T45, T55, T56, T57)) → MERGESORT1_IN_GAA(.(T43, T56), X38, T57)

The TRS R consists of the following rules:

splitc17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U43_ggaaa(T72, T73, X124, X125, T74, T76, splitc21_in_gaaa(T73, X125, X124, T76))
splitc21_in_gaaa([], [], [], T83) → splitc21_out_gaaa([], [], [], T83)
splitc21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U38_gaaa(T92, T93, X162, X163, T94, T96, splitc21_in_gaaa(T93, X163, X162, T96))
U38_gaaa(T92, T93, X162, X163, T94, T96, splitc21_out_gaaa(T93, X163, X162, T96)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))
U43_ggaaa(T72, T73, X124, X125, T74, T76, splitc21_out_gaaa(T73, X125, X124, T76)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
mergesortc1_in_gaa([], [], T5) → mergesortc1_out_gaa([], [], T5)
mergesortc1_in_gaa(.(T8, []), .(T8, []), T9) → mergesortc1_out_gaa(.(T8, []), .(T8, []), T9)
mergesortc1_in_gaa(.(T43, .(T44, T45)), T114, .(T115, T116)) → U39_gaa(T43, T44, T45, T114, T115, T116, splitc17_in_ggaaa(T44, T45, T55, T56, T116))
U39_gaa(T43, T44, T45, T114, T115, T116, splitc17_out_ggaaa(T44, T45, T55, T56, T116)) → U40_gaa(T43, T44, T45, T114, T115, T116, T55, mergesortc1_in_gaa(.(T43, T56), T103, T116))
U40_gaa(T43, T44, T45, T114, T115, T116, T55, mergesortc1_out_gaa(.(T43, T56), T103, T116)) → U41_gaa(T43, T44, T45, T114, T115, T116, T103, mergesortc33_in_gaa(T55, T113, T116))
mergesortc33_in_gaa([], [], T123) → mergesortc33_out_gaa([], [], T123)
mergesortc33_in_gaa(.(T132, []), .(T132, []), T133) → mergesortc33_out_gaa(.(T132, []), .(T132, []), T133)
mergesortc33_in_gaa(.(T144, .(T145, T146)), X234, .(T175, T176)) → U44_gaa(T144, T145, T146, X234, T175, T176, splitc17_in_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176)))
U44_gaa(T144, T145, T146, X234, T175, T176, splitc17_out_ggaaa(T144, .(T145, T146), T156, T157, .(T175, T176))) → U45_gaa(T144, T145, T146, X234, T175, T176, T157, mergesortc33_in_gaa(T156, T167, T176))
U45_gaa(T144, T145, T146, X234, T175, T176, T157, mergesortc33_out_gaa(T156, T167, T176)) → U46_gaa(T144, T145, T146, X234, T175, T176, T167, mergesortc33_in_gaa(T157, T174, T176))
U46_gaa(T144, T145, T146, X234, T175, T176, T167, mergesortc33_out_gaa(T157, T174, T176)) → U47_gaa(T144, T145, T146, X234, T175, T176, mergec34_in_ggaaa(T167, T174, X234, T175, T176))
mergec34_in_ggaaa([], T203, T203, T204, T205) → mergec34_out_ggaaa([], T203, T203, T204, T205)
mergec34_in_ggaaa(T218, [], T218, T219, T220) → mergec34_out_ggaaa(T218, [], T218, T219, T220)
mergec34_in_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257) → U48_ggaaa(T249, T250, T251, T252, T256, T254, T257, qc67_in_ggggaa(T249, T251, T250, T252, T256, T257))
qc67_in_ggggaa(T249, T292, [], T293, .(T292, T293), T294) → U51_ggggaa(T249, T292, T293, T294, lec69_in_gg(T249, T292))
lec69_in_gg(s(T270), s(T271)) → U50_gg(T270, T271, lec69_in_gg(T270, T271))
lec69_in_gg(0, s(0)) → lec69_out_gg(0, s(0))
lec69_in_gg(0, 0) → lec69_out_gg(0, 0)
U50_gg(T270, T271, lec69_out_gg(T270, T271)) → lec69_out_gg(s(T270), s(T271))
U51_ggggaa(T249, T292, T293, T294, lec69_out_gg(T249, T292)) → qc67_out_ggggaa(T249, T292, [], T293, .(T292, T293), T294)
qc67_in_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332)) → U52_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, lec69_in_gg(T249, T326))
U52_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, lec69_out_gg(T249, T326)) → U53_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, qc67_in_ggggaa(T324, T326, T325, T327, T331, T332))
qc67_in_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357)) → U54_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, lec69_in_gg(T249, T351))
U54_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, lec69_out_gg(T249, T351)) → U55_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, qc95_in_ggggaa(T349, T351, T350, T352, T356, T357))
qc95_in_ggggaa(T392, T351, T393, [], .(T392, T393), T394) → U57_ggggaa(T392, T351, T393, T394, gtc97_in_gg(T392, T351))
gtc97_in_gg(s(T370), s(T371)) → U56_gg(T370, T371, gtc97_in_gg(T370, T371))
gtc97_in_gg(s(0), 0) → gtc97_out_gg(s(0), 0)
U56_gg(T370, T371, gtc97_out_gg(T370, T371)) → gtc97_out_gg(s(T370), s(T371))
U57_ggggaa(T392, T351, T393, T394, gtc97_out_gg(T392, T351)) → qc95_out_ggggaa(T392, T351, T393, [], .(T392, T393), T394)
qc95_in_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431)) → U58_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_in_gg(T423, T351))
U58_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, gtc97_out_gg(T423, T351)) → U59_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, qc67_in_ggggaa(T423, T425, T424, T426, T430, T431))
U59_ggggaa(T423, T351, T424, T425, T426, T430, T428, T431, qc67_out_ggggaa(T423, T425, T424, T426, T430, T431)) → qc95_out_ggggaa(T423, T351, T424, .(T425, T426), .(T423, T430), .(T428, T431))
qc95_in_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456)) → U60_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_in_gg(T448, T351))
U60_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, gtc97_out_gg(T448, T351)) → U61_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, qc95_in_ggggaa(T448, T450, T449, T451, T455, T456))
U61_ggggaa(T448, T351, T449, T450, T451, T455, T453, T456, qc95_out_ggggaa(T448, T450, T449, T451, T455, T456)) → qc95_out_ggggaa(T448, T351, T449, .(T450, T451), .(T450, T455), .(T453, T456))
U55_ggggaa(T249, T351, T349, T350, T352, T356, T354, T357, qc95_out_ggggaa(T349, T351, T350, T352, T356, T357)) → qc67_out_ggggaa(T249, T351, .(T349, T350), T352, .(T351, T356), .(T354, T357))
U53_ggggaa(T249, T326, T324, T325, T327, T331, T329, T332, qc67_out_ggggaa(T324, T326, T325, T327, T331, T332)) → qc67_out_ggggaa(T249, T326, .(T324, T325), T327, .(T324, T331), .(T329, T332))
U48_ggaaa(T249, T250, T251, T252, T256, T254, T257, qc67_out_ggggaa(T249, T251, T250, T252, T256, T257)) → mergec34_out_ggaaa(.(T249, T250), .(T251, T252), .(T249, T256), T254, T257)
mergec34_in_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481) → U49_ggaaa(T473, T474, T475, T476, T480, T478, T481, qc95_in_ggggaa(T473, T475, T474, T476, T480, T481))
U49_ggaaa(T473, T474, T475, T476, T480, T478, T481, qc95_out_ggggaa(T473, T475, T474, T476, T480, T481)) → mergec34_out_ggaaa(.(T473, T474), .(T475, T476), .(T475, T480), T478, T481)
U47_gaa(T144, T145, T146, X234, T175, T176, mergec34_out_ggaaa(T167, T174, X234, T175, T176)) → mergesortc33_out_gaa(.(T144, .(T145, T146)), X234, .(T175, T176))
U41_gaa(T43, T44, T45, T114, T115, T116, T103, mergesortc33_out_gaa(T55, T113, T116)) → U42_gaa(T43, T44, T45, T114, T115, T116, mergec34_in_ggaaa(T103, T113, T114, T115, T116))
U42_gaa(T43, T44, T45, T114, T115, T116, mergec34_out_ggaaa(T103, T113, T114, T115, T116)) → mergesortc1_out_gaa(.(T43, .(T44, T45)), T114, .(T115, T116))

The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
splitc17_in_ggaaa(x1, x2, x3, x4, x5)  =  splitc17_in_ggaaa(x1, x2)
U43_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U43_ggaaa(x1, x2, x7)
splitc21_in_gaaa(x1, x2, x3, x4)  =  splitc21_in_gaaa(x1)
[]  =  []
splitc21_out_gaaa(x1, x2, x3, x4)  =  splitc21_out_gaaa(x1, x2, x3)
U38_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaaa(x1, x2, x7)
splitc17_out_ggaaa(x1, x2, x3, x4, x5)  =  splitc17_out_ggaaa(x1, x2, x3, x4)
mergesortc1_in_gaa(x1, x2, x3)  =  mergesortc1_in_gaa(x1)
mergesortc1_out_gaa(x1, x2, x3)  =  mergesortc1_out_gaa(x1, x2)
U39_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U39_gaa(x1, x2, x3, x7)
U40_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U40_gaa(x1, x2, x3, x7, x8)
U41_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U41_gaa(x1, x2, x3, x7, x8)
mergesortc33_in_gaa(x1, x2, x3)  =  mergesortc33_in_gaa(x1)
mergesortc33_out_gaa(x1, x2, x3)  =  mergesortc33_out_gaa(x1, x2)
U44_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U44_gaa(x1, x2, x3, x7)
U45_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U45_gaa(x1, x2, x3, x7, x8)
U46_gaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U46_gaa(x1, x2, x3, x7, x8)
U47_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U47_gaa(x1, x2, x3, x7)
mergec34_in_ggaaa(x1, x2, x3, x4, x5)  =  mergec34_in_ggaaa(x1, x2)
mergec34_out_ggaaa(x1, x2, x3, x4, x5)  =  mergec34_out_ggaaa(x1, x2, x3)
U48_ggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U48_ggaaa(x1, x2, x3, x4, x8)
qc67_in_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc67_in_ggggaa(x1, x2, x3, x4)
U51_ggggaa(x1, x2, x3, x4, x5)  =  U51_ggggaa(x1, x2, x3, x5)
lec69_in_gg(x1, x2)  =  lec69_in_gg(x1, x2)
s(x1)  =  s(x1)
U50_gg(x1, x2, x3)  =  U50_gg(x1, x2, x3)
0  =  0
lec69_out_gg(x1, x2)  =  lec69_out_gg(x1, x2)
qc67_out_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc67_out_ggggaa(x1, x2, x3, x4, x5)
U52_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U52_ggggaa(x1, x2, x3, x4, x5, x9)
U53_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U53_ggggaa(x1, x2, x3, x4, x5, x9)
U54_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U54_ggggaa(x1, x2, x3, x4, x5, x9)
U55_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U55_ggggaa(x1, x2, x3, x4, x5, x9)
qc95_in_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc95_in_ggggaa(x1, x2, x3, x4)
U57_ggggaa(x1, x2, x3, x4, x5)  =  U57_ggggaa(x1, x2, x3, x5)
gtc97_in_gg(x1, x2)  =  gtc97_in_gg(x1, x2)
U56_gg(x1, x2, x3)  =  U56_gg(x1, x2, x3)
gtc97_out_gg(x1, x2)  =  gtc97_out_gg(x1, x2)
qc95_out_ggggaa(x1, x2, x3, x4, x5, x6)  =  qc95_out_ggggaa(x1, x2, x3, x4, x5)
U58_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U58_ggggaa(x1, x2, x3, x4, x5, x9)
U59_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U59_ggggaa(x1, x2, x3, x4, x5, x9)
U60_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U60_ggggaa(x1, x2, x3, x4, x5, x9)
U61_ggggaa(x1, x2, x3, x4, x5, x6, x7, x8, x9)  =  U61_ggggaa(x1, x2, x3, x4, x5, x9)
U49_ggaaa(x1, x2, x3, x4, x5, x6, x7, x8)  =  U49_ggaaa(x1, x2, x3, x4, x8)
U42_gaa(x1, x2, x3, x4, x5, x6, x7)  =  U42_gaa(x1, x2, x3, x7)
MERGESORT1_IN_GAA(x1, x2, x3)  =  MERGESORT1_IN_GAA(x1)
U28_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U28_GAA(x1, x2, x3, x7)

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

(61) UsableRulesProof (EQUIVALENT transformation)

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

(62) Obligation:

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

MERGESORT1_IN_GAA(.(T43, .(T44, T45)), T58, .(T59, T57)) → U28_GAA(T43, T44, T45, T58, T59, T57, splitc17_in_ggaaa(T44, T45, T55, T56, T57))
U28_GAA(T43, T44, T45, T58, T59, T57, splitc17_out_ggaaa(T44, T45, T55, T56, T57)) → MERGESORT1_IN_GAA(.(T43, T56), X38, T57)

The TRS R consists of the following rules:

splitc17_in_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76)) → U43_ggaaa(T72, T73, X124, X125, T74, T76, splitc21_in_gaaa(T73, X125, X124, T76))
U43_ggaaa(T72, T73, X124, X125, T74, T76, splitc21_out_gaaa(T73, X125, X124, T76)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125, .(T74, T76))
splitc21_in_gaaa([], [], [], T83) → splitc21_out_gaaa([], [], [], T83)
splitc21_in_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96)) → U38_gaaa(T92, T93, X162, X163, T94, T96, splitc21_in_gaaa(T93, X163, X162, T96))
U38_gaaa(T92, T93, X162, X163, T94, T96, splitc21_out_gaaa(T93, X163, X162, T96)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163, .(T94, T96))

The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x1, x2)
splitc17_in_ggaaa(x1, x2, x3, x4, x5)  =  splitc17_in_ggaaa(x1, x2)
U43_ggaaa(x1, x2, x3, x4, x5, x6, x7)  =  U43_ggaaa(x1, x2, x7)
splitc21_in_gaaa(x1, x2, x3, x4)  =  splitc21_in_gaaa(x1)
[]  =  []
splitc21_out_gaaa(x1, x2, x3, x4)  =  splitc21_out_gaaa(x1, x2, x3)
U38_gaaa(x1, x2, x3, x4, x5, x6, x7)  =  U38_gaaa(x1, x2, x7)
splitc17_out_ggaaa(x1, x2, x3, x4, x5)  =  splitc17_out_ggaaa(x1, x2, x3, x4)
MERGESORT1_IN_GAA(x1, x2, x3)  =  MERGESORT1_IN_GAA(x1)
U28_GAA(x1, x2, x3, x4, x5, x6, x7)  =  U28_GAA(x1, x2, x3, x7)

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

(63) PiDPToQDPProof (SOUND transformation)

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

(64) Obligation:

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

MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U28_GAA(T43, T44, T45, splitc17_in_ggaaa(T44, T45))
U28_GAA(T43, T44, T45, splitc17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))

The TRS R consists of the following rules:

splitc17_in_ggaaa(T72, T73) → U43_ggaaa(T72, T73, splitc21_in_gaaa(T73))
U43_ggaaa(T72, T73, splitc21_out_gaaa(T73, X125, X124)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125)
splitc21_in_gaaa([]) → splitc21_out_gaaa([], [], [])
splitc21_in_gaaa(.(T92, T93)) → U38_gaaa(T92, T93, splitc21_in_gaaa(T93))
U38_gaaa(T92, T93, splitc21_out_gaaa(T93, X163, X162)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163)

The set Q consists of the following terms:

splitc17_in_ggaaa(x0, x1)
U43_ggaaa(x0, x1, x2)
splitc21_in_gaaa(x0)
U38_gaaa(x0, x1, x2)

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

(65) Rewriting (EQUIVALENT transformation)

By rewriting [LPAR04] the rule MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U28_GAA(T43, T44, T45, splitc17_in_ggaaa(T44, T45)) at position [3] we obtained the following new rules [LPAR04]:

MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U28_GAA(T43, T44, T45, U43_ggaaa(T44, T45, splitc21_in_gaaa(T45)))

(66) Obligation:

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

U28_GAA(T43, T44, T45, splitc17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U28_GAA(T43, T44, T45, U43_ggaaa(T44, T45, splitc21_in_gaaa(T45)))

The TRS R consists of the following rules:

splitc17_in_ggaaa(T72, T73) → U43_ggaaa(T72, T73, splitc21_in_gaaa(T73))
U43_ggaaa(T72, T73, splitc21_out_gaaa(T73, X125, X124)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125)
splitc21_in_gaaa([]) → splitc21_out_gaaa([], [], [])
splitc21_in_gaaa(.(T92, T93)) → U38_gaaa(T92, T93, splitc21_in_gaaa(T93))
U38_gaaa(T92, T93, splitc21_out_gaaa(T93, X163, X162)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163)

The set Q consists of the following terms:

splitc17_in_ggaaa(x0, x1)
U43_ggaaa(x0, x1, x2)
splitc21_in_gaaa(x0)
U38_gaaa(x0, x1, x2)

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

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

(68) Obligation:

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

U28_GAA(T43, T44, T45, splitc17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U28_GAA(T43, T44, T45, U43_ggaaa(T44, T45, splitc21_in_gaaa(T45)))

The TRS R consists of the following rules:

splitc21_in_gaaa([]) → splitc21_out_gaaa([], [], [])
splitc21_in_gaaa(.(T92, T93)) → U38_gaaa(T92, T93, splitc21_in_gaaa(T93))
U43_ggaaa(T72, T73, splitc21_out_gaaa(T73, X125, X124)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125)
U38_gaaa(T92, T93, splitc21_out_gaaa(T93, X163, X162)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163)

The set Q consists of the following terms:

splitc17_in_ggaaa(x0, x1)
U43_ggaaa(x0, x1, x2)
splitc21_in_gaaa(x0)
U38_gaaa(x0, x1, x2)

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

(69) 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].

splitc17_in_ggaaa(x0, x1)

(70) Obligation:

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

U28_GAA(T43, T44, T45, splitc17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U28_GAA(T43, T44, T45, U43_ggaaa(T44, T45, splitc21_in_gaaa(T45)))

The TRS R consists of the following rules:

splitc21_in_gaaa([]) → splitc21_out_gaaa([], [], [])
splitc21_in_gaaa(.(T92, T93)) → U38_gaaa(T92, T93, splitc21_in_gaaa(T93))
U43_ggaaa(T72, T73, splitc21_out_gaaa(T73, X125, X124)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125)
U38_gaaa(T92, T93, splitc21_out_gaaa(T93, X163, X162)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163)

The set Q consists of the following terms:

U43_ggaaa(x0, x1, x2)
splitc21_in_gaaa(x0)
U38_gaaa(x0, x1, x2)

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

(71) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


U28_GAA(T43, T44, T45, splitc17_out_ggaaa(T44, T45, T55, T56)) → MERGESORT1_IN_GAA(.(T43, T56))
MERGESORT1_IN_GAA(.(T43, .(T44, T45))) → U28_GAA(T43, T44, T45, U43_ggaaa(T44, T45, splitc21_in_gaaa(T45)))
The remaining pairs can at least be oriented weakly.
Used ordering: Polynomial Order [NEGPOLO,POLO] with Interpretation:

POL( U28_GAA(x1, ..., x4) ) = max{0, 2x1 + x2 + 2x4 - 2}


POL( U43_ggaaa(x1, ..., x3) ) = 2x3 + 2


POL( splitc21_in_gaaa(x1) ) = 2x1


POL( [] ) = 0


POL( splitc21_out_gaaa(x1, ..., x3) ) = x2 + x3


POL( .(x1, x2) ) = x1 + 2x2 + 1


POL( U38_gaaa(x1, ..., x3) ) = x1 + 2x3 + 1


POL( splitc17_out_ggaaa(x1, ..., x4) ) = 2x4 + 2


POL( MERGESORT1_IN_GAA(x1) ) = max{0, 2x1 - 1}



The following usable rules [FROCOS05] were oriented:

splitc21_in_gaaa([]) → splitc21_out_gaaa([], [], [])
splitc21_in_gaaa(.(T92, T93)) → U38_gaaa(T92, T93, splitc21_in_gaaa(T93))
U43_ggaaa(T72, T73, splitc21_out_gaaa(T73, X125, X124)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125)
U38_gaaa(T92, T93, splitc21_out_gaaa(T93, X163, X162)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163)

(72) Obligation:

Q DP problem:
P is empty.
The TRS R consists of the following rules:

splitc21_in_gaaa([]) → splitc21_out_gaaa([], [], [])
splitc21_in_gaaa(.(T92, T93)) → U38_gaaa(T92, T93, splitc21_in_gaaa(T93))
U43_ggaaa(T72, T73, splitc21_out_gaaa(T73, X125, X124)) → splitc17_out_ggaaa(T72, T73, .(T72, X124), X125)
U38_gaaa(T92, T93, splitc21_out_gaaa(T93, X163, X162)) → splitc21_out_gaaa(.(T92, T93), .(T92, X162), X163)

The set Q consists of the following terms:

U43_ggaaa(x0, x1, x2)
splitc21_in_gaaa(x0)
U38_gaaa(x0, x1, x2)

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

(73) PisEmptyProof (EQUIVALENT transformation)

The TRS P is empty. Hence, there is no (P,Q,R) chain.

(74) YES