Left Termination of the query pattern sort(f,b) w.r.t. the given Prolog program could not be shown:



PROLOG
  ↳ PrologToPiTRSProof
  ↳ PrologToPiTRSProof

sort2(X, Y) :- perm2(X, Y), sorted1(Y).
sorted1({}0).
sorted1(.2(X, {}0)).
sorted1(.2(X, .2(Y, Z))) :- le2(X, Y), sorted1(.2(Y, Z)).
perm2({}0, {}0).
perm2(.2(X, .2(Y, {}0)), .2(U, .2(V, {}0))) :- delete3(U, .2(X, Y), Z), perm2(Z, V).
delete3(X, .2(X, Y), Y).
delete3(X, .2(Y, Z), W) :- delete3(X, Z, W).
le2(s1(X), s1(Y)) :- le2(X, Y).
le2(00, s1(X)).
le2(00, 00).


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


sort_2_in_ag2(X, Y) -> if_sort_2_in_1_ag3(X, Y, perm_2_in_ag2(X, Y))
perm_2_in_ag2([]_0, []_0) -> perm_2_out_ag2([]_0, []_0)
perm_2_in_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_ag5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
delete_3_in_aaa3(X, ._22(X, Y), Y) -> delete_3_out_aaa3(X, ._22(X, Y), Y)
delete_3_in_aaa3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aaa3(X, ._22(Y, Z), W)
if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aga3(X, ._22(Y, Z), W)
if_perm_2_in_1_ag5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
perm_2_in_aa2([]_0, []_0) -> perm_2_out_aa2([]_0, []_0)
perm_2_in_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_aa5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
if_perm_2_in_1_aa5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_sort_2_in_1_ag3(X, Y, perm_2_out_ag2(X, Y)) -> if_sort_2_in_2_ag3(X, Y, sorted_1_in_g1(Y))
sorted_1_in_g1([]_0) -> sorted_1_out_g1([]_0)
sorted_1_in_g1(._22(X, []_0)) -> sorted_1_out_g1(._22(X, []_0))
sorted_1_in_g1(._22(X, ._22(Y, Z))) -> if_sorted_1_in_1_g4(X, Y, Z, le_2_in_aa2(X, Y))
le_2_in_aa2(s_11(X), s_11(Y)) -> if_le_2_in_1_aa3(X, Y, le_2_in_aa2(X, Y))
le_2_in_aa2(0_0, s_11(X)) -> le_2_out_aa2(0_0, s_11(X))
le_2_in_aa2(0_0, 0_0) -> le_2_out_aa2(0_0, 0_0)
if_le_2_in_1_aa3(X, Y, le_2_out_aa2(X, Y)) -> le_2_out_aa2(s_11(X), s_11(Y))
if_sorted_1_in_1_g4(X, Y, Z, le_2_out_aa2(X, Y)) -> if_sorted_1_in_2_g4(X, Y, Z, sorted_1_in_g1(._22(Y, Z)))
if_sorted_1_in_2_g4(X, Y, Z, sorted_1_out_g1(._22(Y, Z))) -> sorted_1_out_g1(._22(X, ._22(Y, Z)))
if_sort_2_in_2_ag3(X, Y, sorted_1_out_g1(Y)) -> sort_2_out_ag2(X, Y)

The argument filtering Pi contains the following mapping:
sort_2_in_ag2(x1, x2)  =  sort_2_in_ag1(x2)
[]_0  =  []_0
._22(x1, x2)  =  ._2
s_11(x1)  =  s_1
0_0  =  0_0
if_sort_2_in_1_ag3(x1, x2, x3)  =  if_sort_2_in_1_ag2(x2, x3)
perm_2_in_ag2(x1, x2)  =  perm_2_in_ag1(x2)
perm_2_out_ag2(x1, x2)  =  perm_2_out_ag1(x1)
if_perm_2_in_1_ag5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_ag1(x5)
delete_3_in_aga3(x1, x2, x3)  =  delete_3_in_aga1(x2)
delete_3_out_aga3(x1, x2, x3)  =  delete_3_out_aga
if_delete_3_in_1_aga5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aga1(x5)
delete_3_in_aaa3(x1, x2, x3)  =  delete_3_in_aaa
delete_3_out_aaa3(x1, x2, x3)  =  delete_3_out_aaa1(x2)
if_delete_3_in_1_aaa5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aaa1(x5)
if_perm_2_in_2_ag6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_ag1(x6)
perm_2_in_aa2(x1, x2)  =  perm_2_in_aa
perm_2_out_aa2(x1, x2)  =  perm_2_out_aa2(x1, x2)
if_perm_2_in_1_aa5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_aa1(x5)
if_perm_2_in_2_aa6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_aa1(x6)
if_sort_2_in_2_ag3(x1, x2, x3)  =  if_sort_2_in_2_ag2(x1, x3)
sorted_1_in_g1(x1)  =  sorted_1_in_g1(x1)
sorted_1_out_g1(x1)  =  sorted_1_out_g
if_sorted_1_in_1_g4(x1, x2, x3, x4)  =  if_sorted_1_in_1_g1(x4)
le_2_in_aa2(x1, x2)  =  le_2_in_aa
if_le_2_in_1_aa3(x1, x2, x3)  =  if_le_2_in_1_aa1(x3)
le_2_out_aa2(x1, x2)  =  le_2_out_aa2(x1, x2)
if_sorted_1_in_2_g4(x1, x2, x3, x4)  =  if_sorted_1_in_2_g1(x4)
sort_2_out_ag2(x1, x2)  =  sort_2_out_ag1(x1)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG



↳ PROLOG
  ↳ PrologToPiTRSProof
PiTRS
      ↳ DependencyPairsProof
  ↳ PrologToPiTRSProof

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

sort_2_in_ag2(X, Y) -> if_sort_2_in_1_ag3(X, Y, perm_2_in_ag2(X, Y))
perm_2_in_ag2([]_0, []_0) -> perm_2_out_ag2([]_0, []_0)
perm_2_in_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_ag5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
delete_3_in_aaa3(X, ._22(X, Y), Y) -> delete_3_out_aaa3(X, ._22(X, Y), Y)
delete_3_in_aaa3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aaa3(X, ._22(Y, Z), W)
if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aga3(X, ._22(Y, Z), W)
if_perm_2_in_1_ag5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
perm_2_in_aa2([]_0, []_0) -> perm_2_out_aa2([]_0, []_0)
perm_2_in_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_aa5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
if_perm_2_in_1_aa5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_sort_2_in_1_ag3(X, Y, perm_2_out_ag2(X, Y)) -> if_sort_2_in_2_ag3(X, Y, sorted_1_in_g1(Y))
sorted_1_in_g1([]_0) -> sorted_1_out_g1([]_0)
sorted_1_in_g1(._22(X, []_0)) -> sorted_1_out_g1(._22(X, []_0))
sorted_1_in_g1(._22(X, ._22(Y, Z))) -> if_sorted_1_in_1_g4(X, Y, Z, le_2_in_aa2(X, Y))
le_2_in_aa2(s_11(X), s_11(Y)) -> if_le_2_in_1_aa3(X, Y, le_2_in_aa2(X, Y))
le_2_in_aa2(0_0, s_11(X)) -> le_2_out_aa2(0_0, s_11(X))
le_2_in_aa2(0_0, 0_0) -> le_2_out_aa2(0_0, 0_0)
if_le_2_in_1_aa3(X, Y, le_2_out_aa2(X, Y)) -> le_2_out_aa2(s_11(X), s_11(Y))
if_sorted_1_in_1_g4(X, Y, Z, le_2_out_aa2(X, Y)) -> if_sorted_1_in_2_g4(X, Y, Z, sorted_1_in_g1(._22(Y, Z)))
if_sorted_1_in_2_g4(X, Y, Z, sorted_1_out_g1(._22(Y, Z))) -> sorted_1_out_g1(._22(X, ._22(Y, Z)))
if_sort_2_in_2_ag3(X, Y, sorted_1_out_g1(Y)) -> sort_2_out_ag2(X, Y)

The argument filtering Pi contains the following mapping:
sort_2_in_ag2(x1, x2)  =  sort_2_in_ag1(x2)
[]_0  =  []_0
._22(x1, x2)  =  ._2
s_11(x1)  =  s_1
0_0  =  0_0
if_sort_2_in_1_ag3(x1, x2, x3)  =  if_sort_2_in_1_ag2(x2, x3)
perm_2_in_ag2(x1, x2)  =  perm_2_in_ag1(x2)
perm_2_out_ag2(x1, x2)  =  perm_2_out_ag1(x1)
if_perm_2_in_1_ag5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_ag1(x5)
delete_3_in_aga3(x1, x2, x3)  =  delete_3_in_aga1(x2)
delete_3_out_aga3(x1, x2, x3)  =  delete_3_out_aga
if_delete_3_in_1_aga5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aga1(x5)
delete_3_in_aaa3(x1, x2, x3)  =  delete_3_in_aaa
delete_3_out_aaa3(x1, x2, x3)  =  delete_3_out_aaa1(x2)
if_delete_3_in_1_aaa5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aaa1(x5)
if_perm_2_in_2_ag6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_ag1(x6)
perm_2_in_aa2(x1, x2)  =  perm_2_in_aa
perm_2_out_aa2(x1, x2)  =  perm_2_out_aa2(x1, x2)
if_perm_2_in_1_aa5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_aa1(x5)
if_perm_2_in_2_aa6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_aa1(x6)
if_sort_2_in_2_ag3(x1, x2, x3)  =  if_sort_2_in_2_ag2(x1, x3)
sorted_1_in_g1(x1)  =  sorted_1_in_g1(x1)
sorted_1_out_g1(x1)  =  sorted_1_out_g
if_sorted_1_in_1_g4(x1, x2, x3, x4)  =  if_sorted_1_in_1_g1(x4)
le_2_in_aa2(x1, x2)  =  le_2_in_aa
if_le_2_in_1_aa3(x1, x2, x3)  =  if_le_2_in_1_aa1(x3)
le_2_out_aa2(x1, x2)  =  le_2_out_aa2(x1, x2)
if_sorted_1_in_2_g4(x1, x2, x3, x4)  =  if_sorted_1_in_2_g1(x4)
sort_2_out_ag2(x1, x2)  =  sort_2_out_ag1(x1)


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

SORT_2_IN_AG2(X, Y) -> IF_SORT_2_IN_1_AG3(X, Y, perm_2_in_ag2(X, Y))
SORT_2_IN_AG2(X, Y) -> PERM_2_IN_AG2(X, Y)
PERM_2_IN_AG2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> IF_PERM_2_IN_1_AG5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
PERM_2_IN_AG2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> DELETE_3_IN_AGA3(U, ._22(X, Y), Z)
DELETE_3_IN_AGA3(X, ._22(Y, Z), W) -> IF_DELETE_3_IN_1_AGA5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
DELETE_3_IN_AGA3(X, ._22(Y, Z), W) -> DELETE_3_IN_AAA3(X, Z, W)
DELETE_3_IN_AAA3(X, ._22(Y, Z), W) -> IF_DELETE_3_IN_1_AAA5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
DELETE_3_IN_AAA3(X, ._22(Y, Z), W) -> DELETE_3_IN_AAA3(X, Z, W)
IF_PERM_2_IN_1_AG5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> IF_PERM_2_IN_2_AG6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
IF_PERM_2_IN_1_AG5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> PERM_2_IN_AA2(Z, V)
PERM_2_IN_AA2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> IF_PERM_2_IN_1_AA5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
PERM_2_IN_AA2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> DELETE_3_IN_AGA3(U, ._22(X, Y), Z)
IF_PERM_2_IN_1_AA5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> IF_PERM_2_IN_2_AA6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
IF_PERM_2_IN_1_AA5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> PERM_2_IN_AA2(Z, V)
IF_SORT_2_IN_1_AG3(X, Y, perm_2_out_ag2(X, Y)) -> IF_SORT_2_IN_2_AG3(X, Y, sorted_1_in_g1(Y))
IF_SORT_2_IN_1_AG3(X, Y, perm_2_out_ag2(X, Y)) -> SORTED_1_IN_G1(Y)
SORTED_1_IN_G1(._22(X, ._22(Y, Z))) -> IF_SORTED_1_IN_1_G4(X, Y, Z, le_2_in_aa2(X, Y))
SORTED_1_IN_G1(._22(X, ._22(Y, Z))) -> LE_2_IN_AA2(X, Y)
LE_2_IN_AA2(s_11(X), s_11(Y)) -> IF_LE_2_IN_1_AA3(X, Y, le_2_in_aa2(X, Y))
LE_2_IN_AA2(s_11(X), s_11(Y)) -> LE_2_IN_AA2(X, Y)
IF_SORTED_1_IN_1_G4(X, Y, Z, le_2_out_aa2(X, Y)) -> IF_SORTED_1_IN_2_G4(X, Y, Z, sorted_1_in_g1(._22(Y, Z)))
IF_SORTED_1_IN_1_G4(X, Y, Z, le_2_out_aa2(X, Y)) -> SORTED_1_IN_G1(._22(Y, Z))

The TRS R consists of the following rules:

sort_2_in_ag2(X, Y) -> if_sort_2_in_1_ag3(X, Y, perm_2_in_ag2(X, Y))
perm_2_in_ag2([]_0, []_0) -> perm_2_out_ag2([]_0, []_0)
perm_2_in_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_ag5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
delete_3_in_aaa3(X, ._22(X, Y), Y) -> delete_3_out_aaa3(X, ._22(X, Y), Y)
delete_3_in_aaa3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aaa3(X, ._22(Y, Z), W)
if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aga3(X, ._22(Y, Z), W)
if_perm_2_in_1_ag5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
perm_2_in_aa2([]_0, []_0) -> perm_2_out_aa2([]_0, []_0)
perm_2_in_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_aa5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
if_perm_2_in_1_aa5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_sort_2_in_1_ag3(X, Y, perm_2_out_ag2(X, Y)) -> if_sort_2_in_2_ag3(X, Y, sorted_1_in_g1(Y))
sorted_1_in_g1([]_0) -> sorted_1_out_g1([]_0)
sorted_1_in_g1(._22(X, []_0)) -> sorted_1_out_g1(._22(X, []_0))
sorted_1_in_g1(._22(X, ._22(Y, Z))) -> if_sorted_1_in_1_g4(X, Y, Z, le_2_in_aa2(X, Y))
le_2_in_aa2(s_11(X), s_11(Y)) -> if_le_2_in_1_aa3(X, Y, le_2_in_aa2(X, Y))
le_2_in_aa2(0_0, s_11(X)) -> le_2_out_aa2(0_0, s_11(X))
le_2_in_aa2(0_0, 0_0) -> le_2_out_aa2(0_0, 0_0)
if_le_2_in_1_aa3(X, Y, le_2_out_aa2(X, Y)) -> le_2_out_aa2(s_11(X), s_11(Y))
if_sorted_1_in_1_g4(X, Y, Z, le_2_out_aa2(X, Y)) -> if_sorted_1_in_2_g4(X, Y, Z, sorted_1_in_g1(._22(Y, Z)))
if_sorted_1_in_2_g4(X, Y, Z, sorted_1_out_g1(._22(Y, Z))) -> sorted_1_out_g1(._22(X, ._22(Y, Z)))
if_sort_2_in_2_ag3(X, Y, sorted_1_out_g1(Y)) -> sort_2_out_ag2(X, Y)

The argument filtering Pi contains the following mapping:
sort_2_in_ag2(x1, x2)  =  sort_2_in_ag1(x2)
[]_0  =  []_0
._22(x1, x2)  =  ._2
s_11(x1)  =  s_1
0_0  =  0_0
if_sort_2_in_1_ag3(x1, x2, x3)  =  if_sort_2_in_1_ag2(x2, x3)
perm_2_in_ag2(x1, x2)  =  perm_2_in_ag1(x2)
perm_2_out_ag2(x1, x2)  =  perm_2_out_ag1(x1)
if_perm_2_in_1_ag5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_ag1(x5)
delete_3_in_aga3(x1, x2, x3)  =  delete_3_in_aga1(x2)
delete_3_out_aga3(x1, x2, x3)  =  delete_3_out_aga
if_delete_3_in_1_aga5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aga1(x5)
delete_3_in_aaa3(x1, x2, x3)  =  delete_3_in_aaa
delete_3_out_aaa3(x1, x2, x3)  =  delete_3_out_aaa1(x2)
if_delete_3_in_1_aaa5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aaa1(x5)
if_perm_2_in_2_ag6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_ag1(x6)
perm_2_in_aa2(x1, x2)  =  perm_2_in_aa
perm_2_out_aa2(x1, x2)  =  perm_2_out_aa2(x1, x2)
if_perm_2_in_1_aa5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_aa1(x5)
if_perm_2_in_2_aa6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_aa1(x6)
if_sort_2_in_2_ag3(x1, x2, x3)  =  if_sort_2_in_2_ag2(x1, x3)
sorted_1_in_g1(x1)  =  sorted_1_in_g1(x1)
sorted_1_out_g1(x1)  =  sorted_1_out_g
if_sorted_1_in_1_g4(x1, x2, x3, x4)  =  if_sorted_1_in_1_g1(x4)
le_2_in_aa2(x1, x2)  =  le_2_in_aa
if_le_2_in_1_aa3(x1, x2, x3)  =  if_le_2_in_1_aa1(x3)
le_2_out_aa2(x1, x2)  =  le_2_out_aa2(x1, x2)
if_sorted_1_in_2_g4(x1, x2, x3, x4)  =  if_sorted_1_in_2_g1(x4)
sort_2_out_ag2(x1, x2)  =  sort_2_out_ag1(x1)
IF_DELETE_3_IN_1_AAA5(x1, x2, x3, x4, x5)  =  IF_DELETE_3_IN_1_AAA1(x5)
IF_SORTED_1_IN_2_G4(x1, x2, x3, x4)  =  IF_SORTED_1_IN_2_G1(x4)
IF_SORT_2_IN_2_AG3(x1, x2, x3)  =  IF_SORT_2_IN_2_AG2(x1, x3)
IF_SORT_2_IN_1_AG3(x1, x2, x3)  =  IF_SORT_2_IN_1_AG2(x2, x3)
PERM_2_IN_AG2(x1, x2)  =  PERM_2_IN_AG1(x2)
IF_DELETE_3_IN_1_AGA5(x1, x2, x3, x4, x5)  =  IF_DELETE_3_IN_1_AGA1(x5)
IF_PERM_2_IN_2_AA6(x1, x2, x3, x4, x5, x6)  =  IF_PERM_2_IN_2_AA1(x6)
PERM_2_IN_AA2(x1, x2)  =  PERM_2_IN_AA
SORTED_1_IN_G1(x1)  =  SORTED_1_IN_G1(x1)
SORT_2_IN_AG2(x1, x2)  =  SORT_2_IN_AG1(x2)
LE_2_IN_AA2(x1, x2)  =  LE_2_IN_AA
IF_LE_2_IN_1_AA3(x1, x2, x3)  =  IF_LE_2_IN_1_AA1(x3)
DELETE_3_IN_AGA3(x1, x2, x3)  =  DELETE_3_IN_AGA1(x2)
IF_PERM_2_IN_1_AG5(x1, x2, x3, x4, x5)  =  IF_PERM_2_IN_1_AG1(x5)
IF_PERM_2_IN_2_AG6(x1, x2, x3, x4, x5, x6)  =  IF_PERM_2_IN_2_AG1(x6)
IF_SORTED_1_IN_1_G4(x1, x2, x3, x4)  =  IF_SORTED_1_IN_1_G1(x4)
DELETE_3_IN_AAA3(x1, x2, x3)  =  DELETE_3_IN_AAA
IF_PERM_2_IN_1_AA5(x1, x2, x3, x4, x5)  =  IF_PERM_2_IN_1_AA1(x5)

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

↳ PROLOG
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
PiDP
          ↳ DependencyGraphProof
  ↳ PrologToPiTRSProof

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

SORT_2_IN_AG2(X, Y) -> IF_SORT_2_IN_1_AG3(X, Y, perm_2_in_ag2(X, Y))
SORT_2_IN_AG2(X, Y) -> PERM_2_IN_AG2(X, Y)
PERM_2_IN_AG2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> IF_PERM_2_IN_1_AG5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
PERM_2_IN_AG2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> DELETE_3_IN_AGA3(U, ._22(X, Y), Z)
DELETE_3_IN_AGA3(X, ._22(Y, Z), W) -> IF_DELETE_3_IN_1_AGA5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
DELETE_3_IN_AGA3(X, ._22(Y, Z), W) -> DELETE_3_IN_AAA3(X, Z, W)
DELETE_3_IN_AAA3(X, ._22(Y, Z), W) -> IF_DELETE_3_IN_1_AAA5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
DELETE_3_IN_AAA3(X, ._22(Y, Z), W) -> DELETE_3_IN_AAA3(X, Z, W)
IF_PERM_2_IN_1_AG5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> IF_PERM_2_IN_2_AG6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
IF_PERM_2_IN_1_AG5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> PERM_2_IN_AA2(Z, V)
PERM_2_IN_AA2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> IF_PERM_2_IN_1_AA5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
PERM_2_IN_AA2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> DELETE_3_IN_AGA3(U, ._22(X, Y), Z)
IF_PERM_2_IN_1_AA5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> IF_PERM_2_IN_2_AA6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
IF_PERM_2_IN_1_AA5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> PERM_2_IN_AA2(Z, V)
IF_SORT_2_IN_1_AG3(X, Y, perm_2_out_ag2(X, Y)) -> IF_SORT_2_IN_2_AG3(X, Y, sorted_1_in_g1(Y))
IF_SORT_2_IN_1_AG3(X, Y, perm_2_out_ag2(X, Y)) -> SORTED_1_IN_G1(Y)
SORTED_1_IN_G1(._22(X, ._22(Y, Z))) -> IF_SORTED_1_IN_1_G4(X, Y, Z, le_2_in_aa2(X, Y))
SORTED_1_IN_G1(._22(X, ._22(Y, Z))) -> LE_2_IN_AA2(X, Y)
LE_2_IN_AA2(s_11(X), s_11(Y)) -> IF_LE_2_IN_1_AA3(X, Y, le_2_in_aa2(X, Y))
LE_2_IN_AA2(s_11(X), s_11(Y)) -> LE_2_IN_AA2(X, Y)
IF_SORTED_1_IN_1_G4(X, Y, Z, le_2_out_aa2(X, Y)) -> IF_SORTED_1_IN_2_G4(X, Y, Z, sorted_1_in_g1(._22(Y, Z)))
IF_SORTED_1_IN_1_G4(X, Y, Z, le_2_out_aa2(X, Y)) -> SORTED_1_IN_G1(._22(Y, Z))

The TRS R consists of the following rules:

sort_2_in_ag2(X, Y) -> if_sort_2_in_1_ag3(X, Y, perm_2_in_ag2(X, Y))
perm_2_in_ag2([]_0, []_0) -> perm_2_out_ag2([]_0, []_0)
perm_2_in_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_ag5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
delete_3_in_aaa3(X, ._22(X, Y), Y) -> delete_3_out_aaa3(X, ._22(X, Y), Y)
delete_3_in_aaa3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aaa3(X, ._22(Y, Z), W)
if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aga3(X, ._22(Y, Z), W)
if_perm_2_in_1_ag5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
perm_2_in_aa2([]_0, []_0) -> perm_2_out_aa2([]_0, []_0)
perm_2_in_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_aa5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
if_perm_2_in_1_aa5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_sort_2_in_1_ag3(X, Y, perm_2_out_ag2(X, Y)) -> if_sort_2_in_2_ag3(X, Y, sorted_1_in_g1(Y))
sorted_1_in_g1([]_0) -> sorted_1_out_g1([]_0)
sorted_1_in_g1(._22(X, []_0)) -> sorted_1_out_g1(._22(X, []_0))
sorted_1_in_g1(._22(X, ._22(Y, Z))) -> if_sorted_1_in_1_g4(X, Y, Z, le_2_in_aa2(X, Y))
le_2_in_aa2(s_11(X), s_11(Y)) -> if_le_2_in_1_aa3(X, Y, le_2_in_aa2(X, Y))
le_2_in_aa2(0_0, s_11(X)) -> le_2_out_aa2(0_0, s_11(X))
le_2_in_aa2(0_0, 0_0) -> le_2_out_aa2(0_0, 0_0)
if_le_2_in_1_aa3(X, Y, le_2_out_aa2(X, Y)) -> le_2_out_aa2(s_11(X), s_11(Y))
if_sorted_1_in_1_g4(X, Y, Z, le_2_out_aa2(X, Y)) -> if_sorted_1_in_2_g4(X, Y, Z, sorted_1_in_g1(._22(Y, Z)))
if_sorted_1_in_2_g4(X, Y, Z, sorted_1_out_g1(._22(Y, Z))) -> sorted_1_out_g1(._22(X, ._22(Y, Z)))
if_sort_2_in_2_ag3(X, Y, sorted_1_out_g1(Y)) -> sort_2_out_ag2(X, Y)

The argument filtering Pi contains the following mapping:
sort_2_in_ag2(x1, x2)  =  sort_2_in_ag1(x2)
[]_0  =  []_0
._22(x1, x2)  =  ._2
s_11(x1)  =  s_1
0_0  =  0_0
if_sort_2_in_1_ag3(x1, x2, x3)  =  if_sort_2_in_1_ag2(x2, x3)
perm_2_in_ag2(x1, x2)  =  perm_2_in_ag1(x2)
perm_2_out_ag2(x1, x2)  =  perm_2_out_ag1(x1)
if_perm_2_in_1_ag5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_ag1(x5)
delete_3_in_aga3(x1, x2, x3)  =  delete_3_in_aga1(x2)
delete_3_out_aga3(x1, x2, x3)  =  delete_3_out_aga
if_delete_3_in_1_aga5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aga1(x5)
delete_3_in_aaa3(x1, x2, x3)  =  delete_3_in_aaa
delete_3_out_aaa3(x1, x2, x3)  =  delete_3_out_aaa1(x2)
if_delete_3_in_1_aaa5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aaa1(x5)
if_perm_2_in_2_ag6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_ag1(x6)
perm_2_in_aa2(x1, x2)  =  perm_2_in_aa
perm_2_out_aa2(x1, x2)  =  perm_2_out_aa2(x1, x2)
if_perm_2_in_1_aa5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_aa1(x5)
if_perm_2_in_2_aa6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_aa1(x6)
if_sort_2_in_2_ag3(x1, x2, x3)  =  if_sort_2_in_2_ag2(x1, x3)
sorted_1_in_g1(x1)  =  sorted_1_in_g1(x1)
sorted_1_out_g1(x1)  =  sorted_1_out_g
if_sorted_1_in_1_g4(x1, x2, x3, x4)  =  if_sorted_1_in_1_g1(x4)
le_2_in_aa2(x1, x2)  =  le_2_in_aa
if_le_2_in_1_aa3(x1, x2, x3)  =  if_le_2_in_1_aa1(x3)
le_2_out_aa2(x1, x2)  =  le_2_out_aa2(x1, x2)
if_sorted_1_in_2_g4(x1, x2, x3, x4)  =  if_sorted_1_in_2_g1(x4)
sort_2_out_ag2(x1, x2)  =  sort_2_out_ag1(x1)
IF_DELETE_3_IN_1_AAA5(x1, x2, x3, x4, x5)  =  IF_DELETE_3_IN_1_AAA1(x5)
IF_SORTED_1_IN_2_G4(x1, x2, x3, x4)  =  IF_SORTED_1_IN_2_G1(x4)
IF_SORT_2_IN_2_AG3(x1, x2, x3)  =  IF_SORT_2_IN_2_AG2(x1, x3)
IF_SORT_2_IN_1_AG3(x1, x2, x3)  =  IF_SORT_2_IN_1_AG2(x2, x3)
PERM_2_IN_AG2(x1, x2)  =  PERM_2_IN_AG1(x2)
IF_DELETE_3_IN_1_AGA5(x1, x2, x3, x4, x5)  =  IF_DELETE_3_IN_1_AGA1(x5)
IF_PERM_2_IN_2_AA6(x1, x2, x3, x4, x5, x6)  =  IF_PERM_2_IN_2_AA1(x6)
PERM_2_IN_AA2(x1, x2)  =  PERM_2_IN_AA
SORTED_1_IN_G1(x1)  =  SORTED_1_IN_G1(x1)
SORT_2_IN_AG2(x1, x2)  =  SORT_2_IN_AG1(x2)
LE_2_IN_AA2(x1, x2)  =  LE_2_IN_AA
IF_LE_2_IN_1_AA3(x1, x2, x3)  =  IF_LE_2_IN_1_AA1(x3)
DELETE_3_IN_AGA3(x1, x2, x3)  =  DELETE_3_IN_AGA1(x2)
IF_PERM_2_IN_1_AG5(x1, x2, x3, x4, x5)  =  IF_PERM_2_IN_1_AG1(x5)
IF_PERM_2_IN_2_AG6(x1, x2, x3, x4, x5, x6)  =  IF_PERM_2_IN_2_AG1(x6)
IF_SORTED_1_IN_1_G4(x1, x2, x3, x4)  =  IF_SORTED_1_IN_1_G1(x4)
DELETE_3_IN_AAA3(x1, x2, x3)  =  DELETE_3_IN_AAA
IF_PERM_2_IN_1_AA5(x1, x2, x3, x4, x5)  =  IF_PERM_2_IN_1_AA1(x5)

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

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

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

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

The TRS R consists of the following rules:

sort_2_in_ag2(X, Y) -> if_sort_2_in_1_ag3(X, Y, perm_2_in_ag2(X, Y))
perm_2_in_ag2([]_0, []_0) -> perm_2_out_ag2([]_0, []_0)
perm_2_in_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_ag5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
delete_3_in_aaa3(X, ._22(X, Y), Y) -> delete_3_out_aaa3(X, ._22(X, Y), Y)
delete_3_in_aaa3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aaa3(X, ._22(Y, Z), W)
if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aga3(X, ._22(Y, Z), W)
if_perm_2_in_1_ag5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
perm_2_in_aa2([]_0, []_0) -> perm_2_out_aa2([]_0, []_0)
perm_2_in_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_aa5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
if_perm_2_in_1_aa5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_sort_2_in_1_ag3(X, Y, perm_2_out_ag2(X, Y)) -> if_sort_2_in_2_ag3(X, Y, sorted_1_in_g1(Y))
sorted_1_in_g1([]_0) -> sorted_1_out_g1([]_0)
sorted_1_in_g1(._22(X, []_0)) -> sorted_1_out_g1(._22(X, []_0))
sorted_1_in_g1(._22(X, ._22(Y, Z))) -> if_sorted_1_in_1_g4(X, Y, Z, le_2_in_aa2(X, Y))
le_2_in_aa2(s_11(X), s_11(Y)) -> if_le_2_in_1_aa3(X, Y, le_2_in_aa2(X, Y))
le_2_in_aa2(0_0, s_11(X)) -> le_2_out_aa2(0_0, s_11(X))
le_2_in_aa2(0_0, 0_0) -> le_2_out_aa2(0_0, 0_0)
if_le_2_in_1_aa3(X, Y, le_2_out_aa2(X, Y)) -> le_2_out_aa2(s_11(X), s_11(Y))
if_sorted_1_in_1_g4(X, Y, Z, le_2_out_aa2(X, Y)) -> if_sorted_1_in_2_g4(X, Y, Z, sorted_1_in_g1(._22(Y, Z)))
if_sorted_1_in_2_g4(X, Y, Z, sorted_1_out_g1(._22(Y, Z))) -> sorted_1_out_g1(._22(X, ._22(Y, Z)))
if_sort_2_in_2_ag3(X, Y, sorted_1_out_g1(Y)) -> sort_2_out_ag2(X, Y)

The argument filtering Pi contains the following mapping:
sort_2_in_ag2(x1, x2)  =  sort_2_in_ag1(x2)
[]_0  =  []_0
._22(x1, x2)  =  ._2
s_11(x1)  =  s_1
0_0  =  0_0
if_sort_2_in_1_ag3(x1, x2, x3)  =  if_sort_2_in_1_ag2(x2, x3)
perm_2_in_ag2(x1, x2)  =  perm_2_in_ag1(x2)
perm_2_out_ag2(x1, x2)  =  perm_2_out_ag1(x1)
if_perm_2_in_1_ag5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_ag1(x5)
delete_3_in_aga3(x1, x2, x3)  =  delete_3_in_aga1(x2)
delete_3_out_aga3(x1, x2, x3)  =  delete_3_out_aga
if_delete_3_in_1_aga5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aga1(x5)
delete_3_in_aaa3(x1, x2, x3)  =  delete_3_in_aaa
delete_3_out_aaa3(x1, x2, x3)  =  delete_3_out_aaa1(x2)
if_delete_3_in_1_aaa5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aaa1(x5)
if_perm_2_in_2_ag6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_ag1(x6)
perm_2_in_aa2(x1, x2)  =  perm_2_in_aa
perm_2_out_aa2(x1, x2)  =  perm_2_out_aa2(x1, x2)
if_perm_2_in_1_aa5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_aa1(x5)
if_perm_2_in_2_aa6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_aa1(x6)
if_sort_2_in_2_ag3(x1, x2, x3)  =  if_sort_2_in_2_ag2(x1, x3)
sorted_1_in_g1(x1)  =  sorted_1_in_g1(x1)
sorted_1_out_g1(x1)  =  sorted_1_out_g
if_sorted_1_in_1_g4(x1, x2, x3, x4)  =  if_sorted_1_in_1_g1(x4)
le_2_in_aa2(x1, x2)  =  le_2_in_aa
if_le_2_in_1_aa3(x1, x2, x3)  =  if_le_2_in_1_aa1(x3)
le_2_out_aa2(x1, x2)  =  le_2_out_aa2(x1, x2)
if_sorted_1_in_2_g4(x1, x2, x3, x4)  =  if_sorted_1_in_2_g1(x4)
sort_2_out_ag2(x1, x2)  =  sort_2_out_ag1(x1)
LE_2_IN_AA2(x1, x2)  =  LE_2_IN_AA

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
  ↳ PrologToPiTRSProof

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

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

R is empty.
The argument filtering Pi contains the following mapping:
s_11(x1)  =  s_1
LE_2_IN_AA2(x1, x2)  =  LE_2_IN_AA

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
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP
  ↳ PrologToPiTRSProof

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

LE_2_IN_AA -> LE_2_IN_AA

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_AA}.

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

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

IF_SORTED_1_IN_1_G4(X, Y, Z, le_2_out_aa2(X, Y)) -> SORTED_1_IN_G1(._22(Y, Z))
SORTED_1_IN_G1(._22(X, ._22(Y, Z))) -> IF_SORTED_1_IN_1_G4(X, Y, Z, le_2_in_aa2(X, Y))

The TRS R consists of the following rules:

sort_2_in_ag2(X, Y) -> if_sort_2_in_1_ag3(X, Y, perm_2_in_ag2(X, Y))
perm_2_in_ag2([]_0, []_0) -> perm_2_out_ag2([]_0, []_0)
perm_2_in_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_ag5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
delete_3_in_aaa3(X, ._22(X, Y), Y) -> delete_3_out_aaa3(X, ._22(X, Y), Y)
delete_3_in_aaa3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aaa3(X, ._22(Y, Z), W)
if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aga3(X, ._22(Y, Z), W)
if_perm_2_in_1_ag5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
perm_2_in_aa2([]_0, []_0) -> perm_2_out_aa2([]_0, []_0)
perm_2_in_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_aa5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
if_perm_2_in_1_aa5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_sort_2_in_1_ag3(X, Y, perm_2_out_ag2(X, Y)) -> if_sort_2_in_2_ag3(X, Y, sorted_1_in_g1(Y))
sorted_1_in_g1([]_0) -> sorted_1_out_g1([]_0)
sorted_1_in_g1(._22(X, []_0)) -> sorted_1_out_g1(._22(X, []_0))
sorted_1_in_g1(._22(X, ._22(Y, Z))) -> if_sorted_1_in_1_g4(X, Y, Z, le_2_in_aa2(X, Y))
le_2_in_aa2(s_11(X), s_11(Y)) -> if_le_2_in_1_aa3(X, Y, le_2_in_aa2(X, Y))
le_2_in_aa2(0_0, s_11(X)) -> le_2_out_aa2(0_0, s_11(X))
le_2_in_aa2(0_0, 0_0) -> le_2_out_aa2(0_0, 0_0)
if_le_2_in_1_aa3(X, Y, le_2_out_aa2(X, Y)) -> le_2_out_aa2(s_11(X), s_11(Y))
if_sorted_1_in_1_g4(X, Y, Z, le_2_out_aa2(X, Y)) -> if_sorted_1_in_2_g4(X, Y, Z, sorted_1_in_g1(._22(Y, Z)))
if_sorted_1_in_2_g4(X, Y, Z, sorted_1_out_g1(._22(Y, Z))) -> sorted_1_out_g1(._22(X, ._22(Y, Z)))
if_sort_2_in_2_ag3(X, Y, sorted_1_out_g1(Y)) -> sort_2_out_ag2(X, Y)

The argument filtering Pi contains the following mapping:
sort_2_in_ag2(x1, x2)  =  sort_2_in_ag1(x2)
[]_0  =  []_0
._22(x1, x2)  =  ._2
s_11(x1)  =  s_1
0_0  =  0_0
if_sort_2_in_1_ag3(x1, x2, x3)  =  if_sort_2_in_1_ag2(x2, x3)
perm_2_in_ag2(x1, x2)  =  perm_2_in_ag1(x2)
perm_2_out_ag2(x1, x2)  =  perm_2_out_ag1(x1)
if_perm_2_in_1_ag5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_ag1(x5)
delete_3_in_aga3(x1, x2, x3)  =  delete_3_in_aga1(x2)
delete_3_out_aga3(x1, x2, x3)  =  delete_3_out_aga
if_delete_3_in_1_aga5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aga1(x5)
delete_3_in_aaa3(x1, x2, x3)  =  delete_3_in_aaa
delete_3_out_aaa3(x1, x2, x3)  =  delete_3_out_aaa1(x2)
if_delete_3_in_1_aaa5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aaa1(x5)
if_perm_2_in_2_ag6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_ag1(x6)
perm_2_in_aa2(x1, x2)  =  perm_2_in_aa
perm_2_out_aa2(x1, x2)  =  perm_2_out_aa2(x1, x2)
if_perm_2_in_1_aa5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_aa1(x5)
if_perm_2_in_2_aa6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_aa1(x6)
if_sort_2_in_2_ag3(x1, x2, x3)  =  if_sort_2_in_2_ag2(x1, x3)
sorted_1_in_g1(x1)  =  sorted_1_in_g1(x1)
sorted_1_out_g1(x1)  =  sorted_1_out_g
if_sorted_1_in_1_g4(x1, x2, x3, x4)  =  if_sorted_1_in_1_g1(x4)
le_2_in_aa2(x1, x2)  =  le_2_in_aa
if_le_2_in_1_aa3(x1, x2, x3)  =  if_le_2_in_1_aa1(x3)
le_2_out_aa2(x1, x2)  =  le_2_out_aa2(x1, x2)
if_sorted_1_in_2_g4(x1, x2, x3, x4)  =  if_sorted_1_in_2_g1(x4)
sort_2_out_ag2(x1, x2)  =  sort_2_out_ag1(x1)
SORTED_1_IN_G1(x1)  =  SORTED_1_IN_G1(x1)
IF_SORTED_1_IN_1_G4(x1, x2, x3, x4)  =  IF_SORTED_1_IN_1_G1(x4)

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
  ↳ PrologToPiTRSProof

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

IF_SORTED_1_IN_1_G4(X, Y, Z, le_2_out_aa2(X, Y)) -> SORTED_1_IN_G1(._22(Y, Z))
SORTED_1_IN_G1(._22(X, ._22(Y, Z))) -> IF_SORTED_1_IN_1_G4(X, Y, Z, le_2_in_aa2(X, Y))

The TRS R consists of the following rules:

le_2_in_aa2(s_11(X), s_11(Y)) -> if_le_2_in_1_aa3(X, Y, le_2_in_aa2(X, Y))
le_2_in_aa2(0_0, s_11(X)) -> le_2_out_aa2(0_0, s_11(X))
le_2_in_aa2(0_0, 0_0) -> le_2_out_aa2(0_0, 0_0)
if_le_2_in_1_aa3(X, Y, le_2_out_aa2(X, Y)) -> le_2_out_aa2(s_11(X), s_11(Y))

The argument filtering Pi contains the following mapping:
._22(x1, x2)  =  ._2
s_11(x1)  =  s_1
0_0  =  0_0
le_2_in_aa2(x1, x2)  =  le_2_in_aa
if_le_2_in_1_aa3(x1, x2, x3)  =  if_le_2_in_1_aa1(x3)
le_2_out_aa2(x1, x2)  =  le_2_out_aa2(x1, x2)
SORTED_1_IN_G1(x1)  =  SORTED_1_IN_G1(x1)
IF_SORTED_1_IN_1_G4(x1, x2, x3, x4)  =  IF_SORTED_1_IN_1_G1(x4)

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
              ↳ PiDP
              ↳ PiDP
  ↳ PrologToPiTRSProof

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

IF_SORTED_1_IN_1_G1(le_2_out_aa2(X, Y)) -> SORTED_1_IN_G1(._2)
SORTED_1_IN_G1(._2) -> IF_SORTED_1_IN_1_G1(le_2_in_aa)

The TRS R consists of the following rules:

le_2_in_aa -> if_le_2_in_1_aa1(le_2_in_aa)
le_2_in_aa -> le_2_out_aa2(0_0, s_1)
le_2_in_aa -> le_2_out_aa2(0_0, 0_0)
if_le_2_in_1_aa1(le_2_out_aa2(X, Y)) -> le_2_out_aa2(s_1, s_1)

The set Q consists of the following terms:

le_2_in_aa
if_le_2_in_1_aa1(x0)

We have to consider all (P,Q,R)-chains.
The head symbols of this DP problem are {SORTED_1_IN_G1, IF_SORTED_1_IN_1_G1}.

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

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

DELETE_3_IN_AAA3(X, ._22(Y, Z), W) -> DELETE_3_IN_AAA3(X, Z, W)

The TRS R consists of the following rules:

sort_2_in_ag2(X, Y) -> if_sort_2_in_1_ag3(X, Y, perm_2_in_ag2(X, Y))
perm_2_in_ag2([]_0, []_0) -> perm_2_out_ag2([]_0, []_0)
perm_2_in_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_ag5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
delete_3_in_aaa3(X, ._22(X, Y), Y) -> delete_3_out_aaa3(X, ._22(X, Y), Y)
delete_3_in_aaa3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aaa3(X, ._22(Y, Z), W)
if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aga3(X, ._22(Y, Z), W)
if_perm_2_in_1_ag5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
perm_2_in_aa2([]_0, []_0) -> perm_2_out_aa2([]_0, []_0)
perm_2_in_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_aa5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
if_perm_2_in_1_aa5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_sort_2_in_1_ag3(X, Y, perm_2_out_ag2(X, Y)) -> if_sort_2_in_2_ag3(X, Y, sorted_1_in_g1(Y))
sorted_1_in_g1([]_0) -> sorted_1_out_g1([]_0)
sorted_1_in_g1(._22(X, []_0)) -> sorted_1_out_g1(._22(X, []_0))
sorted_1_in_g1(._22(X, ._22(Y, Z))) -> if_sorted_1_in_1_g4(X, Y, Z, le_2_in_aa2(X, Y))
le_2_in_aa2(s_11(X), s_11(Y)) -> if_le_2_in_1_aa3(X, Y, le_2_in_aa2(X, Y))
le_2_in_aa2(0_0, s_11(X)) -> le_2_out_aa2(0_0, s_11(X))
le_2_in_aa2(0_0, 0_0) -> le_2_out_aa2(0_0, 0_0)
if_le_2_in_1_aa3(X, Y, le_2_out_aa2(X, Y)) -> le_2_out_aa2(s_11(X), s_11(Y))
if_sorted_1_in_1_g4(X, Y, Z, le_2_out_aa2(X, Y)) -> if_sorted_1_in_2_g4(X, Y, Z, sorted_1_in_g1(._22(Y, Z)))
if_sorted_1_in_2_g4(X, Y, Z, sorted_1_out_g1(._22(Y, Z))) -> sorted_1_out_g1(._22(X, ._22(Y, Z)))
if_sort_2_in_2_ag3(X, Y, sorted_1_out_g1(Y)) -> sort_2_out_ag2(X, Y)

The argument filtering Pi contains the following mapping:
sort_2_in_ag2(x1, x2)  =  sort_2_in_ag1(x2)
[]_0  =  []_0
._22(x1, x2)  =  ._2
s_11(x1)  =  s_1
0_0  =  0_0
if_sort_2_in_1_ag3(x1, x2, x3)  =  if_sort_2_in_1_ag2(x2, x3)
perm_2_in_ag2(x1, x2)  =  perm_2_in_ag1(x2)
perm_2_out_ag2(x1, x2)  =  perm_2_out_ag1(x1)
if_perm_2_in_1_ag5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_ag1(x5)
delete_3_in_aga3(x1, x2, x3)  =  delete_3_in_aga1(x2)
delete_3_out_aga3(x1, x2, x3)  =  delete_3_out_aga
if_delete_3_in_1_aga5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aga1(x5)
delete_3_in_aaa3(x1, x2, x3)  =  delete_3_in_aaa
delete_3_out_aaa3(x1, x2, x3)  =  delete_3_out_aaa1(x2)
if_delete_3_in_1_aaa5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aaa1(x5)
if_perm_2_in_2_ag6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_ag1(x6)
perm_2_in_aa2(x1, x2)  =  perm_2_in_aa
perm_2_out_aa2(x1, x2)  =  perm_2_out_aa2(x1, x2)
if_perm_2_in_1_aa5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_aa1(x5)
if_perm_2_in_2_aa6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_aa1(x6)
if_sort_2_in_2_ag3(x1, x2, x3)  =  if_sort_2_in_2_ag2(x1, x3)
sorted_1_in_g1(x1)  =  sorted_1_in_g1(x1)
sorted_1_out_g1(x1)  =  sorted_1_out_g
if_sorted_1_in_1_g4(x1, x2, x3, x4)  =  if_sorted_1_in_1_g1(x4)
le_2_in_aa2(x1, x2)  =  le_2_in_aa
if_le_2_in_1_aa3(x1, x2, x3)  =  if_le_2_in_1_aa1(x3)
le_2_out_aa2(x1, x2)  =  le_2_out_aa2(x1, x2)
if_sorted_1_in_2_g4(x1, x2, x3, x4)  =  if_sorted_1_in_2_g1(x4)
sort_2_out_ag2(x1, x2)  =  sort_2_out_ag1(x1)
DELETE_3_IN_AAA3(x1, x2, x3)  =  DELETE_3_IN_AAA

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
  ↳ PrologToPiTRSProof

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

DELETE_3_IN_AAA3(X, ._22(Y, Z), W) -> DELETE_3_IN_AAA3(X, Z, W)

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

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
              ↳ PiDP
  ↳ PrologToPiTRSProof

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

DELETE_3_IN_AAA -> DELETE_3_IN_AAA

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.
The head symbols of this DP problem are {DELETE_3_IN_AAA}.

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

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

IF_PERM_2_IN_1_AA5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> PERM_2_IN_AA2(Z, V)
PERM_2_IN_AA2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> IF_PERM_2_IN_1_AA5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))

The TRS R consists of the following rules:

sort_2_in_ag2(X, Y) -> if_sort_2_in_1_ag3(X, Y, perm_2_in_ag2(X, Y))
perm_2_in_ag2([]_0, []_0) -> perm_2_out_ag2([]_0, []_0)
perm_2_in_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_ag5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
delete_3_in_aaa3(X, ._22(X, Y), Y) -> delete_3_out_aaa3(X, ._22(X, Y), Y)
delete_3_in_aaa3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aaa3(X, ._22(Y, Z), W)
if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aga3(X, ._22(Y, Z), W)
if_perm_2_in_1_ag5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
perm_2_in_aa2([]_0, []_0) -> perm_2_out_aa2([]_0, []_0)
perm_2_in_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_aa5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
if_perm_2_in_1_aa5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_sort_2_in_1_ag3(X, Y, perm_2_out_ag2(X, Y)) -> if_sort_2_in_2_ag3(X, Y, sorted_1_in_g1(Y))
sorted_1_in_g1([]_0) -> sorted_1_out_g1([]_0)
sorted_1_in_g1(._22(X, []_0)) -> sorted_1_out_g1(._22(X, []_0))
sorted_1_in_g1(._22(X, ._22(Y, Z))) -> if_sorted_1_in_1_g4(X, Y, Z, le_2_in_aa2(X, Y))
le_2_in_aa2(s_11(X), s_11(Y)) -> if_le_2_in_1_aa3(X, Y, le_2_in_aa2(X, Y))
le_2_in_aa2(0_0, s_11(X)) -> le_2_out_aa2(0_0, s_11(X))
le_2_in_aa2(0_0, 0_0) -> le_2_out_aa2(0_0, 0_0)
if_le_2_in_1_aa3(X, Y, le_2_out_aa2(X, Y)) -> le_2_out_aa2(s_11(X), s_11(Y))
if_sorted_1_in_1_g4(X, Y, Z, le_2_out_aa2(X, Y)) -> if_sorted_1_in_2_g4(X, Y, Z, sorted_1_in_g1(._22(Y, Z)))
if_sorted_1_in_2_g4(X, Y, Z, sorted_1_out_g1(._22(Y, Z))) -> sorted_1_out_g1(._22(X, ._22(Y, Z)))
if_sort_2_in_2_ag3(X, Y, sorted_1_out_g1(Y)) -> sort_2_out_ag2(X, Y)

The argument filtering Pi contains the following mapping:
sort_2_in_ag2(x1, x2)  =  sort_2_in_ag1(x2)
[]_0  =  []_0
._22(x1, x2)  =  ._2
s_11(x1)  =  s_1
0_0  =  0_0
if_sort_2_in_1_ag3(x1, x2, x3)  =  if_sort_2_in_1_ag2(x2, x3)
perm_2_in_ag2(x1, x2)  =  perm_2_in_ag1(x2)
perm_2_out_ag2(x1, x2)  =  perm_2_out_ag1(x1)
if_perm_2_in_1_ag5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_ag1(x5)
delete_3_in_aga3(x1, x2, x3)  =  delete_3_in_aga1(x2)
delete_3_out_aga3(x1, x2, x3)  =  delete_3_out_aga
if_delete_3_in_1_aga5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aga1(x5)
delete_3_in_aaa3(x1, x2, x3)  =  delete_3_in_aaa
delete_3_out_aaa3(x1, x2, x3)  =  delete_3_out_aaa1(x2)
if_delete_3_in_1_aaa5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aaa1(x5)
if_perm_2_in_2_ag6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_ag1(x6)
perm_2_in_aa2(x1, x2)  =  perm_2_in_aa
perm_2_out_aa2(x1, x2)  =  perm_2_out_aa2(x1, x2)
if_perm_2_in_1_aa5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_aa1(x5)
if_perm_2_in_2_aa6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_aa1(x6)
if_sort_2_in_2_ag3(x1, x2, x3)  =  if_sort_2_in_2_ag2(x1, x3)
sorted_1_in_g1(x1)  =  sorted_1_in_g1(x1)
sorted_1_out_g1(x1)  =  sorted_1_out_g
if_sorted_1_in_1_g4(x1, x2, x3, x4)  =  if_sorted_1_in_1_g1(x4)
le_2_in_aa2(x1, x2)  =  le_2_in_aa
if_le_2_in_1_aa3(x1, x2, x3)  =  if_le_2_in_1_aa1(x3)
le_2_out_aa2(x1, x2)  =  le_2_out_aa2(x1, x2)
if_sorted_1_in_2_g4(x1, x2, x3, x4)  =  if_sorted_1_in_2_g1(x4)
sort_2_out_ag2(x1, x2)  =  sort_2_out_ag1(x1)
PERM_2_IN_AA2(x1, x2)  =  PERM_2_IN_AA
IF_PERM_2_IN_1_AA5(x1, x2, x3, x4, x5)  =  IF_PERM_2_IN_1_AA1(x5)

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
  ↳ PrologToPiTRSProof

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

IF_PERM_2_IN_1_AA5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> PERM_2_IN_AA2(Z, V)
PERM_2_IN_AA2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> IF_PERM_2_IN_1_AA5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))

The TRS R consists of the following rules:

delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aga3(X, ._22(Y, Z), W)
delete_3_in_aaa3(X, ._22(X, Y), Y) -> delete_3_out_aaa3(X, ._22(X, Y), Y)
delete_3_in_aaa3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aaa3(X, ._22(Y, Z), W)

The argument filtering Pi contains the following mapping:
[]_0  =  []_0
._22(x1, x2)  =  ._2
delete_3_in_aga3(x1, x2, x3)  =  delete_3_in_aga1(x2)
delete_3_out_aga3(x1, x2, x3)  =  delete_3_out_aga
if_delete_3_in_1_aga5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aga1(x5)
delete_3_in_aaa3(x1, x2, x3)  =  delete_3_in_aaa
delete_3_out_aaa3(x1, x2, x3)  =  delete_3_out_aaa1(x2)
if_delete_3_in_1_aaa5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aaa1(x5)
PERM_2_IN_AA2(x1, x2)  =  PERM_2_IN_AA
IF_PERM_2_IN_1_AA5(x1, x2, x3, x4, x5)  =  IF_PERM_2_IN_1_AA1(x5)

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
  ↳ PrologToPiTRSProof

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

IF_PERM_2_IN_1_AA1(delete_3_out_aga) -> PERM_2_IN_AA
PERM_2_IN_AA -> IF_PERM_2_IN_1_AA1(delete_3_in_aga1(._2))

The TRS R consists of the following rules:

delete_3_in_aga1(._2) -> delete_3_out_aga
delete_3_in_aga1(._2) -> if_delete_3_in_1_aga1(delete_3_in_aaa)
if_delete_3_in_1_aga1(delete_3_out_aaa1(Z)) -> delete_3_out_aga
delete_3_in_aaa -> delete_3_out_aaa1(._2)
delete_3_in_aaa -> if_delete_3_in_1_aaa1(delete_3_in_aaa)
if_delete_3_in_1_aaa1(delete_3_out_aaa1(Z)) -> delete_3_out_aaa1(._2)

The set Q consists of the following terms:

delete_3_in_aga1(x0)
if_delete_3_in_1_aga1(x0)
delete_3_in_aaa
if_delete_3_in_1_aaa1(x0)

We have to consider all (P,Q,R)-chains.
The head symbols of this DP problem are {PERM_2_IN_AA, IF_PERM_2_IN_1_AA1}.
With regard to the inferred argument filtering the predicates were used in the following modes:
sort2: (f,b)
perm2: (f,b) (f,f)
delete3: (f,b,f) (f,f,f)
sorted1: (b)
le2: (f,f)
Transforming PROLOG into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

sort_2_in_ag2(X, Y) -> if_sort_2_in_1_ag3(X, Y, perm_2_in_ag2(X, Y))
perm_2_in_ag2([]_0, []_0) -> perm_2_out_ag2([]_0, []_0)
perm_2_in_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_ag5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
delete_3_in_aaa3(X, ._22(X, Y), Y) -> delete_3_out_aaa3(X, ._22(X, Y), Y)
delete_3_in_aaa3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aaa3(X, ._22(Y, Z), W)
if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aga3(X, ._22(Y, Z), W)
if_perm_2_in_1_ag5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
perm_2_in_aa2([]_0, []_0) -> perm_2_out_aa2([]_0, []_0)
perm_2_in_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_aa5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
if_perm_2_in_1_aa5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_sort_2_in_1_ag3(X, Y, perm_2_out_ag2(X, Y)) -> if_sort_2_in_2_ag3(X, Y, sorted_1_in_g1(Y))
sorted_1_in_g1([]_0) -> sorted_1_out_g1([]_0)
sorted_1_in_g1(._22(X, []_0)) -> sorted_1_out_g1(._22(X, []_0))
sorted_1_in_g1(._22(X, ._22(Y, Z))) -> if_sorted_1_in_1_g4(X, Y, Z, le_2_in_aa2(X, Y))
le_2_in_aa2(s_11(X), s_11(Y)) -> if_le_2_in_1_aa3(X, Y, le_2_in_aa2(X, Y))
le_2_in_aa2(0_0, s_11(X)) -> le_2_out_aa2(0_0, s_11(X))
le_2_in_aa2(0_0, 0_0) -> le_2_out_aa2(0_0, 0_0)
if_le_2_in_1_aa3(X, Y, le_2_out_aa2(X, Y)) -> le_2_out_aa2(s_11(X), s_11(Y))
if_sorted_1_in_1_g4(X, Y, Z, le_2_out_aa2(X, Y)) -> if_sorted_1_in_2_g4(X, Y, Z, sorted_1_in_g1(._22(Y, Z)))
if_sorted_1_in_2_g4(X, Y, Z, sorted_1_out_g1(._22(Y, Z))) -> sorted_1_out_g1(._22(X, ._22(Y, Z)))
if_sort_2_in_2_ag3(X, Y, sorted_1_out_g1(Y)) -> sort_2_out_ag2(X, Y)

The argument filtering Pi contains the following mapping:
sort_2_in_ag2(x1, x2)  =  sort_2_in_ag1(x2)
[]_0  =  []_0
._22(x1, x2)  =  ._2
s_11(x1)  =  s_1
0_0  =  0_0
if_sort_2_in_1_ag3(x1, x2, x3)  =  if_sort_2_in_1_ag2(x2, x3)
perm_2_in_ag2(x1, x2)  =  perm_2_in_ag1(x2)
perm_2_out_ag2(x1, x2)  =  perm_2_out_ag2(x1, x2)
if_perm_2_in_1_ag5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_ag1(x5)
delete_3_in_aga3(x1, x2, x3)  =  delete_3_in_aga1(x2)
delete_3_out_aga3(x1, x2, x3)  =  delete_3_out_aga1(x2)
if_delete_3_in_1_aga5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aga1(x5)
delete_3_in_aaa3(x1, x2, x3)  =  delete_3_in_aaa
delete_3_out_aaa3(x1, x2, x3)  =  delete_3_out_aaa1(x2)
if_delete_3_in_1_aaa5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aaa1(x5)
if_perm_2_in_2_ag6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_ag1(x6)
perm_2_in_aa2(x1, x2)  =  perm_2_in_aa
perm_2_out_aa2(x1, x2)  =  perm_2_out_aa2(x1, x2)
if_perm_2_in_1_aa5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_aa1(x5)
if_perm_2_in_2_aa6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_aa1(x6)
if_sort_2_in_2_ag3(x1, x2, x3)  =  if_sort_2_in_2_ag3(x1, x2, x3)
sorted_1_in_g1(x1)  =  sorted_1_in_g1(x1)
sorted_1_out_g1(x1)  =  sorted_1_out_g1(x1)
if_sorted_1_in_1_g4(x1, x2, x3, x4)  =  if_sorted_1_in_1_g1(x4)
le_2_in_aa2(x1, x2)  =  le_2_in_aa
if_le_2_in_1_aa3(x1, x2, x3)  =  if_le_2_in_1_aa1(x3)
le_2_out_aa2(x1, x2)  =  le_2_out_aa2(x1, x2)
if_sorted_1_in_2_g4(x1, x2, x3, x4)  =  if_sorted_1_in_2_g1(x4)
sort_2_out_ag2(x1, x2)  =  sort_2_out_ag2(x1, x2)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG



↳ PROLOG
  ↳ PrologToPiTRSProof
  ↳ PrologToPiTRSProof
PiTRS
      ↳ DependencyPairsProof

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

sort_2_in_ag2(X, Y) -> if_sort_2_in_1_ag3(X, Y, perm_2_in_ag2(X, Y))
perm_2_in_ag2([]_0, []_0) -> perm_2_out_ag2([]_0, []_0)
perm_2_in_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_ag5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
delete_3_in_aaa3(X, ._22(X, Y), Y) -> delete_3_out_aaa3(X, ._22(X, Y), Y)
delete_3_in_aaa3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aaa3(X, ._22(Y, Z), W)
if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aga3(X, ._22(Y, Z), W)
if_perm_2_in_1_ag5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
perm_2_in_aa2([]_0, []_0) -> perm_2_out_aa2([]_0, []_0)
perm_2_in_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_aa5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
if_perm_2_in_1_aa5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_sort_2_in_1_ag3(X, Y, perm_2_out_ag2(X, Y)) -> if_sort_2_in_2_ag3(X, Y, sorted_1_in_g1(Y))
sorted_1_in_g1([]_0) -> sorted_1_out_g1([]_0)
sorted_1_in_g1(._22(X, []_0)) -> sorted_1_out_g1(._22(X, []_0))
sorted_1_in_g1(._22(X, ._22(Y, Z))) -> if_sorted_1_in_1_g4(X, Y, Z, le_2_in_aa2(X, Y))
le_2_in_aa2(s_11(X), s_11(Y)) -> if_le_2_in_1_aa3(X, Y, le_2_in_aa2(X, Y))
le_2_in_aa2(0_0, s_11(X)) -> le_2_out_aa2(0_0, s_11(X))
le_2_in_aa2(0_0, 0_0) -> le_2_out_aa2(0_0, 0_0)
if_le_2_in_1_aa3(X, Y, le_2_out_aa2(X, Y)) -> le_2_out_aa2(s_11(X), s_11(Y))
if_sorted_1_in_1_g4(X, Y, Z, le_2_out_aa2(X, Y)) -> if_sorted_1_in_2_g4(X, Y, Z, sorted_1_in_g1(._22(Y, Z)))
if_sorted_1_in_2_g4(X, Y, Z, sorted_1_out_g1(._22(Y, Z))) -> sorted_1_out_g1(._22(X, ._22(Y, Z)))
if_sort_2_in_2_ag3(X, Y, sorted_1_out_g1(Y)) -> sort_2_out_ag2(X, Y)

The argument filtering Pi contains the following mapping:
sort_2_in_ag2(x1, x2)  =  sort_2_in_ag1(x2)
[]_0  =  []_0
._22(x1, x2)  =  ._2
s_11(x1)  =  s_1
0_0  =  0_0
if_sort_2_in_1_ag3(x1, x2, x3)  =  if_sort_2_in_1_ag2(x2, x3)
perm_2_in_ag2(x1, x2)  =  perm_2_in_ag1(x2)
perm_2_out_ag2(x1, x2)  =  perm_2_out_ag2(x1, x2)
if_perm_2_in_1_ag5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_ag1(x5)
delete_3_in_aga3(x1, x2, x3)  =  delete_3_in_aga1(x2)
delete_3_out_aga3(x1, x2, x3)  =  delete_3_out_aga1(x2)
if_delete_3_in_1_aga5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aga1(x5)
delete_3_in_aaa3(x1, x2, x3)  =  delete_3_in_aaa
delete_3_out_aaa3(x1, x2, x3)  =  delete_3_out_aaa1(x2)
if_delete_3_in_1_aaa5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aaa1(x5)
if_perm_2_in_2_ag6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_ag1(x6)
perm_2_in_aa2(x1, x2)  =  perm_2_in_aa
perm_2_out_aa2(x1, x2)  =  perm_2_out_aa2(x1, x2)
if_perm_2_in_1_aa5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_aa1(x5)
if_perm_2_in_2_aa6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_aa1(x6)
if_sort_2_in_2_ag3(x1, x2, x3)  =  if_sort_2_in_2_ag3(x1, x2, x3)
sorted_1_in_g1(x1)  =  sorted_1_in_g1(x1)
sorted_1_out_g1(x1)  =  sorted_1_out_g1(x1)
if_sorted_1_in_1_g4(x1, x2, x3, x4)  =  if_sorted_1_in_1_g1(x4)
le_2_in_aa2(x1, x2)  =  le_2_in_aa
if_le_2_in_1_aa3(x1, x2, x3)  =  if_le_2_in_1_aa1(x3)
le_2_out_aa2(x1, x2)  =  le_2_out_aa2(x1, x2)
if_sorted_1_in_2_g4(x1, x2, x3, x4)  =  if_sorted_1_in_2_g1(x4)
sort_2_out_ag2(x1, x2)  =  sort_2_out_ag2(x1, x2)


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

SORT_2_IN_AG2(X, Y) -> IF_SORT_2_IN_1_AG3(X, Y, perm_2_in_ag2(X, Y))
SORT_2_IN_AG2(X, Y) -> PERM_2_IN_AG2(X, Y)
PERM_2_IN_AG2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> IF_PERM_2_IN_1_AG5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
PERM_2_IN_AG2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> DELETE_3_IN_AGA3(U, ._22(X, Y), Z)
DELETE_3_IN_AGA3(X, ._22(Y, Z), W) -> IF_DELETE_3_IN_1_AGA5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
DELETE_3_IN_AGA3(X, ._22(Y, Z), W) -> DELETE_3_IN_AAA3(X, Z, W)
DELETE_3_IN_AAA3(X, ._22(Y, Z), W) -> IF_DELETE_3_IN_1_AAA5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
DELETE_3_IN_AAA3(X, ._22(Y, Z), W) -> DELETE_3_IN_AAA3(X, Z, W)
IF_PERM_2_IN_1_AG5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> IF_PERM_2_IN_2_AG6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
IF_PERM_2_IN_1_AG5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> PERM_2_IN_AA2(Z, V)
PERM_2_IN_AA2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> IF_PERM_2_IN_1_AA5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
PERM_2_IN_AA2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> DELETE_3_IN_AGA3(U, ._22(X, Y), Z)
IF_PERM_2_IN_1_AA5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> IF_PERM_2_IN_2_AA6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
IF_PERM_2_IN_1_AA5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> PERM_2_IN_AA2(Z, V)
IF_SORT_2_IN_1_AG3(X, Y, perm_2_out_ag2(X, Y)) -> IF_SORT_2_IN_2_AG3(X, Y, sorted_1_in_g1(Y))
IF_SORT_2_IN_1_AG3(X, Y, perm_2_out_ag2(X, Y)) -> SORTED_1_IN_G1(Y)
SORTED_1_IN_G1(._22(X, ._22(Y, Z))) -> IF_SORTED_1_IN_1_G4(X, Y, Z, le_2_in_aa2(X, Y))
SORTED_1_IN_G1(._22(X, ._22(Y, Z))) -> LE_2_IN_AA2(X, Y)
LE_2_IN_AA2(s_11(X), s_11(Y)) -> IF_LE_2_IN_1_AA3(X, Y, le_2_in_aa2(X, Y))
LE_2_IN_AA2(s_11(X), s_11(Y)) -> LE_2_IN_AA2(X, Y)
IF_SORTED_1_IN_1_G4(X, Y, Z, le_2_out_aa2(X, Y)) -> IF_SORTED_1_IN_2_G4(X, Y, Z, sorted_1_in_g1(._22(Y, Z)))
IF_SORTED_1_IN_1_G4(X, Y, Z, le_2_out_aa2(X, Y)) -> SORTED_1_IN_G1(._22(Y, Z))

The TRS R consists of the following rules:

sort_2_in_ag2(X, Y) -> if_sort_2_in_1_ag3(X, Y, perm_2_in_ag2(X, Y))
perm_2_in_ag2([]_0, []_0) -> perm_2_out_ag2([]_0, []_0)
perm_2_in_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_ag5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
delete_3_in_aaa3(X, ._22(X, Y), Y) -> delete_3_out_aaa3(X, ._22(X, Y), Y)
delete_3_in_aaa3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aaa3(X, ._22(Y, Z), W)
if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aga3(X, ._22(Y, Z), W)
if_perm_2_in_1_ag5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
perm_2_in_aa2([]_0, []_0) -> perm_2_out_aa2([]_0, []_0)
perm_2_in_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_aa5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
if_perm_2_in_1_aa5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_sort_2_in_1_ag3(X, Y, perm_2_out_ag2(X, Y)) -> if_sort_2_in_2_ag3(X, Y, sorted_1_in_g1(Y))
sorted_1_in_g1([]_0) -> sorted_1_out_g1([]_0)
sorted_1_in_g1(._22(X, []_0)) -> sorted_1_out_g1(._22(X, []_0))
sorted_1_in_g1(._22(X, ._22(Y, Z))) -> if_sorted_1_in_1_g4(X, Y, Z, le_2_in_aa2(X, Y))
le_2_in_aa2(s_11(X), s_11(Y)) -> if_le_2_in_1_aa3(X, Y, le_2_in_aa2(X, Y))
le_2_in_aa2(0_0, s_11(X)) -> le_2_out_aa2(0_0, s_11(X))
le_2_in_aa2(0_0, 0_0) -> le_2_out_aa2(0_0, 0_0)
if_le_2_in_1_aa3(X, Y, le_2_out_aa2(X, Y)) -> le_2_out_aa2(s_11(X), s_11(Y))
if_sorted_1_in_1_g4(X, Y, Z, le_2_out_aa2(X, Y)) -> if_sorted_1_in_2_g4(X, Y, Z, sorted_1_in_g1(._22(Y, Z)))
if_sorted_1_in_2_g4(X, Y, Z, sorted_1_out_g1(._22(Y, Z))) -> sorted_1_out_g1(._22(X, ._22(Y, Z)))
if_sort_2_in_2_ag3(X, Y, sorted_1_out_g1(Y)) -> sort_2_out_ag2(X, Y)

The argument filtering Pi contains the following mapping:
sort_2_in_ag2(x1, x2)  =  sort_2_in_ag1(x2)
[]_0  =  []_0
._22(x1, x2)  =  ._2
s_11(x1)  =  s_1
0_0  =  0_0
if_sort_2_in_1_ag3(x1, x2, x3)  =  if_sort_2_in_1_ag2(x2, x3)
perm_2_in_ag2(x1, x2)  =  perm_2_in_ag1(x2)
perm_2_out_ag2(x1, x2)  =  perm_2_out_ag2(x1, x2)
if_perm_2_in_1_ag5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_ag1(x5)
delete_3_in_aga3(x1, x2, x3)  =  delete_3_in_aga1(x2)
delete_3_out_aga3(x1, x2, x3)  =  delete_3_out_aga1(x2)
if_delete_3_in_1_aga5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aga1(x5)
delete_3_in_aaa3(x1, x2, x3)  =  delete_3_in_aaa
delete_3_out_aaa3(x1, x2, x3)  =  delete_3_out_aaa1(x2)
if_delete_3_in_1_aaa5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aaa1(x5)
if_perm_2_in_2_ag6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_ag1(x6)
perm_2_in_aa2(x1, x2)  =  perm_2_in_aa
perm_2_out_aa2(x1, x2)  =  perm_2_out_aa2(x1, x2)
if_perm_2_in_1_aa5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_aa1(x5)
if_perm_2_in_2_aa6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_aa1(x6)
if_sort_2_in_2_ag3(x1, x2, x3)  =  if_sort_2_in_2_ag3(x1, x2, x3)
sorted_1_in_g1(x1)  =  sorted_1_in_g1(x1)
sorted_1_out_g1(x1)  =  sorted_1_out_g1(x1)
if_sorted_1_in_1_g4(x1, x2, x3, x4)  =  if_sorted_1_in_1_g1(x4)
le_2_in_aa2(x1, x2)  =  le_2_in_aa
if_le_2_in_1_aa3(x1, x2, x3)  =  if_le_2_in_1_aa1(x3)
le_2_out_aa2(x1, x2)  =  le_2_out_aa2(x1, x2)
if_sorted_1_in_2_g4(x1, x2, x3, x4)  =  if_sorted_1_in_2_g1(x4)
sort_2_out_ag2(x1, x2)  =  sort_2_out_ag2(x1, x2)
IF_DELETE_3_IN_1_AAA5(x1, x2, x3, x4, x5)  =  IF_DELETE_3_IN_1_AAA1(x5)
IF_SORTED_1_IN_2_G4(x1, x2, x3, x4)  =  IF_SORTED_1_IN_2_G1(x4)
IF_SORT_2_IN_2_AG3(x1, x2, x3)  =  IF_SORT_2_IN_2_AG3(x1, x2, x3)
IF_SORT_2_IN_1_AG3(x1, x2, x3)  =  IF_SORT_2_IN_1_AG2(x2, x3)
PERM_2_IN_AG2(x1, x2)  =  PERM_2_IN_AG1(x2)
IF_DELETE_3_IN_1_AGA5(x1, x2, x3, x4, x5)  =  IF_DELETE_3_IN_1_AGA1(x5)
IF_PERM_2_IN_2_AA6(x1, x2, x3, x4, x5, x6)  =  IF_PERM_2_IN_2_AA1(x6)
PERM_2_IN_AA2(x1, x2)  =  PERM_2_IN_AA
SORTED_1_IN_G1(x1)  =  SORTED_1_IN_G1(x1)
SORT_2_IN_AG2(x1, x2)  =  SORT_2_IN_AG1(x2)
LE_2_IN_AA2(x1, x2)  =  LE_2_IN_AA
IF_LE_2_IN_1_AA3(x1, x2, x3)  =  IF_LE_2_IN_1_AA1(x3)
DELETE_3_IN_AGA3(x1, x2, x3)  =  DELETE_3_IN_AGA1(x2)
IF_PERM_2_IN_1_AG5(x1, x2, x3, x4, x5)  =  IF_PERM_2_IN_1_AG1(x5)
IF_PERM_2_IN_2_AG6(x1, x2, x3, x4, x5, x6)  =  IF_PERM_2_IN_2_AG1(x6)
IF_SORTED_1_IN_1_G4(x1, x2, x3, x4)  =  IF_SORTED_1_IN_1_G1(x4)
DELETE_3_IN_AAA3(x1, x2, x3)  =  DELETE_3_IN_AAA
IF_PERM_2_IN_1_AA5(x1, x2, x3, x4, x5)  =  IF_PERM_2_IN_1_AA1(x5)

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

↳ PROLOG
  ↳ PrologToPiTRSProof
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
PiDP
          ↳ DependencyGraphProof

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

SORT_2_IN_AG2(X, Y) -> IF_SORT_2_IN_1_AG3(X, Y, perm_2_in_ag2(X, Y))
SORT_2_IN_AG2(X, Y) -> PERM_2_IN_AG2(X, Y)
PERM_2_IN_AG2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> IF_PERM_2_IN_1_AG5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
PERM_2_IN_AG2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> DELETE_3_IN_AGA3(U, ._22(X, Y), Z)
DELETE_3_IN_AGA3(X, ._22(Y, Z), W) -> IF_DELETE_3_IN_1_AGA5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
DELETE_3_IN_AGA3(X, ._22(Y, Z), W) -> DELETE_3_IN_AAA3(X, Z, W)
DELETE_3_IN_AAA3(X, ._22(Y, Z), W) -> IF_DELETE_3_IN_1_AAA5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
DELETE_3_IN_AAA3(X, ._22(Y, Z), W) -> DELETE_3_IN_AAA3(X, Z, W)
IF_PERM_2_IN_1_AG5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> IF_PERM_2_IN_2_AG6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
IF_PERM_2_IN_1_AG5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> PERM_2_IN_AA2(Z, V)
PERM_2_IN_AA2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> IF_PERM_2_IN_1_AA5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
PERM_2_IN_AA2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> DELETE_3_IN_AGA3(U, ._22(X, Y), Z)
IF_PERM_2_IN_1_AA5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> IF_PERM_2_IN_2_AA6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
IF_PERM_2_IN_1_AA5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> PERM_2_IN_AA2(Z, V)
IF_SORT_2_IN_1_AG3(X, Y, perm_2_out_ag2(X, Y)) -> IF_SORT_2_IN_2_AG3(X, Y, sorted_1_in_g1(Y))
IF_SORT_2_IN_1_AG3(X, Y, perm_2_out_ag2(X, Y)) -> SORTED_1_IN_G1(Y)
SORTED_1_IN_G1(._22(X, ._22(Y, Z))) -> IF_SORTED_1_IN_1_G4(X, Y, Z, le_2_in_aa2(X, Y))
SORTED_1_IN_G1(._22(X, ._22(Y, Z))) -> LE_2_IN_AA2(X, Y)
LE_2_IN_AA2(s_11(X), s_11(Y)) -> IF_LE_2_IN_1_AA3(X, Y, le_2_in_aa2(X, Y))
LE_2_IN_AA2(s_11(X), s_11(Y)) -> LE_2_IN_AA2(X, Y)
IF_SORTED_1_IN_1_G4(X, Y, Z, le_2_out_aa2(X, Y)) -> IF_SORTED_1_IN_2_G4(X, Y, Z, sorted_1_in_g1(._22(Y, Z)))
IF_SORTED_1_IN_1_G4(X, Y, Z, le_2_out_aa2(X, Y)) -> SORTED_1_IN_G1(._22(Y, Z))

The TRS R consists of the following rules:

sort_2_in_ag2(X, Y) -> if_sort_2_in_1_ag3(X, Y, perm_2_in_ag2(X, Y))
perm_2_in_ag2([]_0, []_0) -> perm_2_out_ag2([]_0, []_0)
perm_2_in_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_ag5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
delete_3_in_aaa3(X, ._22(X, Y), Y) -> delete_3_out_aaa3(X, ._22(X, Y), Y)
delete_3_in_aaa3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aaa3(X, ._22(Y, Z), W)
if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aga3(X, ._22(Y, Z), W)
if_perm_2_in_1_ag5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
perm_2_in_aa2([]_0, []_0) -> perm_2_out_aa2([]_0, []_0)
perm_2_in_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_aa5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
if_perm_2_in_1_aa5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_sort_2_in_1_ag3(X, Y, perm_2_out_ag2(X, Y)) -> if_sort_2_in_2_ag3(X, Y, sorted_1_in_g1(Y))
sorted_1_in_g1([]_0) -> sorted_1_out_g1([]_0)
sorted_1_in_g1(._22(X, []_0)) -> sorted_1_out_g1(._22(X, []_0))
sorted_1_in_g1(._22(X, ._22(Y, Z))) -> if_sorted_1_in_1_g4(X, Y, Z, le_2_in_aa2(X, Y))
le_2_in_aa2(s_11(X), s_11(Y)) -> if_le_2_in_1_aa3(X, Y, le_2_in_aa2(X, Y))
le_2_in_aa2(0_0, s_11(X)) -> le_2_out_aa2(0_0, s_11(X))
le_2_in_aa2(0_0, 0_0) -> le_2_out_aa2(0_0, 0_0)
if_le_2_in_1_aa3(X, Y, le_2_out_aa2(X, Y)) -> le_2_out_aa2(s_11(X), s_11(Y))
if_sorted_1_in_1_g4(X, Y, Z, le_2_out_aa2(X, Y)) -> if_sorted_1_in_2_g4(X, Y, Z, sorted_1_in_g1(._22(Y, Z)))
if_sorted_1_in_2_g4(X, Y, Z, sorted_1_out_g1(._22(Y, Z))) -> sorted_1_out_g1(._22(X, ._22(Y, Z)))
if_sort_2_in_2_ag3(X, Y, sorted_1_out_g1(Y)) -> sort_2_out_ag2(X, Y)

The argument filtering Pi contains the following mapping:
sort_2_in_ag2(x1, x2)  =  sort_2_in_ag1(x2)
[]_0  =  []_0
._22(x1, x2)  =  ._2
s_11(x1)  =  s_1
0_0  =  0_0
if_sort_2_in_1_ag3(x1, x2, x3)  =  if_sort_2_in_1_ag2(x2, x3)
perm_2_in_ag2(x1, x2)  =  perm_2_in_ag1(x2)
perm_2_out_ag2(x1, x2)  =  perm_2_out_ag2(x1, x2)
if_perm_2_in_1_ag5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_ag1(x5)
delete_3_in_aga3(x1, x2, x3)  =  delete_3_in_aga1(x2)
delete_3_out_aga3(x1, x2, x3)  =  delete_3_out_aga1(x2)
if_delete_3_in_1_aga5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aga1(x5)
delete_3_in_aaa3(x1, x2, x3)  =  delete_3_in_aaa
delete_3_out_aaa3(x1, x2, x3)  =  delete_3_out_aaa1(x2)
if_delete_3_in_1_aaa5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aaa1(x5)
if_perm_2_in_2_ag6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_ag1(x6)
perm_2_in_aa2(x1, x2)  =  perm_2_in_aa
perm_2_out_aa2(x1, x2)  =  perm_2_out_aa2(x1, x2)
if_perm_2_in_1_aa5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_aa1(x5)
if_perm_2_in_2_aa6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_aa1(x6)
if_sort_2_in_2_ag3(x1, x2, x3)  =  if_sort_2_in_2_ag3(x1, x2, x3)
sorted_1_in_g1(x1)  =  sorted_1_in_g1(x1)
sorted_1_out_g1(x1)  =  sorted_1_out_g1(x1)
if_sorted_1_in_1_g4(x1, x2, x3, x4)  =  if_sorted_1_in_1_g1(x4)
le_2_in_aa2(x1, x2)  =  le_2_in_aa
if_le_2_in_1_aa3(x1, x2, x3)  =  if_le_2_in_1_aa1(x3)
le_2_out_aa2(x1, x2)  =  le_2_out_aa2(x1, x2)
if_sorted_1_in_2_g4(x1, x2, x3, x4)  =  if_sorted_1_in_2_g1(x4)
sort_2_out_ag2(x1, x2)  =  sort_2_out_ag2(x1, x2)
IF_DELETE_3_IN_1_AAA5(x1, x2, x3, x4, x5)  =  IF_DELETE_3_IN_1_AAA1(x5)
IF_SORTED_1_IN_2_G4(x1, x2, x3, x4)  =  IF_SORTED_1_IN_2_G1(x4)
IF_SORT_2_IN_2_AG3(x1, x2, x3)  =  IF_SORT_2_IN_2_AG3(x1, x2, x3)
IF_SORT_2_IN_1_AG3(x1, x2, x3)  =  IF_SORT_2_IN_1_AG2(x2, x3)
PERM_2_IN_AG2(x1, x2)  =  PERM_2_IN_AG1(x2)
IF_DELETE_3_IN_1_AGA5(x1, x2, x3, x4, x5)  =  IF_DELETE_3_IN_1_AGA1(x5)
IF_PERM_2_IN_2_AA6(x1, x2, x3, x4, x5, x6)  =  IF_PERM_2_IN_2_AA1(x6)
PERM_2_IN_AA2(x1, x2)  =  PERM_2_IN_AA
SORTED_1_IN_G1(x1)  =  SORTED_1_IN_G1(x1)
SORT_2_IN_AG2(x1, x2)  =  SORT_2_IN_AG1(x2)
LE_2_IN_AA2(x1, x2)  =  LE_2_IN_AA
IF_LE_2_IN_1_AA3(x1, x2, x3)  =  IF_LE_2_IN_1_AA1(x3)
DELETE_3_IN_AGA3(x1, x2, x3)  =  DELETE_3_IN_AGA1(x2)
IF_PERM_2_IN_1_AG5(x1, x2, x3, x4, x5)  =  IF_PERM_2_IN_1_AG1(x5)
IF_PERM_2_IN_2_AG6(x1, x2, x3, x4, x5, x6)  =  IF_PERM_2_IN_2_AG1(x6)
IF_SORTED_1_IN_1_G4(x1, x2, x3, x4)  =  IF_SORTED_1_IN_1_G1(x4)
DELETE_3_IN_AAA3(x1, x2, x3)  =  DELETE_3_IN_AAA
IF_PERM_2_IN_1_AA5(x1, x2, x3, x4, x5)  =  IF_PERM_2_IN_1_AA1(x5)

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

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

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

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

The TRS R consists of the following rules:

sort_2_in_ag2(X, Y) -> if_sort_2_in_1_ag3(X, Y, perm_2_in_ag2(X, Y))
perm_2_in_ag2([]_0, []_0) -> perm_2_out_ag2([]_0, []_0)
perm_2_in_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_ag5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
delete_3_in_aaa3(X, ._22(X, Y), Y) -> delete_3_out_aaa3(X, ._22(X, Y), Y)
delete_3_in_aaa3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aaa3(X, ._22(Y, Z), W)
if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aga3(X, ._22(Y, Z), W)
if_perm_2_in_1_ag5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
perm_2_in_aa2([]_0, []_0) -> perm_2_out_aa2([]_0, []_0)
perm_2_in_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_aa5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
if_perm_2_in_1_aa5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_sort_2_in_1_ag3(X, Y, perm_2_out_ag2(X, Y)) -> if_sort_2_in_2_ag3(X, Y, sorted_1_in_g1(Y))
sorted_1_in_g1([]_0) -> sorted_1_out_g1([]_0)
sorted_1_in_g1(._22(X, []_0)) -> sorted_1_out_g1(._22(X, []_0))
sorted_1_in_g1(._22(X, ._22(Y, Z))) -> if_sorted_1_in_1_g4(X, Y, Z, le_2_in_aa2(X, Y))
le_2_in_aa2(s_11(X), s_11(Y)) -> if_le_2_in_1_aa3(X, Y, le_2_in_aa2(X, Y))
le_2_in_aa2(0_0, s_11(X)) -> le_2_out_aa2(0_0, s_11(X))
le_2_in_aa2(0_0, 0_0) -> le_2_out_aa2(0_0, 0_0)
if_le_2_in_1_aa3(X, Y, le_2_out_aa2(X, Y)) -> le_2_out_aa2(s_11(X), s_11(Y))
if_sorted_1_in_1_g4(X, Y, Z, le_2_out_aa2(X, Y)) -> if_sorted_1_in_2_g4(X, Y, Z, sorted_1_in_g1(._22(Y, Z)))
if_sorted_1_in_2_g4(X, Y, Z, sorted_1_out_g1(._22(Y, Z))) -> sorted_1_out_g1(._22(X, ._22(Y, Z)))
if_sort_2_in_2_ag3(X, Y, sorted_1_out_g1(Y)) -> sort_2_out_ag2(X, Y)

The argument filtering Pi contains the following mapping:
sort_2_in_ag2(x1, x2)  =  sort_2_in_ag1(x2)
[]_0  =  []_0
._22(x1, x2)  =  ._2
s_11(x1)  =  s_1
0_0  =  0_0
if_sort_2_in_1_ag3(x1, x2, x3)  =  if_sort_2_in_1_ag2(x2, x3)
perm_2_in_ag2(x1, x2)  =  perm_2_in_ag1(x2)
perm_2_out_ag2(x1, x2)  =  perm_2_out_ag2(x1, x2)
if_perm_2_in_1_ag5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_ag1(x5)
delete_3_in_aga3(x1, x2, x3)  =  delete_3_in_aga1(x2)
delete_3_out_aga3(x1, x2, x3)  =  delete_3_out_aga1(x2)
if_delete_3_in_1_aga5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aga1(x5)
delete_3_in_aaa3(x1, x2, x3)  =  delete_3_in_aaa
delete_3_out_aaa3(x1, x2, x3)  =  delete_3_out_aaa1(x2)
if_delete_3_in_1_aaa5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aaa1(x5)
if_perm_2_in_2_ag6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_ag1(x6)
perm_2_in_aa2(x1, x2)  =  perm_2_in_aa
perm_2_out_aa2(x1, x2)  =  perm_2_out_aa2(x1, x2)
if_perm_2_in_1_aa5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_aa1(x5)
if_perm_2_in_2_aa6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_aa1(x6)
if_sort_2_in_2_ag3(x1, x2, x3)  =  if_sort_2_in_2_ag3(x1, x2, x3)
sorted_1_in_g1(x1)  =  sorted_1_in_g1(x1)
sorted_1_out_g1(x1)  =  sorted_1_out_g1(x1)
if_sorted_1_in_1_g4(x1, x2, x3, x4)  =  if_sorted_1_in_1_g1(x4)
le_2_in_aa2(x1, x2)  =  le_2_in_aa
if_le_2_in_1_aa3(x1, x2, x3)  =  if_le_2_in_1_aa1(x3)
le_2_out_aa2(x1, x2)  =  le_2_out_aa2(x1, x2)
if_sorted_1_in_2_g4(x1, x2, x3, x4)  =  if_sorted_1_in_2_g1(x4)
sort_2_out_ag2(x1, x2)  =  sort_2_out_ag2(x1, x2)
LE_2_IN_AA2(x1, x2)  =  LE_2_IN_AA

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

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

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

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

R is empty.
The argument filtering Pi contains the following mapping:
s_11(x1)  =  s_1
LE_2_IN_AA2(x1, x2)  =  LE_2_IN_AA

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
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
                ↳ UsableRulesProof
                  ↳ PiDP
                    ↳ PiDPToQDPProof
QDP
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP

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

LE_2_IN_AA -> LE_2_IN_AA

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_AA}.

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

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

IF_SORTED_1_IN_1_G4(X, Y, Z, le_2_out_aa2(X, Y)) -> SORTED_1_IN_G1(._22(Y, Z))
SORTED_1_IN_G1(._22(X, ._22(Y, Z))) -> IF_SORTED_1_IN_1_G4(X, Y, Z, le_2_in_aa2(X, Y))

The TRS R consists of the following rules:

sort_2_in_ag2(X, Y) -> if_sort_2_in_1_ag3(X, Y, perm_2_in_ag2(X, Y))
perm_2_in_ag2([]_0, []_0) -> perm_2_out_ag2([]_0, []_0)
perm_2_in_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_ag5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
delete_3_in_aaa3(X, ._22(X, Y), Y) -> delete_3_out_aaa3(X, ._22(X, Y), Y)
delete_3_in_aaa3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aaa3(X, ._22(Y, Z), W)
if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aga3(X, ._22(Y, Z), W)
if_perm_2_in_1_ag5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
perm_2_in_aa2([]_0, []_0) -> perm_2_out_aa2([]_0, []_0)
perm_2_in_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_aa5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
if_perm_2_in_1_aa5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_sort_2_in_1_ag3(X, Y, perm_2_out_ag2(X, Y)) -> if_sort_2_in_2_ag3(X, Y, sorted_1_in_g1(Y))
sorted_1_in_g1([]_0) -> sorted_1_out_g1([]_0)
sorted_1_in_g1(._22(X, []_0)) -> sorted_1_out_g1(._22(X, []_0))
sorted_1_in_g1(._22(X, ._22(Y, Z))) -> if_sorted_1_in_1_g4(X, Y, Z, le_2_in_aa2(X, Y))
le_2_in_aa2(s_11(X), s_11(Y)) -> if_le_2_in_1_aa3(X, Y, le_2_in_aa2(X, Y))
le_2_in_aa2(0_0, s_11(X)) -> le_2_out_aa2(0_0, s_11(X))
le_2_in_aa2(0_0, 0_0) -> le_2_out_aa2(0_0, 0_0)
if_le_2_in_1_aa3(X, Y, le_2_out_aa2(X, Y)) -> le_2_out_aa2(s_11(X), s_11(Y))
if_sorted_1_in_1_g4(X, Y, Z, le_2_out_aa2(X, Y)) -> if_sorted_1_in_2_g4(X, Y, Z, sorted_1_in_g1(._22(Y, Z)))
if_sorted_1_in_2_g4(X, Y, Z, sorted_1_out_g1(._22(Y, Z))) -> sorted_1_out_g1(._22(X, ._22(Y, Z)))
if_sort_2_in_2_ag3(X, Y, sorted_1_out_g1(Y)) -> sort_2_out_ag2(X, Y)

The argument filtering Pi contains the following mapping:
sort_2_in_ag2(x1, x2)  =  sort_2_in_ag1(x2)
[]_0  =  []_0
._22(x1, x2)  =  ._2
s_11(x1)  =  s_1
0_0  =  0_0
if_sort_2_in_1_ag3(x1, x2, x3)  =  if_sort_2_in_1_ag2(x2, x3)
perm_2_in_ag2(x1, x2)  =  perm_2_in_ag1(x2)
perm_2_out_ag2(x1, x2)  =  perm_2_out_ag2(x1, x2)
if_perm_2_in_1_ag5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_ag1(x5)
delete_3_in_aga3(x1, x2, x3)  =  delete_3_in_aga1(x2)
delete_3_out_aga3(x1, x2, x3)  =  delete_3_out_aga1(x2)
if_delete_3_in_1_aga5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aga1(x5)
delete_3_in_aaa3(x1, x2, x3)  =  delete_3_in_aaa
delete_3_out_aaa3(x1, x2, x3)  =  delete_3_out_aaa1(x2)
if_delete_3_in_1_aaa5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aaa1(x5)
if_perm_2_in_2_ag6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_ag1(x6)
perm_2_in_aa2(x1, x2)  =  perm_2_in_aa
perm_2_out_aa2(x1, x2)  =  perm_2_out_aa2(x1, x2)
if_perm_2_in_1_aa5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_aa1(x5)
if_perm_2_in_2_aa6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_aa1(x6)
if_sort_2_in_2_ag3(x1, x2, x3)  =  if_sort_2_in_2_ag3(x1, x2, x3)
sorted_1_in_g1(x1)  =  sorted_1_in_g1(x1)
sorted_1_out_g1(x1)  =  sorted_1_out_g1(x1)
if_sorted_1_in_1_g4(x1, x2, x3, x4)  =  if_sorted_1_in_1_g1(x4)
le_2_in_aa2(x1, x2)  =  le_2_in_aa
if_le_2_in_1_aa3(x1, x2, x3)  =  if_le_2_in_1_aa1(x3)
le_2_out_aa2(x1, x2)  =  le_2_out_aa2(x1, x2)
if_sorted_1_in_2_g4(x1, x2, x3, x4)  =  if_sorted_1_in_2_g1(x4)
sort_2_out_ag2(x1, x2)  =  sort_2_out_ag2(x1, x2)
SORTED_1_IN_G1(x1)  =  SORTED_1_IN_G1(x1)
IF_SORTED_1_IN_1_G4(x1, x2, x3, x4)  =  IF_SORTED_1_IN_1_G1(x4)

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

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

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

IF_SORTED_1_IN_1_G4(X, Y, Z, le_2_out_aa2(X, Y)) -> SORTED_1_IN_G1(._22(Y, Z))
SORTED_1_IN_G1(._22(X, ._22(Y, Z))) -> IF_SORTED_1_IN_1_G4(X, Y, Z, le_2_in_aa2(X, Y))

The TRS R consists of the following rules:

le_2_in_aa2(s_11(X), s_11(Y)) -> if_le_2_in_1_aa3(X, Y, le_2_in_aa2(X, Y))
le_2_in_aa2(0_0, s_11(X)) -> le_2_out_aa2(0_0, s_11(X))
le_2_in_aa2(0_0, 0_0) -> le_2_out_aa2(0_0, 0_0)
if_le_2_in_1_aa3(X, Y, le_2_out_aa2(X, Y)) -> le_2_out_aa2(s_11(X), s_11(Y))

The argument filtering Pi contains the following mapping:
._22(x1, x2)  =  ._2
s_11(x1)  =  s_1
0_0  =  0_0
le_2_in_aa2(x1, x2)  =  le_2_in_aa
if_le_2_in_1_aa3(x1, x2, x3)  =  if_le_2_in_1_aa1(x3)
le_2_out_aa2(x1, x2)  =  le_2_out_aa2(x1, x2)
SORTED_1_IN_G1(x1)  =  SORTED_1_IN_G1(x1)
IF_SORTED_1_IN_1_G4(x1, x2, x3, x4)  =  IF_SORTED_1_IN_1_G1(x4)

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
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
              ↳ PiDP
                ↳ UsableRulesProof
                  ↳ PiDP
                    ↳ PiDPToQDPProof
QDP
              ↳ PiDP
              ↳ PiDP

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

IF_SORTED_1_IN_1_G1(le_2_out_aa2(X, Y)) -> SORTED_1_IN_G1(._2)
SORTED_1_IN_G1(._2) -> IF_SORTED_1_IN_1_G1(le_2_in_aa)

The TRS R consists of the following rules:

le_2_in_aa -> if_le_2_in_1_aa1(le_2_in_aa)
le_2_in_aa -> le_2_out_aa2(0_0, s_1)
le_2_in_aa -> le_2_out_aa2(0_0, 0_0)
if_le_2_in_1_aa1(le_2_out_aa2(X, Y)) -> le_2_out_aa2(s_1, s_1)

The set Q consists of the following terms:

le_2_in_aa
if_le_2_in_1_aa1(x0)

We have to consider all (P,Q,R)-chains.
The head symbols of this DP problem are {SORTED_1_IN_G1, IF_SORTED_1_IN_1_G1}.

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

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

DELETE_3_IN_AAA3(X, ._22(Y, Z), W) -> DELETE_3_IN_AAA3(X, Z, W)

The TRS R consists of the following rules:

sort_2_in_ag2(X, Y) -> if_sort_2_in_1_ag3(X, Y, perm_2_in_ag2(X, Y))
perm_2_in_ag2([]_0, []_0) -> perm_2_out_ag2([]_0, []_0)
perm_2_in_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_ag5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
delete_3_in_aaa3(X, ._22(X, Y), Y) -> delete_3_out_aaa3(X, ._22(X, Y), Y)
delete_3_in_aaa3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aaa3(X, ._22(Y, Z), W)
if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aga3(X, ._22(Y, Z), W)
if_perm_2_in_1_ag5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
perm_2_in_aa2([]_0, []_0) -> perm_2_out_aa2([]_0, []_0)
perm_2_in_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_aa5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
if_perm_2_in_1_aa5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_sort_2_in_1_ag3(X, Y, perm_2_out_ag2(X, Y)) -> if_sort_2_in_2_ag3(X, Y, sorted_1_in_g1(Y))
sorted_1_in_g1([]_0) -> sorted_1_out_g1([]_0)
sorted_1_in_g1(._22(X, []_0)) -> sorted_1_out_g1(._22(X, []_0))
sorted_1_in_g1(._22(X, ._22(Y, Z))) -> if_sorted_1_in_1_g4(X, Y, Z, le_2_in_aa2(X, Y))
le_2_in_aa2(s_11(X), s_11(Y)) -> if_le_2_in_1_aa3(X, Y, le_2_in_aa2(X, Y))
le_2_in_aa2(0_0, s_11(X)) -> le_2_out_aa2(0_0, s_11(X))
le_2_in_aa2(0_0, 0_0) -> le_2_out_aa2(0_0, 0_0)
if_le_2_in_1_aa3(X, Y, le_2_out_aa2(X, Y)) -> le_2_out_aa2(s_11(X), s_11(Y))
if_sorted_1_in_1_g4(X, Y, Z, le_2_out_aa2(X, Y)) -> if_sorted_1_in_2_g4(X, Y, Z, sorted_1_in_g1(._22(Y, Z)))
if_sorted_1_in_2_g4(X, Y, Z, sorted_1_out_g1(._22(Y, Z))) -> sorted_1_out_g1(._22(X, ._22(Y, Z)))
if_sort_2_in_2_ag3(X, Y, sorted_1_out_g1(Y)) -> sort_2_out_ag2(X, Y)

The argument filtering Pi contains the following mapping:
sort_2_in_ag2(x1, x2)  =  sort_2_in_ag1(x2)
[]_0  =  []_0
._22(x1, x2)  =  ._2
s_11(x1)  =  s_1
0_0  =  0_0
if_sort_2_in_1_ag3(x1, x2, x3)  =  if_sort_2_in_1_ag2(x2, x3)
perm_2_in_ag2(x1, x2)  =  perm_2_in_ag1(x2)
perm_2_out_ag2(x1, x2)  =  perm_2_out_ag2(x1, x2)
if_perm_2_in_1_ag5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_ag1(x5)
delete_3_in_aga3(x1, x2, x3)  =  delete_3_in_aga1(x2)
delete_3_out_aga3(x1, x2, x3)  =  delete_3_out_aga1(x2)
if_delete_3_in_1_aga5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aga1(x5)
delete_3_in_aaa3(x1, x2, x3)  =  delete_3_in_aaa
delete_3_out_aaa3(x1, x2, x3)  =  delete_3_out_aaa1(x2)
if_delete_3_in_1_aaa5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aaa1(x5)
if_perm_2_in_2_ag6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_ag1(x6)
perm_2_in_aa2(x1, x2)  =  perm_2_in_aa
perm_2_out_aa2(x1, x2)  =  perm_2_out_aa2(x1, x2)
if_perm_2_in_1_aa5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_aa1(x5)
if_perm_2_in_2_aa6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_aa1(x6)
if_sort_2_in_2_ag3(x1, x2, x3)  =  if_sort_2_in_2_ag3(x1, x2, x3)
sorted_1_in_g1(x1)  =  sorted_1_in_g1(x1)
sorted_1_out_g1(x1)  =  sorted_1_out_g1(x1)
if_sorted_1_in_1_g4(x1, x2, x3, x4)  =  if_sorted_1_in_1_g1(x4)
le_2_in_aa2(x1, x2)  =  le_2_in_aa
if_le_2_in_1_aa3(x1, x2, x3)  =  if_le_2_in_1_aa1(x3)
le_2_out_aa2(x1, x2)  =  le_2_out_aa2(x1, x2)
if_sorted_1_in_2_g4(x1, x2, x3, x4)  =  if_sorted_1_in_2_g1(x4)
sort_2_out_ag2(x1, x2)  =  sort_2_out_ag2(x1, x2)
DELETE_3_IN_AAA3(x1, x2, x3)  =  DELETE_3_IN_AAA

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

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

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

DELETE_3_IN_AAA3(X, ._22(Y, Z), W) -> DELETE_3_IN_AAA3(X, Z, W)

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

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
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP
                ↳ UsableRulesProof
                  ↳ PiDP
                    ↳ PiDPToQDPProof
QDP
              ↳ PiDP

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

DELETE_3_IN_AAA -> DELETE_3_IN_AAA

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.
The head symbols of this DP problem are {DELETE_3_IN_AAA}.

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

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

IF_PERM_2_IN_1_AA5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> PERM_2_IN_AA2(Z, V)
PERM_2_IN_AA2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> IF_PERM_2_IN_1_AA5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))

The TRS R consists of the following rules:

sort_2_in_ag2(X, Y) -> if_sort_2_in_1_ag3(X, Y, perm_2_in_ag2(X, Y))
perm_2_in_ag2([]_0, []_0) -> perm_2_out_ag2([]_0, []_0)
perm_2_in_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_ag5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
delete_3_in_aaa3(X, ._22(X, Y), Y) -> delete_3_out_aaa3(X, ._22(X, Y), Y)
delete_3_in_aaa3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aaa3(X, ._22(Y, Z), W)
if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aga3(X, ._22(Y, Z), W)
if_perm_2_in_1_ag5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
perm_2_in_aa2([]_0, []_0) -> perm_2_out_aa2([]_0, []_0)
perm_2_in_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> if_perm_2_in_1_aa5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))
if_perm_2_in_1_aa5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_in_aa2(Z, V))
if_perm_2_in_2_aa6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_aa2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_perm_2_in_2_ag6(X, Y, U, V, Z, perm_2_out_aa2(Z, V)) -> perm_2_out_ag2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0)))
if_sort_2_in_1_ag3(X, Y, perm_2_out_ag2(X, Y)) -> if_sort_2_in_2_ag3(X, Y, sorted_1_in_g1(Y))
sorted_1_in_g1([]_0) -> sorted_1_out_g1([]_0)
sorted_1_in_g1(._22(X, []_0)) -> sorted_1_out_g1(._22(X, []_0))
sorted_1_in_g1(._22(X, ._22(Y, Z))) -> if_sorted_1_in_1_g4(X, Y, Z, le_2_in_aa2(X, Y))
le_2_in_aa2(s_11(X), s_11(Y)) -> if_le_2_in_1_aa3(X, Y, le_2_in_aa2(X, Y))
le_2_in_aa2(0_0, s_11(X)) -> le_2_out_aa2(0_0, s_11(X))
le_2_in_aa2(0_0, 0_0) -> le_2_out_aa2(0_0, 0_0)
if_le_2_in_1_aa3(X, Y, le_2_out_aa2(X, Y)) -> le_2_out_aa2(s_11(X), s_11(Y))
if_sorted_1_in_1_g4(X, Y, Z, le_2_out_aa2(X, Y)) -> if_sorted_1_in_2_g4(X, Y, Z, sorted_1_in_g1(._22(Y, Z)))
if_sorted_1_in_2_g4(X, Y, Z, sorted_1_out_g1(._22(Y, Z))) -> sorted_1_out_g1(._22(X, ._22(Y, Z)))
if_sort_2_in_2_ag3(X, Y, sorted_1_out_g1(Y)) -> sort_2_out_ag2(X, Y)

The argument filtering Pi contains the following mapping:
sort_2_in_ag2(x1, x2)  =  sort_2_in_ag1(x2)
[]_0  =  []_0
._22(x1, x2)  =  ._2
s_11(x1)  =  s_1
0_0  =  0_0
if_sort_2_in_1_ag3(x1, x2, x3)  =  if_sort_2_in_1_ag2(x2, x3)
perm_2_in_ag2(x1, x2)  =  perm_2_in_ag1(x2)
perm_2_out_ag2(x1, x2)  =  perm_2_out_ag2(x1, x2)
if_perm_2_in_1_ag5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_ag1(x5)
delete_3_in_aga3(x1, x2, x3)  =  delete_3_in_aga1(x2)
delete_3_out_aga3(x1, x2, x3)  =  delete_3_out_aga1(x2)
if_delete_3_in_1_aga5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aga1(x5)
delete_3_in_aaa3(x1, x2, x3)  =  delete_3_in_aaa
delete_3_out_aaa3(x1, x2, x3)  =  delete_3_out_aaa1(x2)
if_delete_3_in_1_aaa5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aaa1(x5)
if_perm_2_in_2_ag6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_ag1(x6)
perm_2_in_aa2(x1, x2)  =  perm_2_in_aa
perm_2_out_aa2(x1, x2)  =  perm_2_out_aa2(x1, x2)
if_perm_2_in_1_aa5(x1, x2, x3, x4, x5)  =  if_perm_2_in_1_aa1(x5)
if_perm_2_in_2_aa6(x1, x2, x3, x4, x5, x6)  =  if_perm_2_in_2_aa1(x6)
if_sort_2_in_2_ag3(x1, x2, x3)  =  if_sort_2_in_2_ag3(x1, x2, x3)
sorted_1_in_g1(x1)  =  sorted_1_in_g1(x1)
sorted_1_out_g1(x1)  =  sorted_1_out_g1(x1)
if_sorted_1_in_1_g4(x1, x2, x3, x4)  =  if_sorted_1_in_1_g1(x4)
le_2_in_aa2(x1, x2)  =  le_2_in_aa
if_le_2_in_1_aa3(x1, x2, x3)  =  if_le_2_in_1_aa1(x3)
le_2_out_aa2(x1, x2)  =  le_2_out_aa2(x1, x2)
if_sorted_1_in_2_g4(x1, x2, x3, x4)  =  if_sorted_1_in_2_g1(x4)
sort_2_out_ag2(x1, x2)  =  sort_2_out_ag2(x1, x2)
PERM_2_IN_AA2(x1, x2)  =  PERM_2_IN_AA
IF_PERM_2_IN_1_AA5(x1, x2, x3, x4, x5)  =  IF_PERM_2_IN_1_AA1(x5)

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

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

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

IF_PERM_2_IN_1_AA5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), Z)) -> PERM_2_IN_AA2(Z, V)
PERM_2_IN_AA2(._22(X, ._22(Y, []_0)), ._22(U, ._22(V, []_0))) -> IF_PERM_2_IN_1_AA5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), Z))

The TRS R consists of the following rules:

delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
if_delete_3_in_1_aga5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aga3(X, ._22(Y, Z), W)
delete_3_in_aaa3(X, ._22(X, Y), Y) -> delete_3_out_aaa3(X, ._22(X, Y), Y)
delete_3_in_aaa3(X, ._22(Y, Z), W) -> if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_in_aaa3(X, Z, W))
if_delete_3_in_1_aaa5(X, Y, Z, W, delete_3_out_aaa3(X, Z, W)) -> delete_3_out_aaa3(X, ._22(Y, Z), W)

The argument filtering Pi contains the following mapping:
[]_0  =  []_0
._22(x1, x2)  =  ._2
delete_3_in_aga3(x1, x2, x3)  =  delete_3_in_aga1(x2)
delete_3_out_aga3(x1, x2, x3)  =  delete_3_out_aga1(x2)
if_delete_3_in_1_aga5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aga1(x5)
delete_3_in_aaa3(x1, x2, x3)  =  delete_3_in_aaa
delete_3_out_aaa3(x1, x2, x3)  =  delete_3_out_aaa1(x2)
if_delete_3_in_1_aaa5(x1, x2, x3, x4, x5)  =  if_delete_3_in_1_aaa1(x5)
PERM_2_IN_AA2(x1, x2)  =  PERM_2_IN_AA
IF_PERM_2_IN_1_AA5(x1, x2, x3, x4, x5)  =  IF_PERM_2_IN_1_AA1(x5)

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
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP
              ↳ PiDP
                ↳ UsableRulesProof
                  ↳ PiDP
                    ↳ PiDPToQDPProof
QDP

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

IF_PERM_2_IN_1_AA1(delete_3_out_aga1(._2)) -> PERM_2_IN_AA
PERM_2_IN_AA -> IF_PERM_2_IN_1_AA1(delete_3_in_aga1(._2))

The TRS R consists of the following rules:

delete_3_in_aga1(._2) -> delete_3_out_aga1(._2)
delete_3_in_aga1(._2) -> if_delete_3_in_1_aga1(delete_3_in_aaa)
if_delete_3_in_1_aga1(delete_3_out_aaa1(Z)) -> delete_3_out_aga1(._2)
delete_3_in_aaa -> delete_3_out_aaa1(._2)
delete_3_in_aaa -> if_delete_3_in_1_aaa1(delete_3_in_aaa)
if_delete_3_in_1_aaa1(delete_3_out_aaa1(Z)) -> delete_3_out_aaa1(._2)

The set Q consists of the following terms:

delete_3_in_aga1(x0)
if_delete_3_in_1_aga1(x0)
delete_3_in_aaa
if_delete_3_in_1_aaa1(x0)

We have to consider all (P,Q,R)-chains.
The head symbols of this DP problem are {PERM_2_IN_AA, IF_PERM_2_IN_1_AA1}.