↳ PROLOG
↳ PrologToPiTRSProof
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)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
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)
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)
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)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
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)
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)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDP
↳ PiDP
↳ PiDP
APPEND_3_IN_GGA3(._22(H, L1), L2, ._22(H, L3)) -> APPEND_3_IN_GGA3(L1, L2, L3)
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)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
↳ PiDP
↳ PiDP
↳ PiDP
APPEND_3_IN_GGA3(._22(H, L1), L2, ._22(H, L3)) -> APPEND_3_IN_GGA3(L1, L2, L3)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
↳ PiDP
↳ PiDP
↳ PiDP
APPEND_3_IN_GGA2(._22(H, L1), L2) -> APPEND_3_IN_GGA2(L1, L2)
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
GT_2_IN_GG2(s_11(X), s_11(Y)) -> GT_2_IN_GG2(X, Y)
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)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
↳ PiDP
↳ PiDP
GT_2_IN_GG2(s_11(X), s_11(Y)) -> GT_2_IN_GG2(X, Y)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
↳ PiDP
↳ PiDP
GT_2_IN_GG2(s_11(X), s_11(Y)) -> GT_2_IN_GG2(X, Y)
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
LE_2_IN_GG2(s_11(X), s_11(Y)) -> LE_2_IN_GG2(X, Y)
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)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
↳ PiDP
LE_2_IN_GG2(s_11(X), s_11(Y)) -> LE_2_IN_GG2(X, Y)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
↳ PiDP
LE_2_IN_GG2(s_11(X), s_11(Y)) -> LE_2_IN_GG2(X, Y)
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
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))
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)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
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))
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))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
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))
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
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)
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
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))
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)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ PiDP
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPPoloProof
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))
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)
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)
The remaining Dependency Pairs were at least non-strictly be oriented.
QSORT_2_IN_GA1(._22(H, L)) -> IF_QSORT_2_IN_1_GA2(H, split_4_in_ggaa2(L, H))
With the implicit AFS we had to orient the following set of usable rules non-strictly.
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))
Used ordering: POLO with Polynomial interpretation:
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))
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
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))
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)
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)