Left Termination of the query pattern qsort(b,f) w.r.t. the given Prolog program could successfully be proven:



PROLOG
  ↳ PrologToPiTRSProof

qsort2({}0, {}0).
qsort2(.2(H, L), S) :- split4(L, H, A, B), qsort2(A, A1), qsort2(B, B1), append3(A1, .2(H, B1), S).
split4({}0, Y, {}0, {}0).
split4(.2(X, Xs), Y, .2(X, Ls), Bs) :- le2(X, Y), split4(Xs, Y, Ls, Bs).
split4(.2(X, Xs), Y, Ls, .2(X, Bs)) :- gt2(X, Y), split4(Xs, Y, Ls, Bs).
append3({}0, L, L).
append3(.2(H, L1), L2, .2(H, L3)) :- append3(L1, L2, L3).
gt2(s1(X), s1(Y)) :- gt2(X, Y).
gt2(s1(X), 00).
le2(s1(X), s1(Y)) :- le2(X, Y).
le2(00, s1(Y)).
le2(00, 00).


With regard to the inferred argument filtering the predicates were used in the following modes:
qsort2: (b,f)
split4: (b,b,f,f)
le2: (b,b)
gt2: (b,b)
append3: (b,b,f)
Transforming PROLOG into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:


qsort_2_in_ga2([]_0, []_0) -> qsort_2_out_ga2([]_0, []_0)
qsort_2_in_ga2(._22(H, L), S) -> if_qsort_2_in_1_ga4(H, L, S, split_4_in_ggaa4(L, H, A, B))
split_4_in_ggaa4([]_0, Y, []_0, []_0) -> split_4_out_ggaa4([]_0, Y, []_0, []_0)
split_4_in_ggaa4(._22(X, Xs), Y, ._22(X, Ls), Bs) -> if_split_4_in_1_ggaa6(X, Xs, Y, Ls, Bs, le_2_in_gg2(X, Y))
le_2_in_gg2(s_11(X), s_11(Y)) -> if_le_2_in_1_gg3(X, Y, le_2_in_gg2(X, Y))
le_2_in_gg2(0_0, s_11(Y)) -> le_2_out_gg2(0_0, s_11(Y))
le_2_in_gg2(0_0, 0_0) -> le_2_out_gg2(0_0, 0_0)
if_le_2_in_1_gg3(X, Y, le_2_out_gg2(X, Y)) -> le_2_out_gg2(s_11(X), s_11(Y))
if_split_4_in_1_ggaa6(X, Xs, Y, Ls, Bs, le_2_out_gg2(X, Y)) -> if_split_4_in_2_ggaa6(X, Xs, Y, Ls, Bs, split_4_in_ggaa4(Xs, Y, Ls, Bs))
split_4_in_ggaa4(._22(X, Xs), Y, Ls, ._22(X, Bs)) -> if_split_4_in_3_ggaa6(X, Xs, Y, Ls, Bs, gt_2_in_gg2(X, Y))
gt_2_in_gg2(s_11(X), s_11(Y)) -> if_gt_2_in_1_gg3(X, Y, gt_2_in_gg2(X, Y))
gt_2_in_gg2(s_11(X), 0_0) -> gt_2_out_gg2(s_11(X), 0_0)
if_gt_2_in_1_gg3(X, Y, gt_2_out_gg2(X, Y)) -> gt_2_out_gg2(s_11(X), s_11(Y))
if_split_4_in_3_ggaa6(X, Xs, Y, Ls, Bs, gt_2_out_gg2(X, Y)) -> if_split_4_in_4_ggaa6(X, Xs, Y, Ls, Bs, split_4_in_ggaa4(Xs, Y, Ls, Bs))
if_split_4_in_4_ggaa6(X, Xs, Y, Ls, Bs, split_4_out_ggaa4(Xs, Y, Ls, Bs)) -> split_4_out_ggaa4(._22(X, Xs), Y, Ls, ._22(X, Bs))
if_split_4_in_2_ggaa6(X, Xs, Y, Ls, Bs, split_4_out_ggaa4(Xs, Y, Ls, Bs)) -> split_4_out_ggaa4(._22(X, Xs), Y, ._22(X, Ls), Bs)
if_qsort_2_in_1_ga4(H, L, S, split_4_out_ggaa4(L, H, A, B)) -> if_qsort_2_in_2_ga6(H, L, S, A, B, qsort_2_in_ga2(A, A1))
if_qsort_2_in_2_ga6(H, L, S, A, B, qsort_2_out_ga2(A, A1)) -> if_qsort_2_in_3_ga6(H, L, S, B, A1, qsort_2_in_ga2(B, B1))
if_qsort_2_in_3_ga6(H, L, S, B, A1, qsort_2_out_ga2(B, B1)) -> if_qsort_2_in_4_ga6(H, L, S, A1, B1, append_3_in_gga3(A1, ._22(H, B1), S))
append_3_in_gga3([]_0, L, L) -> append_3_out_gga3([]_0, L, L)
append_3_in_gga3(._22(H, L1), L2, ._22(H, L3)) -> if_append_3_in_1_gga5(H, L1, L2, L3, append_3_in_gga3(L1, L2, L3))
if_append_3_in_1_gga5(H, L1, L2, L3, append_3_out_gga3(L1, L2, L3)) -> append_3_out_gga3(._22(H, L1), L2, ._22(H, L3))
if_qsort_2_in_4_ga6(H, L, S, A1, B1, append_3_out_gga3(A1, ._22(H, B1), S)) -> qsort_2_out_ga2(._22(H, L), S)

The argument filtering Pi contains the following mapping:
qsort_2_in_ga2(x1, x2)  =  qsort_2_in_ga1(x1)
[]_0  =  []_0
._22(x1, x2)  =  ._22(x1, x2)
s_11(x1)  =  s_11(x1)
0_0  =  0_0
qsort_2_out_ga2(x1, x2)  =  qsort_2_out_ga1(x2)
if_qsort_2_in_1_ga4(x1, x2, x3, x4)  =  if_qsort_2_in_1_ga2(x1, x4)
split_4_in_ggaa4(x1, x2, x3, x4)  =  split_4_in_ggaa2(x1, x2)
split_4_out_ggaa4(x1, x2, x3, x4)  =  split_4_out_ggaa2(x3, x4)
if_split_4_in_1_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_1_ggaa4(x1, x2, x3, x6)
le_2_in_gg2(x1, x2)  =  le_2_in_gg2(x1, x2)
if_le_2_in_1_gg3(x1, x2, x3)  =  if_le_2_in_1_gg1(x3)
le_2_out_gg2(x1, x2)  =  le_2_out_gg
if_split_4_in_2_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_2_ggaa2(x1, x6)
if_split_4_in_3_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_3_ggaa4(x1, x2, x3, x6)
gt_2_in_gg2(x1, x2)  =  gt_2_in_gg2(x1, x2)
if_gt_2_in_1_gg3(x1, x2, x3)  =  if_gt_2_in_1_gg1(x3)
gt_2_out_gg2(x1, x2)  =  gt_2_out_gg
if_split_4_in_4_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_4_ggaa2(x1, x6)
if_qsort_2_in_2_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_2_ga3(x1, x5, x6)
if_qsort_2_in_3_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_3_ga3(x1, x5, x6)
if_qsort_2_in_4_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_4_ga1(x6)
append_3_in_gga3(x1, x2, x3)  =  append_3_in_gga2(x1, x2)
append_3_out_gga3(x1, x2, x3)  =  append_3_out_gga1(x3)
if_append_3_in_1_gga5(x1, x2, x3, x4, x5)  =  if_append_3_in_1_gga2(x1, x5)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG



↳ PROLOG
  ↳ PrologToPiTRSProof
PiTRS
      ↳ DependencyPairsProof

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

qsort_2_in_ga2([]_0, []_0) -> qsort_2_out_ga2([]_0, []_0)
qsort_2_in_ga2(._22(H, L), S) -> if_qsort_2_in_1_ga4(H, L, S, split_4_in_ggaa4(L, H, A, B))
split_4_in_ggaa4([]_0, Y, []_0, []_0) -> split_4_out_ggaa4([]_0, Y, []_0, []_0)
split_4_in_ggaa4(._22(X, Xs), Y, ._22(X, Ls), Bs) -> if_split_4_in_1_ggaa6(X, Xs, Y, Ls, Bs, le_2_in_gg2(X, Y))
le_2_in_gg2(s_11(X), s_11(Y)) -> if_le_2_in_1_gg3(X, Y, le_2_in_gg2(X, Y))
le_2_in_gg2(0_0, s_11(Y)) -> le_2_out_gg2(0_0, s_11(Y))
le_2_in_gg2(0_0, 0_0) -> le_2_out_gg2(0_0, 0_0)
if_le_2_in_1_gg3(X, Y, le_2_out_gg2(X, Y)) -> le_2_out_gg2(s_11(X), s_11(Y))
if_split_4_in_1_ggaa6(X, Xs, Y, Ls, Bs, le_2_out_gg2(X, Y)) -> if_split_4_in_2_ggaa6(X, Xs, Y, Ls, Bs, split_4_in_ggaa4(Xs, Y, Ls, Bs))
split_4_in_ggaa4(._22(X, Xs), Y, Ls, ._22(X, Bs)) -> if_split_4_in_3_ggaa6(X, Xs, Y, Ls, Bs, gt_2_in_gg2(X, Y))
gt_2_in_gg2(s_11(X), s_11(Y)) -> if_gt_2_in_1_gg3(X, Y, gt_2_in_gg2(X, Y))
gt_2_in_gg2(s_11(X), 0_0) -> gt_2_out_gg2(s_11(X), 0_0)
if_gt_2_in_1_gg3(X, Y, gt_2_out_gg2(X, Y)) -> gt_2_out_gg2(s_11(X), s_11(Y))
if_split_4_in_3_ggaa6(X, Xs, Y, Ls, Bs, gt_2_out_gg2(X, Y)) -> if_split_4_in_4_ggaa6(X, Xs, Y, Ls, Bs, split_4_in_ggaa4(Xs, Y, Ls, Bs))
if_split_4_in_4_ggaa6(X, Xs, Y, Ls, Bs, split_4_out_ggaa4(Xs, Y, Ls, Bs)) -> split_4_out_ggaa4(._22(X, Xs), Y, Ls, ._22(X, Bs))
if_split_4_in_2_ggaa6(X, Xs, Y, Ls, Bs, split_4_out_ggaa4(Xs, Y, Ls, Bs)) -> split_4_out_ggaa4(._22(X, Xs), Y, ._22(X, Ls), Bs)
if_qsort_2_in_1_ga4(H, L, S, split_4_out_ggaa4(L, H, A, B)) -> if_qsort_2_in_2_ga6(H, L, S, A, B, qsort_2_in_ga2(A, A1))
if_qsort_2_in_2_ga6(H, L, S, A, B, qsort_2_out_ga2(A, A1)) -> if_qsort_2_in_3_ga6(H, L, S, B, A1, qsort_2_in_ga2(B, B1))
if_qsort_2_in_3_ga6(H, L, S, B, A1, qsort_2_out_ga2(B, B1)) -> if_qsort_2_in_4_ga6(H, L, S, A1, B1, append_3_in_gga3(A1, ._22(H, B1), S))
append_3_in_gga3([]_0, L, L) -> append_3_out_gga3([]_0, L, L)
append_3_in_gga3(._22(H, L1), L2, ._22(H, L3)) -> if_append_3_in_1_gga5(H, L1, L2, L3, append_3_in_gga3(L1, L2, L3))
if_append_3_in_1_gga5(H, L1, L2, L3, append_3_out_gga3(L1, L2, L3)) -> append_3_out_gga3(._22(H, L1), L2, ._22(H, L3))
if_qsort_2_in_4_ga6(H, L, S, A1, B1, append_3_out_gga3(A1, ._22(H, B1), S)) -> qsort_2_out_ga2(._22(H, L), S)

The argument filtering Pi contains the following mapping:
qsort_2_in_ga2(x1, x2)  =  qsort_2_in_ga1(x1)
[]_0  =  []_0
._22(x1, x2)  =  ._22(x1, x2)
s_11(x1)  =  s_11(x1)
0_0  =  0_0
qsort_2_out_ga2(x1, x2)  =  qsort_2_out_ga1(x2)
if_qsort_2_in_1_ga4(x1, x2, x3, x4)  =  if_qsort_2_in_1_ga2(x1, x4)
split_4_in_ggaa4(x1, x2, x3, x4)  =  split_4_in_ggaa2(x1, x2)
split_4_out_ggaa4(x1, x2, x3, x4)  =  split_4_out_ggaa2(x3, x4)
if_split_4_in_1_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_1_ggaa4(x1, x2, x3, x6)
le_2_in_gg2(x1, x2)  =  le_2_in_gg2(x1, x2)
if_le_2_in_1_gg3(x1, x2, x3)  =  if_le_2_in_1_gg1(x3)
le_2_out_gg2(x1, x2)  =  le_2_out_gg
if_split_4_in_2_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_2_ggaa2(x1, x6)
if_split_4_in_3_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_3_ggaa4(x1, x2, x3, x6)
gt_2_in_gg2(x1, x2)  =  gt_2_in_gg2(x1, x2)
if_gt_2_in_1_gg3(x1, x2, x3)  =  if_gt_2_in_1_gg1(x3)
gt_2_out_gg2(x1, x2)  =  gt_2_out_gg
if_split_4_in_4_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_4_ggaa2(x1, x6)
if_qsort_2_in_2_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_2_ga3(x1, x5, x6)
if_qsort_2_in_3_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_3_ga3(x1, x5, x6)
if_qsort_2_in_4_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_4_ga1(x6)
append_3_in_gga3(x1, x2, x3)  =  append_3_in_gga2(x1, x2)
append_3_out_gga3(x1, x2, x3)  =  append_3_out_gga1(x3)
if_append_3_in_1_gga5(x1, x2, x3, x4, x5)  =  if_append_3_in_1_gga2(x1, x5)


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

QSORT_2_IN_GA2(._22(H, L), S) -> IF_QSORT_2_IN_1_GA4(H, L, S, split_4_in_ggaa4(L, H, A, B))
QSORT_2_IN_GA2(._22(H, L), S) -> SPLIT_4_IN_GGAA4(L, H, A, B)
SPLIT_4_IN_GGAA4(._22(X, Xs), Y, ._22(X, Ls), Bs) -> IF_SPLIT_4_IN_1_GGAA6(X, Xs, Y, Ls, Bs, le_2_in_gg2(X, Y))
SPLIT_4_IN_GGAA4(._22(X, Xs), Y, ._22(X, Ls), Bs) -> LE_2_IN_GG2(X, Y)
LE_2_IN_GG2(s_11(X), s_11(Y)) -> IF_LE_2_IN_1_GG3(X, Y, le_2_in_gg2(X, Y))
LE_2_IN_GG2(s_11(X), s_11(Y)) -> LE_2_IN_GG2(X, Y)
IF_SPLIT_4_IN_1_GGAA6(X, Xs, Y, Ls, Bs, le_2_out_gg2(X, Y)) -> IF_SPLIT_4_IN_2_GGAA6(X, Xs, Y, Ls, Bs, split_4_in_ggaa4(Xs, Y, Ls, Bs))
IF_SPLIT_4_IN_1_GGAA6(X, Xs, Y, Ls, Bs, le_2_out_gg2(X, Y)) -> SPLIT_4_IN_GGAA4(Xs, Y, Ls, Bs)
SPLIT_4_IN_GGAA4(._22(X, Xs), Y, Ls, ._22(X, Bs)) -> IF_SPLIT_4_IN_3_GGAA6(X, Xs, Y, Ls, Bs, gt_2_in_gg2(X, Y))
SPLIT_4_IN_GGAA4(._22(X, Xs), Y, Ls, ._22(X, Bs)) -> GT_2_IN_GG2(X, Y)
GT_2_IN_GG2(s_11(X), s_11(Y)) -> IF_GT_2_IN_1_GG3(X, Y, gt_2_in_gg2(X, Y))
GT_2_IN_GG2(s_11(X), s_11(Y)) -> GT_2_IN_GG2(X, Y)
IF_SPLIT_4_IN_3_GGAA6(X, Xs, Y, Ls, Bs, gt_2_out_gg2(X, Y)) -> IF_SPLIT_4_IN_4_GGAA6(X, Xs, Y, Ls, Bs, split_4_in_ggaa4(Xs, Y, Ls, Bs))
IF_SPLIT_4_IN_3_GGAA6(X, Xs, Y, Ls, Bs, gt_2_out_gg2(X, Y)) -> SPLIT_4_IN_GGAA4(Xs, Y, Ls, Bs)
IF_QSORT_2_IN_1_GA4(H, L, S, split_4_out_ggaa4(L, H, A, B)) -> IF_QSORT_2_IN_2_GA6(H, L, S, A, B, qsort_2_in_ga2(A, A1))
IF_QSORT_2_IN_1_GA4(H, L, S, split_4_out_ggaa4(L, H, A, B)) -> QSORT_2_IN_GA2(A, A1)
IF_QSORT_2_IN_2_GA6(H, L, S, A, B, qsort_2_out_ga2(A, A1)) -> IF_QSORT_2_IN_3_GA6(H, L, S, B, A1, qsort_2_in_ga2(B, B1))
IF_QSORT_2_IN_2_GA6(H, L, S, A, B, qsort_2_out_ga2(A, A1)) -> QSORT_2_IN_GA2(B, B1)
IF_QSORT_2_IN_3_GA6(H, L, S, B, A1, qsort_2_out_ga2(B, B1)) -> IF_QSORT_2_IN_4_GA6(H, L, S, A1, B1, append_3_in_gga3(A1, ._22(H, B1), S))
IF_QSORT_2_IN_3_GA6(H, L, S, B, A1, qsort_2_out_ga2(B, B1)) -> APPEND_3_IN_GGA3(A1, ._22(H, B1), S)
APPEND_3_IN_GGA3(._22(H, L1), L2, ._22(H, L3)) -> IF_APPEND_3_IN_1_GGA5(H, L1, L2, L3, append_3_in_gga3(L1, L2, L3))
APPEND_3_IN_GGA3(._22(H, L1), L2, ._22(H, L3)) -> APPEND_3_IN_GGA3(L1, L2, L3)

The TRS R consists of the following rules:

qsort_2_in_ga2([]_0, []_0) -> qsort_2_out_ga2([]_0, []_0)
qsort_2_in_ga2(._22(H, L), S) -> if_qsort_2_in_1_ga4(H, L, S, split_4_in_ggaa4(L, H, A, B))
split_4_in_ggaa4([]_0, Y, []_0, []_0) -> split_4_out_ggaa4([]_0, Y, []_0, []_0)
split_4_in_ggaa4(._22(X, Xs), Y, ._22(X, Ls), Bs) -> if_split_4_in_1_ggaa6(X, Xs, Y, Ls, Bs, le_2_in_gg2(X, Y))
le_2_in_gg2(s_11(X), s_11(Y)) -> if_le_2_in_1_gg3(X, Y, le_2_in_gg2(X, Y))
le_2_in_gg2(0_0, s_11(Y)) -> le_2_out_gg2(0_0, s_11(Y))
le_2_in_gg2(0_0, 0_0) -> le_2_out_gg2(0_0, 0_0)
if_le_2_in_1_gg3(X, Y, le_2_out_gg2(X, Y)) -> le_2_out_gg2(s_11(X), s_11(Y))
if_split_4_in_1_ggaa6(X, Xs, Y, Ls, Bs, le_2_out_gg2(X, Y)) -> if_split_4_in_2_ggaa6(X, Xs, Y, Ls, Bs, split_4_in_ggaa4(Xs, Y, Ls, Bs))
split_4_in_ggaa4(._22(X, Xs), Y, Ls, ._22(X, Bs)) -> if_split_4_in_3_ggaa6(X, Xs, Y, Ls, Bs, gt_2_in_gg2(X, Y))
gt_2_in_gg2(s_11(X), s_11(Y)) -> if_gt_2_in_1_gg3(X, Y, gt_2_in_gg2(X, Y))
gt_2_in_gg2(s_11(X), 0_0) -> gt_2_out_gg2(s_11(X), 0_0)
if_gt_2_in_1_gg3(X, Y, gt_2_out_gg2(X, Y)) -> gt_2_out_gg2(s_11(X), s_11(Y))
if_split_4_in_3_ggaa6(X, Xs, Y, Ls, Bs, gt_2_out_gg2(X, Y)) -> if_split_4_in_4_ggaa6(X, Xs, Y, Ls, Bs, split_4_in_ggaa4(Xs, Y, Ls, Bs))
if_split_4_in_4_ggaa6(X, Xs, Y, Ls, Bs, split_4_out_ggaa4(Xs, Y, Ls, Bs)) -> split_4_out_ggaa4(._22(X, Xs), Y, Ls, ._22(X, Bs))
if_split_4_in_2_ggaa6(X, Xs, Y, Ls, Bs, split_4_out_ggaa4(Xs, Y, Ls, Bs)) -> split_4_out_ggaa4(._22(X, Xs), Y, ._22(X, Ls), Bs)
if_qsort_2_in_1_ga4(H, L, S, split_4_out_ggaa4(L, H, A, B)) -> if_qsort_2_in_2_ga6(H, L, S, A, B, qsort_2_in_ga2(A, A1))
if_qsort_2_in_2_ga6(H, L, S, A, B, qsort_2_out_ga2(A, A1)) -> if_qsort_2_in_3_ga6(H, L, S, B, A1, qsort_2_in_ga2(B, B1))
if_qsort_2_in_3_ga6(H, L, S, B, A1, qsort_2_out_ga2(B, B1)) -> if_qsort_2_in_4_ga6(H, L, S, A1, B1, append_3_in_gga3(A1, ._22(H, B1), S))
append_3_in_gga3([]_0, L, L) -> append_3_out_gga3([]_0, L, L)
append_3_in_gga3(._22(H, L1), L2, ._22(H, L3)) -> if_append_3_in_1_gga5(H, L1, L2, L3, append_3_in_gga3(L1, L2, L3))
if_append_3_in_1_gga5(H, L1, L2, L3, append_3_out_gga3(L1, L2, L3)) -> append_3_out_gga3(._22(H, L1), L2, ._22(H, L3))
if_qsort_2_in_4_ga6(H, L, S, A1, B1, append_3_out_gga3(A1, ._22(H, B1), S)) -> qsort_2_out_ga2(._22(H, L), S)

The argument filtering Pi contains the following mapping:
qsort_2_in_ga2(x1, x2)  =  qsort_2_in_ga1(x1)
[]_0  =  []_0
._22(x1, x2)  =  ._22(x1, x2)
s_11(x1)  =  s_11(x1)
0_0  =  0_0
qsort_2_out_ga2(x1, x2)  =  qsort_2_out_ga1(x2)
if_qsort_2_in_1_ga4(x1, x2, x3, x4)  =  if_qsort_2_in_1_ga2(x1, x4)
split_4_in_ggaa4(x1, x2, x3, x4)  =  split_4_in_ggaa2(x1, x2)
split_4_out_ggaa4(x1, x2, x3, x4)  =  split_4_out_ggaa2(x3, x4)
if_split_4_in_1_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_1_ggaa4(x1, x2, x3, x6)
le_2_in_gg2(x1, x2)  =  le_2_in_gg2(x1, x2)
if_le_2_in_1_gg3(x1, x2, x3)  =  if_le_2_in_1_gg1(x3)
le_2_out_gg2(x1, x2)  =  le_2_out_gg
if_split_4_in_2_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_2_ggaa2(x1, x6)
if_split_4_in_3_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_3_ggaa4(x1, x2, x3, x6)
gt_2_in_gg2(x1, x2)  =  gt_2_in_gg2(x1, x2)
if_gt_2_in_1_gg3(x1, x2, x3)  =  if_gt_2_in_1_gg1(x3)
gt_2_out_gg2(x1, x2)  =  gt_2_out_gg
if_split_4_in_4_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_4_ggaa2(x1, x6)
if_qsort_2_in_2_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_2_ga3(x1, x5, x6)
if_qsort_2_in_3_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_3_ga3(x1, x5, x6)
if_qsort_2_in_4_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_4_ga1(x6)
append_3_in_gga3(x1, x2, x3)  =  append_3_in_gga2(x1, x2)
append_3_out_gga3(x1, x2, x3)  =  append_3_out_gga1(x3)
if_append_3_in_1_gga5(x1, x2, x3, x4, x5)  =  if_append_3_in_1_gga2(x1, x5)
IF_QSORT_2_IN_1_GA4(x1, x2, x3, x4)  =  IF_QSORT_2_IN_1_GA2(x1, x4)
GT_2_IN_GG2(x1, x2)  =  GT_2_IN_GG2(x1, x2)
IF_SPLIT_4_IN_1_GGAA6(x1, x2, x3, x4, x5, x6)  =  IF_SPLIT_4_IN_1_GGAA4(x1, x2, x3, x6)
IF_QSORT_2_IN_4_GA6(x1, x2, x3, x4, x5, x6)  =  IF_QSORT_2_IN_4_GA1(x6)
IF_GT_2_IN_1_GG3(x1, x2, x3)  =  IF_GT_2_IN_1_GG1(x3)
SPLIT_4_IN_GGAA4(x1, x2, x3, x4)  =  SPLIT_4_IN_GGAA2(x1, x2)
IF_QSORT_2_IN_3_GA6(x1, x2, x3, x4, x5, x6)  =  IF_QSORT_2_IN_3_GA3(x1, x5, x6)
APPEND_3_IN_GGA3(x1, x2, x3)  =  APPEND_3_IN_GGA2(x1, x2)
IF_LE_2_IN_1_GG3(x1, x2, x3)  =  IF_LE_2_IN_1_GG1(x3)
QSORT_2_IN_GA2(x1, x2)  =  QSORT_2_IN_GA1(x1)
IF_QSORT_2_IN_2_GA6(x1, x2, x3, x4, x5, x6)  =  IF_QSORT_2_IN_2_GA3(x1, x5, x6)
IF_SPLIT_4_IN_4_GGAA6(x1, x2, x3, x4, x5, x6)  =  IF_SPLIT_4_IN_4_GGAA2(x1, x6)
IF_APPEND_3_IN_1_GGA5(x1, x2, x3, x4, x5)  =  IF_APPEND_3_IN_1_GGA2(x1, x5)
LE_2_IN_GG2(x1, x2)  =  LE_2_IN_GG2(x1, x2)
IF_SPLIT_4_IN_3_GGAA6(x1, x2, x3, x4, x5, x6)  =  IF_SPLIT_4_IN_3_GGAA4(x1, x2, x3, x6)
IF_SPLIT_4_IN_2_GGAA6(x1, x2, x3, x4, x5, x6)  =  IF_SPLIT_4_IN_2_GGAA2(x1, x6)

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

↳ PROLOG
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
PiDP
          ↳ DependencyGraphProof

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

QSORT_2_IN_GA2(._22(H, L), S) -> IF_QSORT_2_IN_1_GA4(H, L, S, split_4_in_ggaa4(L, H, A, B))
QSORT_2_IN_GA2(._22(H, L), S) -> SPLIT_4_IN_GGAA4(L, H, A, B)
SPLIT_4_IN_GGAA4(._22(X, Xs), Y, ._22(X, Ls), Bs) -> IF_SPLIT_4_IN_1_GGAA6(X, Xs, Y, Ls, Bs, le_2_in_gg2(X, Y))
SPLIT_4_IN_GGAA4(._22(X, Xs), Y, ._22(X, Ls), Bs) -> LE_2_IN_GG2(X, Y)
LE_2_IN_GG2(s_11(X), s_11(Y)) -> IF_LE_2_IN_1_GG3(X, Y, le_2_in_gg2(X, Y))
LE_2_IN_GG2(s_11(X), s_11(Y)) -> LE_2_IN_GG2(X, Y)
IF_SPLIT_4_IN_1_GGAA6(X, Xs, Y, Ls, Bs, le_2_out_gg2(X, Y)) -> IF_SPLIT_4_IN_2_GGAA6(X, Xs, Y, Ls, Bs, split_4_in_ggaa4(Xs, Y, Ls, Bs))
IF_SPLIT_4_IN_1_GGAA6(X, Xs, Y, Ls, Bs, le_2_out_gg2(X, Y)) -> SPLIT_4_IN_GGAA4(Xs, Y, Ls, Bs)
SPLIT_4_IN_GGAA4(._22(X, Xs), Y, Ls, ._22(X, Bs)) -> IF_SPLIT_4_IN_3_GGAA6(X, Xs, Y, Ls, Bs, gt_2_in_gg2(X, Y))
SPLIT_4_IN_GGAA4(._22(X, Xs), Y, Ls, ._22(X, Bs)) -> GT_2_IN_GG2(X, Y)
GT_2_IN_GG2(s_11(X), s_11(Y)) -> IF_GT_2_IN_1_GG3(X, Y, gt_2_in_gg2(X, Y))
GT_2_IN_GG2(s_11(X), s_11(Y)) -> GT_2_IN_GG2(X, Y)
IF_SPLIT_4_IN_3_GGAA6(X, Xs, Y, Ls, Bs, gt_2_out_gg2(X, Y)) -> IF_SPLIT_4_IN_4_GGAA6(X, Xs, Y, Ls, Bs, split_4_in_ggaa4(Xs, Y, Ls, Bs))
IF_SPLIT_4_IN_3_GGAA6(X, Xs, Y, Ls, Bs, gt_2_out_gg2(X, Y)) -> SPLIT_4_IN_GGAA4(Xs, Y, Ls, Bs)
IF_QSORT_2_IN_1_GA4(H, L, S, split_4_out_ggaa4(L, H, A, B)) -> IF_QSORT_2_IN_2_GA6(H, L, S, A, B, qsort_2_in_ga2(A, A1))
IF_QSORT_2_IN_1_GA4(H, L, S, split_4_out_ggaa4(L, H, A, B)) -> QSORT_2_IN_GA2(A, A1)
IF_QSORT_2_IN_2_GA6(H, L, S, A, B, qsort_2_out_ga2(A, A1)) -> IF_QSORT_2_IN_3_GA6(H, L, S, B, A1, qsort_2_in_ga2(B, B1))
IF_QSORT_2_IN_2_GA6(H, L, S, A, B, qsort_2_out_ga2(A, A1)) -> QSORT_2_IN_GA2(B, B1)
IF_QSORT_2_IN_3_GA6(H, L, S, B, A1, qsort_2_out_ga2(B, B1)) -> IF_QSORT_2_IN_4_GA6(H, L, S, A1, B1, append_3_in_gga3(A1, ._22(H, B1), S))
IF_QSORT_2_IN_3_GA6(H, L, S, B, A1, qsort_2_out_ga2(B, B1)) -> APPEND_3_IN_GGA3(A1, ._22(H, B1), S)
APPEND_3_IN_GGA3(._22(H, L1), L2, ._22(H, L3)) -> IF_APPEND_3_IN_1_GGA5(H, L1, L2, L3, append_3_in_gga3(L1, L2, L3))
APPEND_3_IN_GGA3(._22(H, L1), L2, ._22(H, L3)) -> APPEND_3_IN_GGA3(L1, L2, L3)

The TRS R consists of the following rules:

qsort_2_in_ga2([]_0, []_0) -> qsort_2_out_ga2([]_0, []_0)
qsort_2_in_ga2(._22(H, L), S) -> if_qsort_2_in_1_ga4(H, L, S, split_4_in_ggaa4(L, H, A, B))
split_4_in_ggaa4([]_0, Y, []_0, []_0) -> split_4_out_ggaa4([]_0, Y, []_0, []_0)
split_4_in_ggaa4(._22(X, Xs), Y, ._22(X, Ls), Bs) -> if_split_4_in_1_ggaa6(X, Xs, Y, Ls, Bs, le_2_in_gg2(X, Y))
le_2_in_gg2(s_11(X), s_11(Y)) -> if_le_2_in_1_gg3(X, Y, le_2_in_gg2(X, Y))
le_2_in_gg2(0_0, s_11(Y)) -> le_2_out_gg2(0_0, s_11(Y))
le_2_in_gg2(0_0, 0_0) -> le_2_out_gg2(0_0, 0_0)
if_le_2_in_1_gg3(X, Y, le_2_out_gg2(X, Y)) -> le_2_out_gg2(s_11(X), s_11(Y))
if_split_4_in_1_ggaa6(X, Xs, Y, Ls, Bs, le_2_out_gg2(X, Y)) -> if_split_4_in_2_ggaa6(X, Xs, Y, Ls, Bs, split_4_in_ggaa4(Xs, Y, Ls, Bs))
split_4_in_ggaa4(._22(X, Xs), Y, Ls, ._22(X, Bs)) -> if_split_4_in_3_ggaa6(X, Xs, Y, Ls, Bs, gt_2_in_gg2(X, Y))
gt_2_in_gg2(s_11(X), s_11(Y)) -> if_gt_2_in_1_gg3(X, Y, gt_2_in_gg2(X, Y))
gt_2_in_gg2(s_11(X), 0_0) -> gt_2_out_gg2(s_11(X), 0_0)
if_gt_2_in_1_gg3(X, Y, gt_2_out_gg2(X, Y)) -> gt_2_out_gg2(s_11(X), s_11(Y))
if_split_4_in_3_ggaa6(X, Xs, Y, Ls, Bs, gt_2_out_gg2(X, Y)) -> if_split_4_in_4_ggaa6(X, Xs, Y, Ls, Bs, split_4_in_ggaa4(Xs, Y, Ls, Bs))
if_split_4_in_4_ggaa6(X, Xs, Y, Ls, Bs, split_4_out_ggaa4(Xs, Y, Ls, Bs)) -> split_4_out_ggaa4(._22(X, Xs), Y, Ls, ._22(X, Bs))
if_split_4_in_2_ggaa6(X, Xs, Y, Ls, Bs, split_4_out_ggaa4(Xs, Y, Ls, Bs)) -> split_4_out_ggaa4(._22(X, Xs), Y, ._22(X, Ls), Bs)
if_qsort_2_in_1_ga4(H, L, S, split_4_out_ggaa4(L, H, A, B)) -> if_qsort_2_in_2_ga6(H, L, S, A, B, qsort_2_in_ga2(A, A1))
if_qsort_2_in_2_ga6(H, L, S, A, B, qsort_2_out_ga2(A, A1)) -> if_qsort_2_in_3_ga6(H, L, S, B, A1, qsort_2_in_ga2(B, B1))
if_qsort_2_in_3_ga6(H, L, S, B, A1, qsort_2_out_ga2(B, B1)) -> if_qsort_2_in_4_ga6(H, L, S, A1, B1, append_3_in_gga3(A1, ._22(H, B1), S))
append_3_in_gga3([]_0, L, L) -> append_3_out_gga3([]_0, L, L)
append_3_in_gga3(._22(H, L1), L2, ._22(H, L3)) -> if_append_3_in_1_gga5(H, L1, L2, L3, append_3_in_gga3(L1, L2, L3))
if_append_3_in_1_gga5(H, L1, L2, L3, append_3_out_gga3(L1, L2, L3)) -> append_3_out_gga3(._22(H, L1), L2, ._22(H, L3))
if_qsort_2_in_4_ga6(H, L, S, A1, B1, append_3_out_gga3(A1, ._22(H, B1), S)) -> qsort_2_out_ga2(._22(H, L), S)

The argument filtering Pi contains the following mapping:
qsort_2_in_ga2(x1, x2)  =  qsort_2_in_ga1(x1)
[]_0  =  []_0
._22(x1, x2)  =  ._22(x1, x2)
s_11(x1)  =  s_11(x1)
0_0  =  0_0
qsort_2_out_ga2(x1, x2)  =  qsort_2_out_ga1(x2)
if_qsort_2_in_1_ga4(x1, x2, x3, x4)  =  if_qsort_2_in_1_ga2(x1, x4)
split_4_in_ggaa4(x1, x2, x3, x4)  =  split_4_in_ggaa2(x1, x2)
split_4_out_ggaa4(x1, x2, x3, x4)  =  split_4_out_ggaa2(x3, x4)
if_split_4_in_1_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_1_ggaa4(x1, x2, x3, x6)
le_2_in_gg2(x1, x2)  =  le_2_in_gg2(x1, x2)
if_le_2_in_1_gg3(x1, x2, x3)  =  if_le_2_in_1_gg1(x3)
le_2_out_gg2(x1, x2)  =  le_2_out_gg
if_split_4_in_2_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_2_ggaa2(x1, x6)
if_split_4_in_3_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_3_ggaa4(x1, x2, x3, x6)
gt_2_in_gg2(x1, x2)  =  gt_2_in_gg2(x1, x2)
if_gt_2_in_1_gg3(x1, x2, x3)  =  if_gt_2_in_1_gg1(x3)
gt_2_out_gg2(x1, x2)  =  gt_2_out_gg
if_split_4_in_4_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_4_ggaa2(x1, x6)
if_qsort_2_in_2_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_2_ga3(x1, x5, x6)
if_qsort_2_in_3_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_3_ga3(x1, x5, x6)
if_qsort_2_in_4_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_4_ga1(x6)
append_3_in_gga3(x1, x2, x3)  =  append_3_in_gga2(x1, x2)
append_3_out_gga3(x1, x2, x3)  =  append_3_out_gga1(x3)
if_append_3_in_1_gga5(x1, x2, x3, x4, x5)  =  if_append_3_in_1_gga2(x1, x5)
IF_QSORT_2_IN_1_GA4(x1, x2, x3, x4)  =  IF_QSORT_2_IN_1_GA2(x1, x4)
GT_2_IN_GG2(x1, x2)  =  GT_2_IN_GG2(x1, x2)
IF_SPLIT_4_IN_1_GGAA6(x1, x2, x3, x4, x5, x6)  =  IF_SPLIT_4_IN_1_GGAA4(x1, x2, x3, x6)
IF_QSORT_2_IN_4_GA6(x1, x2, x3, x4, x5, x6)  =  IF_QSORT_2_IN_4_GA1(x6)
IF_GT_2_IN_1_GG3(x1, x2, x3)  =  IF_GT_2_IN_1_GG1(x3)
SPLIT_4_IN_GGAA4(x1, x2, x3, x4)  =  SPLIT_4_IN_GGAA2(x1, x2)
IF_QSORT_2_IN_3_GA6(x1, x2, x3, x4, x5, x6)  =  IF_QSORT_2_IN_3_GA3(x1, x5, x6)
APPEND_3_IN_GGA3(x1, x2, x3)  =  APPEND_3_IN_GGA2(x1, x2)
IF_LE_2_IN_1_GG3(x1, x2, x3)  =  IF_LE_2_IN_1_GG1(x3)
QSORT_2_IN_GA2(x1, x2)  =  QSORT_2_IN_GA1(x1)
IF_QSORT_2_IN_2_GA6(x1, x2, x3, x4, x5, x6)  =  IF_QSORT_2_IN_2_GA3(x1, x5, x6)
IF_SPLIT_4_IN_4_GGAA6(x1, x2, x3, x4, x5, x6)  =  IF_SPLIT_4_IN_4_GGAA2(x1, x6)
IF_APPEND_3_IN_1_GGA5(x1, x2, x3, x4, x5)  =  IF_APPEND_3_IN_1_GGA2(x1, x5)
LE_2_IN_GG2(x1, x2)  =  LE_2_IN_GG2(x1, x2)
IF_SPLIT_4_IN_3_GGAA6(x1, x2, x3, x4, x5, x6)  =  IF_SPLIT_4_IN_3_GGAA4(x1, x2, x3, x6)
IF_SPLIT_4_IN_2_GGAA6(x1, x2, x3, x4, x5, x6)  =  IF_SPLIT_4_IN_2_GGAA2(x1, x6)

We have to consider all (P,R,Pi)-chains
The approximation of the Dependency Graph contains 5 SCCs with 11 less nodes.

↳ PROLOG
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
PiDP
                ↳ UsableRulesProof
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP

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

APPEND_3_IN_GGA3(._22(H, L1), L2, ._22(H, L3)) -> APPEND_3_IN_GGA3(L1, L2, L3)

The TRS R consists of the following rules:

qsort_2_in_ga2([]_0, []_0) -> qsort_2_out_ga2([]_0, []_0)
qsort_2_in_ga2(._22(H, L), S) -> if_qsort_2_in_1_ga4(H, L, S, split_4_in_ggaa4(L, H, A, B))
split_4_in_ggaa4([]_0, Y, []_0, []_0) -> split_4_out_ggaa4([]_0, Y, []_0, []_0)
split_4_in_ggaa4(._22(X, Xs), Y, ._22(X, Ls), Bs) -> if_split_4_in_1_ggaa6(X, Xs, Y, Ls, Bs, le_2_in_gg2(X, Y))
le_2_in_gg2(s_11(X), s_11(Y)) -> if_le_2_in_1_gg3(X, Y, le_2_in_gg2(X, Y))
le_2_in_gg2(0_0, s_11(Y)) -> le_2_out_gg2(0_0, s_11(Y))
le_2_in_gg2(0_0, 0_0) -> le_2_out_gg2(0_0, 0_0)
if_le_2_in_1_gg3(X, Y, le_2_out_gg2(X, Y)) -> le_2_out_gg2(s_11(X), s_11(Y))
if_split_4_in_1_ggaa6(X, Xs, Y, Ls, Bs, le_2_out_gg2(X, Y)) -> if_split_4_in_2_ggaa6(X, Xs, Y, Ls, Bs, split_4_in_ggaa4(Xs, Y, Ls, Bs))
split_4_in_ggaa4(._22(X, Xs), Y, Ls, ._22(X, Bs)) -> if_split_4_in_3_ggaa6(X, Xs, Y, Ls, Bs, gt_2_in_gg2(X, Y))
gt_2_in_gg2(s_11(X), s_11(Y)) -> if_gt_2_in_1_gg3(X, Y, gt_2_in_gg2(X, Y))
gt_2_in_gg2(s_11(X), 0_0) -> gt_2_out_gg2(s_11(X), 0_0)
if_gt_2_in_1_gg3(X, Y, gt_2_out_gg2(X, Y)) -> gt_2_out_gg2(s_11(X), s_11(Y))
if_split_4_in_3_ggaa6(X, Xs, Y, Ls, Bs, gt_2_out_gg2(X, Y)) -> if_split_4_in_4_ggaa6(X, Xs, Y, Ls, Bs, split_4_in_ggaa4(Xs, Y, Ls, Bs))
if_split_4_in_4_ggaa6(X, Xs, Y, Ls, Bs, split_4_out_ggaa4(Xs, Y, Ls, Bs)) -> split_4_out_ggaa4(._22(X, Xs), Y, Ls, ._22(X, Bs))
if_split_4_in_2_ggaa6(X, Xs, Y, Ls, Bs, split_4_out_ggaa4(Xs, Y, Ls, Bs)) -> split_4_out_ggaa4(._22(X, Xs), Y, ._22(X, Ls), Bs)
if_qsort_2_in_1_ga4(H, L, S, split_4_out_ggaa4(L, H, A, B)) -> if_qsort_2_in_2_ga6(H, L, S, A, B, qsort_2_in_ga2(A, A1))
if_qsort_2_in_2_ga6(H, L, S, A, B, qsort_2_out_ga2(A, A1)) -> if_qsort_2_in_3_ga6(H, L, S, B, A1, qsort_2_in_ga2(B, B1))
if_qsort_2_in_3_ga6(H, L, S, B, A1, qsort_2_out_ga2(B, B1)) -> if_qsort_2_in_4_ga6(H, L, S, A1, B1, append_3_in_gga3(A1, ._22(H, B1), S))
append_3_in_gga3([]_0, L, L) -> append_3_out_gga3([]_0, L, L)
append_3_in_gga3(._22(H, L1), L2, ._22(H, L3)) -> if_append_3_in_1_gga5(H, L1, L2, L3, append_3_in_gga3(L1, L2, L3))
if_append_3_in_1_gga5(H, L1, L2, L3, append_3_out_gga3(L1, L2, L3)) -> append_3_out_gga3(._22(H, L1), L2, ._22(H, L3))
if_qsort_2_in_4_ga6(H, L, S, A1, B1, append_3_out_gga3(A1, ._22(H, B1), S)) -> qsort_2_out_ga2(._22(H, L), S)

The argument filtering Pi contains the following mapping:
qsort_2_in_ga2(x1, x2)  =  qsort_2_in_ga1(x1)
[]_0  =  []_0
._22(x1, x2)  =  ._22(x1, x2)
s_11(x1)  =  s_11(x1)
0_0  =  0_0
qsort_2_out_ga2(x1, x2)  =  qsort_2_out_ga1(x2)
if_qsort_2_in_1_ga4(x1, x2, x3, x4)  =  if_qsort_2_in_1_ga2(x1, x4)
split_4_in_ggaa4(x1, x2, x3, x4)  =  split_4_in_ggaa2(x1, x2)
split_4_out_ggaa4(x1, x2, x3, x4)  =  split_4_out_ggaa2(x3, x4)
if_split_4_in_1_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_1_ggaa4(x1, x2, x3, x6)
le_2_in_gg2(x1, x2)  =  le_2_in_gg2(x1, x2)
if_le_2_in_1_gg3(x1, x2, x3)  =  if_le_2_in_1_gg1(x3)
le_2_out_gg2(x1, x2)  =  le_2_out_gg
if_split_4_in_2_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_2_ggaa2(x1, x6)
if_split_4_in_3_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_3_ggaa4(x1, x2, x3, x6)
gt_2_in_gg2(x1, x2)  =  gt_2_in_gg2(x1, x2)
if_gt_2_in_1_gg3(x1, x2, x3)  =  if_gt_2_in_1_gg1(x3)
gt_2_out_gg2(x1, x2)  =  gt_2_out_gg
if_split_4_in_4_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_4_ggaa2(x1, x6)
if_qsort_2_in_2_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_2_ga3(x1, x5, x6)
if_qsort_2_in_3_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_3_ga3(x1, x5, x6)
if_qsort_2_in_4_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_4_ga1(x6)
append_3_in_gga3(x1, x2, x3)  =  append_3_in_gga2(x1, x2)
append_3_out_gga3(x1, x2, x3)  =  append_3_out_gga1(x3)
if_append_3_in_1_gga5(x1, x2, x3, x4, x5)  =  if_append_3_in_1_gga2(x1, x5)
APPEND_3_IN_GGA3(x1, x2, x3)  =  APPEND_3_IN_GGA2(x1, x2)

We have to consider all (P,R,Pi)-chains
For (infinitary) constructor rewriting we can delete all non-usable rules from R.

↳ PROLOG
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
                ↳ UsableRulesProof
PiDP
                    ↳ PiDPToQDPProof
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP

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

APPEND_3_IN_GGA3(._22(H, L1), L2, ._22(H, L3)) -> APPEND_3_IN_GGA3(L1, L2, L3)

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

We have to consider all (P,R,Pi)-chains
Transforming (infinitary) constructor rewriting Pi-DP problem into ordinary QDP problem by application of Pi.

↳ PROLOG
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
                ↳ UsableRulesProof
                  ↳ PiDP
                    ↳ PiDPToQDPProof
QDP
                        ↳ QDPSizeChangeProof
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP

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

APPEND_3_IN_GGA2(._22(H, L1), L2) -> APPEND_3_IN_GGA2(L1, L2)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.
The head symbols of this DP problem are {APPEND_3_IN_GGA2}.
By using the subterm criterion together with the size-change analysis 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:



↳ PROLOG
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
PiDP
                ↳ UsableRulesProof
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP

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

GT_2_IN_GG2(s_11(X), s_11(Y)) -> GT_2_IN_GG2(X, Y)

The TRS R consists of the following rules:

qsort_2_in_ga2([]_0, []_0) -> qsort_2_out_ga2([]_0, []_0)
qsort_2_in_ga2(._22(H, L), S) -> if_qsort_2_in_1_ga4(H, L, S, split_4_in_ggaa4(L, H, A, B))
split_4_in_ggaa4([]_0, Y, []_0, []_0) -> split_4_out_ggaa4([]_0, Y, []_0, []_0)
split_4_in_ggaa4(._22(X, Xs), Y, ._22(X, Ls), Bs) -> if_split_4_in_1_ggaa6(X, Xs, Y, Ls, Bs, le_2_in_gg2(X, Y))
le_2_in_gg2(s_11(X), s_11(Y)) -> if_le_2_in_1_gg3(X, Y, le_2_in_gg2(X, Y))
le_2_in_gg2(0_0, s_11(Y)) -> le_2_out_gg2(0_0, s_11(Y))
le_2_in_gg2(0_0, 0_0) -> le_2_out_gg2(0_0, 0_0)
if_le_2_in_1_gg3(X, Y, le_2_out_gg2(X, Y)) -> le_2_out_gg2(s_11(X), s_11(Y))
if_split_4_in_1_ggaa6(X, Xs, Y, Ls, Bs, le_2_out_gg2(X, Y)) -> if_split_4_in_2_ggaa6(X, Xs, Y, Ls, Bs, split_4_in_ggaa4(Xs, Y, Ls, Bs))
split_4_in_ggaa4(._22(X, Xs), Y, Ls, ._22(X, Bs)) -> if_split_4_in_3_ggaa6(X, Xs, Y, Ls, Bs, gt_2_in_gg2(X, Y))
gt_2_in_gg2(s_11(X), s_11(Y)) -> if_gt_2_in_1_gg3(X, Y, gt_2_in_gg2(X, Y))
gt_2_in_gg2(s_11(X), 0_0) -> gt_2_out_gg2(s_11(X), 0_0)
if_gt_2_in_1_gg3(X, Y, gt_2_out_gg2(X, Y)) -> gt_2_out_gg2(s_11(X), s_11(Y))
if_split_4_in_3_ggaa6(X, Xs, Y, Ls, Bs, gt_2_out_gg2(X, Y)) -> if_split_4_in_4_ggaa6(X, Xs, Y, Ls, Bs, split_4_in_ggaa4(Xs, Y, Ls, Bs))
if_split_4_in_4_ggaa6(X, Xs, Y, Ls, Bs, split_4_out_ggaa4(Xs, Y, Ls, Bs)) -> split_4_out_ggaa4(._22(X, Xs), Y, Ls, ._22(X, Bs))
if_split_4_in_2_ggaa6(X, Xs, Y, Ls, Bs, split_4_out_ggaa4(Xs, Y, Ls, Bs)) -> split_4_out_ggaa4(._22(X, Xs), Y, ._22(X, Ls), Bs)
if_qsort_2_in_1_ga4(H, L, S, split_4_out_ggaa4(L, H, A, B)) -> if_qsort_2_in_2_ga6(H, L, S, A, B, qsort_2_in_ga2(A, A1))
if_qsort_2_in_2_ga6(H, L, S, A, B, qsort_2_out_ga2(A, A1)) -> if_qsort_2_in_3_ga6(H, L, S, B, A1, qsort_2_in_ga2(B, B1))
if_qsort_2_in_3_ga6(H, L, S, B, A1, qsort_2_out_ga2(B, B1)) -> if_qsort_2_in_4_ga6(H, L, S, A1, B1, append_3_in_gga3(A1, ._22(H, B1), S))
append_3_in_gga3([]_0, L, L) -> append_3_out_gga3([]_0, L, L)
append_3_in_gga3(._22(H, L1), L2, ._22(H, L3)) -> if_append_3_in_1_gga5(H, L1, L2, L3, append_3_in_gga3(L1, L2, L3))
if_append_3_in_1_gga5(H, L1, L2, L3, append_3_out_gga3(L1, L2, L3)) -> append_3_out_gga3(._22(H, L1), L2, ._22(H, L3))
if_qsort_2_in_4_ga6(H, L, S, A1, B1, append_3_out_gga3(A1, ._22(H, B1), S)) -> qsort_2_out_ga2(._22(H, L), S)

The argument filtering Pi contains the following mapping:
qsort_2_in_ga2(x1, x2)  =  qsort_2_in_ga1(x1)
[]_0  =  []_0
._22(x1, x2)  =  ._22(x1, x2)
s_11(x1)  =  s_11(x1)
0_0  =  0_0
qsort_2_out_ga2(x1, x2)  =  qsort_2_out_ga1(x2)
if_qsort_2_in_1_ga4(x1, x2, x3, x4)  =  if_qsort_2_in_1_ga2(x1, x4)
split_4_in_ggaa4(x1, x2, x3, x4)  =  split_4_in_ggaa2(x1, x2)
split_4_out_ggaa4(x1, x2, x3, x4)  =  split_4_out_ggaa2(x3, x4)
if_split_4_in_1_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_1_ggaa4(x1, x2, x3, x6)
le_2_in_gg2(x1, x2)  =  le_2_in_gg2(x1, x2)
if_le_2_in_1_gg3(x1, x2, x3)  =  if_le_2_in_1_gg1(x3)
le_2_out_gg2(x1, x2)  =  le_2_out_gg
if_split_4_in_2_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_2_ggaa2(x1, x6)
if_split_4_in_3_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_3_ggaa4(x1, x2, x3, x6)
gt_2_in_gg2(x1, x2)  =  gt_2_in_gg2(x1, x2)
if_gt_2_in_1_gg3(x1, x2, x3)  =  if_gt_2_in_1_gg1(x3)
gt_2_out_gg2(x1, x2)  =  gt_2_out_gg
if_split_4_in_4_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_4_ggaa2(x1, x6)
if_qsort_2_in_2_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_2_ga3(x1, x5, x6)
if_qsort_2_in_3_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_3_ga3(x1, x5, x6)
if_qsort_2_in_4_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_4_ga1(x6)
append_3_in_gga3(x1, x2, x3)  =  append_3_in_gga2(x1, x2)
append_3_out_gga3(x1, x2, x3)  =  append_3_out_gga1(x3)
if_append_3_in_1_gga5(x1, x2, x3, x4, x5)  =  if_append_3_in_1_gga2(x1, x5)
GT_2_IN_GG2(x1, x2)  =  GT_2_IN_GG2(x1, x2)

We have to consider all (P,R,Pi)-chains
For (infinitary) constructor rewriting we can delete all non-usable rules from R.

↳ PROLOG
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
              ↳ PiDP
                ↳ UsableRulesProof
PiDP
                    ↳ PiDPToQDPProof
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP

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

GT_2_IN_GG2(s_11(X), s_11(Y)) -> GT_2_IN_GG2(X, Y)

R is empty.
Pi is empty.
We have to consider all (P,R,Pi)-chains
Transforming (infinitary) constructor rewriting Pi-DP problem into ordinary QDP problem by application of Pi.

↳ PROLOG
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
              ↳ PiDP
                ↳ UsableRulesProof
                  ↳ PiDP
                    ↳ PiDPToQDPProof
QDP
                        ↳ QDPSizeChangeProof
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP

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

GT_2_IN_GG2(s_11(X), s_11(Y)) -> GT_2_IN_GG2(X, Y)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.
The head symbols of this DP problem are {GT_2_IN_GG2}.
By using the subterm criterion together with the size-change analysis 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:



↳ PROLOG
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
              ↳ PiDP
PiDP
                ↳ UsableRulesProof
              ↳ PiDP
              ↳ PiDP

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

LE_2_IN_GG2(s_11(X), s_11(Y)) -> LE_2_IN_GG2(X, Y)

The TRS R consists of the following rules:

qsort_2_in_ga2([]_0, []_0) -> qsort_2_out_ga2([]_0, []_0)
qsort_2_in_ga2(._22(H, L), S) -> if_qsort_2_in_1_ga4(H, L, S, split_4_in_ggaa4(L, H, A, B))
split_4_in_ggaa4([]_0, Y, []_0, []_0) -> split_4_out_ggaa4([]_0, Y, []_0, []_0)
split_4_in_ggaa4(._22(X, Xs), Y, ._22(X, Ls), Bs) -> if_split_4_in_1_ggaa6(X, Xs, Y, Ls, Bs, le_2_in_gg2(X, Y))
le_2_in_gg2(s_11(X), s_11(Y)) -> if_le_2_in_1_gg3(X, Y, le_2_in_gg2(X, Y))
le_2_in_gg2(0_0, s_11(Y)) -> le_2_out_gg2(0_0, s_11(Y))
le_2_in_gg2(0_0, 0_0) -> le_2_out_gg2(0_0, 0_0)
if_le_2_in_1_gg3(X, Y, le_2_out_gg2(X, Y)) -> le_2_out_gg2(s_11(X), s_11(Y))
if_split_4_in_1_ggaa6(X, Xs, Y, Ls, Bs, le_2_out_gg2(X, Y)) -> if_split_4_in_2_ggaa6(X, Xs, Y, Ls, Bs, split_4_in_ggaa4(Xs, Y, Ls, Bs))
split_4_in_ggaa4(._22(X, Xs), Y, Ls, ._22(X, Bs)) -> if_split_4_in_3_ggaa6(X, Xs, Y, Ls, Bs, gt_2_in_gg2(X, Y))
gt_2_in_gg2(s_11(X), s_11(Y)) -> if_gt_2_in_1_gg3(X, Y, gt_2_in_gg2(X, Y))
gt_2_in_gg2(s_11(X), 0_0) -> gt_2_out_gg2(s_11(X), 0_0)
if_gt_2_in_1_gg3(X, Y, gt_2_out_gg2(X, Y)) -> gt_2_out_gg2(s_11(X), s_11(Y))
if_split_4_in_3_ggaa6(X, Xs, Y, Ls, Bs, gt_2_out_gg2(X, Y)) -> if_split_4_in_4_ggaa6(X, Xs, Y, Ls, Bs, split_4_in_ggaa4(Xs, Y, Ls, Bs))
if_split_4_in_4_ggaa6(X, Xs, Y, Ls, Bs, split_4_out_ggaa4(Xs, Y, Ls, Bs)) -> split_4_out_ggaa4(._22(X, Xs), Y, Ls, ._22(X, Bs))
if_split_4_in_2_ggaa6(X, Xs, Y, Ls, Bs, split_4_out_ggaa4(Xs, Y, Ls, Bs)) -> split_4_out_ggaa4(._22(X, Xs), Y, ._22(X, Ls), Bs)
if_qsort_2_in_1_ga4(H, L, S, split_4_out_ggaa4(L, H, A, B)) -> if_qsort_2_in_2_ga6(H, L, S, A, B, qsort_2_in_ga2(A, A1))
if_qsort_2_in_2_ga6(H, L, S, A, B, qsort_2_out_ga2(A, A1)) -> if_qsort_2_in_3_ga6(H, L, S, B, A1, qsort_2_in_ga2(B, B1))
if_qsort_2_in_3_ga6(H, L, S, B, A1, qsort_2_out_ga2(B, B1)) -> if_qsort_2_in_4_ga6(H, L, S, A1, B1, append_3_in_gga3(A1, ._22(H, B1), S))
append_3_in_gga3([]_0, L, L) -> append_3_out_gga3([]_0, L, L)
append_3_in_gga3(._22(H, L1), L2, ._22(H, L3)) -> if_append_3_in_1_gga5(H, L1, L2, L3, append_3_in_gga3(L1, L2, L3))
if_append_3_in_1_gga5(H, L1, L2, L3, append_3_out_gga3(L1, L2, L3)) -> append_3_out_gga3(._22(H, L1), L2, ._22(H, L3))
if_qsort_2_in_4_ga6(H, L, S, A1, B1, append_3_out_gga3(A1, ._22(H, B1), S)) -> qsort_2_out_ga2(._22(H, L), S)

The argument filtering Pi contains the following mapping:
qsort_2_in_ga2(x1, x2)  =  qsort_2_in_ga1(x1)
[]_0  =  []_0
._22(x1, x2)  =  ._22(x1, x2)
s_11(x1)  =  s_11(x1)
0_0  =  0_0
qsort_2_out_ga2(x1, x2)  =  qsort_2_out_ga1(x2)
if_qsort_2_in_1_ga4(x1, x2, x3, x4)  =  if_qsort_2_in_1_ga2(x1, x4)
split_4_in_ggaa4(x1, x2, x3, x4)  =  split_4_in_ggaa2(x1, x2)
split_4_out_ggaa4(x1, x2, x3, x4)  =  split_4_out_ggaa2(x3, x4)
if_split_4_in_1_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_1_ggaa4(x1, x2, x3, x6)
le_2_in_gg2(x1, x2)  =  le_2_in_gg2(x1, x2)
if_le_2_in_1_gg3(x1, x2, x3)  =  if_le_2_in_1_gg1(x3)
le_2_out_gg2(x1, x2)  =  le_2_out_gg
if_split_4_in_2_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_2_ggaa2(x1, x6)
if_split_4_in_3_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_3_ggaa4(x1, x2, x3, x6)
gt_2_in_gg2(x1, x2)  =  gt_2_in_gg2(x1, x2)
if_gt_2_in_1_gg3(x1, x2, x3)  =  if_gt_2_in_1_gg1(x3)
gt_2_out_gg2(x1, x2)  =  gt_2_out_gg
if_split_4_in_4_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_4_ggaa2(x1, x6)
if_qsort_2_in_2_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_2_ga3(x1, x5, x6)
if_qsort_2_in_3_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_3_ga3(x1, x5, x6)
if_qsort_2_in_4_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_4_ga1(x6)
append_3_in_gga3(x1, x2, x3)  =  append_3_in_gga2(x1, x2)
append_3_out_gga3(x1, x2, x3)  =  append_3_out_gga1(x3)
if_append_3_in_1_gga5(x1, x2, x3, x4, x5)  =  if_append_3_in_1_gga2(x1, x5)
LE_2_IN_GG2(x1, x2)  =  LE_2_IN_GG2(x1, x2)

We have to consider all (P,R,Pi)-chains
For (infinitary) constructor rewriting we can delete all non-usable rules from R.

↳ PROLOG
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP
                ↳ UsableRulesProof
PiDP
                    ↳ PiDPToQDPProof
              ↳ PiDP
              ↳ PiDP

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

LE_2_IN_GG2(s_11(X), s_11(Y)) -> LE_2_IN_GG2(X, Y)

R is empty.
Pi is empty.
We have to consider all (P,R,Pi)-chains
Transforming (infinitary) constructor rewriting Pi-DP problem into ordinary QDP problem by application of Pi.

↳ PROLOG
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP
                ↳ UsableRulesProof
                  ↳ PiDP
                    ↳ PiDPToQDPProof
QDP
                        ↳ QDPSizeChangeProof
              ↳ PiDP
              ↳ PiDP

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

LE_2_IN_GG2(s_11(X), s_11(Y)) -> LE_2_IN_GG2(X, Y)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.
The head symbols of this DP problem are {LE_2_IN_GG2}.
By using the subterm criterion together with the size-change analysis 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:



↳ PROLOG
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP
PiDP
                ↳ UsableRulesProof
              ↳ PiDP

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

SPLIT_4_IN_GGAA4(._22(X, Xs), Y, Ls, ._22(X, Bs)) -> IF_SPLIT_4_IN_3_GGAA6(X, Xs, Y, Ls, Bs, gt_2_in_gg2(X, Y))
IF_SPLIT_4_IN_1_GGAA6(X, Xs, Y, Ls, Bs, le_2_out_gg2(X, Y)) -> SPLIT_4_IN_GGAA4(Xs, Y, Ls, Bs)
IF_SPLIT_4_IN_3_GGAA6(X, Xs, Y, Ls, Bs, gt_2_out_gg2(X, Y)) -> SPLIT_4_IN_GGAA4(Xs, Y, Ls, Bs)
SPLIT_4_IN_GGAA4(._22(X, Xs), Y, ._22(X, Ls), Bs) -> IF_SPLIT_4_IN_1_GGAA6(X, Xs, Y, Ls, Bs, le_2_in_gg2(X, Y))

The TRS R consists of the following rules:

qsort_2_in_ga2([]_0, []_0) -> qsort_2_out_ga2([]_0, []_0)
qsort_2_in_ga2(._22(H, L), S) -> if_qsort_2_in_1_ga4(H, L, S, split_4_in_ggaa4(L, H, A, B))
split_4_in_ggaa4([]_0, Y, []_0, []_0) -> split_4_out_ggaa4([]_0, Y, []_0, []_0)
split_4_in_ggaa4(._22(X, Xs), Y, ._22(X, Ls), Bs) -> if_split_4_in_1_ggaa6(X, Xs, Y, Ls, Bs, le_2_in_gg2(X, Y))
le_2_in_gg2(s_11(X), s_11(Y)) -> if_le_2_in_1_gg3(X, Y, le_2_in_gg2(X, Y))
le_2_in_gg2(0_0, s_11(Y)) -> le_2_out_gg2(0_0, s_11(Y))
le_2_in_gg2(0_0, 0_0) -> le_2_out_gg2(0_0, 0_0)
if_le_2_in_1_gg3(X, Y, le_2_out_gg2(X, Y)) -> le_2_out_gg2(s_11(X), s_11(Y))
if_split_4_in_1_ggaa6(X, Xs, Y, Ls, Bs, le_2_out_gg2(X, Y)) -> if_split_4_in_2_ggaa6(X, Xs, Y, Ls, Bs, split_4_in_ggaa4(Xs, Y, Ls, Bs))
split_4_in_ggaa4(._22(X, Xs), Y, Ls, ._22(X, Bs)) -> if_split_4_in_3_ggaa6(X, Xs, Y, Ls, Bs, gt_2_in_gg2(X, Y))
gt_2_in_gg2(s_11(X), s_11(Y)) -> if_gt_2_in_1_gg3(X, Y, gt_2_in_gg2(X, Y))
gt_2_in_gg2(s_11(X), 0_0) -> gt_2_out_gg2(s_11(X), 0_0)
if_gt_2_in_1_gg3(X, Y, gt_2_out_gg2(X, Y)) -> gt_2_out_gg2(s_11(X), s_11(Y))
if_split_4_in_3_ggaa6(X, Xs, Y, Ls, Bs, gt_2_out_gg2(X, Y)) -> if_split_4_in_4_ggaa6(X, Xs, Y, Ls, Bs, split_4_in_ggaa4(Xs, Y, Ls, Bs))
if_split_4_in_4_ggaa6(X, Xs, Y, Ls, Bs, split_4_out_ggaa4(Xs, Y, Ls, Bs)) -> split_4_out_ggaa4(._22(X, Xs), Y, Ls, ._22(X, Bs))
if_split_4_in_2_ggaa6(X, Xs, Y, Ls, Bs, split_4_out_ggaa4(Xs, Y, Ls, Bs)) -> split_4_out_ggaa4(._22(X, Xs), Y, ._22(X, Ls), Bs)
if_qsort_2_in_1_ga4(H, L, S, split_4_out_ggaa4(L, H, A, B)) -> if_qsort_2_in_2_ga6(H, L, S, A, B, qsort_2_in_ga2(A, A1))
if_qsort_2_in_2_ga6(H, L, S, A, B, qsort_2_out_ga2(A, A1)) -> if_qsort_2_in_3_ga6(H, L, S, B, A1, qsort_2_in_ga2(B, B1))
if_qsort_2_in_3_ga6(H, L, S, B, A1, qsort_2_out_ga2(B, B1)) -> if_qsort_2_in_4_ga6(H, L, S, A1, B1, append_3_in_gga3(A1, ._22(H, B1), S))
append_3_in_gga3([]_0, L, L) -> append_3_out_gga3([]_0, L, L)
append_3_in_gga3(._22(H, L1), L2, ._22(H, L3)) -> if_append_3_in_1_gga5(H, L1, L2, L3, append_3_in_gga3(L1, L2, L3))
if_append_3_in_1_gga5(H, L1, L2, L3, append_3_out_gga3(L1, L2, L3)) -> append_3_out_gga3(._22(H, L1), L2, ._22(H, L3))
if_qsort_2_in_4_ga6(H, L, S, A1, B1, append_3_out_gga3(A1, ._22(H, B1), S)) -> qsort_2_out_ga2(._22(H, L), S)

The argument filtering Pi contains the following mapping:
qsort_2_in_ga2(x1, x2)  =  qsort_2_in_ga1(x1)
[]_0  =  []_0
._22(x1, x2)  =  ._22(x1, x2)
s_11(x1)  =  s_11(x1)
0_0  =  0_0
qsort_2_out_ga2(x1, x2)  =  qsort_2_out_ga1(x2)
if_qsort_2_in_1_ga4(x1, x2, x3, x4)  =  if_qsort_2_in_1_ga2(x1, x4)
split_4_in_ggaa4(x1, x2, x3, x4)  =  split_4_in_ggaa2(x1, x2)
split_4_out_ggaa4(x1, x2, x3, x4)  =  split_4_out_ggaa2(x3, x4)
if_split_4_in_1_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_1_ggaa4(x1, x2, x3, x6)
le_2_in_gg2(x1, x2)  =  le_2_in_gg2(x1, x2)
if_le_2_in_1_gg3(x1, x2, x3)  =  if_le_2_in_1_gg1(x3)
le_2_out_gg2(x1, x2)  =  le_2_out_gg
if_split_4_in_2_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_2_ggaa2(x1, x6)
if_split_4_in_3_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_3_ggaa4(x1, x2, x3, x6)
gt_2_in_gg2(x1, x2)  =  gt_2_in_gg2(x1, x2)
if_gt_2_in_1_gg3(x1, x2, x3)  =  if_gt_2_in_1_gg1(x3)
gt_2_out_gg2(x1, x2)  =  gt_2_out_gg
if_split_4_in_4_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_4_ggaa2(x1, x6)
if_qsort_2_in_2_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_2_ga3(x1, x5, x6)
if_qsort_2_in_3_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_3_ga3(x1, x5, x6)
if_qsort_2_in_4_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_4_ga1(x6)
append_3_in_gga3(x1, x2, x3)  =  append_3_in_gga2(x1, x2)
append_3_out_gga3(x1, x2, x3)  =  append_3_out_gga1(x3)
if_append_3_in_1_gga5(x1, x2, x3, x4, x5)  =  if_append_3_in_1_gga2(x1, x5)
IF_SPLIT_4_IN_1_GGAA6(x1, x2, x3, x4, x5, x6)  =  IF_SPLIT_4_IN_1_GGAA4(x1, x2, x3, x6)
SPLIT_4_IN_GGAA4(x1, x2, x3, x4)  =  SPLIT_4_IN_GGAA2(x1, x2)
IF_SPLIT_4_IN_3_GGAA6(x1, x2, x3, x4, x5, x6)  =  IF_SPLIT_4_IN_3_GGAA4(x1, x2, x3, x6)

We have to consider all (P,R,Pi)-chains
For (infinitary) constructor rewriting we can delete all non-usable rules from R.

↳ PROLOG
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP
                ↳ UsableRulesProof
PiDP
                    ↳ PiDPToQDPProof
              ↳ PiDP

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

SPLIT_4_IN_GGAA4(._22(X, Xs), Y, Ls, ._22(X, Bs)) -> IF_SPLIT_4_IN_3_GGAA6(X, Xs, Y, Ls, Bs, gt_2_in_gg2(X, Y))
IF_SPLIT_4_IN_1_GGAA6(X, Xs, Y, Ls, Bs, le_2_out_gg2(X, Y)) -> SPLIT_4_IN_GGAA4(Xs, Y, Ls, Bs)
IF_SPLIT_4_IN_3_GGAA6(X, Xs, Y, Ls, Bs, gt_2_out_gg2(X, Y)) -> SPLIT_4_IN_GGAA4(Xs, Y, Ls, Bs)
SPLIT_4_IN_GGAA4(._22(X, Xs), Y, ._22(X, Ls), Bs) -> IF_SPLIT_4_IN_1_GGAA6(X, Xs, Y, Ls, Bs, le_2_in_gg2(X, Y))

The TRS R consists of the following rules:

gt_2_in_gg2(s_11(X), s_11(Y)) -> if_gt_2_in_1_gg3(X, Y, gt_2_in_gg2(X, Y))
gt_2_in_gg2(s_11(X), 0_0) -> gt_2_out_gg2(s_11(X), 0_0)
le_2_in_gg2(s_11(X), s_11(Y)) -> if_le_2_in_1_gg3(X, Y, le_2_in_gg2(X, Y))
le_2_in_gg2(0_0, s_11(Y)) -> le_2_out_gg2(0_0, s_11(Y))
le_2_in_gg2(0_0, 0_0) -> le_2_out_gg2(0_0, 0_0)
if_gt_2_in_1_gg3(X, Y, gt_2_out_gg2(X, Y)) -> gt_2_out_gg2(s_11(X), s_11(Y))
if_le_2_in_1_gg3(X, Y, le_2_out_gg2(X, Y)) -> le_2_out_gg2(s_11(X), s_11(Y))

The argument filtering Pi contains the following mapping:
._22(x1, x2)  =  ._22(x1, x2)
s_11(x1)  =  s_11(x1)
0_0  =  0_0
le_2_in_gg2(x1, x2)  =  le_2_in_gg2(x1, x2)
if_le_2_in_1_gg3(x1, x2, x3)  =  if_le_2_in_1_gg1(x3)
le_2_out_gg2(x1, x2)  =  le_2_out_gg
gt_2_in_gg2(x1, x2)  =  gt_2_in_gg2(x1, x2)
if_gt_2_in_1_gg3(x1, x2, x3)  =  if_gt_2_in_1_gg1(x3)
gt_2_out_gg2(x1, x2)  =  gt_2_out_gg
IF_SPLIT_4_IN_1_GGAA6(x1, x2, x3, x4, x5, x6)  =  IF_SPLIT_4_IN_1_GGAA4(x1, x2, x3, x6)
SPLIT_4_IN_GGAA4(x1, x2, x3, x4)  =  SPLIT_4_IN_GGAA2(x1, x2)
IF_SPLIT_4_IN_3_GGAA6(x1, x2, x3, x4, x5, x6)  =  IF_SPLIT_4_IN_3_GGAA4(x1, x2, x3, x6)

We have to consider all (P,R,Pi)-chains
Transforming (infinitary) constructor rewriting Pi-DP problem into ordinary QDP problem by application of Pi.

↳ PROLOG
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP
                ↳ UsableRulesProof
                  ↳ PiDP
                    ↳ PiDPToQDPProof
QDP
                        ↳ QDPSizeChangeProof
              ↳ PiDP

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

SPLIT_4_IN_GGAA2(._22(X, Xs), Y) -> IF_SPLIT_4_IN_3_GGAA4(X, Xs, Y, gt_2_in_gg2(X, Y))
IF_SPLIT_4_IN_1_GGAA4(X, Xs, Y, le_2_out_gg) -> SPLIT_4_IN_GGAA2(Xs, Y)
IF_SPLIT_4_IN_3_GGAA4(X, Xs, Y, gt_2_out_gg) -> SPLIT_4_IN_GGAA2(Xs, Y)
SPLIT_4_IN_GGAA2(._22(X, Xs), Y) -> IF_SPLIT_4_IN_1_GGAA4(X, Xs, Y, le_2_in_gg2(X, Y))

The TRS R consists of the following rules:

gt_2_in_gg2(s_11(X), s_11(Y)) -> if_gt_2_in_1_gg1(gt_2_in_gg2(X, Y))
gt_2_in_gg2(s_11(X), 0_0) -> gt_2_out_gg
le_2_in_gg2(s_11(X), s_11(Y)) -> if_le_2_in_1_gg1(le_2_in_gg2(X, Y))
le_2_in_gg2(0_0, s_11(Y)) -> le_2_out_gg
le_2_in_gg2(0_0, 0_0) -> le_2_out_gg
if_gt_2_in_1_gg1(gt_2_out_gg) -> gt_2_out_gg
if_le_2_in_1_gg1(le_2_out_gg) -> le_2_out_gg

The set Q consists of the following terms:

gt_2_in_gg2(x0, x1)
le_2_in_gg2(x0, x1)
if_gt_2_in_1_gg1(x0)
if_le_2_in_1_gg1(x0)

We have to consider all (P,Q,R)-chains.
The head symbols of this DP problem are {IF_SPLIT_4_IN_3_GGAA4, SPLIT_4_IN_GGAA2, IF_SPLIT_4_IN_1_GGAA4}.
By using the subterm criterion together with the size-change analysis 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:



↳ PROLOG
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP
PiDP
                ↳ PiDPToQDPProof

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

QSORT_2_IN_GA2(._22(H, L), S) -> IF_QSORT_2_IN_1_GA4(H, L, S, split_4_in_ggaa4(L, H, A, B))
IF_QSORT_2_IN_2_GA6(H, L, S, A, B, qsort_2_out_ga2(A, A1)) -> QSORT_2_IN_GA2(B, B1)
IF_QSORT_2_IN_1_GA4(H, L, S, split_4_out_ggaa4(L, H, A, B)) -> QSORT_2_IN_GA2(A, A1)
IF_QSORT_2_IN_1_GA4(H, L, S, split_4_out_ggaa4(L, H, A, B)) -> IF_QSORT_2_IN_2_GA6(H, L, S, A, B, qsort_2_in_ga2(A, A1))

The TRS R consists of the following rules:

qsort_2_in_ga2([]_0, []_0) -> qsort_2_out_ga2([]_0, []_0)
qsort_2_in_ga2(._22(H, L), S) -> if_qsort_2_in_1_ga4(H, L, S, split_4_in_ggaa4(L, H, A, B))
split_4_in_ggaa4([]_0, Y, []_0, []_0) -> split_4_out_ggaa4([]_0, Y, []_0, []_0)
split_4_in_ggaa4(._22(X, Xs), Y, ._22(X, Ls), Bs) -> if_split_4_in_1_ggaa6(X, Xs, Y, Ls, Bs, le_2_in_gg2(X, Y))
le_2_in_gg2(s_11(X), s_11(Y)) -> if_le_2_in_1_gg3(X, Y, le_2_in_gg2(X, Y))
le_2_in_gg2(0_0, s_11(Y)) -> le_2_out_gg2(0_0, s_11(Y))
le_2_in_gg2(0_0, 0_0) -> le_2_out_gg2(0_0, 0_0)
if_le_2_in_1_gg3(X, Y, le_2_out_gg2(X, Y)) -> le_2_out_gg2(s_11(X), s_11(Y))
if_split_4_in_1_ggaa6(X, Xs, Y, Ls, Bs, le_2_out_gg2(X, Y)) -> if_split_4_in_2_ggaa6(X, Xs, Y, Ls, Bs, split_4_in_ggaa4(Xs, Y, Ls, Bs))
split_4_in_ggaa4(._22(X, Xs), Y, Ls, ._22(X, Bs)) -> if_split_4_in_3_ggaa6(X, Xs, Y, Ls, Bs, gt_2_in_gg2(X, Y))
gt_2_in_gg2(s_11(X), s_11(Y)) -> if_gt_2_in_1_gg3(X, Y, gt_2_in_gg2(X, Y))
gt_2_in_gg2(s_11(X), 0_0) -> gt_2_out_gg2(s_11(X), 0_0)
if_gt_2_in_1_gg3(X, Y, gt_2_out_gg2(X, Y)) -> gt_2_out_gg2(s_11(X), s_11(Y))
if_split_4_in_3_ggaa6(X, Xs, Y, Ls, Bs, gt_2_out_gg2(X, Y)) -> if_split_4_in_4_ggaa6(X, Xs, Y, Ls, Bs, split_4_in_ggaa4(Xs, Y, Ls, Bs))
if_split_4_in_4_ggaa6(X, Xs, Y, Ls, Bs, split_4_out_ggaa4(Xs, Y, Ls, Bs)) -> split_4_out_ggaa4(._22(X, Xs), Y, Ls, ._22(X, Bs))
if_split_4_in_2_ggaa6(X, Xs, Y, Ls, Bs, split_4_out_ggaa4(Xs, Y, Ls, Bs)) -> split_4_out_ggaa4(._22(X, Xs), Y, ._22(X, Ls), Bs)
if_qsort_2_in_1_ga4(H, L, S, split_4_out_ggaa4(L, H, A, B)) -> if_qsort_2_in_2_ga6(H, L, S, A, B, qsort_2_in_ga2(A, A1))
if_qsort_2_in_2_ga6(H, L, S, A, B, qsort_2_out_ga2(A, A1)) -> if_qsort_2_in_3_ga6(H, L, S, B, A1, qsort_2_in_ga2(B, B1))
if_qsort_2_in_3_ga6(H, L, S, B, A1, qsort_2_out_ga2(B, B1)) -> if_qsort_2_in_4_ga6(H, L, S, A1, B1, append_3_in_gga3(A1, ._22(H, B1), S))
append_3_in_gga3([]_0, L, L) -> append_3_out_gga3([]_0, L, L)
append_3_in_gga3(._22(H, L1), L2, ._22(H, L3)) -> if_append_3_in_1_gga5(H, L1, L2, L3, append_3_in_gga3(L1, L2, L3))
if_append_3_in_1_gga5(H, L1, L2, L3, append_3_out_gga3(L1, L2, L3)) -> append_3_out_gga3(._22(H, L1), L2, ._22(H, L3))
if_qsort_2_in_4_ga6(H, L, S, A1, B1, append_3_out_gga3(A1, ._22(H, B1), S)) -> qsort_2_out_ga2(._22(H, L), S)

The argument filtering Pi contains the following mapping:
qsort_2_in_ga2(x1, x2)  =  qsort_2_in_ga1(x1)
[]_0  =  []_0
._22(x1, x2)  =  ._22(x1, x2)
s_11(x1)  =  s_11(x1)
0_0  =  0_0
qsort_2_out_ga2(x1, x2)  =  qsort_2_out_ga1(x2)
if_qsort_2_in_1_ga4(x1, x2, x3, x4)  =  if_qsort_2_in_1_ga2(x1, x4)
split_4_in_ggaa4(x1, x2, x3, x4)  =  split_4_in_ggaa2(x1, x2)
split_4_out_ggaa4(x1, x2, x3, x4)  =  split_4_out_ggaa2(x3, x4)
if_split_4_in_1_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_1_ggaa4(x1, x2, x3, x6)
le_2_in_gg2(x1, x2)  =  le_2_in_gg2(x1, x2)
if_le_2_in_1_gg3(x1, x2, x3)  =  if_le_2_in_1_gg1(x3)
le_2_out_gg2(x1, x2)  =  le_2_out_gg
if_split_4_in_2_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_2_ggaa2(x1, x6)
if_split_4_in_3_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_3_ggaa4(x1, x2, x3, x6)
gt_2_in_gg2(x1, x2)  =  gt_2_in_gg2(x1, x2)
if_gt_2_in_1_gg3(x1, x2, x3)  =  if_gt_2_in_1_gg1(x3)
gt_2_out_gg2(x1, x2)  =  gt_2_out_gg
if_split_4_in_4_ggaa6(x1, x2, x3, x4, x5, x6)  =  if_split_4_in_4_ggaa2(x1, x6)
if_qsort_2_in_2_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_2_ga3(x1, x5, x6)
if_qsort_2_in_3_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_3_ga3(x1, x5, x6)
if_qsort_2_in_4_ga6(x1, x2, x3, x4, x5, x6)  =  if_qsort_2_in_4_ga1(x6)
append_3_in_gga3(x1, x2, x3)  =  append_3_in_gga2(x1, x2)
append_3_out_gga3(x1, x2, x3)  =  append_3_out_gga1(x3)
if_append_3_in_1_gga5(x1, x2, x3, x4, x5)  =  if_append_3_in_1_gga2(x1, x5)
IF_QSORT_2_IN_1_GA4(x1, x2, x3, x4)  =  IF_QSORT_2_IN_1_GA2(x1, x4)
QSORT_2_IN_GA2(x1, x2)  =  QSORT_2_IN_GA1(x1)
IF_QSORT_2_IN_2_GA6(x1, x2, x3, x4, x5, x6)  =  IF_QSORT_2_IN_2_GA3(x1, x5, x6)

We have to consider all (P,R,Pi)-chains
Transforming (infinitary) constructor rewriting Pi-DP problem into ordinary QDP problem by application of Pi.

↳ PROLOG
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP
                ↳ PiDPToQDPProof
QDP
                    ↳ QDPPoloProof

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

QSORT_2_IN_GA1(._22(H, L)) -> IF_QSORT_2_IN_1_GA2(H, split_4_in_ggaa2(L, H))
IF_QSORT_2_IN_2_GA3(H, B, qsort_2_out_ga1(A1)) -> QSORT_2_IN_GA1(B)
IF_QSORT_2_IN_1_GA2(H, split_4_out_ggaa2(A, B)) -> QSORT_2_IN_GA1(A)
IF_QSORT_2_IN_1_GA2(H, split_4_out_ggaa2(A, B)) -> IF_QSORT_2_IN_2_GA3(H, B, qsort_2_in_ga1(A))

The TRS R consists of the following rules:

qsort_2_in_ga1([]_0) -> qsort_2_out_ga1([]_0)
qsort_2_in_ga1(._22(H, L)) -> if_qsort_2_in_1_ga2(H, split_4_in_ggaa2(L, H))
split_4_in_ggaa2([]_0, Y) -> split_4_out_ggaa2([]_0, []_0)
split_4_in_ggaa2(._22(X, Xs), Y) -> if_split_4_in_1_ggaa4(X, Xs, Y, le_2_in_gg2(X, Y))
le_2_in_gg2(s_11(X), s_11(Y)) -> if_le_2_in_1_gg1(le_2_in_gg2(X, Y))
le_2_in_gg2(0_0, s_11(Y)) -> le_2_out_gg
le_2_in_gg2(0_0, 0_0) -> le_2_out_gg
if_le_2_in_1_gg1(le_2_out_gg) -> le_2_out_gg
if_split_4_in_1_ggaa4(X, Xs, Y, le_2_out_gg) -> if_split_4_in_2_ggaa2(X, split_4_in_ggaa2(Xs, Y))
split_4_in_ggaa2(._22(X, Xs), Y) -> if_split_4_in_3_ggaa4(X, Xs, Y, gt_2_in_gg2(X, Y))
gt_2_in_gg2(s_11(X), s_11(Y)) -> if_gt_2_in_1_gg1(gt_2_in_gg2(X, Y))
gt_2_in_gg2(s_11(X), 0_0) -> gt_2_out_gg
if_gt_2_in_1_gg1(gt_2_out_gg) -> gt_2_out_gg
if_split_4_in_3_ggaa4(X, Xs, Y, gt_2_out_gg) -> if_split_4_in_4_ggaa2(X, split_4_in_ggaa2(Xs, Y))
if_split_4_in_4_ggaa2(X, split_4_out_ggaa2(Ls, Bs)) -> split_4_out_ggaa2(Ls, ._22(X, Bs))
if_split_4_in_2_ggaa2(X, split_4_out_ggaa2(Ls, Bs)) -> split_4_out_ggaa2(._22(X, Ls), Bs)
if_qsort_2_in_1_ga2(H, split_4_out_ggaa2(A, B)) -> if_qsort_2_in_2_ga3(H, B, qsort_2_in_ga1(A))
if_qsort_2_in_2_ga3(H, B, qsort_2_out_ga1(A1)) -> if_qsort_2_in_3_ga3(H, A1, qsort_2_in_ga1(B))
if_qsort_2_in_3_ga3(H, A1, qsort_2_out_ga1(B1)) -> if_qsort_2_in_4_ga1(append_3_in_gga2(A1, ._22(H, B1)))
append_3_in_gga2([]_0, L) -> append_3_out_gga1(L)
append_3_in_gga2(._22(H, L1), L2) -> if_append_3_in_1_gga2(H, append_3_in_gga2(L1, L2))
if_append_3_in_1_gga2(H, append_3_out_gga1(L3)) -> append_3_out_gga1(._22(H, L3))
if_qsort_2_in_4_ga1(append_3_out_gga1(S)) -> qsort_2_out_ga1(S)

The set Q consists of the following terms:

qsort_2_in_ga1(x0)
split_4_in_ggaa2(x0, x1)
le_2_in_gg2(x0, x1)
if_le_2_in_1_gg1(x0)
if_split_4_in_1_ggaa4(x0, x1, x2, x3)
gt_2_in_gg2(x0, x1)
if_gt_2_in_1_gg1(x0)
if_split_4_in_3_ggaa4(x0, x1, x2, x3)
if_split_4_in_4_ggaa2(x0, x1)
if_split_4_in_2_ggaa2(x0, x1)
if_qsort_2_in_1_ga2(x0, x1)
if_qsort_2_in_2_ga3(x0, x1, x2)
if_qsort_2_in_3_ga3(x0, x1, x2)
append_3_in_gga2(x0, x1)
if_append_3_in_1_gga2(x0, x1)
if_qsort_2_in_4_ga1(x0)

We have to consider all (P,Q,R)-chains.
The head symbols of this DP problem are {IF_QSORT_2_IN_1_GA2, QSORT_2_IN_GA1, IF_QSORT_2_IN_2_GA3}.
By using a polynomial ordering, the following set of Dependency Pairs of this DP problem can be strictly oriented.

QSORT_2_IN_GA1(._22(H, L)) -> IF_QSORT_2_IN_1_GA2(H, split_4_in_ggaa2(L, H))
The remaining Dependency Pairs were at least non-strictly be oriented.

IF_QSORT_2_IN_2_GA3(H, B, qsort_2_out_ga1(A1)) -> QSORT_2_IN_GA1(B)
IF_QSORT_2_IN_1_GA2(H, split_4_out_ggaa2(A, B)) -> QSORT_2_IN_GA1(A)
IF_QSORT_2_IN_1_GA2(H, split_4_out_ggaa2(A, B)) -> IF_QSORT_2_IN_2_GA3(H, B, qsort_2_in_ga1(A))
With the implicit AFS we had to orient the following set of usable rules non-strictly.

split_4_in_ggaa2(._22(X, Xs), Y) -> if_split_4_in_1_ggaa4(X, Xs, Y, le_2_in_gg2(X, Y))
if_split_4_in_4_ggaa2(X, split_4_out_ggaa2(Ls, Bs)) -> split_4_out_ggaa2(Ls, ._22(X, Bs))
split_4_in_ggaa2([]_0, Y) -> split_4_out_ggaa2([]_0, []_0)
if_split_4_in_2_ggaa2(X, split_4_out_ggaa2(Ls, Bs)) -> split_4_out_ggaa2(._22(X, Ls), Bs)
split_4_in_ggaa2(._22(X, Xs), Y) -> if_split_4_in_3_ggaa4(X, Xs, Y, gt_2_in_gg2(X, Y))
if_split_4_in_3_ggaa4(X, Xs, Y, gt_2_out_gg) -> if_split_4_in_4_ggaa2(X, split_4_in_ggaa2(Xs, Y))
if_split_4_in_1_ggaa4(X, Xs, Y, le_2_out_gg) -> if_split_4_in_2_ggaa2(X, split_4_in_ggaa2(Xs, Y))
Used ordering: POLO with Polynomial interpretation:

POL(0_0) = 0   
POL(gt_2_in_gg2(x1, x2)) = 0   
POL(split_4_in_ggaa2(x1, x2)) = x1   
POL(if_append_3_in_1_gga2(x1, x2)) = 0   
POL(qsort_2_out_ga1(x1)) = 0   
POL(if_qsort_2_in_2_ga3(x1, x2, x3)) = 0   
POL(append_3_in_gga2(x1, x2)) = 0   
POL(if_split_4_in_1_ggaa4(x1, x2, x3, x4)) = 1 + x2   
POL(append_3_out_gga1(x1)) = 0   
POL(if_gt_2_in_1_gg1(x1)) = 0   
POL(if_qsort_2_in_1_ga2(x1, x2)) = 0   
POL(IF_QSORT_2_IN_1_GA2(x1, x2)) = x2   
POL(le_2_out_gg) = 0   
POL(qsort_2_in_ga1(x1)) = 0   
POL([]_0) = 0   
POL(if_le_2_in_1_gg1(x1)) = 0   
POL(split_4_out_ggaa2(x1, x2)) = x1 + x2   
POL(._22(x1, x2)) = 1 + x2   
POL(if_split_4_in_2_ggaa2(x1, x2)) = 1 + x2   
POL(QSORT_2_IN_GA1(x1)) = x1   
POL(if_qsort_2_in_4_ga1(x1)) = 0   
POL(IF_QSORT_2_IN_2_GA3(x1, x2, x3)) = x2   
POL(le_2_in_gg2(x1, x2)) = 0   
POL(if_qsort_2_in_3_ga3(x1, x2, x3)) = 0   
POL(gt_2_out_gg) = 0   
POL(s_11(x1)) = 0   
POL(if_split_4_in_4_ggaa2(x1, x2)) = 1 + x2   
POL(if_split_4_in_3_ggaa4(x1, x2, x3, x4)) = 1 + x2   



↳ PROLOG
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP
                ↳ PiDPToQDPProof
                  ↳ QDP
                    ↳ QDPPoloProof
QDP
                        ↳ DependencyGraphProof

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

IF_QSORT_2_IN_2_GA3(H, B, qsort_2_out_ga1(A1)) -> QSORT_2_IN_GA1(B)
IF_QSORT_2_IN_1_GA2(H, split_4_out_ggaa2(A, B)) -> QSORT_2_IN_GA1(A)
IF_QSORT_2_IN_1_GA2(H, split_4_out_ggaa2(A, B)) -> IF_QSORT_2_IN_2_GA3(H, B, qsort_2_in_ga1(A))

The TRS R consists of the following rules:

qsort_2_in_ga1([]_0) -> qsort_2_out_ga1([]_0)
qsort_2_in_ga1(._22(H, L)) -> if_qsort_2_in_1_ga2(H, split_4_in_ggaa2(L, H))
split_4_in_ggaa2([]_0, Y) -> split_4_out_ggaa2([]_0, []_0)
split_4_in_ggaa2(._22(X, Xs), Y) -> if_split_4_in_1_ggaa4(X, Xs, Y, le_2_in_gg2(X, Y))
le_2_in_gg2(s_11(X), s_11(Y)) -> if_le_2_in_1_gg1(le_2_in_gg2(X, Y))
le_2_in_gg2(0_0, s_11(Y)) -> le_2_out_gg
le_2_in_gg2(0_0, 0_0) -> le_2_out_gg
if_le_2_in_1_gg1(le_2_out_gg) -> le_2_out_gg
if_split_4_in_1_ggaa4(X, Xs, Y, le_2_out_gg) -> if_split_4_in_2_ggaa2(X, split_4_in_ggaa2(Xs, Y))
split_4_in_ggaa2(._22(X, Xs), Y) -> if_split_4_in_3_ggaa4(X, Xs, Y, gt_2_in_gg2(X, Y))
gt_2_in_gg2(s_11(X), s_11(Y)) -> if_gt_2_in_1_gg1(gt_2_in_gg2(X, Y))
gt_2_in_gg2(s_11(X), 0_0) -> gt_2_out_gg
if_gt_2_in_1_gg1(gt_2_out_gg) -> gt_2_out_gg
if_split_4_in_3_ggaa4(X, Xs, Y, gt_2_out_gg) -> if_split_4_in_4_ggaa2(X, split_4_in_ggaa2(Xs, Y))
if_split_4_in_4_ggaa2(X, split_4_out_ggaa2(Ls, Bs)) -> split_4_out_ggaa2(Ls, ._22(X, Bs))
if_split_4_in_2_ggaa2(X, split_4_out_ggaa2(Ls, Bs)) -> split_4_out_ggaa2(._22(X, Ls), Bs)
if_qsort_2_in_1_ga2(H, split_4_out_ggaa2(A, B)) -> if_qsort_2_in_2_ga3(H, B, qsort_2_in_ga1(A))
if_qsort_2_in_2_ga3(H, B, qsort_2_out_ga1(A1)) -> if_qsort_2_in_3_ga3(H, A1, qsort_2_in_ga1(B))
if_qsort_2_in_3_ga3(H, A1, qsort_2_out_ga1(B1)) -> if_qsort_2_in_4_ga1(append_3_in_gga2(A1, ._22(H, B1)))
append_3_in_gga2([]_0, L) -> append_3_out_gga1(L)
append_3_in_gga2(._22(H, L1), L2) -> if_append_3_in_1_gga2(H, append_3_in_gga2(L1, L2))
if_append_3_in_1_gga2(H, append_3_out_gga1(L3)) -> append_3_out_gga1(._22(H, L3))
if_qsort_2_in_4_ga1(append_3_out_gga1(S)) -> qsort_2_out_ga1(S)

The set Q consists of the following terms:

qsort_2_in_ga1(x0)
split_4_in_ggaa2(x0, x1)
le_2_in_gg2(x0, x1)
if_le_2_in_1_gg1(x0)
if_split_4_in_1_ggaa4(x0, x1, x2, x3)
gt_2_in_gg2(x0, x1)
if_gt_2_in_1_gg1(x0)
if_split_4_in_3_ggaa4(x0, x1, x2, x3)
if_split_4_in_4_ggaa2(x0, x1)
if_split_4_in_2_ggaa2(x0, x1)
if_qsort_2_in_1_ga2(x0, x1)
if_qsort_2_in_2_ga3(x0, x1, x2)
if_qsort_2_in_3_ga3(x0, x1, x2)
append_3_in_gga2(x0, x1)
if_append_3_in_1_gga2(x0, x1)
if_qsort_2_in_4_ga1(x0)

We have to consider all (P,Q,R)-chains.
The head symbols of this DP problem are {QSORT_2_IN_GA1, IF_QSORT_2_IN_2_GA3, IF_QSORT_2_IN_1_GA2}.
The approximation of the Dependency Graph contains 0 SCCs with 3 less nodes.