(0) Obligation:

Clauses:

slowsort(X, Y) :- ','(perm(X, Y), sorted(Y)).
sorted([]).
sorted(.(X, [])).
sorted(.(X, .(Y, Z))) :- ','(le(X, Y), sorted(.(Y, Z))).
perm([], []).
perm(.(X, .(Y, [])), .(U, .(V, []))) :- ','(delete(U, .(X, Y), Z), perm(Z, V)).
delete(X, .(X, Y), Y).
delete(X, .(Y, Z), W) :- delete(X, Z, W).
le(s(X), s(Y)) :- le(X, Y).
le(0, s(X)).
le(0, 0).

Queries:

slowsort(a,g).

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph.

(2) Obligation:

Clauses:

delete26(T68, .(T68, T69), T69).
delete26(T76, .(T77, T79), X96) :- delete26(T76, T79, X96).
delete18(T39, T39, T40, T40).
delete18(T52, T53, T55, X65) :- delete26(T52, T55, X65).
perm35([], []).
perm35(.(T96, .(T97, [])), .(T94, .(T95, []))) :- delete18(T94, T96, T97, X118).
perm35(.(T96, .(T97, [])), .(T94, .(T95, []))) :- ','(delete18(T94, T96, T97, T102), perm35(T102, T95)).
le51(s(T132), s(T133)) :- le51(T132, T133).
le51(0, s(T140)).
le51(0, 0).
slowsort1([], []).
slowsort1(.(T20, .(T21, [])), .(T18, .(T19, []))) :- delete18(T18, T20, T21, X22).
slowsort1(.(T20, .(T21, [])), .(T18, .(T19, []))) :- ','(delete18(T18, T20, T21, T26), perm35(T26, T19)).
slowsort1(.(T20, .(T21, [])), .(T118, .(T119, []))) :- ','(delete18(T118, T20, T21, T26), ','(perm35(T26, T119), le51(T118, T119))).
slowsort1(.(T20, .(T21, [])), .(T118, .(T146, []))) :- ','(delete18(T118, T20, T21, T26), ','(perm35(T26, T146), le51(T118, T146))).

Queries:

slowsort1(a,g).

(3) PrologToPiTRSProof (SOUND transformation)

We use the technique of [LOPSTR]. With regard to the inferred argument filtering the predicates were used in the following modes:
slowsort1_in: (f,b)
delete18_in: (b,f,f,f)
delete26_in: (b,f,f)
perm35_in: (f,b)
le51_in: (b,b)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

slowsort1_in_ag([], []) → slowsort1_out_ag([], [])
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U7_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, X22))
delete18_in_gaaa(T39, T39, T40, T40) → delete18_out_gaaa(T39, T39, T40, T40)
delete18_in_gaaa(T52, T53, T55, X65) → U2_gaaa(T52, T53, T55, X65, delete26_in_gaa(T52, T55, X65))
delete26_in_gaa(T68, .(T68, T69), T69) → delete26_out_gaa(T68, .(T68, T69), T69)
delete26_in_gaa(T76, .(T77, T79), X96) → U1_gaa(T76, T77, T79, X96, delete26_in_gaa(T76, T79, X96))
U1_gaa(T76, T77, T79, X96, delete26_out_gaa(T76, T79, X96)) → delete26_out_gaa(T76, .(T77, T79), X96)
U2_gaaa(T52, T53, T55, X65, delete26_out_gaa(T52, T55, X65)) → delete18_out_gaaa(T52, T53, T55, X65)
U7_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, X22)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U8_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, T26))
U8_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, T26)) → U9_ag(T20, T21, T18, T19, perm35_in_ag(T26, T19))
perm35_in_ag([], []) → perm35_out_ag([], [])
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U3_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, X118))
U3_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, X118)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U4_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, T102))
U4_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → U5_ag(T96, T97, T94, T95, perm35_in_ag(T102, T95))
U5_ag(T96, T97, T94, T95, perm35_out_ag(T102, T95)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
U9_ag(T20, T21, T18, T19, perm35_out_ag(T26, T19)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T119, []))) → U10_ag(T20, T21, T118, T119, delete18_in_gaaa(T118, T20, T21, T26))
U10_ag(T20, T21, T118, T119, delete18_out_gaaa(T118, T20, T21, T26)) → U11_ag(T20, T21, T118, T119, perm35_in_ag(T26, T119))
U11_ag(T20, T21, T118, T119, perm35_out_ag(T26, T119)) → U12_ag(T20, T21, T118, T119, le51_in_gg(T118, T119))
le51_in_gg(s(T132), s(T133)) → U6_gg(T132, T133, le51_in_gg(T132, T133))
le51_in_gg(0, s(T140)) → le51_out_gg(0, s(T140))
le51_in_gg(0, 0) → le51_out_gg(0, 0)
U6_gg(T132, T133, le51_out_gg(T132, T133)) → le51_out_gg(s(T132), s(T133))
U12_ag(T20, T21, T118, T119, le51_out_gg(T118, T119)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T119, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T146, []))) → U13_ag(T20, T21, T118, T146, delete18_in_gaaa(T118, T20, T21, T26))
U13_ag(T20, T21, T118, T146, delete18_out_gaaa(T118, T20, T21, T26)) → U14_ag(T20, T21, T118, T146, perm35_in_ag(T26, T146))
U14_ag(T20, T21, T118, T146, perm35_out_ag(T26, T146)) → U15_ag(T20, T21, T118, T146, le51_in_gg(T118, T146))
U15_ag(T20, T21, T118, T146, le51_out_gg(T118, T146)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T146, [])))

The argument filtering Pi contains the following mapping:
slowsort1_in_ag(x1, x2)  =  slowsort1_in_ag(x2)
[]  =  []
slowsort1_out_ag(x1, x2)  =  slowsort1_out_ag(x2)
.(x1, x2)  =  .(x1, x2)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x3, x4, x5)
delete18_in_gaaa(x1, x2, x3, x4)  =  delete18_in_gaaa(x1)
delete18_out_gaaa(x1, x2, x3, x4)  =  delete18_out_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5)  =  U2_gaaa(x1, x5)
delete26_in_gaa(x1, x2, x3)  =  delete26_in_gaa(x1)
delete26_out_gaa(x1, x2, x3)  =  delete26_out_gaa(x1)
U1_gaa(x1, x2, x3, x4, x5)  =  U1_gaa(x1, x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x3, x4, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x3, x4, x5)
perm35_in_ag(x1, x2)  =  perm35_in_ag(x2)
perm35_out_ag(x1, x2)  =  perm35_out_ag(x2)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x3, x4, x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x3, x4, x5)
U5_ag(x1, x2, x3, x4, x5)  =  U5_ag(x3, x4, x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x4, x5)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x3, x4, x5)
le51_in_gg(x1, x2)  =  le51_in_gg(x1, x2)
s(x1)  =  s(x1)
U6_gg(x1, x2, x3)  =  U6_gg(x1, x2, x3)
0  =  0
le51_out_gg(x1, x2)  =  le51_out_gg(x1, x2)
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x3, x4, x5)
U14_ag(x1, x2, x3, x4, x5)  =  U14_ag(x3, x4, x5)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x3, x4, x5)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

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

slowsort1_in_ag([], []) → slowsort1_out_ag([], [])
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U7_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, X22))
delete18_in_gaaa(T39, T39, T40, T40) → delete18_out_gaaa(T39, T39, T40, T40)
delete18_in_gaaa(T52, T53, T55, X65) → U2_gaaa(T52, T53, T55, X65, delete26_in_gaa(T52, T55, X65))
delete26_in_gaa(T68, .(T68, T69), T69) → delete26_out_gaa(T68, .(T68, T69), T69)
delete26_in_gaa(T76, .(T77, T79), X96) → U1_gaa(T76, T77, T79, X96, delete26_in_gaa(T76, T79, X96))
U1_gaa(T76, T77, T79, X96, delete26_out_gaa(T76, T79, X96)) → delete26_out_gaa(T76, .(T77, T79), X96)
U2_gaaa(T52, T53, T55, X65, delete26_out_gaa(T52, T55, X65)) → delete18_out_gaaa(T52, T53, T55, X65)
U7_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, X22)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U8_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, T26))
U8_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, T26)) → U9_ag(T20, T21, T18, T19, perm35_in_ag(T26, T19))
perm35_in_ag([], []) → perm35_out_ag([], [])
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U3_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, X118))
U3_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, X118)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U4_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, T102))
U4_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → U5_ag(T96, T97, T94, T95, perm35_in_ag(T102, T95))
U5_ag(T96, T97, T94, T95, perm35_out_ag(T102, T95)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
U9_ag(T20, T21, T18, T19, perm35_out_ag(T26, T19)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T119, []))) → U10_ag(T20, T21, T118, T119, delete18_in_gaaa(T118, T20, T21, T26))
U10_ag(T20, T21, T118, T119, delete18_out_gaaa(T118, T20, T21, T26)) → U11_ag(T20, T21, T118, T119, perm35_in_ag(T26, T119))
U11_ag(T20, T21, T118, T119, perm35_out_ag(T26, T119)) → U12_ag(T20, T21, T118, T119, le51_in_gg(T118, T119))
le51_in_gg(s(T132), s(T133)) → U6_gg(T132, T133, le51_in_gg(T132, T133))
le51_in_gg(0, s(T140)) → le51_out_gg(0, s(T140))
le51_in_gg(0, 0) → le51_out_gg(0, 0)
U6_gg(T132, T133, le51_out_gg(T132, T133)) → le51_out_gg(s(T132), s(T133))
U12_ag(T20, T21, T118, T119, le51_out_gg(T118, T119)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T119, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T146, []))) → U13_ag(T20, T21, T118, T146, delete18_in_gaaa(T118, T20, T21, T26))
U13_ag(T20, T21, T118, T146, delete18_out_gaaa(T118, T20, T21, T26)) → U14_ag(T20, T21, T118, T146, perm35_in_ag(T26, T146))
U14_ag(T20, T21, T118, T146, perm35_out_ag(T26, T146)) → U15_ag(T20, T21, T118, T146, le51_in_gg(T118, T146))
U15_ag(T20, T21, T118, T146, le51_out_gg(T118, T146)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T146, [])))

The argument filtering Pi contains the following mapping:
slowsort1_in_ag(x1, x2)  =  slowsort1_in_ag(x2)
[]  =  []
slowsort1_out_ag(x1, x2)  =  slowsort1_out_ag(x2)
.(x1, x2)  =  .(x1, x2)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x3, x4, x5)
delete18_in_gaaa(x1, x2, x3, x4)  =  delete18_in_gaaa(x1)
delete18_out_gaaa(x1, x2, x3, x4)  =  delete18_out_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5)  =  U2_gaaa(x1, x5)
delete26_in_gaa(x1, x2, x3)  =  delete26_in_gaa(x1)
delete26_out_gaa(x1, x2, x3)  =  delete26_out_gaa(x1)
U1_gaa(x1, x2, x3, x4, x5)  =  U1_gaa(x1, x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x3, x4, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x3, x4, x5)
perm35_in_ag(x1, x2)  =  perm35_in_ag(x2)
perm35_out_ag(x1, x2)  =  perm35_out_ag(x2)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x3, x4, x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x3, x4, x5)
U5_ag(x1, x2, x3, x4, x5)  =  U5_ag(x3, x4, x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x4, x5)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x3, x4, x5)
le51_in_gg(x1, x2)  =  le51_in_gg(x1, x2)
s(x1)  =  s(x1)
U6_gg(x1, x2, x3)  =  U6_gg(x1, x2, x3)
0  =  0
le51_out_gg(x1, x2)  =  le51_out_gg(x1, x2)
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x3, x4, x5)
U14_ag(x1, x2, x3, x4, x5)  =  U14_ag(x3, x4, x5)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x3, x4, x5)

(5) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

SLOWSORT1_IN_AG(.(T20, .(T21, [])), .(T18, .(T19, []))) → U7_AG(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, X22))
SLOWSORT1_IN_AG(.(T20, .(T21, [])), .(T18, .(T19, []))) → DELETE18_IN_GAAA(T18, T20, T21, X22)
DELETE18_IN_GAAA(T52, T53, T55, X65) → U2_GAAA(T52, T53, T55, X65, delete26_in_gaa(T52, T55, X65))
DELETE18_IN_GAAA(T52, T53, T55, X65) → DELETE26_IN_GAA(T52, T55, X65)
DELETE26_IN_GAA(T76, .(T77, T79), X96) → U1_GAA(T76, T77, T79, X96, delete26_in_gaa(T76, T79, X96))
DELETE26_IN_GAA(T76, .(T77, T79), X96) → DELETE26_IN_GAA(T76, T79, X96)
SLOWSORT1_IN_AG(.(T20, .(T21, [])), .(T18, .(T19, []))) → U8_AG(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, T26))
U8_AG(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, T26)) → U9_AG(T20, T21, T18, T19, perm35_in_ag(T26, T19))
U8_AG(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, T26)) → PERM35_IN_AG(T26, T19)
PERM35_IN_AG(.(T96, .(T97, [])), .(T94, .(T95, []))) → U3_AG(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, X118))
PERM35_IN_AG(.(T96, .(T97, [])), .(T94, .(T95, []))) → DELETE18_IN_GAAA(T94, T96, T97, X118)
PERM35_IN_AG(.(T96, .(T97, [])), .(T94, .(T95, []))) → U4_AG(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, T102))
U4_AG(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → U5_AG(T96, T97, T94, T95, perm35_in_ag(T102, T95))
U4_AG(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → PERM35_IN_AG(T102, T95)
SLOWSORT1_IN_AG(.(T20, .(T21, [])), .(T118, .(T119, []))) → U10_AG(T20, T21, T118, T119, delete18_in_gaaa(T118, T20, T21, T26))
U10_AG(T20, T21, T118, T119, delete18_out_gaaa(T118, T20, T21, T26)) → U11_AG(T20, T21, T118, T119, perm35_in_ag(T26, T119))
U10_AG(T20, T21, T118, T119, delete18_out_gaaa(T118, T20, T21, T26)) → PERM35_IN_AG(T26, T119)
U11_AG(T20, T21, T118, T119, perm35_out_ag(T26, T119)) → U12_AG(T20, T21, T118, T119, le51_in_gg(T118, T119))
U11_AG(T20, T21, T118, T119, perm35_out_ag(T26, T119)) → LE51_IN_GG(T118, T119)
LE51_IN_GG(s(T132), s(T133)) → U6_GG(T132, T133, le51_in_gg(T132, T133))
LE51_IN_GG(s(T132), s(T133)) → LE51_IN_GG(T132, T133)
SLOWSORT1_IN_AG(.(T20, .(T21, [])), .(T118, .(T146, []))) → U13_AG(T20, T21, T118, T146, delete18_in_gaaa(T118, T20, T21, T26))
U13_AG(T20, T21, T118, T146, delete18_out_gaaa(T118, T20, T21, T26)) → U14_AG(T20, T21, T118, T146, perm35_in_ag(T26, T146))
U13_AG(T20, T21, T118, T146, delete18_out_gaaa(T118, T20, T21, T26)) → PERM35_IN_AG(T26, T146)
U14_AG(T20, T21, T118, T146, perm35_out_ag(T26, T146)) → U15_AG(T20, T21, T118, T146, le51_in_gg(T118, T146))
U14_AG(T20, T21, T118, T146, perm35_out_ag(T26, T146)) → LE51_IN_GG(T118, T146)

The TRS R consists of the following rules:

slowsort1_in_ag([], []) → slowsort1_out_ag([], [])
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U7_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, X22))
delete18_in_gaaa(T39, T39, T40, T40) → delete18_out_gaaa(T39, T39, T40, T40)
delete18_in_gaaa(T52, T53, T55, X65) → U2_gaaa(T52, T53, T55, X65, delete26_in_gaa(T52, T55, X65))
delete26_in_gaa(T68, .(T68, T69), T69) → delete26_out_gaa(T68, .(T68, T69), T69)
delete26_in_gaa(T76, .(T77, T79), X96) → U1_gaa(T76, T77, T79, X96, delete26_in_gaa(T76, T79, X96))
U1_gaa(T76, T77, T79, X96, delete26_out_gaa(T76, T79, X96)) → delete26_out_gaa(T76, .(T77, T79), X96)
U2_gaaa(T52, T53, T55, X65, delete26_out_gaa(T52, T55, X65)) → delete18_out_gaaa(T52, T53, T55, X65)
U7_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, X22)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U8_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, T26))
U8_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, T26)) → U9_ag(T20, T21, T18, T19, perm35_in_ag(T26, T19))
perm35_in_ag([], []) → perm35_out_ag([], [])
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U3_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, X118))
U3_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, X118)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U4_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, T102))
U4_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → U5_ag(T96, T97, T94, T95, perm35_in_ag(T102, T95))
U5_ag(T96, T97, T94, T95, perm35_out_ag(T102, T95)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
U9_ag(T20, T21, T18, T19, perm35_out_ag(T26, T19)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T119, []))) → U10_ag(T20, T21, T118, T119, delete18_in_gaaa(T118, T20, T21, T26))
U10_ag(T20, T21, T118, T119, delete18_out_gaaa(T118, T20, T21, T26)) → U11_ag(T20, T21, T118, T119, perm35_in_ag(T26, T119))
U11_ag(T20, T21, T118, T119, perm35_out_ag(T26, T119)) → U12_ag(T20, T21, T118, T119, le51_in_gg(T118, T119))
le51_in_gg(s(T132), s(T133)) → U6_gg(T132, T133, le51_in_gg(T132, T133))
le51_in_gg(0, s(T140)) → le51_out_gg(0, s(T140))
le51_in_gg(0, 0) → le51_out_gg(0, 0)
U6_gg(T132, T133, le51_out_gg(T132, T133)) → le51_out_gg(s(T132), s(T133))
U12_ag(T20, T21, T118, T119, le51_out_gg(T118, T119)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T119, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T146, []))) → U13_ag(T20, T21, T118, T146, delete18_in_gaaa(T118, T20, T21, T26))
U13_ag(T20, T21, T118, T146, delete18_out_gaaa(T118, T20, T21, T26)) → U14_ag(T20, T21, T118, T146, perm35_in_ag(T26, T146))
U14_ag(T20, T21, T118, T146, perm35_out_ag(T26, T146)) → U15_ag(T20, T21, T118, T146, le51_in_gg(T118, T146))
U15_ag(T20, T21, T118, T146, le51_out_gg(T118, T146)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T146, [])))

The argument filtering Pi contains the following mapping:
slowsort1_in_ag(x1, x2)  =  slowsort1_in_ag(x2)
[]  =  []
slowsort1_out_ag(x1, x2)  =  slowsort1_out_ag(x2)
.(x1, x2)  =  .(x1, x2)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x3, x4, x5)
delete18_in_gaaa(x1, x2, x3, x4)  =  delete18_in_gaaa(x1)
delete18_out_gaaa(x1, x2, x3, x4)  =  delete18_out_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5)  =  U2_gaaa(x1, x5)
delete26_in_gaa(x1, x2, x3)  =  delete26_in_gaa(x1)
delete26_out_gaa(x1, x2, x3)  =  delete26_out_gaa(x1)
U1_gaa(x1, x2, x3, x4, x5)  =  U1_gaa(x1, x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x3, x4, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x3, x4, x5)
perm35_in_ag(x1, x2)  =  perm35_in_ag(x2)
perm35_out_ag(x1, x2)  =  perm35_out_ag(x2)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x3, x4, x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x3, x4, x5)
U5_ag(x1, x2, x3, x4, x5)  =  U5_ag(x3, x4, x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x4, x5)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x3, x4, x5)
le51_in_gg(x1, x2)  =  le51_in_gg(x1, x2)
s(x1)  =  s(x1)
U6_gg(x1, x2, x3)  =  U6_gg(x1, x2, x3)
0  =  0
le51_out_gg(x1, x2)  =  le51_out_gg(x1, x2)
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x3, x4, x5)
U14_ag(x1, x2, x3, x4, x5)  =  U14_ag(x3, x4, x5)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x3, x4, x5)
SLOWSORT1_IN_AG(x1, x2)  =  SLOWSORT1_IN_AG(x2)
U7_AG(x1, x2, x3, x4, x5)  =  U7_AG(x3, x4, x5)
DELETE18_IN_GAAA(x1, x2, x3, x4)  =  DELETE18_IN_GAAA(x1)
U2_GAAA(x1, x2, x3, x4, x5)  =  U2_GAAA(x1, x5)
DELETE26_IN_GAA(x1, x2, x3)  =  DELETE26_IN_GAA(x1)
U1_GAA(x1, x2, x3, x4, x5)  =  U1_GAA(x1, x5)
U8_AG(x1, x2, x3, x4, x5)  =  U8_AG(x3, x4, x5)
U9_AG(x1, x2, x3, x4, x5)  =  U9_AG(x3, x4, x5)
PERM35_IN_AG(x1, x2)  =  PERM35_IN_AG(x2)
U3_AG(x1, x2, x3, x4, x5)  =  U3_AG(x3, x4, x5)
U4_AG(x1, x2, x3, x4, x5)  =  U4_AG(x3, x4, x5)
U5_AG(x1, x2, x3, x4, x5)  =  U5_AG(x3, x4, x5)
U10_AG(x1, x2, x3, x4, x5)  =  U10_AG(x3, x4, x5)
U11_AG(x1, x2, x3, x4, x5)  =  U11_AG(x3, x4, x5)
U12_AG(x1, x2, x3, x4, x5)  =  U12_AG(x3, x4, x5)
LE51_IN_GG(x1, x2)  =  LE51_IN_GG(x1, x2)
U6_GG(x1, x2, x3)  =  U6_GG(x1, x2, x3)
U13_AG(x1, x2, x3, x4, x5)  =  U13_AG(x3, x4, x5)
U14_AG(x1, x2, x3, x4, x5)  =  U14_AG(x3, x4, x5)
U15_AG(x1, x2, x3, x4, x5)  =  U15_AG(x3, x4, x5)

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

(6) Obligation:

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

SLOWSORT1_IN_AG(.(T20, .(T21, [])), .(T18, .(T19, []))) → U7_AG(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, X22))
SLOWSORT1_IN_AG(.(T20, .(T21, [])), .(T18, .(T19, []))) → DELETE18_IN_GAAA(T18, T20, T21, X22)
DELETE18_IN_GAAA(T52, T53, T55, X65) → U2_GAAA(T52, T53, T55, X65, delete26_in_gaa(T52, T55, X65))
DELETE18_IN_GAAA(T52, T53, T55, X65) → DELETE26_IN_GAA(T52, T55, X65)
DELETE26_IN_GAA(T76, .(T77, T79), X96) → U1_GAA(T76, T77, T79, X96, delete26_in_gaa(T76, T79, X96))
DELETE26_IN_GAA(T76, .(T77, T79), X96) → DELETE26_IN_GAA(T76, T79, X96)
SLOWSORT1_IN_AG(.(T20, .(T21, [])), .(T18, .(T19, []))) → U8_AG(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, T26))
U8_AG(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, T26)) → U9_AG(T20, T21, T18, T19, perm35_in_ag(T26, T19))
U8_AG(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, T26)) → PERM35_IN_AG(T26, T19)
PERM35_IN_AG(.(T96, .(T97, [])), .(T94, .(T95, []))) → U3_AG(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, X118))
PERM35_IN_AG(.(T96, .(T97, [])), .(T94, .(T95, []))) → DELETE18_IN_GAAA(T94, T96, T97, X118)
PERM35_IN_AG(.(T96, .(T97, [])), .(T94, .(T95, []))) → U4_AG(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, T102))
U4_AG(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → U5_AG(T96, T97, T94, T95, perm35_in_ag(T102, T95))
U4_AG(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → PERM35_IN_AG(T102, T95)
SLOWSORT1_IN_AG(.(T20, .(T21, [])), .(T118, .(T119, []))) → U10_AG(T20, T21, T118, T119, delete18_in_gaaa(T118, T20, T21, T26))
U10_AG(T20, T21, T118, T119, delete18_out_gaaa(T118, T20, T21, T26)) → U11_AG(T20, T21, T118, T119, perm35_in_ag(T26, T119))
U10_AG(T20, T21, T118, T119, delete18_out_gaaa(T118, T20, T21, T26)) → PERM35_IN_AG(T26, T119)
U11_AG(T20, T21, T118, T119, perm35_out_ag(T26, T119)) → U12_AG(T20, T21, T118, T119, le51_in_gg(T118, T119))
U11_AG(T20, T21, T118, T119, perm35_out_ag(T26, T119)) → LE51_IN_GG(T118, T119)
LE51_IN_GG(s(T132), s(T133)) → U6_GG(T132, T133, le51_in_gg(T132, T133))
LE51_IN_GG(s(T132), s(T133)) → LE51_IN_GG(T132, T133)
SLOWSORT1_IN_AG(.(T20, .(T21, [])), .(T118, .(T146, []))) → U13_AG(T20, T21, T118, T146, delete18_in_gaaa(T118, T20, T21, T26))
U13_AG(T20, T21, T118, T146, delete18_out_gaaa(T118, T20, T21, T26)) → U14_AG(T20, T21, T118, T146, perm35_in_ag(T26, T146))
U13_AG(T20, T21, T118, T146, delete18_out_gaaa(T118, T20, T21, T26)) → PERM35_IN_AG(T26, T146)
U14_AG(T20, T21, T118, T146, perm35_out_ag(T26, T146)) → U15_AG(T20, T21, T118, T146, le51_in_gg(T118, T146))
U14_AG(T20, T21, T118, T146, perm35_out_ag(T26, T146)) → LE51_IN_GG(T118, T146)

The TRS R consists of the following rules:

slowsort1_in_ag([], []) → slowsort1_out_ag([], [])
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U7_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, X22))
delete18_in_gaaa(T39, T39, T40, T40) → delete18_out_gaaa(T39, T39, T40, T40)
delete18_in_gaaa(T52, T53, T55, X65) → U2_gaaa(T52, T53, T55, X65, delete26_in_gaa(T52, T55, X65))
delete26_in_gaa(T68, .(T68, T69), T69) → delete26_out_gaa(T68, .(T68, T69), T69)
delete26_in_gaa(T76, .(T77, T79), X96) → U1_gaa(T76, T77, T79, X96, delete26_in_gaa(T76, T79, X96))
U1_gaa(T76, T77, T79, X96, delete26_out_gaa(T76, T79, X96)) → delete26_out_gaa(T76, .(T77, T79), X96)
U2_gaaa(T52, T53, T55, X65, delete26_out_gaa(T52, T55, X65)) → delete18_out_gaaa(T52, T53, T55, X65)
U7_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, X22)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U8_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, T26))
U8_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, T26)) → U9_ag(T20, T21, T18, T19, perm35_in_ag(T26, T19))
perm35_in_ag([], []) → perm35_out_ag([], [])
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U3_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, X118))
U3_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, X118)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U4_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, T102))
U4_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → U5_ag(T96, T97, T94, T95, perm35_in_ag(T102, T95))
U5_ag(T96, T97, T94, T95, perm35_out_ag(T102, T95)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
U9_ag(T20, T21, T18, T19, perm35_out_ag(T26, T19)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T119, []))) → U10_ag(T20, T21, T118, T119, delete18_in_gaaa(T118, T20, T21, T26))
U10_ag(T20, T21, T118, T119, delete18_out_gaaa(T118, T20, T21, T26)) → U11_ag(T20, T21, T118, T119, perm35_in_ag(T26, T119))
U11_ag(T20, T21, T118, T119, perm35_out_ag(T26, T119)) → U12_ag(T20, T21, T118, T119, le51_in_gg(T118, T119))
le51_in_gg(s(T132), s(T133)) → U6_gg(T132, T133, le51_in_gg(T132, T133))
le51_in_gg(0, s(T140)) → le51_out_gg(0, s(T140))
le51_in_gg(0, 0) → le51_out_gg(0, 0)
U6_gg(T132, T133, le51_out_gg(T132, T133)) → le51_out_gg(s(T132), s(T133))
U12_ag(T20, T21, T118, T119, le51_out_gg(T118, T119)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T119, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T146, []))) → U13_ag(T20, T21, T118, T146, delete18_in_gaaa(T118, T20, T21, T26))
U13_ag(T20, T21, T118, T146, delete18_out_gaaa(T118, T20, T21, T26)) → U14_ag(T20, T21, T118, T146, perm35_in_ag(T26, T146))
U14_ag(T20, T21, T118, T146, perm35_out_ag(T26, T146)) → U15_ag(T20, T21, T118, T146, le51_in_gg(T118, T146))
U15_ag(T20, T21, T118, T146, le51_out_gg(T118, T146)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T146, [])))

The argument filtering Pi contains the following mapping:
slowsort1_in_ag(x1, x2)  =  slowsort1_in_ag(x2)
[]  =  []
slowsort1_out_ag(x1, x2)  =  slowsort1_out_ag(x2)
.(x1, x2)  =  .(x1, x2)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x3, x4, x5)
delete18_in_gaaa(x1, x2, x3, x4)  =  delete18_in_gaaa(x1)
delete18_out_gaaa(x1, x2, x3, x4)  =  delete18_out_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5)  =  U2_gaaa(x1, x5)
delete26_in_gaa(x1, x2, x3)  =  delete26_in_gaa(x1)
delete26_out_gaa(x1, x2, x3)  =  delete26_out_gaa(x1)
U1_gaa(x1, x2, x3, x4, x5)  =  U1_gaa(x1, x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x3, x4, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x3, x4, x5)
perm35_in_ag(x1, x2)  =  perm35_in_ag(x2)
perm35_out_ag(x1, x2)  =  perm35_out_ag(x2)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x3, x4, x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x3, x4, x5)
U5_ag(x1, x2, x3, x4, x5)  =  U5_ag(x3, x4, x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x4, x5)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x3, x4, x5)
le51_in_gg(x1, x2)  =  le51_in_gg(x1, x2)
s(x1)  =  s(x1)
U6_gg(x1, x2, x3)  =  U6_gg(x1, x2, x3)
0  =  0
le51_out_gg(x1, x2)  =  le51_out_gg(x1, x2)
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x3, x4, x5)
U14_ag(x1, x2, x3, x4, x5)  =  U14_ag(x3, x4, x5)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x3, x4, x5)
SLOWSORT1_IN_AG(x1, x2)  =  SLOWSORT1_IN_AG(x2)
U7_AG(x1, x2, x3, x4, x5)  =  U7_AG(x3, x4, x5)
DELETE18_IN_GAAA(x1, x2, x3, x4)  =  DELETE18_IN_GAAA(x1)
U2_GAAA(x1, x2, x3, x4, x5)  =  U2_GAAA(x1, x5)
DELETE26_IN_GAA(x1, x2, x3)  =  DELETE26_IN_GAA(x1)
U1_GAA(x1, x2, x3, x4, x5)  =  U1_GAA(x1, x5)
U8_AG(x1, x2, x3, x4, x5)  =  U8_AG(x3, x4, x5)
U9_AG(x1, x2, x3, x4, x5)  =  U9_AG(x3, x4, x5)
PERM35_IN_AG(x1, x2)  =  PERM35_IN_AG(x2)
U3_AG(x1, x2, x3, x4, x5)  =  U3_AG(x3, x4, x5)
U4_AG(x1, x2, x3, x4, x5)  =  U4_AG(x3, x4, x5)
U5_AG(x1, x2, x3, x4, x5)  =  U5_AG(x3, x4, x5)
U10_AG(x1, x2, x3, x4, x5)  =  U10_AG(x3, x4, x5)
U11_AG(x1, x2, x3, x4, x5)  =  U11_AG(x3, x4, x5)
U12_AG(x1, x2, x3, x4, x5)  =  U12_AG(x3, x4, x5)
LE51_IN_GG(x1, x2)  =  LE51_IN_GG(x1, x2)
U6_GG(x1, x2, x3)  =  U6_GG(x1, x2, x3)
U13_AG(x1, x2, x3, x4, x5)  =  U13_AG(x3, x4, x5)
U14_AG(x1, x2, x3, x4, x5)  =  U14_AG(x3, x4, x5)
U15_AG(x1, x2, x3, x4, x5)  =  U15_AG(x3, x4, x5)

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

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 3 SCCs with 22 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

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

LE51_IN_GG(s(T132), s(T133)) → LE51_IN_GG(T132, T133)

The TRS R consists of the following rules:

slowsort1_in_ag([], []) → slowsort1_out_ag([], [])
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U7_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, X22))
delete18_in_gaaa(T39, T39, T40, T40) → delete18_out_gaaa(T39, T39, T40, T40)
delete18_in_gaaa(T52, T53, T55, X65) → U2_gaaa(T52, T53, T55, X65, delete26_in_gaa(T52, T55, X65))
delete26_in_gaa(T68, .(T68, T69), T69) → delete26_out_gaa(T68, .(T68, T69), T69)
delete26_in_gaa(T76, .(T77, T79), X96) → U1_gaa(T76, T77, T79, X96, delete26_in_gaa(T76, T79, X96))
U1_gaa(T76, T77, T79, X96, delete26_out_gaa(T76, T79, X96)) → delete26_out_gaa(T76, .(T77, T79), X96)
U2_gaaa(T52, T53, T55, X65, delete26_out_gaa(T52, T55, X65)) → delete18_out_gaaa(T52, T53, T55, X65)
U7_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, X22)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U8_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, T26))
U8_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, T26)) → U9_ag(T20, T21, T18, T19, perm35_in_ag(T26, T19))
perm35_in_ag([], []) → perm35_out_ag([], [])
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U3_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, X118))
U3_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, X118)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U4_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, T102))
U4_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → U5_ag(T96, T97, T94, T95, perm35_in_ag(T102, T95))
U5_ag(T96, T97, T94, T95, perm35_out_ag(T102, T95)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
U9_ag(T20, T21, T18, T19, perm35_out_ag(T26, T19)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T119, []))) → U10_ag(T20, T21, T118, T119, delete18_in_gaaa(T118, T20, T21, T26))
U10_ag(T20, T21, T118, T119, delete18_out_gaaa(T118, T20, T21, T26)) → U11_ag(T20, T21, T118, T119, perm35_in_ag(T26, T119))
U11_ag(T20, T21, T118, T119, perm35_out_ag(T26, T119)) → U12_ag(T20, T21, T118, T119, le51_in_gg(T118, T119))
le51_in_gg(s(T132), s(T133)) → U6_gg(T132, T133, le51_in_gg(T132, T133))
le51_in_gg(0, s(T140)) → le51_out_gg(0, s(T140))
le51_in_gg(0, 0) → le51_out_gg(0, 0)
U6_gg(T132, T133, le51_out_gg(T132, T133)) → le51_out_gg(s(T132), s(T133))
U12_ag(T20, T21, T118, T119, le51_out_gg(T118, T119)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T119, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T146, []))) → U13_ag(T20, T21, T118, T146, delete18_in_gaaa(T118, T20, T21, T26))
U13_ag(T20, T21, T118, T146, delete18_out_gaaa(T118, T20, T21, T26)) → U14_ag(T20, T21, T118, T146, perm35_in_ag(T26, T146))
U14_ag(T20, T21, T118, T146, perm35_out_ag(T26, T146)) → U15_ag(T20, T21, T118, T146, le51_in_gg(T118, T146))
U15_ag(T20, T21, T118, T146, le51_out_gg(T118, T146)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T146, [])))

The argument filtering Pi contains the following mapping:
slowsort1_in_ag(x1, x2)  =  slowsort1_in_ag(x2)
[]  =  []
slowsort1_out_ag(x1, x2)  =  slowsort1_out_ag(x2)
.(x1, x2)  =  .(x1, x2)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x3, x4, x5)
delete18_in_gaaa(x1, x2, x3, x4)  =  delete18_in_gaaa(x1)
delete18_out_gaaa(x1, x2, x3, x4)  =  delete18_out_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5)  =  U2_gaaa(x1, x5)
delete26_in_gaa(x1, x2, x3)  =  delete26_in_gaa(x1)
delete26_out_gaa(x1, x2, x3)  =  delete26_out_gaa(x1)
U1_gaa(x1, x2, x3, x4, x5)  =  U1_gaa(x1, x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x3, x4, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x3, x4, x5)
perm35_in_ag(x1, x2)  =  perm35_in_ag(x2)
perm35_out_ag(x1, x2)  =  perm35_out_ag(x2)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x3, x4, x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x3, x4, x5)
U5_ag(x1, x2, x3, x4, x5)  =  U5_ag(x3, x4, x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x4, x5)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x3, x4, x5)
le51_in_gg(x1, x2)  =  le51_in_gg(x1, x2)
s(x1)  =  s(x1)
U6_gg(x1, x2, x3)  =  U6_gg(x1, x2, x3)
0  =  0
le51_out_gg(x1, x2)  =  le51_out_gg(x1, x2)
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x3, x4, x5)
U14_ag(x1, x2, x3, x4, x5)  =  U14_ag(x3, x4, x5)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x3, x4, x5)
LE51_IN_GG(x1, x2)  =  LE51_IN_GG(x1, x2)

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

(10) UsableRulesProof (EQUIVALENT transformation)

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

(11) Obligation:

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

LE51_IN_GG(s(T132), s(T133)) → LE51_IN_GG(T132, T133)

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

(12) PiDPToQDPProof (EQUIVALENT transformation)

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

(13) Obligation:

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

LE51_IN_GG(s(T132), s(T133)) → LE51_IN_GG(T132, T133)

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

(14) QDPSizeChangeProof (EQUIVALENT transformation)

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

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

  • LE51_IN_GG(s(T132), s(T133)) → LE51_IN_GG(T132, T133)
    The graph contains the following edges 1 > 1, 2 > 2

(15) YES

(16) Obligation:

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

DELETE26_IN_GAA(T76, .(T77, T79), X96) → DELETE26_IN_GAA(T76, T79, X96)

The TRS R consists of the following rules:

slowsort1_in_ag([], []) → slowsort1_out_ag([], [])
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U7_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, X22))
delete18_in_gaaa(T39, T39, T40, T40) → delete18_out_gaaa(T39, T39, T40, T40)
delete18_in_gaaa(T52, T53, T55, X65) → U2_gaaa(T52, T53, T55, X65, delete26_in_gaa(T52, T55, X65))
delete26_in_gaa(T68, .(T68, T69), T69) → delete26_out_gaa(T68, .(T68, T69), T69)
delete26_in_gaa(T76, .(T77, T79), X96) → U1_gaa(T76, T77, T79, X96, delete26_in_gaa(T76, T79, X96))
U1_gaa(T76, T77, T79, X96, delete26_out_gaa(T76, T79, X96)) → delete26_out_gaa(T76, .(T77, T79), X96)
U2_gaaa(T52, T53, T55, X65, delete26_out_gaa(T52, T55, X65)) → delete18_out_gaaa(T52, T53, T55, X65)
U7_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, X22)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U8_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, T26))
U8_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, T26)) → U9_ag(T20, T21, T18, T19, perm35_in_ag(T26, T19))
perm35_in_ag([], []) → perm35_out_ag([], [])
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U3_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, X118))
U3_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, X118)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U4_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, T102))
U4_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → U5_ag(T96, T97, T94, T95, perm35_in_ag(T102, T95))
U5_ag(T96, T97, T94, T95, perm35_out_ag(T102, T95)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
U9_ag(T20, T21, T18, T19, perm35_out_ag(T26, T19)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T119, []))) → U10_ag(T20, T21, T118, T119, delete18_in_gaaa(T118, T20, T21, T26))
U10_ag(T20, T21, T118, T119, delete18_out_gaaa(T118, T20, T21, T26)) → U11_ag(T20, T21, T118, T119, perm35_in_ag(T26, T119))
U11_ag(T20, T21, T118, T119, perm35_out_ag(T26, T119)) → U12_ag(T20, T21, T118, T119, le51_in_gg(T118, T119))
le51_in_gg(s(T132), s(T133)) → U6_gg(T132, T133, le51_in_gg(T132, T133))
le51_in_gg(0, s(T140)) → le51_out_gg(0, s(T140))
le51_in_gg(0, 0) → le51_out_gg(0, 0)
U6_gg(T132, T133, le51_out_gg(T132, T133)) → le51_out_gg(s(T132), s(T133))
U12_ag(T20, T21, T118, T119, le51_out_gg(T118, T119)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T119, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T146, []))) → U13_ag(T20, T21, T118, T146, delete18_in_gaaa(T118, T20, T21, T26))
U13_ag(T20, T21, T118, T146, delete18_out_gaaa(T118, T20, T21, T26)) → U14_ag(T20, T21, T118, T146, perm35_in_ag(T26, T146))
U14_ag(T20, T21, T118, T146, perm35_out_ag(T26, T146)) → U15_ag(T20, T21, T118, T146, le51_in_gg(T118, T146))
U15_ag(T20, T21, T118, T146, le51_out_gg(T118, T146)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T146, [])))

The argument filtering Pi contains the following mapping:
slowsort1_in_ag(x1, x2)  =  slowsort1_in_ag(x2)
[]  =  []
slowsort1_out_ag(x1, x2)  =  slowsort1_out_ag(x2)
.(x1, x2)  =  .(x1, x2)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x3, x4, x5)
delete18_in_gaaa(x1, x2, x3, x4)  =  delete18_in_gaaa(x1)
delete18_out_gaaa(x1, x2, x3, x4)  =  delete18_out_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5)  =  U2_gaaa(x1, x5)
delete26_in_gaa(x1, x2, x3)  =  delete26_in_gaa(x1)
delete26_out_gaa(x1, x2, x3)  =  delete26_out_gaa(x1)
U1_gaa(x1, x2, x3, x4, x5)  =  U1_gaa(x1, x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x3, x4, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x3, x4, x5)
perm35_in_ag(x1, x2)  =  perm35_in_ag(x2)
perm35_out_ag(x1, x2)  =  perm35_out_ag(x2)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x3, x4, x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x3, x4, x5)
U5_ag(x1, x2, x3, x4, x5)  =  U5_ag(x3, x4, x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x4, x5)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x3, x4, x5)
le51_in_gg(x1, x2)  =  le51_in_gg(x1, x2)
s(x1)  =  s(x1)
U6_gg(x1, x2, x3)  =  U6_gg(x1, x2, x3)
0  =  0
le51_out_gg(x1, x2)  =  le51_out_gg(x1, x2)
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x3, x4, x5)
U14_ag(x1, x2, x3, x4, x5)  =  U14_ag(x3, x4, x5)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x3, x4, x5)
DELETE26_IN_GAA(x1, x2, x3)  =  DELETE26_IN_GAA(x1)

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

(17) UsableRulesProof (EQUIVALENT transformation)

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

(18) Obligation:

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

DELETE26_IN_GAA(T76, .(T77, T79), X96) → DELETE26_IN_GAA(T76, T79, X96)

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

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

(19) PiDPToQDPProof (SOUND transformation)

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

(20) Obligation:

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

DELETE26_IN_GAA(T76) → DELETE26_IN_GAA(T76)

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

(21) NonTerminationProof (EQUIVALENT transformation)

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

s = DELETE26_IN_GAA(T76) evaluates to t =DELETE26_IN_GAA(T76)

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




Rewriting sequence

The DP semiunifies directly so there is only one rewrite step from DELETE26_IN_GAA(T76) to DELETE26_IN_GAA(T76).



(22) NO

(23) Obligation:

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

PERM35_IN_AG(.(T96, .(T97, [])), .(T94, .(T95, []))) → U4_AG(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, T102))
U4_AG(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → PERM35_IN_AG(T102, T95)

The TRS R consists of the following rules:

slowsort1_in_ag([], []) → slowsort1_out_ag([], [])
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U7_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, X22))
delete18_in_gaaa(T39, T39, T40, T40) → delete18_out_gaaa(T39, T39, T40, T40)
delete18_in_gaaa(T52, T53, T55, X65) → U2_gaaa(T52, T53, T55, X65, delete26_in_gaa(T52, T55, X65))
delete26_in_gaa(T68, .(T68, T69), T69) → delete26_out_gaa(T68, .(T68, T69), T69)
delete26_in_gaa(T76, .(T77, T79), X96) → U1_gaa(T76, T77, T79, X96, delete26_in_gaa(T76, T79, X96))
U1_gaa(T76, T77, T79, X96, delete26_out_gaa(T76, T79, X96)) → delete26_out_gaa(T76, .(T77, T79), X96)
U2_gaaa(T52, T53, T55, X65, delete26_out_gaa(T52, T55, X65)) → delete18_out_gaaa(T52, T53, T55, X65)
U7_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, X22)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U8_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, T26))
U8_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, T26)) → U9_ag(T20, T21, T18, T19, perm35_in_ag(T26, T19))
perm35_in_ag([], []) → perm35_out_ag([], [])
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U3_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, X118))
U3_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, X118)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U4_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, T102))
U4_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → U5_ag(T96, T97, T94, T95, perm35_in_ag(T102, T95))
U5_ag(T96, T97, T94, T95, perm35_out_ag(T102, T95)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
U9_ag(T20, T21, T18, T19, perm35_out_ag(T26, T19)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T119, []))) → U10_ag(T20, T21, T118, T119, delete18_in_gaaa(T118, T20, T21, T26))
U10_ag(T20, T21, T118, T119, delete18_out_gaaa(T118, T20, T21, T26)) → U11_ag(T20, T21, T118, T119, perm35_in_ag(T26, T119))
U11_ag(T20, T21, T118, T119, perm35_out_ag(T26, T119)) → U12_ag(T20, T21, T118, T119, le51_in_gg(T118, T119))
le51_in_gg(s(T132), s(T133)) → U6_gg(T132, T133, le51_in_gg(T132, T133))
le51_in_gg(0, s(T140)) → le51_out_gg(0, s(T140))
le51_in_gg(0, 0) → le51_out_gg(0, 0)
U6_gg(T132, T133, le51_out_gg(T132, T133)) → le51_out_gg(s(T132), s(T133))
U12_ag(T20, T21, T118, T119, le51_out_gg(T118, T119)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T119, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T146, []))) → U13_ag(T20, T21, T118, T146, delete18_in_gaaa(T118, T20, T21, T26))
U13_ag(T20, T21, T118, T146, delete18_out_gaaa(T118, T20, T21, T26)) → U14_ag(T20, T21, T118, T146, perm35_in_ag(T26, T146))
U14_ag(T20, T21, T118, T146, perm35_out_ag(T26, T146)) → U15_ag(T20, T21, T118, T146, le51_in_gg(T118, T146))
U15_ag(T20, T21, T118, T146, le51_out_gg(T118, T146)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T146, [])))

The argument filtering Pi contains the following mapping:
slowsort1_in_ag(x1, x2)  =  slowsort1_in_ag(x2)
[]  =  []
slowsort1_out_ag(x1, x2)  =  slowsort1_out_ag(x2)
.(x1, x2)  =  .(x1, x2)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x3, x4, x5)
delete18_in_gaaa(x1, x2, x3, x4)  =  delete18_in_gaaa(x1)
delete18_out_gaaa(x1, x2, x3, x4)  =  delete18_out_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5)  =  U2_gaaa(x1, x5)
delete26_in_gaa(x1, x2, x3)  =  delete26_in_gaa(x1)
delete26_out_gaa(x1, x2, x3)  =  delete26_out_gaa(x1)
U1_gaa(x1, x2, x3, x4, x5)  =  U1_gaa(x1, x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x3, x4, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x3, x4, x5)
perm35_in_ag(x1, x2)  =  perm35_in_ag(x2)
perm35_out_ag(x1, x2)  =  perm35_out_ag(x2)
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x3, x4, x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x3, x4, x5)
U5_ag(x1, x2, x3, x4, x5)  =  U5_ag(x3, x4, x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x4, x5)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x3, x4, x5)
le51_in_gg(x1, x2)  =  le51_in_gg(x1, x2)
s(x1)  =  s(x1)
U6_gg(x1, x2, x3)  =  U6_gg(x1, x2, x3)
0  =  0
le51_out_gg(x1, x2)  =  le51_out_gg(x1, x2)
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x3, x4, x5)
U14_ag(x1, x2, x3, x4, x5)  =  U14_ag(x3, x4, x5)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x3, x4, x5)
PERM35_IN_AG(x1, x2)  =  PERM35_IN_AG(x2)
U4_AG(x1, x2, x3, x4, x5)  =  U4_AG(x3, x4, x5)

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

(24) UsableRulesProof (EQUIVALENT transformation)

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

(25) Obligation:

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

PERM35_IN_AG(.(T96, .(T97, [])), .(T94, .(T95, []))) → U4_AG(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, T102))
U4_AG(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → PERM35_IN_AG(T102, T95)

The TRS R consists of the following rules:

delete18_in_gaaa(T39, T39, T40, T40) → delete18_out_gaaa(T39, T39, T40, T40)
delete18_in_gaaa(T52, T53, T55, X65) → U2_gaaa(T52, T53, T55, X65, delete26_in_gaa(T52, T55, X65))
U2_gaaa(T52, T53, T55, X65, delete26_out_gaa(T52, T55, X65)) → delete18_out_gaaa(T52, T53, T55, X65)
delete26_in_gaa(T68, .(T68, T69), T69) → delete26_out_gaa(T68, .(T68, T69), T69)
delete26_in_gaa(T76, .(T77, T79), X96) → U1_gaa(T76, T77, T79, X96, delete26_in_gaa(T76, T79, X96))
U1_gaa(T76, T77, T79, X96, delete26_out_gaa(T76, T79, X96)) → delete26_out_gaa(T76, .(T77, T79), X96)

The argument filtering Pi contains the following mapping:
[]  =  []
.(x1, x2)  =  .(x1, x2)
delete18_in_gaaa(x1, x2, x3, x4)  =  delete18_in_gaaa(x1)
delete18_out_gaaa(x1, x2, x3, x4)  =  delete18_out_gaaa(x1)
U2_gaaa(x1, x2, x3, x4, x5)  =  U2_gaaa(x1, x5)
delete26_in_gaa(x1, x2, x3)  =  delete26_in_gaa(x1)
delete26_out_gaa(x1, x2, x3)  =  delete26_out_gaa(x1)
U1_gaa(x1, x2, x3, x4, x5)  =  U1_gaa(x1, x5)
PERM35_IN_AG(x1, x2)  =  PERM35_IN_AG(x2)
U4_AG(x1, x2, x3, x4, x5)  =  U4_AG(x3, x4, x5)

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

(26) PiDPToQDPProof (SOUND transformation)

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

(27) Obligation:

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

PERM35_IN_AG(.(T94, .(T95, []))) → U4_AG(T94, T95, delete18_in_gaaa(T94))
U4_AG(T94, T95, delete18_out_gaaa(T94)) → PERM35_IN_AG(T95)

The TRS R consists of the following rules:

delete18_in_gaaa(T39) → delete18_out_gaaa(T39)
delete18_in_gaaa(T52) → U2_gaaa(T52, delete26_in_gaa(T52))
U2_gaaa(T52, delete26_out_gaa(T52)) → delete18_out_gaaa(T52)
delete26_in_gaa(T68) → delete26_out_gaa(T68)
delete26_in_gaa(T76) → U1_gaa(T76, delete26_in_gaa(T76))
U1_gaa(T76, delete26_out_gaa(T76)) → delete26_out_gaa(T76)

The set Q consists of the following terms:

delete18_in_gaaa(x0)
U2_gaaa(x0, x1)
delete26_in_gaa(x0)
U1_gaa(x0, x1)

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

(28) QDPSizeChangeProof (EQUIVALENT transformation)

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

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

  • U4_AG(T94, T95, delete18_out_gaaa(T94)) → PERM35_IN_AG(T95)
    The graph contains the following edges 2 >= 1

  • PERM35_IN_AG(.(T94, .(T95, []))) → U4_AG(T94, T95, delete18_in_gaaa(T94))
    The graph contains the following edges 1 > 1, 1 > 2

(29) YES

(30) PrologToPiTRSProof (SOUND transformation)

We use the technique of [LOPSTR]. With regard to the inferred argument filtering the predicates were used in the following modes:
slowsort1_in: (f,b)
delete18_in: (b,f,f,f)
delete26_in: (b,f,f)
perm35_in: (f,b)
le51_in: (b,b)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

slowsort1_in_ag([], []) → slowsort1_out_ag([], [])
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U7_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, X22))
delete18_in_gaaa(T39, T39, T40, T40) → delete18_out_gaaa(T39, T39, T40, T40)
delete18_in_gaaa(T52, T53, T55, X65) → U2_gaaa(T52, T53, T55, X65, delete26_in_gaa(T52, T55, X65))
delete26_in_gaa(T68, .(T68, T69), T69) → delete26_out_gaa(T68, .(T68, T69), T69)
delete26_in_gaa(T76, .(T77, T79), X96) → U1_gaa(T76, T77, T79, X96, delete26_in_gaa(T76, T79, X96))
U1_gaa(T76, T77, T79, X96, delete26_out_gaa(T76, T79, X96)) → delete26_out_gaa(T76, .(T77, T79), X96)
U2_gaaa(T52, T53, T55, X65, delete26_out_gaa(T52, T55, X65)) → delete18_out_gaaa(T52, T53, T55, X65)
U7_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, X22)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U8_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, T26))
U8_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, T26)) → U9_ag(T20, T21, T18, T19, perm35_in_ag(T26, T19))
perm35_in_ag([], []) → perm35_out_ag([], [])
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U3_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, X118))
U3_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, X118)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U4_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, T102))
U4_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → U5_ag(T96, T97, T94, T95, perm35_in_ag(T102, T95))
U5_ag(T96, T97, T94, T95, perm35_out_ag(T102, T95)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
U9_ag(T20, T21, T18, T19, perm35_out_ag(T26, T19)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T119, []))) → U10_ag(T20, T21, T118, T119, delete18_in_gaaa(T118, T20, T21, T26))
U10_ag(T20, T21, T118, T119, delete18_out_gaaa(T118, T20, T21, T26)) → U11_ag(T20, T21, T118, T119, perm35_in_ag(T26, T119))
U11_ag(T20, T21, T118, T119, perm35_out_ag(T26, T119)) → U12_ag(T20, T21, T118, T119, le51_in_gg(T118, T119))
le51_in_gg(s(T132), s(T133)) → U6_gg(T132, T133, le51_in_gg(T132, T133))
le51_in_gg(0, s(T140)) → le51_out_gg(0, s(T140))
le51_in_gg(0, 0) → le51_out_gg(0, 0)
U6_gg(T132, T133, le51_out_gg(T132, T133)) → le51_out_gg(s(T132), s(T133))
U12_ag(T20, T21, T118, T119, le51_out_gg(T118, T119)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T119, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T146, []))) → U13_ag(T20, T21, T118, T146, delete18_in_gaaa(T118, T20, T21, T26))
U13_ag(T20, T21, T118, T146, delete18_out_gaaa(T118, T20, T21, T26)) → U14_ag(T20, T21, T118, T146, perm35_in_ag(T26, T146))
U14_ag(T20, T21, T118, T146, perm35_out_ag(T26, T146)) → U15_ag(T20, T21, T118, T146, le51_in_gg(T118, T146))
U15_ag(T20, T21, T118, T146, le51_out_gg(T118, T146)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T146, [])))

The argument filtering Pi contains the following mapping:
slowsort1_in_ag(x1, x2)  =  slowsort1_in_ag(x2)
[]  =  []
slowsort1_out_ag(x1, x2)  =  slowsort1_out_ag
.(x1, x2)  =  .(x1, x2)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x5)
delete18_in_gaaa(x1, x2, x3, x4)  =  delete18_in_gaaa(x1)
delete18_out_gaaa(x1, x2, x3, x4)  =  delete18_out_gaaa
U2_gaaa(x1, x2, x3, x4, x5)  =  U2_gaaa(x5)
delete26_in_gaa(x1, x2, x3)  =  delete26_in_gaa(x1)
delete26_out_gaa(x1, x2, x3)  =  delete26_out_gaa
U1_gaa(x1, x2, x3, x4, x5)  =  U1_gaa(x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x4, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x5)
perm35_in_ag(x1, x2)  =  perm35_in_ag(x2)
perm35_out_ag(x1, x2)  =  perm35_out_ag
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5)  =  U5_ag(x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x4, x5)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
le51_in_gg(x1, x2)  =  le51_in_gg(x1, x2)
s(x1)  =  s(x1)
U6_gg(x1, x2, x3)  =  U6_gg(x3)
0  =  0
le51_out_gg(x1, x2)  =  le51_out_gg
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x3, x4, x5)
U14_ag(x1, x2, x3, x4, x5)  =  U14_ag(x3, x4, x5)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x5)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(31) Obligation:

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

slowsort1_in_ag([], []) → slowsort1_out_ag([], [])
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U7_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, X22))
delete18_in_gaaa(T39, T39, T40, T40) → delete18_out_gaaa(T39, T39, T40, T40)
delete18_in_gaaa(T52, T53, T55, X65) → U2_gaaa(T52, T53, T55, X65, delete26_in_gaa(T52, T55, X65))
delete26_in_gaa(T68, .(T68, T69), T69) → delete26_out_gaa(T68, .(T68, T69), T69)
delete26_in_gaa(T76, .(T77, T79), X96) → U1_gaa(T76, T77, T79, X96, delete26_in_gaa(T76, T79, X96))
U1_gaa(T76, T77, T79, X96, delete26_out_gaa(T76, T79, X96)) → delete26_out_gaa(T76, .(T77, T79), X96)
U2_gaaa(T52, T53, T55, X65, delete26_out_gaa(T52, T55, X65)) → delete18_out_gaaa(T52, T53, T55, X65)
U7_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, X22)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U8_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, T26))
U8_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, T26)) → U9_ag(T20, T21, T18, T19, perm35_in_ag(T26, T19))
perm35_in_ag([], []) → perm35_out_ag([], [])
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U3_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, X118))
U3_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, X118)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U4_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, T102))
U4_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → U5_ag(T96, T97, T94, T95, perm35_in_ag(T102, T95))
U5_ag(T96, T97, T94, T95, perm35_out_ag(T102, T95)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
U9_ag(T20, T21, T18, T19, perm35_out_ag(T26, T19)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T119, []))) → U10_ag(T20, T21, T118, T119, delete18_in_gaaa(T118, T20, T21, T26))
U10_ag(T20, T21, T118, T119, delete18_out_gaaa(T118, T20, T21, T26)) → U11_ag(T20, T21, T118, T119, perm35_in_ag(T26, T119))
U11_ag(T20, T21, T118, T119, perm35_out_ag(T26, T119)) → U12_ag(T20, T21, T118, T119, le51_in_gg(T118, T119))
le51_in_gg(s(T132), s(T133)) → U6_gg(T132, T133, le51_in_gg(T132, T133))
le51_in_gg(0, s(T140)) → le51_out_gg(0, s(T140))
le51_in_gg(0, 0) → le51_out_gg(0, 0)
U6_gg(T132, T133, le51_out_gg(T132, T133)) → le51_out_gg(s(T132), s(T133))
U12_ag(T20, T21, T118, T119, le51_out_gg(T118, T119)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T119, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T146, []))) → U13_ag(T20, T21, T118, T146, delete18_in_gaaa(T118, T20, T21, T26))
U13_ag(T20, T21, T118, T146, delete18_out_gaaa(T118, T20, T21, T26)) → U14_ag(T20, T21, T118, T146, perm35_in_ag(T26, T146))
U14_ag(T20, T21, T118, T146, perm35_out_ag(T26, T146)) → U15_ag(T20, T21, T118, T146, le51_in_gg(T118, T146))
U15_ag(T20, T21, T118, T146, le51_out_gg(T118, T146)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T146, [])))

The argument filtering Pi contains the following mapping:
slowsort1_in_ag(x1, x2)  =  slowsort1_in_ag(x2)
[]  =  []
slowsort1_out_ag(x1, x2)  =  slowsort1_out_ag
.(x1, x2)  =  .(x1, x2)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x5)
delete18_in_gaaa(x1, x2, x3, x4)  =  delete18_in_gaaa(x1)
delete18_out_gaaa(x1, x2, x3, x4)  =  delete18_out_gaaa
U2_gaaa(x1, x2, x3, x4, x5)  =  U2_gaaa(x5)
delete26_in_gaa(x1, x2, x3)  =  delete26_in_gaa(x1)
delete26_out_gaa(x1, x2, x3)  =  delete26_out_gaa
U1_gaa(x1, x2, x3, x4, x5)  =  U1_gaa(x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x4, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x5)
perm35_in_ag(x1, x2)  =  perm35_in_ag(x2)
perm35_out_ag(x1, x2)  =  perm35_out_ag
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5)  =  U5_ag(x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x4, x5)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
le51_in_gg(x1, x2)  =  le51_in_gg(x1, x2)
s(x1)  =  s(x1)
U6_gg(x1, x2, x3)  =  U6_gg(x3)
0  =  0
le51_out_gg(x1, x2)  =  le51_out_gg
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x3, x4, x5)
U14_ag(x1, x2, x3, x4, x5)  =  U14_ag(x3, x4, x5)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x5)

(32) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

SLOWSORT1_IN_AG(.(T20, .(T21, [])), .(T18, .(T19, []))) → U7_AG(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, X22))
SLOWSORT1_IN_AG(.(T20, .(T21, [])), .(T18, .(T19, []))) → DELETE18_IN_GAAA(T18, T20, T21, X22)
DELETE18_IN_GAAA(T52, T53, T55, X65) → U2_GAAA(T52, T53, T55, X65, delete26_in_gaa(T52, T55, X65))
DELETE18_IN_GAAA(T52, T53, T55, X65) → DELETE26_IN_GAA(T52, T55, X65)
DELETE26_IN_GAA(T76, .(T77, T79), X96) → U1_GAA(T76, T77, T79, X96, delete26_in_gaa(T76, T79, X96))
DELETE26_IN_GAA(T76, .(T77, T79), X96) → DELETE26_IN_GAA(T76, T79, X96)
SLOWSORT1_IN_AG(.(T20, .(T21, [])), .(T18, .(T19, []))) → U8_AG(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, T26))
U8_AG(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, T26)) → U9_AG(T20, T21, T18, T19, perm35_in_ag(T26, T19))
U8_AG(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, T26)) → PERM35_IN_AG(T26, T19)
PERM35_IN_AG(.(T96, .(T97, [])), .(T94, .(T95, []))) → U3_AG(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, X118))
PERM35_IN_AG(.(T96, .(T97, [])), .(T94, .(T95, []))) → DELETE18_IN_GAAA(T94, T96, T97, X118)
PERM35_IN_AG(.(T96, .(T97, [])), .(T94, .(T95, []))) → U4_AG(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, T102))
U4_AG(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → U5_AG(T96, T97, T94, T95, perm35_in_ag(T102, T95))
U4_AG(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → PERM35_IN_AG(T102, T95)
SLOWSORT1_IN_AG(.(T20, .(T21, [])), .(T118, .(T119, []))) → U10_AG(T20, T21, T118, T119, delete18_in_gaaa(T118, T20, T21, T26))
U10_AG(T20, T21, T118, T119, delete18_out_gaaa(T118, T20, T21, T26)) → U11_AG(T20, T21, T118, T119, perm35_in_ag(T26, T119))
U10_AG(T20, T21, T118, T119, delete18_out_gaaa(T118, T20, T21, T26)) → PERM35_IN_AG(T26, T119)
U11_AG(T20, T21, T118, T119, perm35_out_ag(T26, T119)) → U12_AG(T20, T21, T118, T119, le51_in_gg(T118, T119))
U11_AG(T20, T21, T118, T119, perm35_out_ag(T26, T119)) → LE51_IN_GG(T118, T119)
LE51_IN_GG(s(T132), s(T133)) → U6_GG(T132, T133, le51_in_gg(T132, T133))
LE51_IN_GG(s(T132), s(T133)) → LE51_IN_GG(T132, T133)
SLOWSORT1_IN_AG(.(T20, .(T21, [])), .(T118, .(T146, []))) → U13_AG(T20, T21, T118, T146, delete18_in_gaaa(T118, T20, T21, T26))
U13_AG(T20, T21, T118, T146, delete18_out_gaaa(T118, T20, T21, T26)) → U14_AG(T20, T21, T118, T146, perm35_in_ag(T26, T146))
U13_AG(T20, T21, T118, T146, delete18_out_gaaa(T118, T20, T21, T26)) → PERM35_IN_AG(T26, T146)
U14_AG(T20, T21, T118, T146, perm35_out_ag(T26, T146)) → U15_AG(T20, T21, T118, T146, le51_in_gg(T118, T146))
U14_AG(T20, T21, T118, T146, perm35_out_ag(T26, T146)) → LE51_IN_GG(T118, T146)

The TRS R consists of the following rules:

slowsort1_in_ag([], []) → slowsort1_out_ag([], [])
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U7_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, X22))
delete18_in_gaaa(T39, T39, T40, T40) → delete18_out_gaaa(T39, T39, T40, T40)
delete18_in_gaaa(T52, T53, T55, X65) → U2_gaaa(T52, T53, T55, X65, delete26_in_gaa(T52, T55, X65))
delete26_in_gaa(T68, .(T68, T69), T69) → delete26_out_gaa(T68, .(T68, T69), T69)
delete26_in_gaa(T76, .(T77, T79), X96) → U1_gaa(T76, T77, T79, X96, delete26_in_gaa(T76, T79, X96))
U1_gaa(T76, T77, T79, X96, delete26_out_gaa(T76, T79, X96)) → delete26_out_gaa(T76, .(T77, T79), X96)
U2_gaaa(T52, T53, T55, X65, delete26_out_gaa(T52, T55, X65)) → delete18_out_gaaa(T52, T53, T55, X65)
U7_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, X22)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U8_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, T26))
U8_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, T26)) → U9_ag(T20, T21, T18, T19, perm35_in_ag(T26, T19))
perm35_in_ag([], []) → perm35_out_ag([], [])
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U3_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, X118))
U3_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, X118)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U4_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, T102))
U4_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → U5_ag(T96, T97, T94, T95, perm35_in_ag(T102, T95))
U5_ag(T96, T97, T94, T95, perm35_out_ag(T102, T95)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
U9_ag(T20, T21, T18, T19, perm35_out_ag(T26, T19)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T119, []))) → U10_ag(T20, T21, T118, T119, delete18_in_gaaa(T118, T20, T21, T26))
U10_ag(T20, T21, T118, T119, delete18_out_gaaa(T118, T20, T21, T26)) → U11_ag(T20, T21, T118, T119, perm35_in_ag(T26, T119))
U11_ag(T20, T21, T118, T119, perm35_out_ag(T26, T119)) → U12_ag(T20, T21, T118, T119, le51_in_gg(T118, T119))
le51_in_gg(s(T132), s(T133)) → U6_gg(T132, T133, le51_in_gg(T132, T133))
le51_in_gg(0, s(T140)) → le51_out_gg(0, s(T140))
le51_in_gg(0, 0) → le51_out_gg(0, 0)
U6_gg(T132, T133, le51_out_gg(T132, T133)) → le51_out_gg(s(T132), s(T133))
U12_ag(T20, T21, T118, T119, le51_out_gg(T118, T119)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T119, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T146, []))) → U13_ag(T20, T21, T118, T146, delete18_in_gaaa(T118, T20, T21, T26))
U13_ag(T20, T21, T118, T146, delete18_out_gaaa(T118, T20, T21, T26)) → U14_ag(T20, T21, T118, T146, perm35_in_ag(T26, T146))
U14_ag(T20, T21, T118, T146, perm35_out_ag(T26, T146)) → U15_ag(T20, T21, T118, T146, le51_in_gg(T118, T146))
U15_ag(T20, T21, T118, T146, le51_out_gg(T118, T146)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T146, [])))

The argument filtering Pi contains the following mapping:
slowsort1_in_ag(x1, x2)  =  slowsort1_in_ag(x2)
[]  =  []
slowsort1_out_ag(x1, x2)  =  slowsort1_out_ag
.(x1, x2)  =  .(x1, x2)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x5)
delete18_in_gaaa(x1, x2, x3, x4)  =  delete18_in_gaaa(x1)
delete18_out_gaaa(x1, x2, x3, x4)  =  delete18_out_gaaa
U2_gaaa(x1, x2, x3, x4, x5)  =  U2_gaaa(x5)
delete26_in_gaa(x1, x2, x3)  =  delete26_in_gaa(x1)
delete26_out_gaa(x1, x2, x3)  =  delete26_out_gaa
U1_gaa(x1, x2, x3, x4, x5)  =  U1_gaa(x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x4, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x5)
perm35_in_ag(x1, x2)  =  perm35_in_ag(x2)
perm35_out_ag(x1, x2)  =  perm35_out_ag
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5)  =  U5_ag(x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x4, x5)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
le51_in_gg(x1, x2)  =  le51_in_gg(x1, x2)
s(x1)  =  s(x1)
U6_gg(x1, x2, x3)  =  U6_gg(x3)
0  =  0
le51_out_gg(x1, x2)  =  le51_out_gg
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x3, x4, x5)
U14_ag(x1, x2, x3, x4, x5)  =  U14_ag(x3, x4, x5)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x5)
SLOWSORT1_IN_AG(x1, x2)  =  SLOWSORT1_IN_AG(x2)
U7_AG(x1, x2, x3, x4, x5)  =  U7_AG(x5)
DELETE18_IN_GAAA(x1, x2, x3, x4)  =  DELETE18_IN_GAAA(x1)
U2_GAAA(x1, x2, x3, x4, x5)  =  U2_GAAA(x5)
DELETE26_IN_GAA(x1, x2, x3)  =  DELETE26_IN_GAA(x1)
U1_GAA(x1, x2, x3, x4, x5)  =  U1_GAA(x5)
U8_AG(x1, x2, x3, x4, x5)  =  U8_AG(x4, x5)
U9_AG(x1, x2, x3, x4, x5)  =  U9_AG(x5)
PERM35_IN_AG(x1, x2)  =  PERM35_IN_AG(x2)
U3_AG(x1, x2, x3, x4, x5)  =  U3_AG(x5)
U4_AG(x1, x2, x3, x4, x5)  =  U4_AG(x4, x5)
U5_AG(x1, x2, x3, x4, x5)  =  U5_AG(x5)
U10_AG(x1, x2, x3, x4, x5)  =  U10_AG(x3, x4, x5)
U11_AG(x1, x2, x3, x4, x5)  =  U11_AG(x3, x4, x5)
U12_AG(x1, x2, x3, x4, x5)  =  U12_AG(x5)
LE51_IN_GG(x1, x2)  =  LE51_IN_GG(x1, x2)
U6_GG(x1, x2, x3)  =  U6_GG(x3)
U13_AG(x1, x2, x3, x4, x5)  =  U13_AG(x3, x4, x5)
U14_AG(x1, x2, x3, x4, x5)  =  U14_AG(x3, x4, x5)
U15_AG(x1, x2, x3, x4, x5)  =  U15_AG(x5)

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

(33) Obligation:

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

SLOWSORT1_IN_AG(.(T20, .(T21, [])), .(T18, .(T19, []))) → U7_AG(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, X22))
SLOWSORT1_IN_AG(.(T20, .(T21, [])), .(T18, .(T19, []))) → DELETE18_IN_GAAA(T18, T20, T21, X22)
DELETE18_IN_GAAA(T52, T53, T55, X65) → U2_GAAA(T52, T53, T55, X65, delete26_in_gaa(T52, T55, X65))
DELETE18_IN_GAAA(T52, T53, T55, X65) → DELETE26_IN_GAA(T52, T55, X65)
DELETE26_IN_GAA(T76, .(T77, T79), X96) → U1_GAA(T76, T77, T79, X96, delete26_in_gaa(T76, T79, X96))
DELETE26_IN_GAA(T76, .(T77, T79), X96) → DELETE26_IN_GAA(T76, T79, X96)
SLOWSORT1_IN_AG(.(T20, .(T21, [])), .(T18, .(T19, []))) → U8_AG(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, T26))
U8_AG(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, T26)) → U9_AG(T20, T21, T18, T19, perm35_in_ag(T26, T19))
U8_AG(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, T26)) → PERM35_IN_AG(T26, T19)
PERM35_IN_AG(.(T96, .(T97, [])), .(T94, .(T95, []))) → U3_AG(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, X118))
PERM35_IN_AG(.(T96, .(T97, [])), .(T94, .(T95, []))) → DELETE18_IN_GAAA(T94, T96, T97, X118)
PERM35_IN_AG(.(T96, .(T97, [])), .(T94, .(T95, []))) → U4_AG(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, T102))
U4_AG(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → U5_AG(T96, T97, T94, T95, perm35_in_ag(T102, T95))
U4_AG(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → PERM35_IN_AG(T102, T95)
SLOWSORT1_IN_AG(.(T20, .(T21, [])), .(T118, .(T119, []))) → U10_AG(T20, T21, T118, T119, delete18_in_gaaa(T118, T20, T21, T26))
U10_AG(T20, T21, T118, T119, delete18_out_gaaa(T118, T20, T21, T26)) → U11_AG(T20, T21, T118, T119, perm35_in_ag(T26, T119))
U10_AG(T20, T21, T118, T119, delete18_out_gaaa(T118, T20, T21, T26)) → PERM35_IN_AG(T26, T119)
U11_AG(T20, T21, T118, T119, perm35_out_ag(T26, T119)) → U12_AG(T20, T21, T118, T119, le51_in_gg(T118, T119))
U11_AG(T20, T21, T118, T119, perm35_out_ag(T26, T119)) → LE51_IN_GG(T118, T119)
LE51_IN_GG(s(T132), s(T133)) → U6_GG(T132, T133, le51_in_gg(T132, T133))
LE51_IN_GG(s(T132), s(T133)) → LE51_IN_GG(T132, T133)
SLOWSORT1_IN_AG(.(T20, .(T21, [])), .(T118, .(T146, []))) → U13_AG(T20, T21, T118, T146, delete18_in_gaaa(T118, T20, T21, T26))
U13_AG(T20, T21, T118, T146, delete18_out_gaaa(T118, T20, T21, T26)) → U14_AG(T20, T21, T118, T146, perm35_in_ag(T26, T146))
U13_AG(T20, T21, T118, T146, delete18_out_gaaa(T118, T20, T21, T26)) → PERM35_IN_AG(T26, T146)
U14_AG(T20, T21, T118, T146, perm35_out_ag(T26, T146)) → U15_AG(T20, T21, T118, T146, le51_in_gg(T118, T146))
U14_AG(T20, T21, T118, T146, perm35_out_ag(T26, T146)) → LE51_IN_GG(T118, T146)

The TRS R consists of the following rules:

slowsort1_in_ag([], []) → slowsort1_out_ag([], [])
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U7_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, X22))
delete18_in_gaaa(T39, T39, T40, T40) → delete18_out_gaaa(T39, T39, T40, T40)
delete18_in_gaaa(T52, T53, T55, X65) → U2_gaaa(T52, T53, T55, X65, delete26_in_gaa(T52, T55, X65))
delete26_in_gaa(T68, .(T68, T69), T69) → delete26_out_gaa(T68, .(T68, T69), T69)
delete26_in_gaa(T76, .(T77, T79), X96) → U1_gaa(T76, T77, T79, X96, delete26_in_gaa(T76, T79, X96))
U1_gaa(T76, T77, T79, X96, delete26_out_gaa(T76, T79, X96)) → delete26_out_gaa(T76, .(T77, T79), X96)
U2_gaaa(T52, T53, T55, X65, delete26_out_gaa(T52, T55, X65)) → delete18_out_gaaa(T52, T53, T55, X65)
U7_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, X22)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U8_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, T26))
U8_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, T26)) → U9_ag(T20, T21, T18, T19, perm35_in_ag(T26, T19))
perm35_in_ag([], []) → perm35_out_ag([], [])
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U3_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, X118))
U3_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, X118)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U4_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, T102))
U4_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → U5_ag(T96, T97, T94, T95, perm35_in_ag(T102, T95))
U5_ag(T96, T97, T94, T95, perm35_out_ag(T102, T95)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
U9_ag(T20, T21, T18, T19, perm35_out_ag(T26, T19)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T119, []))) → U10_ag(T20, T21, T118, T119, delete18_in_gaaa(T118, T20, T21, T26))
U10_ag(T20, T21, T118, T119, delete18_out_gaaa(T118, T20, T21, T26)) → U11_ag(T20, T21, T118, T119, perm35_in_ag(T26, T119))
U11_ag(T20, T21, T118, T119, perm35_out_ag(T26, T119)) → U12_ag(T20, T21, T118, T119, le51_in_gg(T118, T119))
le51_in_gg(s(T132), s(T133)) → U6_gg(T132, T133, le51_in_gg(T132, T133))
le51_in_gg(0, s(T140)) → le51_out_gg(0, s(T140))
le51_in_gg(0, 0) → le51_out_gg(0, 0)
U6_gg(T132, T133, le51_out_gg(T132, T133)) → le51_out_gg(s(T132), s(T133))
U12_ag(T20, T21, T118, T119, le51_out_gg(T118, T119)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T119, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T146, []))) → U13_ag(T20, T21, T118, T146, delete18_in_gaaa(T118, T20, T21, T26))
U13_ag(T20, T21, T118, T146, delete18_out_gaaa(T118, T20, T21, T26)) → U14_ag(T20, T21, T118, T146, perm35_in_ag(T26, T146))
U14_ag(T20, T21, T118, T146, perm35_out_ag(T26, T146)) → U15_ag(T20, T21, T118, T146, le51_in_gg(T118, T146))
U15_ag(T20, T21, T118, T146, le51_out_gg(T118, T146)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T146, [])))

The argument filtering Pi contains the following mapping:
slowsort1_in_ag(x1, x2)  =  slowsort1_in_ag(x2)
[]  =  []
slowsort1_out_ag(x1, x2)  =  slowsort1_out_ag
.(x1, x2)  =  .(x1, x2)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x5)
delete18_in_gaaa(x1, x2, x3, x4)  =  delete18_in_gaaa(x1)
delete18_out_gaaa(x1, x2, x3, x4)  =  delete18_out_gaaa
U2_gaaa(x1, x2, x3, x4, x5)  =  U2_gaaa(x5)
delete26_in_gaa(x1, x2, x3)  =  delete26_in_gaa(x1)
delete26_out_gaa(x1, x2, x3)  =  delete26_out_gaa
U1_gaa(x1, x2, x3, x4, x5)  =  U1_gaa(x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x4, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x5)
perm35_in_ag(x1, x2)  =  perm35_in_ag(x2)
perm35_out_ag(x1, x2)  =  perm35_out_ag
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5)  =  U5_ag(x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x4, x5)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
le51_in_gg(x1, x2)  =  le51_in_gg(x1, x2)
s(x1)  =  s(x1)
U6_gg(x1, x2, x3)  =  U6_gg(x3)
0  =  0
le51_out_gg(x1, x2)  =  le51_out_gg
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x3, x4, x5)
U14_ag(x1, x2, x3, x4, x5)  =  U14_ag(x3, x4, x5)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x5)
SLOWSORT1_IN_AG(x1, x2)  =  SLOWSORT1_IN_AG(x2)
U7_AG(x1, x2, x3, x4, x5)  =  U7_AG(x5)
DELETE18_IN_GAAA(x1, x2, x3, x4)  =  DELETE18_IN_GAAA(x1)
U2_GAAA(x1, x2, x3, x4, x5)  =  U2_GAAA(x5)
DELETE26_IN_GAA(x1, x2, x3)  =  DELETE26_IN_GAA(x1)
U1_GAA(x1, x2, x3, x4, x5)  =  U1_GAA(x5)
U8_AG(x1, x2, x3, x4, x5)  =  U8_AG(x4, x5)
U9_AG(x1, x2, x3, x4, x5)  =  U9_AG(x5)
PERM35_IN_AG(x1, x2)  =  PERM35_IN_AG(x2)
U3_AG(x1, x2, x3, x4, x5)  =  U3_AG(x5)
U4_AG(x1, x2, x3, x4, x5)  =  U4_AG(x4, x5)
U5_AG(x1, x2, x3, x4, x5)  =  U5_AG(x5)
U10_AG(x1, x2, x3, x4, x5)  =  U10_AG(x3, x4, x5)
U11_AG(x1, x2, x3, x4, x5)  =  U11_AG(x3, x4, x5)
U12_AG(x1, x2, x3, x4, x5)  =  U12_AG(x5)
LE51_IN_GG(x1, x2)  =  LE51_IN_GG(x1, x2)
U6_GG(x1, x2, x3)  =  U6_GG(x3)
U13_AG(x1, x2, x3, x4, x5)  =  U13_AG(x3, x4, x5)
U14_AG(x1, x2, x3, x4, x5)  =  U14_AG(x3, x4, x5)
U15_AG(x1, x2, x3, x4, x5)  =  U15_AG(x5)

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

(34) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 3 SCCs with 22 less nodes.

(35) Complex Obligation (AND)

(36) Obligation:

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

LE51_IN_GG(s(T132), s(T133)) → LE51_IN_GG(T132, T133)

The TRS R consists of the following rules:

slowsort1_in_ag([], []) → slowsort1_out_ag([], [])
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U7_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, X22))
delete18_in_gaaa(T39, T39, T40, T40) → delete18_out_gaaa(T39, T39, T40, T40)
delete18_in_gaaa(T52, T53, T55, X65) → U2_gaaa(T52, T53, T55, X65, delete26_in_gaa(T52, T55, X65))
delete26_in_gaa(T68, .(T68, T69), T69) → delete26_out_gaa(T68, .(T68, T69), T69)
delete26_in_gaa(T76, .(T77, T79), X96) → U1_gaa(T76, T77, T79, X96, delete26_in_gaa(T76, T79, X96))
U1_gaa(T76, T77, T79, X96, delete26_out_gaa(T76, T79, X96)) → delete26_out_gaa(T76, .(T77, T79), X96)
U2_gaaa(T52, T53, T55, X65, delete26_out_gaa(T52, T55, X65)) → delete18_out_gaaa(T52, T53, T55, X65)
U7_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, X22)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U8_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, T26))
U8_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, T26)) → U9_ag(T20, T21, T18, T19, perm35_in_ag(T26, T19))
perm35_in_ag([], []) → perm35_out_ag([], [])
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U3_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, X118))
U3_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, X118)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U4_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, T102))
U4_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → U5_ag(T96, T97, T94, T95, perm35_in_ag(T102, T95))
U5_ag(T96, T97, T94, T95, perm35_out_ag(T102, T95)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
U9_ag(T20, T21, T18, T19, perm35_out_ag(T26, T19)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T119, []))) → U10_ag(T20, T21, T118, T119, delete18_in_gaaa(T118, T20, T21, T26))
U10_ag(T20, T21, T118, T119, delete18_out_gaaa(T118, T20, T21, T26)) → U11_ag(T20, T21, T118, T119, perm35_in_ag(T26, T119))
U11_ag(T20, T21, T118, T119, perm35_out_ag(T26, T119)) → U12_ag(T20, T21, T118, T119, le51_in_gg(T118, T119))
le51_in_gg(s(T132), s(T133)) → U6_gg(T132, T133, le51_in_gg(T132, T133))
le51_in_gg(0, s(T140)) → le51_out_gg(0, s(T140))
le51_in_gg(0, 0) → le51_out_gg(0, 0)
U6_gg(T132, T133, le51_out_gg(T132, T133)) → le51_out_gg(s(T132), s(T133))
U12_ag(T20, T21, T118, T119, le51_out_gg(T118, T119)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T119, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T146, []))) → U13_ag(T20, T21, T118, T146, delete18_in_gaaa(T118, T20, T21, T26))
U13_ag(T20, T21, T118, T146, delete18_out_gaaa(T118, T20, T21, T26)) → U14_ag(T20, T21, T118, T146, perm35_in_ag(T26, T146))
U14_ag(T20, T21, T118, T146, perm35_out_ag(T26, T146)) → U15_ag(T20, T21, T118, T146, le51_in_gg(T118, T146))
U15_ag(T20, T21, T118, T146, le51_out_gg(T118, T146)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T146, [])))

The argument filtering Pi contains the following mapping:
slowsort1_in_ag(x1, x2)  =  slowsort1_in_ag(x2)
[]  =  []
slowsort1_out_ag(x1, x2)  =  slowsort1_out_ag
.(x1, x2)  =  .(x1, x2)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x5)
delete18_in_gaaa(x1, x2, x3, x4)  =  delete18_in_gaaa(x1)
delete18_out_gaaa(x1, x2, x3, x4)  =  delete18_out_gaaa
U2_gaaa(x1, x2, x3, x4, x5)  =  U2_gaaa(x5)
delete26_in_gaa(x1, x2, x3)  =  delete26_in_gaa(x1)
delete26_out_gaa(x1, x2, x3)  =  delete26_out_gaa
U1_gaa(x1, x2, x3, x4, x5)  =  U1_gaa(x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x4, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x5)
perm35_in_ag(x1, x2)  =  perm35_in_ag(x2)
perm35_out_ag(x1, x2)  =  perm35_out_ag
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5)  =  U5_ag(x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x4, x5)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
le51_in_gg(x1, x2)  =  le51_in_gg(x1, x2)
s(x1)  =  s(x1)
U6_gg(x1, x2, x3)  =  U6_gg(x3)
0  =  0
le51_out_gg(x1, x2)  =  le51_out_gg
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x3, x4, x5)
U14_ag(x1, x2, x3, x4, x5)  =  U14_ag(x3, x4, x5)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x5)
LE51_IN_GG(x1, x2)  =  LE51_IN_GG(x1, x2)

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

(37) UsableRulesProof (EQUIVALENT transformation)

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

(38) Obligation:

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

LE51_IN_GG(s(T132), s(T133)) → LE51_IN_GG(T132, T133)

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

(39) PiDPToQDPProof (EQUIVALENT transformation)

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

(40) Obligation:

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

LE51_IN_GG(s(T132), s(T133)) → LE51_IN_GG(T132, T133)

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

(41) QDPSizeChangeProof (EQUIVALENT transformation)

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

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

  • LE51_IN_GG(s(T132), s(T133)) → LE51_IN_GG(T132, T133)
    The graph contains the following edges 1 > 1, 2 > 2

(42) YES

(43) Obligation:

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

DELETE26_IN_GAA(T76, .(T77, T79), X96) → DELETE26_IN_GAA(T76, T79, X96)

The TRS R consists of the following rules:

slowsort1_in_ag([], []) → slowsort1_out_ag([], [])
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U7_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, X22))
delete18_in_gaaa(T39, T39, T40, T40) → delete18_out_gaaa(T39, T39, T40, T40)
delete18_in_gaaa(T52, T53, T55, X65) → U2_gaaa(T52, T53, T55, X65, delete26_in_gaa(T52, T55, X65))
delete26_in_gaa(T68, .(T68, T69), T69) → delete26_out_gaa(T68, .(T68, T69), T69)
delete26_in_gaa(T76, .(T77, T79), X96) → U1_gaa(T76, T77, T79, X96, delete26_in_gaa(T76, T79, X96))
U1_gaa(T76, T77, T79, X96, delete26_out_gaa(T76, T79, X96)) → delete26_out_gaa(T76, .(T77, T79), X96)
U2_gaaa(T52, T53, T55, X65, delete26_out_gaa(T52, T55, X65)) → delete18_out_gaaa(T52, T53, T55, X65)
U7_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, X22)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U8_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, T26))
U8_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, T26)) → U9_ag(T20, T21, T18, T19, perm35_in_ag(T26, T19))
perm35_in_ag([], []) → perm35_out_ag([], [])
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U3_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, X118))
U3_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, X118)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U4_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, T102))
U4_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → U5_ag(T96, T97, T94, T95, perm35_in_ag(T102, T95))
U5_ag(T96, T97, T94, T95, perm35_out_ag(T102, T95)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
U9_ag(T20, T21, T18, T19, perm35_out_ag(T26, T19)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T119, []))) → U10_ag(T20, T21, T118, T119, delete18_in_gaaa(T118, T20, T21, T26))
U10_ag(T20, T21, T118, T119, delete18_out_gaaa(T118, T20, T21, T26)) → U11_ag(T20, T21, T118, T119, perm35_in_ag(T26, T119))
U11_ag(T20, T21, T118, T119, perm35_out_ag(T26, T119)) → U12_ag(T20, T21, T118, T119, le51_in_gg(T118, T119))
le51_in_gg(s(T132), s(T133)) → U6_gg(T132, T133, le51_in_gg(T132, T133))
le51_in_gg(0, s(T140)) → le51_out_gg(0, s(T140))
le51_in_gg(0, 0) → le51_out_gg(0, 0)
U6_gg(T132, T133, le51_out_gg(T132, T133)) → le51_out_gg(s(T132), s(T133))
U12_ag(T20, T21, T118, T119, le51_out_gg(T118, T119)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T119, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T146, []))) → U13_ag(T20, T21, T118, T146, delete18_in_gaaa(T118, T20, T21, T26))
U13_ag(T20, T21, T118, T146, delete18_out_gaaa(T118, T20, T21, T26)) → U14_ag(T20, T21, T118, T146, perm35_in_ag(T26, T146))
U14_ag(T20, T21, T118, T146, perm35_out_ag(T26, T146)) → U15_ag(T20, T21, T118, T146, le51_in_gg(T118, T146))
U15_ag(T20, T21, T118, T146, le51_out_gg(T118, T146)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T146, [])))

The argument filtering Pi contains the following mapping:
slowsort1_in_ag(x1, x2)  =  slowsort1_in_ag(x2)
[]  =  []
slowsort1_out_ag(x1, x2)  =  slowsort1_out_ag
.(x1, x2)  =  .(x1, x2)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x5)
delete18_in_gaaa(x1, x2, x3, x4)  =  delete18_in_gaaa(x1)
delete18_out_gaaa(x1, x2, x3, x4)  =  delete18_out_gaaa
U2_gaaa(x1, x2, x3, x4, x5)  =  U2_gaaa(x5)
delete26_in_gaa(x1, x2, x3)  =  delete26_in_gaa(x1)
delete26_out_gaa(x1, x2, x3)  =  delete26_out_gaa
U1_gaa(x1, x2, x3, x4, x5)  =  U1_gaa(x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x4, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x5)
perm35_in_ag(x1, x2)  =  perm35_in_ag(x2)
perm35_out_ag(x1, x2)  =  perm35_out_ag
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5)  =  U5_ag(x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x4, x5)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
le51_in_gg(x1, x2)  =  le51_in_gg(x1, x2)
s(x1)  =  s(x1)
U6_gg(x1, x2, x3)  =  U6_gg(x3)
0  =  0
le51_out_gg(x1, x2)  =  le51_out_gg
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x3, x4, x5)
U14_ag(x1, x2, x3, x4, x5)  =  U14_ag(x3, x4, x5)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x5)
DELETE26_IN_GAA(x1, x2, x3)  =  DELETE26_IN_GAA(x1)

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

(44) UsableRulesProof (EQUIVALENT transformation)

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

(45) Obligation:

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

DELETE26_IN_GAA(T76, .(T77, T79), X96) → DELETE26_IN_GAA(T76, T79, X96)

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

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

(46) PiDPToQDPProof (SOUND transformation)

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

(47) Obligation:

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

DELETE26_IN_GAA(T76) → DELETE26_IN_GAA(T76)

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

(48) NonTerminationProof (EQUIVALENT transformation)

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

s = DELETE26_IN_GAA(T76) evaluates to t =DELETE26_IN_GAA(T76)

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




Rewriting sequence

The DP semiunifies directly so there is only one rewrite step from DELETE26_IN_GAA(T76) to DELETE26_IN_GAA(T76).



(49) NO

(50) Obligation:

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

PERM35_IN_AG(.(T96, .(T97, [])), .(T94, .(T95, []))) → U4_AG(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, T102))
U4_AG(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → PERM35_IN_AG(T102, T95)

The TRS R consists of the following rules:

slowsort1_in_ag([], []) → slowsort1_out_ag([], [])
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U7_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, X22))
delete18_in_gaaa(T39, T39, T40, T40) → delete18_out_gaaa(T39, T39, T40, T40)
delete18_in_gaaa(T52, T53, T55, X65) → U2_gaaa(T52, T53, T55, X65, delete26_in_gaa(T52, T55, X65))
delete26_in_gaa(T68, .(T68, T69), T69) → delete26_out_gaa(T68, .(T68, T69), T69)
delete26_in_gaa(T76, .(T77, T79), X96) → U1_gaa(T76, T77, T79, X96, delete26_in_gaa(T76, T79, X96))
U1_gaa(T76, T77, T79, X96, delete26_out_gaa(T76, T79, X96)) → delete26_out_gaa(T76, .(T77, T79), X96)
U2_gaaa(T52, T53, T55, X65, delete26_out_gaa(T52, T55, X65)) → delete18_out_gaaa(T52, T53, T55, X65)
U7_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, X22)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T18, .(T19, []))) → U8_ag(T20, T21, T18, T19, delete18_in_gaaa(T18, T20, T21, T26))
U8_ag(T20, T21, T18, T19, delete18_out_gaaa(T18, T20, T21, T26)) → U9_ag(T20, T21, T18, T19, perm35_in_ag(T26, T19))
perm35_in_ag([], []) → perm35_out_ag([], [])
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U3_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, X118))
U3_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, X118)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
perm35_in_ag(.(T96, .(T97, [])), .(T94, .(T95, []))) → U4_ag(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, T102))
U4_ag(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → U5_ag(T96, T97, T94, T95, perm35_in_ag(T102, T95))
U5_ag(T96, T97, T94, T95, perm35_out_ag(T102, T95)) → perm35_out_ag(.(T96, .(T97, [])), .(T94, .(T95, [])))
U9_ag(T20, T21, T18, T19, perm35_out_ag(T26, T19)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T18, .(T19, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T119, []))) → U10_ag(T20, T21, T118, T119, delete18_in_gaaa(T118, T20, T21, T26))
U10_ag(T20, T21, T118, T119, delete18_out_gaaa(T118, T20, T21, T26)) → U11_ag(T20, T21, T118, T119, perm35_in_ag(T26, T119))
U11_ag(T20, T21, T118, T119, perm35_out_ag(T26, T119)) → U12_ag(T20, T21, T118, T119, le51_in_gg(T118, T119))
le51_in_gg(s(T132), s(T133)) → U6_gg(T132, T133, le51_in_gg(T132, T133))
le51_in_gg(0, s(T140)) → le51_out_gg(0, s(T140))
le51_in_gg(0, 0) → le51_out_gg(0, 0)
U6_gg(T132, T133, le51_out_gg(T132, T133)) → le51_out_gg(s(T132), s(T133))
U12_ag(T20, T21, T118, T119, le51_out_gg(T118, T119)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T119, [])))
slowsort1_in_ag(.(T20, .(T21, [])), .(T118, .(T146, []))) → U13_ag(T20, T21, T118, T146, delete18_in_gaaa(T118, T20, T21, T26))
U13_ag(T20, T21, T118, T146, delete18_out_gaaa(T118, T20, T21, T26)) → U14_ag(T20, T21, T118, T146, perm35_in_ag(T26, T146))
U14_ag(T20, T21, T118, T146, perm35_out_ag(T26, T146)) → U15_ag(T20, T21, T118, T146, le51_in_gg(T118, T146))
U15_ag(T20, T21, T118, T146, le51_out_gg(T118, T146)) → slowsort1_out_ag(.(T20, .(T21, [])), .(T118, .(T146, [])))

The argument filtering Pi contains the following mapping:
slowsort1_in_ag(x1, x2)  =  slowsort1_in_ag(x2)
[]  =  []
slowsort1_out_ag(x1, x2)  =  slowsort1_out_ag
.(x1, x2)  =  .(x1, x2)
U7_ag(x1, x2, x3, x4, x5)  =  U7_ag(x5)
delete18_in_gaaa(x1, x2, x3, x4)  =  delete18_in_gaaa(x1)
delete18_out_gaaa(x1, x2, x3, x4)  =  delete18_out_gaaa
U2_gaaa(x1, x2, x3, x4, x5)  =  U2_gaaa(x5)
delete26_in_gaa(x1, x2, x3)  =  delete26_in_gaa(x1)
delete26_out_gaa(x1, x2, x3)  =  delete26_out_gaa
U1_gaa(x1, x2, x3, x4, x5)  =  U1_gaa(x5)
U8_ag(x1, x2, x3, x4, x5)  =  U8_ag(x4, x5)
U9_ag(x1, x2, x3, x4, x5)  =  U9_ag(x5)
perm35_in_ag(x1, x2)  =  perm35_in_ag(x2)
perm35_out_ag(x1, x2)  =  perm35_out_ag
U3_ag(x1, x2, x3, x4, x5)  =  U3_ag(x5)
U4_ag(x1, x2, x3, x4, x5)  =  U4_ag(x4, x5)
U5_ag(x1, x2, x3, x4, x5)  =  U5_ag(x5)
U10_ag(x1, x2, x3, x4, x5)  =  U10_ag(x3, x4, x5)
U11_ag(x1, x2, x3, x4, x5)  =  U11_ag(x3, x4, x5)
U12_ag(x1, x2, x3, x4, x5)  =  U12_ag(x5)
le51_in_gg(x1, x2)  =  le51_in_gg(x1, x2)
s(x1)  =  s(x1)
U6_gg(x1, x2, x3)  =  U6_gg(x3)
0  =  0
le51_out_gg(x1, x2)  =  le51_out_gg
U13_ag(x1, x2, x3, x4, x5)  =  U13_ag(x3, x4, x5)
U14_ag(x1, x2, x3, x4, x5)  =  U14_ag(x3, x4, x5)
U15_ag(x1, x2, x3, x4, x5)  =  U15_ag(x5)
PERM35_IN_AG(x1, x2)  =  PERM35_IN_AG(x2)
U4_AG(x1, x2, x3, x4, x5)  =  U4_AG(x4, x5)

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

(51) UsableRulesProof (EQUIVALENT transformation)

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

(52) Obligation:

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

PERM35_IN_AG(.(T96, .(T97, [])), .(T94, .(T95, []))) → U4_AG(T96, T97, T94, T95, delete18_in_gaaa(T94, T96, T97, T102))
U4_AG(T96, T97, T94, T95, delete18_out_gaaa(T94, T96, T97, T102)) → PERM35_IN_AG(T102, T95)

The TRS R consists of the following rules:

delete18_in_gaaa(T39, T39, T40, T40) → delete18_out_gaaa(T39, T39, T40, T40)
delete18_in_gaaa(T52, T53, T55, X65) → U2_gaaa(T52, T53, T55, X65, delete26_in_gaa(T52, T55, X65))
U2_gaaa(T52, T53, T55, X65, delete26_out_gaa(T52, T55, X65)) → delete18_out_gaaa(T52, T53, T55, X65)
delete26_in_gaa(T68, .(T68, T69), T69) → delete26_out_gaa(T68, .(T68, T69), T69)
delete26_in_gaa(T76, .(T77, T79), X96) → U1_gaa(T76, T77, T79, X96, delete26_in_gaa(T76, T79, X96))
U1_gaa(T76, T77, T79, X96, delete26_out_gaa(T76, T79, X96)) → delete26_out_gaa(T76, .(T77, T79), X96)

The argument filtering Pi contains the following mapping:
[]  =  []
.(x1, x2)  =  .(x1, x2)
delete18_in_gaaa(x1, x2, x3, x4)  =  delete18_in_gaaa(x1)
delete18_out_gaaa(x1, x2, x3, x4)  =  delete18_out_gaaa
U2_gaaa(x1, x2, x3, x4, x5)  =  U2_gaaa(x5)
delete26_in_gaa(x1, x2, x3)  =  delete26_in_gaa(x1)
delete26_out_gaa(x1, x2, x3)  =  delete26_out_gaa
U1_gaa(x1, x2, x3, x4, x5)  =  U1_gaa(x5)
PERM35_IN_AG(x1, x2)  =  PERM35_IN_AG(x2)
U4_AG(x1, x2, x3, x4, x5)  =  U4_AG(x4, x5)

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

(53) PiDPToQDPProof (SOUND transformation)

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

(54) Obligation:

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

PERM35_IN_AG(.(T94, .(T95, []))) → U4_AG(T95, delete18_in_gaaa(T94))
U4_AG(T95, delete18_out_gaaa) → PERM35_IN_AG(T95)

The TRS R consists of the following rules:

delete18_in_gaaa(T39) → delete18_out_gaaa
delete18_in_gaaa(T52) → U2_gaaa(delete26_in_gaa(T52))
U2_gaaa(delete26_out_gaa) → delete18_out_gaaa
delete26_in_gaa(T68) → delete26_out_gaa
delete26_in_gaa(T76) → U1_gaa(delete26_in_gaa(T76))
U1_gaa(delete26_out_gaa) → delete26_out_gaa

The set Q consists of the following terms:

delete18_in_gaaa(x0)
U2_gaaa(x0)
delete26_in_gaa(x0)
U1_gaa(x0)

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

(55) QDPSizeChangeProof (EQUIVALENT transformation)

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

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

  • U4_AG(T95, delete18_out_gaaa) → PERM35_IN_AG(T95)
    The graph contains the following edges 1 >= 1

  • PERM35_IN_AG(.(T94, .(T95, []))) → U4_AG(T95, delete18_in_gaaa(T94))
    The graph contains the following edges 1 > 1

(56) YES