(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(g,a).

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph.

(2) Obligation:

Clauses:

delete26(T70, .(T70, T71), T71).
delete26(T81, .(T79, T80), X96) :- delete26(T81, T80, X96).
delete18(T41, T41, T42, T42).
delete18(T57, T55, T56, X65) :- delete26(T57, T56, X65).
perm35([], []).
perm35(.(T95, .(T96, [])), .(T99, .(T100, []))) :- delete18(T99, T95, T96, X118).
perm35(.(T95, .(T96, [])), .(T99, .(T106, []))) :- ','(delete18(T99, T95, T96, T105), perm35(T105, T106)).
le51(s(T136), s(T137)) :- le51(T136, T137).
le51(0, s(T144)).
le51(0, 0).
slowsort1([], []).
slowsort1(.(T16, .(T17, [])), .(T20, .(T21, []))) :- delete18(T20, T16, T17, X22).
slowsort1(.(T16, .(T17, [])), .(T28, .(T27, []))) :- ','(delete18(T28, T16, T17, T26), perm35(T26, T27)).
slowsort1(.(T16, .(T17, [])), .(T122, .(T123, []))) :- ','(delete18(T122, T16, T17, T26), ','(perm35(T26, T123), le51(T122, T123))).
slowsort1(.(T16, .(T17, [])), .(T122, .(T150, []))) :- ','(delete18(T122, T16, T17, T26), ','(perm35(T26, T150), le51(T122, T150))).

Queries:

slowsort1(g,a).

(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: (b,f)
delete18_in: (f,b,b,f)
delete26_in: (f,b,f)
perm35_in: (b,f)
le51_in: (b,f)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

slowsort1_in_ga([], []) → slowsort1_out_ga([], [])
slowsort1_in_ga(.(T16, .(T17, [])), .(T20, .(T21, []))) → U7_ga(T16, T17, T20, T21, delete18_in_agga(T20, T16, T17, X22))
delete18_in_agga(T41, T41, T42, T42) → delete18_out_agga(T41, T41, T42, T42)
delete18_in_agga(T57, T55, T56, X65) → U2_agga(T57, T55, T56, X65, delete26_in_aga(T57, T56, X65))
delete26_in_aga(T70, .(T70, T71), T71) → delete26_out_aga(T70, .(T70, T71), T71)
delete26_in_aga(T81, .(T79, T80), X96) → U1_aga(T81, T79, T80, X96, delete26_in_aga(T81, T80, X96))
U1_aga(T81, T79, T80, X96, delete26_out_aga(T81, T80, X96)) → delete26_out_aga(T81, .(T79, T80), X96)
U2_agga(T57, T55, T56, X65, delete26_out_aga(T57, T56, X65)) → delete18_out_agga(T57, T55, T56, X65)
U7_ga(T16, T17, T20, T21, delete18_out_agga(T20, T16, T17, X22)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T20, .(T21, [])))
slowsort1_in_ga(.(T16, .(T17, [])), .(T28, .(T27, []))) → U8_ga(T16, T17, T28, T27, delete18_in_agga(T28, T16, T17, T26))
U8_ga(T16, T17, T28, T27, delete18_out_agga(T28, T16, T17, T26)) → U9_ga(T16, T17, T28, T27, perm35_in_ga(T26, T27))
perm35_in_ga([], []) → perm35_out_ga([], [])
perm35_in_ga(.(T95, .(T96, [])), .(T99, .(T100, []))) → U3_ga(T95, T96, T99, T100, delete18_in_agga(T99, T95, T96, X118))
U3_ga(T95, T96, T99, T100, delete18_out_agga(T99, T95, T96, X118)) → perm35_out_ga(.(T95, .(T96, [])), .(T99, .(T100, [])))
perm35_in_ga(.(T95, .(T96, [])), .(T99, .(T106, []))) → U4_ga(T95, T96, T99, T106, delete18_in_agga(T99, T95, T96, T105))
U4_ga(T95, T96, T99, T106, delete18_out_agga(T99, T95, T96, T105)) → U5_ga(T95, T96, T99, T106, perm35_in_ga(T105, T106))
U5_ga(T95, T96, T99, T106, perm35_out_ga(T105, T106)) → perm35_out_ga(.(T95, .(T96, [])), .(T99, .(T106, [])))
U9_ga(T16, T17, T28, T27, perm35_out_ga(T26, T27)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T28, .(T27, [])))
slowsort1_in_ga(.(T16, .(T17, [])), .(T122, .(T123, []))) → U10_ga(T16, T17, T122, T123, delete18_in_agga(T122, T16, T17, T26))
U10_ga(T16, T17, T122, T123, delete18_out_agga(T122, T16, T17, T26)) → U11_ga(T16, T17, T122, T123, perm35_in_ga(T26, T123))
U11_ga(T16, T17, T122, T123, perm35_out_ga(T26, T123)) → U12_ga(T16, T17, T122, T123, le51_in_ga(T122, T123))
le51_in_ga(s(T136), s(T137)) → U6_ga(T136, T137, le51_in_ga(T136, T137))
le51_in_ga(0, s(T144)) → le51_out_ga(0, s(T144))
le51_in_ga(0, 0) → le51_out_ga(0, 0)
U6_ga(T136, T137, le51_out_ga(T136, T137)) → le51_out_ga(s(T136), s(T137))
U12_ga(T16, T17, T122, T123, le51_out_ga(T122, T123)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T122, .(T123, [])))
slowsort1_in_ga(.(T16, .(T17, [])), .(T122, .(T150, []))) → U13_ga(T16, T17, T122, T150, delete18_in_agga(T122, T16, T17, T26))
U13_ga(T16, T17, T122, T150, delete18_out_agga(T122, T16, T17, T26)) → U14_ga(T16, T17, T122, T150, perm35_in_ga(T26, T150))
U14_ga(T16, T17, T122, T150, perm35_out_ga(T26, T150)) → U15_ga(T16, T17, T122, T150, le51_in_ga(T122, T150))
U15_ga(T16, T17, T122, T150, le51_out_ga(T122, T150)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T122, .(T150, [])))

The argument filtering Pi contains the following mapping:
slowsort1_in_ga(x1, x2)  =  slowsort1_in_ga(x1)
[]  =  []
slowsort1_out_ga(x1, x2)  =  slowsort1_out_ga
.(x1, x2)  =  .(x1, x2)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
delete18_in_agga(x1, x2, x3, x4)  =  delete18_in_agga(x2, x3)
delete18_out_agga(x1, x2, x3, x4)  =  delete18_out_agga(x1, x4)
U2_agga(x1, x2, x3, x4, x5)  =  U2_agga(x5)
delete26_in_aga(x1, x2, x3)  =  delete26_in_aga(x2)
delete26_out_aga(x1, x2, x3)  =  delete26_out_aga(x1, x3)
U1_aga(x1, x2, x3, x4, x5)  =  U1_aga(x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
perm35_in_ga(x1, x2)  =  perm35_in_ga(x1)
perm35_out_ga(x1, x2)  =  perm35_out_ga
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x5)
U11_ga(x1, x2, x3, x4, x5)  =  U11_ga(x3, x5)
U12_ga(x1, x2, x3, x4, x5)  =  U12_ga(x5)
le51_in_ga(x1, x2)  =  le51_in_ga(x1)
s(x1)  =  s(x1)
U6_ga(x1, x2, x3)  =  U6_ga(x3)
0  =  0
le51_out_ga(x1, x2)  =  le51_out_ga
U13_ga(x1, x2, x3, x4, x5)  =  U13_ga(x5)
U14_ga(x1, x2, x3, x4, x5)  =  U14_ga(x3, x5)
U15_ga(x1, x2, x3, x4, x5)  =  U15_ga(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_ga([], []) → slowsort1_out_ga([], [])
slowsort1_in_ga(.(T16, .(T17, [])), .(T20, .(T21, []))) → U7_ga(T16, T17, T20, T21, delete18_in_agga(T20, T16, T17, X22))
delete18_in_agga(T41, T41, T42, T42) → delete18_out_agga(T41, T41, T42, T42)
delete18_in_agga(T57, T55, T56, X65) → U2_agga(T57, T55, T56, X65, delete26_in_aga(T57, T56, X65))
delete26_in_aga(T70, .(T70, T71), T71) → delete26_out_aga(T70, .(T70, T71), T71)
delete26_in_aga(T81, .(T79, T80), X96) → U1_aga(T81, T79, T80, X96, delete26_in_aga(T81, T80, X96))
U1_aga(T81, T79, T80, X96, delete26_out_aga(T81, T80, X96)) → delete26_out_aga(T81, .(T79, T80), X96)
U2_agga(T57, T55, T56, X65, delete26_out_aga(T57, T56, X65)) → delete18_out_agga(T57, T55, T56, X65)
U7_ga(T16, T17, T20, T21, delete18_out_agga(T20, T16, T17, X22)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T20, .(T21, [])))
slowsort1_in_ga(.(T16, .(T17, [])), .(T28, .(T27, []))) → U8_ga(T16, T17, T28, T27, delete18_in_agga(T28, T16, T17, T26))
U8_ga(T16, T17, T28, T27, delete18_out_agga(T28, T16, T17, T26)) → U9_ga(T16, T17, T28, T27, perm35_in_ga(T26, T27))
perm35_in_ga([], []) → perm35_out_ga([], [])
perm35_in_ga(.(T95, .(T96, [])), .(T99, .(T100, []))) → U3_ga(T95, T96, T99, T100, delete18_in_agga(T99, T95, T96, X118))
U3_ga(T95, T96, T99, T100, delete18_out_agga(T99, T95, T96, X118)) → perm35_out_ga(.(T95, .(T96, [])), .(T99, .(T100, [])))
perm35_in_ga(.(T95, .(T96, [])), .(T99, .(T106, []))) → U4_ga(T95, T96, T99, T106, delete18_in_agga(T99, T95, T96, T105))
U4_ga(T95, T96, T99, T106, delete18_out_agga(T99, T95, T96, T105)) → U5_ga(T95, T96, T99, T106, perm35_in_ga(T105, T106))
U5_ga(T95, T96, T99, T106, perm35_out_ga(T105, T106)) → perm35_out_ga(.(T95, .(T96, [])), .(T99, .(T106, [])))
U9_ga(T16, T17, T28, T27, perm35_out_ga(T26, T27)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T28, .(T27, [])))
slowsort1_in_ga(.(T16, .(T17, [])), .(T122, .(T123, []))) → U10_ga(T16, T17, T122, T123, delete18_in_agga(T122, T16, T17, T26))
U10_ga(T16, T17, T122, T123, delete18_out_agga(T122, T16, T17, T26)) → U11_ga(T16, T17, T122, T123, perm35_in_ga(T26, T123))
U11_ga(T16, T17, T122, T123, perm35_out_ga(T26, T123)) → U12_ga(T16, T17, T122, T123, le51_in_ga(T122, T123))
le51_in_ga(s(T136), s(T137)) → U6_ga(T136, T137, le51_in_ga(T136, T137))
le51_in_ga(0, s(T144)) → le51_out_ga(0, s(T144))
le51_in_ga(0, 0) → le51_out_ga(0, 0)
U6_ga(T136, T137, le51_out_ga(T136, T137)) → le51_out_ga(s(T136), s(T137))
U12_ga(T16, T17, T122, T123, le51_out_ga(T122, T123)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T122, .(T123, [])))
slowsort1_in_ga(.(T16, .(T17, [])), .(T122, .(T150, []))) → U13_ga(T16, T17, T122, T150, delete18_in_agga(T122, T16, T17, T26))
U13_ga(T16, T17, T122, T150, delete18_out_agga(T122, T16, T17, T26)) → U14_ga(T16, T17, T122, T150, perm35_in_ga(T26, T150))
U14_ga(T16, T17, T122, T150, perm35_out_ga(T26, T150)) → U15_ga(T16, T17, T122, T150, le51_in_ga(T122, T150))
U15_ga(T16, T17, T122, T150, le51_out_ga(T122, T150)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T122, .(T150, [])))

The argument filtering Pi contains the following mapping:
slowsort1_in_ga(x1, x2)  =  slowsort1_in_ga(x1)
[]  =  []
slowsort1_out_ga(x1, x2)  =  slowsort1_out_ga
.(x1, x2)  =  .(x1, x2)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
delete18_in_agga(x1, x2, x3, x4)  =  delete18_in_agga(x2, x3)
delete18_out_agga(x1, x2, x3, x4)  =  delete18_out_agga(x1, x4)
U2_agga(x1, x2, x3, x4, x5)  =  U2_agga(x5)
delete26_in_aga(x1, x2, x3)  =  delete26_in_aga(x2)
delete26_out_aga(x1, x2, x3)  =  delete26_out_aga(x1, x3)
U1_aga(x1, x2, x3, x4, x5)  =  U1_aga(x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
perm35_in_ga(x1, x2)  =  perm35_in_ga(x1)
perm35_out_ga(x1, x2)  =  perm35_out_ga
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x5)
U11_ga(x1, x2, x3, x4, x5)  =  U11_ga(x3, x5)
U12_ga(x1, x2, x3, x4, x5)  =  U12_ga(x5)
le51_in_ga(x1, x2)  =  le51_in_ga(x1)
s(x1)  =  s(x1)
U6_ga(x1, x2, x3)  =  U6_ga(x3)
0  =  0
le51_out_ga(x1, x2)  =  le51_out_ga
U13_ga(x1, x2, x3, x4, x5)  =  U13_ga(x5)
U14_ga(x1, x2, x3, x4, x5)  =  U14_ga(x3, x5)
U15_ga(x1, x2, x3, x4, x5)  =  U15_ga(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_GA(.(T16, .(T17, [])), .(T20, .(T21, []))) → U7_GA(T16, T17, T20, T21, delete18_in_agga(T20, T16, T17, X22))
SLOWSORT1_IN_GA(.(T16, .(T17, [])), .(T20, .(T21, []))) → DELETE18_IN_AGGA(T20, T16, T17, X22)
DELETE18_IN_AGGA(T57, T55, T56, X65) → U2_AGGA(T57, T55, T56, X65, delete26_in_aga(T57, T56, X65))
DELETE18_IN_AGGA(T57, T55, T56, X65) → DELETE26_IN_AGA(T57, T56, X65)
DELETE26_IN_AGA(T81, .(T79, T80), X96) → U1_AGA(T81, T79, T80, X96, delete26_in_aga(T81, T80, X96))
DELETE26_IN_AGA(T81, .(T79, T80), X96) → DELETE26_IN_AGA(T81, T80, X96)
SLOWSORT1_IN_GA(.(T16, .(T17, [])), .(T28, .(T27, []))) → U8_GA(T16, T17, T28, T27, delete18_in_agga(T28, T16, T17, T26))
U8_GA(T16, T17, T28, T27, delete18_out_agga(T28, T16, T17, T26)) → U9_GA(T16, T17, T28, T27, perm35_in_ga(T26, T27))
U8_GA(T16, T17, T28, T27, delete18_out_agga(T28, T16, T17, T26)) → PERM35_IN_GA(T26, T27)
PERM35_IN_GA(.(T95, .(T96, [])), .(T99, .(T100, []))) → U3_GA(T95, T96, T99, T100, delete18_in_agga(T99, T95, T96, X118))
PERM35_IN_GA(.(T95, .(T96, [])), .(T99, .(T100, []))) → DELETE18_IN_AGGA(T99, T95, T96, X118)
PERM35_IN_GA(.(T95, .(T96, [])), .(T99, .(T106, []))) → U4_GA(T95, T96, T99, T106, delete18_in_agga(T99, T95, T96, T105))
U4_GA(T95, T96, T99, T106, delete18_out_agga(T99, T95, T96, T105)) → U5_GA(T95, T96, T99, T106, perm35_in_ga(T105, T106))
U4_GA(T95, T96, T99, T106, delete18_out_agga(T99, T95, T96, T105)) → PERM35_IN_GA(T105, T106)
SLOWSORT1_IN_GA(.(T16, .(T17, [])), .(T122, .(T123, []))) → U10_GA(T16, T17, T122, T123, delete18_in_agga(T122, T16, T17, T26))
U10_GA(T16, T17, T122, T123, delete18_out_agga(T122, T16, T17, T26)) → U11_GA(T16, T17, T122, T123, perm35_in_ga(T26, T123))
U10_GA(T16, T17, T122, T123, delete18_out_agga(T122, T16, T17, T26)) → PERM35_IN_GA(T26, T123)
U11_GA(T16, T17, T122, T123, perm35_out_ga(T26, T123)) → U12_GA(T16, T17, T122, T123, le51_in_ga(T122, T123))
U11_GA(T16, T17, T122, T123, perm35_out_ga(T26, T123)) → LE51_IN_GA(T122, T123)
LE51_IN_GA(s(T136), s(T137)) → U6_GA(T136, T137, le51_in_ga(T136, T137))
LE51_IN_GA(s(T136), s(T137)) → LE51_IN_GA(T136, T137)
SLOWSORT1_IN_GA(.(T16, .(T17, [])), .(T122, .(T150, []))) → U13_GA(T16, T17, T122, T150, delete18_in_agga(T122, T16, T17, T26))
U13_GA(T16, T17, T122, T150, delete18_out_agga(T122, T16, T17, T26)) → U14_GA(T16, T17, T122, T150, perm35_in_ga(T26, T150))
U13_GA(T16, T17, T122, T150, delete18_out_agga(T122, T16, T17, T26)) → PERM35_IN_GA(T26, T150)
U14_GA(T16, T17, T122, T150, perm35_out_ga(T26, T150)) → U15_GA(T16, T17, T122, T150, le51_in_ga(T122, T150))
U14_GA(T16, T17, T122, T150, perm35_out_ga(T26, T150)) → LE51_IN_GA(T122, T150)

The TRS R consists of the following rules:

slowsort1_in_ga([], []) → slowsort1_out_ga([], [])
slowsort1_in_ga(.(T16, .(T17, [])), .(T20, .(T21, []))) → U7_ga(T16, T17, T20, T21, delete18_in_agga(T20, T16, T17, X22))
delete18_in_agga(T41, T41, T42, T42) → delete18_out_agga(T41, T41, T42, T42)
delete18_in_agga(T57, T55, T56, X65) → U2_agga(T57, T55, T56, X65, delete26_in_aga(T57, T56, X65))
delete26_in_aga(T70, .(T70, T71), T71) → delete26_out_aga(T70, .(T70, T71), T71)
delete26_in_aga(T81, .(T79, T80), X96) → U1_aga(T81, T79, T80, X96, delete26_in_aga(T81, T80, X96))
U1_aga(T81, T79, T80, X96, delete26_out_aga(T81, T80, X96)) → delete26_out_aga(T81, .(T79, T80), X96)
U2_agga(T57, T55, T56, X65, delete26_out_aga(T57, T56, X65)) → delete18_out_agga(T57, T55, T56, X65)
U7_ga(T16, T17, T20, T21, delete18_out_agga(T20, T16, T17, X22)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T20, .(T21, [])))
slowsort1_in_ga(.(T16, .(T17, [])), .(T28, .(T27, []))) → U8_ga(T16, T17, T28, T27, delete18_in_agga(T28, T16, T17, T26))
U8_ga(T16, T17, T28, T27, delete18_out_agga(T28, T16, T17, T26)) → U9_ga(T16, T17, T28, T27, perm35_in_ga(T26, T27))
perm35_in_ga([], []) → perm35_out_ga([], [])
perm35_in_ga(.(T95, .(T96, [])), .(T99, .(T100, []))) → U3_ga(T95, T96, T99, T100, delete18_in_agga(T99, T95, T96, X118))
U3_ga(T95, T96, T99, T100, delete18_out_agga(T99, T95, T96, X118)) → perm35_out_ga(.(T95, .(T96, [])), .(T99, .(T100, [])))
perm35_in_ga(.(T95, .(T96, [])), .(T99, .(T106, []))) → U4_ga(T95, T96, T99, T106, delete18_in_agga(T99, T95, T96, T105))
U4_ga(T95, T96, T99, T106, delete18_out_agga(T99, T95, T96, T105)) → U5_ga(T95, T96, T99, T106, perm35_in_ga(T105, T106))
U5_ga(T95, T96, T99, T106, perm35_out_ga(T105, T106)) → perm35_out_ga(.(T95, .(T96, [])), .(T99, .(T106, [])))
U9_ga(T16, T17, T28, T27, perm35_out_ga(T26, T27)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T28, .(T27, [])))
slowsort1_in_ga(.(T16, .(T17, [])), .(T122, .(T123, []))) → U10_ga(T16, T17, T122, T123, delete18_in_agga(T122, T16, T17, T26))
U10_ga(T16, T17, T122, T123, delete18_out_agga(T122, T16, T17, T26)) → U11_ga(T16, T17, T122, T123, perm35_in_ga(T26, T123))
U11_ga(T16, T17, T122, T123, perm35_out_ga(T26, T123)) → U12_ga(T16, T17, T122, T123, le51_in_ga(T122, T123))
le51_in_ga(s(T136), s(T137)) → U6_ga(T136, T137, le51_in_ga(T136, T137))
le51_in_ga(0, s(T144)) → le51_out_ga(0, s(T144))
le51_in_ga(0, 0) → le51_out_ga(0, 0)
U6_ga(T136, T137, le51_out_ga(T136, T137)) → le51_out_ga(s(T136), s(T137))
U12_ga(T16, T17, T122, T123, le51_out_ga(T122, T123)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T122, .(T123, [])))
slowsort1_in_ga(.(T16, .(T17, [])), .(T122, .(T150, []))) → U13_ga(T16, T17, T122, T150, delete18_in_agga(T122, T16, T17, T26))
U13_ga(T16, T17, T122, T150, delete18_out_agga(T122, T16, T17, T26)) → U14_ga(T16, T17, T122, T150, perm35_in_ga(T26, T150))
U14_ga(T16, T17, T122, T150, perm35_out_ga(T26, T150)) → U15_ga(T16, T17, T122, T150, le51_in_ga(T122, T150))
U15_ga(T16, T17, T122, T150, le51_out_ga(T122, T150)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T122, .(T150, [])))

The argument filtering Pi contains the following mapping:
slowsort1_in_ga(x1, x2)  =  slowsort1_in_ga(x1)
[]  =  []
slowsort1_out_ga(x1, x2)  =  slowsort1_out_ga
.(x1, x2)  =  .(x1, x2)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
delete18_in_agga(x1, x2, x3, x4)  =  delete18_in_agga(x2, x3)
delete18_out_agga(x1, x2, x3, x4)  =  delete18_out_agga(x1, x4)
U2_agga(x1, x2, x3, x4, x5)  =  U2_agga(x5)
delete26_in_aga(x1, x2, x3)  =  delete26_in_aga(x2)
delete26_out_aga(x1, x2, x3)  =  delete26_out_aga(x1, x3)
U1_aga(x1, x2, x3, x4, x5)  =  U1_aga(x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
perm35_in_ga(x1, x2)  =  perm35_in_ga(x1)
perm35_out_ga(x1, x2)  =  perm35_out_ga
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x5)
U11_ga(x1, x2, x3, x4, x5)  =  U11_ga(x3, x5)
U12_ga(x1, x2, x3, x4, x5)  =  U12_ga(x5)
le51_in_ga(x1, x2)  =  le51_in_ga(x1)
s(x1)  =  s(x1)
U6_ga(x1, x2, x3)  =  U6_ga(x3)
0  =  0
le51_out_ga(x1, x2)  =  le51_out_ga
U13_ga(x1, x2, x3, x4, x5)  =  U13_ga(x5)
U14_ga(x1, x2, x3, x4, x5)  =  U14_ga(x3, x5)
U15_ga(x1, x2, x3, x4, x5)  =  U15_ga(x5)
SLOWSORT1_IN_GA(x1, x2)  =  SLOWSORT1_IN_GA(x1)
U7_GA(x1, x2, x3, x4, x5)  =  U7_GA(x5)
DELETE18_IN_AGGA(x1, x2, x3, x4)  =  DELETE18_IN_AGGA(x2, x3)
U2_AGGA(x1, x2, x3, x4, x5)  =  U2_AGGA(x5)
DELETE26_IN_AGA(x1, x2, x3)  =  DELETE26_IN_AGA(x2)
U1_AGA(x1, x2, x3, x4, x5)  =  U1_AGA(x5)
U8_GA(x1, x2, x3, x4, x5)  =  U8_GA(x5)
U9_GA(x1, x2, x3, x4, x5)  =  U9_GA(x5)
PERM35_IN_GA(x1, x2)  =  PERM35_IN_GA(x1)
U3_GA(x1, x2, x3, x4, x5)  =  U3_GA(x5)
U4_GA(x1, x2, x3, x4, x5)  =  U4_GA(x5)
U5_GA(x1, x2, x3, x4, x5)  =  U5_GA(x5)
U10_GA(x1, x2, x3, x4, x5)  =  U10_GA(x5)
U11_GA(x1, x2, x3, x4, x5)  =  U11_GA(x3, x5)
U12_GA(x1, x2, x3, x4, x5)  =  U12_GA(x5)
LE51_IN_GA(x1, x2)  =  LE51_IN_GA(x1)
U6_GA(x1, x2, x3)  =  U6_GA(x3)
U13_GA(x1, x2, x3, x4, x5)  =  U13_GA(x5)
U14_GA(x1, x2, x3, x4, x5)  =  U14_GA(x3, x5)
U15_GA(x1, x2, x3, x4, x5)  =  U15_GA(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_GA(.(T16, .(T17, [])), .(T20, .(T21, []))) → U7_GA(T16, T17, T20, T21, delete18_in_agga(T20, T16, T17, X22))
SLOWSORT1_IN_GA(.(T16, .(T17, [])), .(T20, .(T21, []))) → DELETE18_IN_AGGA(T20, T16, T17, X22)
DELETE18_IN_AGGA(T57, T55, T56, X65) → U2_AGGA(T57, T55, T56, X65, delete26_in_aga(T57, T56, X65))
DELETE18_IN_AGGA(T57, T55, T56, X65) → DELETE26_IN_AGA(T57, T56, X65)
DELETE26_IN_AGA(T81, .(T79, T80), X96) → U1_AGA(T81, T79, T80, X96, delete26_in_aga(T81, T80, X96))
DELETE26_IN_AGA(T81, .(T79, T80), X96) → DELETE26_IN_AGA(T81, T80, X96)
SLOWSORT1_IN_GA(.(T16, .(T17, [])), .(T28, .(T27, []))) → U8_GA(T16, T17, T28, T27, delete18_in_agga(T28, T16, T17, T26))
U8_GA(T16, T17, T28, T27, delete18_out_agga(T28, T16, T17, T26)) → U9_GA(T16, T17, T28, T27, perm35_in_ga(T26, T27))
U8_GA(T16, T17, T28, T27, delete18_out_agga(T28, T16, T17, T26)) → PERM35_IN_GA(T26, T27)
PERM35_IN_GA(.(T95, .(T96, [])), .(T99, .(T100, []))) → U3_GA(T95, T96, T99, T100, delete18_in_agga(T99, T95, T96, X118))
PERM35_IN_GA(.(T95, .(T96, [])), .(T99, .(T100, []))) → DELETE18_IN_AGGA(T99, T95, T96, X118)
PERM35_IN_GA(.(T95, .(T96, [])), .(T99, .(T106, []))) → U4_GA(T95, T96, T99, T106, delete18_in_agga(T99, T95, T96, T105))
U4_GA(T95, T96, T99, T106, delete18_out_agga(T99, T95, T96, T105)) → U5_GA(T95, T96, T99, T106, perm35_in_ga(T105, T106))
U4_GA(T95, T96, T99, T106, delete18_out_agga(T99, T95, T96, T105)) → PERM35_IN_GA(T105, T106)
SLOWSORT1_IN_GA(.(T16, .(T17, [])), .(T122, .(T123, []))) → U10_GA(T16, T17, T122, T123, delete18_in_agga(T122, T16, T17, T26))
U10_GA(T16, T17, T122, T123, delete18_out_agga(T122, T16, T17, T26)) → U11_GA(T16, T17, T122, T123, perm35_in_ga(T26, T123))
U10_GA(T16, T17, T122, T123, delete18_out_agga(T122, T16, T17, T26)) → PERM35_IN_GA(T26, T123)
U11_GA(T16, T17, T122, T123, perm35_out_ga(T26, T123)) → U12_GA(T16, T17, T122, T123, le51_in_ga(T122, T123))
U11_GA(T16, T17, T122, T123, perm35_out_ga(T26, T123)) → LE51_IN_GA(T122, T123)
LE51_IN_GA(s(T136), s(T137)) → U6_GA(T136, T137, le51_in_ga(T136, T137))
LE51_IN_GA(s(T136), s(T137)) → LE51_IN_GA(T136, T137)
SLOWSORT1_IN_GA(.(T16, .(T17, [])), .(T122, .(T150, []))) → U13_GA(T16, T17, T122, T150, delete18_in_agga(T122, T16, T17, T26))
U13_GA(T16, T17, T122, T150, delete18_out_agga(T122, T16, T17, T26)) → U14_GA(T16, T17, T122, T150, perm35_in_ga(T26, T150))
U13_GA(T16, T17, T122, T150, delete18_out_agga(T122, T16, T17, T26)) → PERM35_IN_GA(T26, T150)
U14_GA(T16, T17, T122, T150, perm35_out_ga(T26, T150)) → U15_GA(T16, T17, T122, T150, le51_in_ga(T122, T150))
U14_GA(T16, T17, T122, T150, perm35_out_ga(T26, T150)) → LE51_IN_GA(T122, T150)

The TRS R consists of the following rules:

slowsort1_in_ga([], []) → slowsort1_out_ga([], [])
slowsort1_in_ga(.(T16, .(T17, [])), .(T20, .(T21, []))) → U7_ga(T16, T17, T20, T21, delete18_in_agga(T20, T16, T17, X22))
delete18_in_agga(T41, T41, T42, T42) → delete18_out_agga(T41, T41, T42, T42)
delete18_in_agga(T57, T55, T56, X65) → U2_agga(T57, T55, T56, X65, delete26_in_aga(T57, T56, X65))
delete26_in_aga(T70, .(T70, T71), T71) → delete26_out_aga(T70, .(T70, T71), T71)
delete26_in_aga(T81, .(T79, T80), X96) → U1_aga(T81, T79, T80, X96, delete26_in_aga(T81, T80, X96))
U1_aga(T81, T79, T80, X96, delete26_out_aga(T81, T80, X96)) → delete26_out_aga(T81, .(T79, T80), X96)
U2_agga(T57, T55, T56, X65, delete26_out_aga(T57, T56, X65)) → delete18_out_agga(T57, T55, T56, X65)
U7_ga(T16, T17, T20, T21, delete18_out_agga(T20, T16, T17, X22)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T20, .(T21, [])))
slowsort1_in_ga(.(T16, .(T17, [])), .(T28, .(T27, []))) → U8_ga(T16, T17, T28, T27, delete18_in_agga(T28, T16, T17, T26))
U8_ga(T16, T17, T28, T27, delete18_out_agga(T28, T16, T17, T26)) → U9_ga(T16, T17, T28, T27, perm35_in_ga(T26, T27))
perm35_in_ga([], []) → perm35_out_ga([], [])
perm35_in_ga(.(T95, .(T96, [])), .(T99, .(T100, []))) → U3_ga(T95, T96, T99, T100, delete18_in_agga(T99, T95, T96, X118))
U3_ga(T95, T96, T99, T100, delete18_out_agga(T99, T95, T96, X118)) → perm35_out_ga(.(T95, .(T96, [])), .(T99, .(T100, [])))
perm35_in_ga(.(T95, .(T96, [])), .(T99, .(T106, []))) → U4_ga(T95, T96, T99, T106, delete18_in_agga(T99, T95, T96, T105))
U4_ga(T95, T96, T99, T106, delete18_out_agga(T99, T95, T96, T105)) → U5_ga(T95, T96, T99, T106, perm35_in_ga(T105, T106))
U5_ga(T95, T96, T99, T106, perm35_out_ga(T105, T106)) → perm35_out_ga(.(T95, .(T96, [])), .(T99, .(T106, [])))
U9_ga(T16, T17, T28, T27, perm35_out_ga(T26, T27)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T28, .(T27, [])))
slowsort1_in_ga(.(T16, .(T17, [])), .(T122, .(T123, []))) → U10_ga(T16, T17, T122, T123, delete18_in_agga(T122, T16, T17, T26))
U10_ga(T16, T17, T122, T123, delete18_out_agga(T122, T16, T17, T26)) → U11_ga(T16, T17, T122, T123, perm35_in_ga(T26, T123))
U11_ga(T16, T17, T122, T123, perm35_out_ga(T26, T123)) → U12_ga(T16, T17, T122, T123, le51_in_ga(T122, T123))
le51_in_ga(s(T136), s(T137)) → U6_ga(T136, T137, le51_in_ga(T136, T137))
le51_in_ga(0, s(T144)) → le51_out_ga(0, s(T144))
le51_in_ga(0, 0) → le51_out_ga(0, 0)
U6_ga(T136, T137, le51_out_ga(T136, T137)) → le51_out_ga(s(T136), s(T137))
U12_ga(T16, T17, T122, T123, le51_out_ga(T122, T123)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T122, .(T123, [])))
slowsort1_in_ga(.(T16, .(T17, [])), .(T122, .(T150, []))) → U13_ga(T16, T17, T122, T150, delete18_in_agga(T122, T16, T17, T26))
U13_ga(T16, T17, T122, T150, delete18_out_agga(T122, T16, T17, T26)) → U14_ga(T16, T17, T122, T150, perm35_in_ga(T26, T150))
U14_ga(T16, T17, T122, T150, perm35_out_ga(T26, T150)) → U15_ga(T16, T17, T122, T150, le51_in_ga(T122, T150))
U15_ga(T16, T17, T122, T150, le51_out_ga(T122, T150)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T122, .(T150, [])))

The argument filtering Pi contains the following mapping:
slowsort1_in_ga(x1, x2)  =  slowsort1_in_ga(x1)
[]  =  []
slowsort1_out_ga(x1, x2)  =  slowsort1_out_ga
.(x1, x2)  =  .(x1, x2)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
delete18_in_agga(x1, x2, x3, x4)  =  delete18_in_agga(x2, x3)
delete18_out_agga(x1, x2, x3, x4)  =  delete18_out_agga(x1, x4)
U2_agga(x1, x2, x3, x4, x5)  =  U2_agga(x5)
delete26_in_aga(x1, x2, x3)  =  delete26_in_aga(x2)
delete26_out_aga(x1, x2, x3)  =  delete26_out_aga(x1, x3)
U1_aga(x1, x2, x3, x4, x5)  =  U1_aga(x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
perm35_in_ga(x1, x2)  =  perm35_in_ga(x1)
perm35_out_ga(x1, x2)  =  perm35_out_ga
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x5)
U11_ga(x1, x2, x3, x4, x5)  =  U11_ga(x3, x5)
U12_ga(x1, x2, x3, x4, x5)  =  U12_ga(x5)
le51_in_ga(x1, x2)  =  le51_in_ga(x1)
s(x1)  =  s(x1)
U6_ga(x1, x2, x3)  =  U6_ga(x3)
0  =  0
le51_out_ga(x1, x2)  =  le51_out_ga
U13_ga(x1, x2, x3, x4, x5)  =  U13_ga(x5)
U14_ga(x1, x2, x3, x4, x5)  =  U14_ga(x3, x5)
U15_ga(x1, x2, x3, x4, x5)  =  U15_ga(x5)
SLOWSORT1_IN_GA(x1, x2)  =  SLOWSORT1_IN_GA(x1)
U7_GA(x1, x2, x3, x4, x5)  =  U7_GA(x5)
DELETE18_IN_AGGA(x1, x2, x3, x4)  =  DELETE18_IN_AGGA(x2, x3)
U2_AGGA(x1, x2, x3, x4, x5)  =  U2_AGGA(x5)
DELETE26_IN_AGA(x1, x2, x3)  =  DELETE26_IN_AGA(x2)
U1_AGA(x1, x2, x3, x4, x5)  =  U1_AGA(x5)
U8_GA(x1, x2, x3, x4, x5)  =  U8_GA(x5)
U9_GA(x1, x2, x3, x4, x5)  =  U9_GA(x5)
PERM35_IN_GA(x1, x2)  =  PERM35_IN_GA(x1)
U3_GA(x1, x2, x3, x4, x5)  =  U3_GA(x5)
U4_GA(x1, x2, x3, x4, x5)  =  U4_GA(x5)
U5_GA(x1, x2, x3, x4, x5)  =  U5_GA(x5)
U10_GA(x1, x2, x3, x4, x5)  =  U10_GA(x5)
U11_GA(x1, x2, x3, x4, x5)  =  U11_GA(x3, x5)
U12_GA(x1, x2, x3, x4, x5)  =  U12_GA(x5)
LE51_IN_GA(x1, x2)  =  LE51_IN_GA(x1)
U6_GA(x1, x2, x3)  =  U6_GA(x3)
U13_GA(x1, x2, x3, x4, x5)  =  U13_GA(x5)
U14_GA(x1, x2, x3, x4, x5)  =  U14_GA(x3, x5)
U15_GA(x1, x2, x3, x4, x5)  =  U15_GA(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_GA(s(T136), s(T137)) → LE51_IN_GA(T136, T137)

The TRS R consists of the following rules:

slowsort1_in_ga([], []) → slowsort1_out_ga([], [])
slowsort1_in_ga(.(T16, .(T17, [])), .(T20, .(T21, []))) → U7_ga(T16, T17, T20, T21, delete18_in_agga(T20, T16, T17, X22))
delete18_in_agga(T41, T41, T42, T42) → delete18_out_agga(T41, T41, T42, T42)
delete18_in_agga(T57, T55, T56, X65) → U2_agga(T57, T55, T56, X65, delete26_in_aga(T57, T56, X65))
delete26_in_aga(T70, .(T70, T71), T71) → delete26_out_aga(T70, .(T70, T71), T71)
delete26_in_aga(T81, .(T79, T80), X96) → U1_aga(T81, T79, T80, X96, delete26_in_aga(T81, T80, X96))
U1_aga(T81, T79, T80, X96, delete26_out_aga(T81, T80, X96)) → delete26_out_aga(T81, .(T79, T80), X96)
U2_agga(T57, T55, T56, X65, delete26_out_aga(T57, T56, X65)) → delete18_out_agga(T57, T55, T56, X65)
U7_ga(T16, T17, T20, T21, delete18_out_agga(T20, T16, T17, X22)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T20, .(T21, [])))
slowsort1_in_ga(.(T16, .(T17, [])), .(T28, .(T27, []))) → U8_ga(T16, T17, T28, T27, delete18_in_agga(T28, T16, T17, T26))
U8_ga(T16, T17, T28, T27, delete18_out_agga(T28, T16, T17, T26)) → U9_ga(T16, T17, T28, T27, perm35_in_ga(T26, T27))
perm35_in_ga([], []) → perm35_out_ga([], [])
perm35_in_ga(.(T95, .(T96, [])), .(T99, .(T100, []))) → U3_ga(T95, T96, T99, T100, delete18_in_agga(T99, T95, T96, X118))
U3_ga(T95, T96, T99, T100, delete18_out_agga(T99, T95, T96, X118)) → perm35_out_ga(.(T95, .(T96, [])), .(T99, .(T100, [])))
perm35_in_ga(.(T95, .(T96, [])), .(T99, .(T106, []))) → U4_ga(T95, T96, T99, T106, delete18_in_agga(T99, T95, T96, T105))
U4_ga(T95, T96, T99, T106, delete18_out_agga(T99, T95, T96, T105)) → U5_ga(T95, T96, T99, T106, perm35_in_ga(T105, T106))
U5_ga(T95, T96, T99, T106, perm35_out_ga(T105, T106)) → perm35_out_ga(.(T95, .(T96, [])), .(T99, .(T106, [])))
U9_ga(T16, T17, T28, T27, perm35_out_ga(T26, T27)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T28, .(T27, [])))
slowsort1_in_ga(.(T16, .(T17, [])), .(T122, .(T123, []))) → U10_ga(T16, T17, T122, T123, delete18_in_agga(T122, T16, T17, T26))
U10_ga(T16, T17, T122, T123, delete18_out_agga(T122, T16, T17, T26)) → U11_ga(T16, T17, T122, T123, perm35_in_ga(T26, T123))
U11_ga(T16, T17, T122, T123, perm35_out_ga(T26, T123)) → U12_ga(T16, T17, T122, T123, le51_in_ga(T122, T123))
le51_in_ga(s(T136), s(T137)) → U6_ga(T136, T137, le51_in_ga(T136, T137))
le51_in_ga(0, s(T144)) → le51_out_ga(0, s(T144))
le51_in_ga(0, 0) → le51_out_ga(0, 0)
U6_ga(T136, T137, le51_out_ga(T136, T137)) → le51_out_ga(s(T136), s(T137))
U12_ga(T16, T17, T122, T123, le51_out_ga(T122, T123)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T122, .(T123, [])))
slowsort1_in_ga(.(T16, .(T17, [])), .(T122, .(T150, []))) → U13_ga(T16, T17, T122, T150, delete18_in_agga(T122, T16, T17, T26))
U13_ga(T16, T17, T122, T150, delete18_out_agga(T122, T16, T17, T26)) → U14_ga(T16, T17, T122, T150, perm35_in_ga(T26, T150))
U14_ga(T16, T17, T122, T150, perm35_out_ga(T26, T150)) → U15_ga(T16, T17, T122, T150, le51_in_ga(T122, T150))
U15_ga(T16, T17, T122, T150, le51_out_ga(T122, T150)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T122, .(T150, [])))

The argument filtering Pi contains the following mapping:
slowsort1_in_ga(x1, x2)  =  slowsort1_in_ga(x1)
[]  =  []
slowsort1_out_ga(x1, x2)  =  slowsort1_out_ga
.(x1, x2)  =  .(x1, x2)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
delete18_in_agga(x1, x2, x3, x4)  =  delete18_in_agga(x2, x3)
delete18_out_agga(x1, x2, x3, x4)  =  delete18_out_agga(x1, x4)
U2_agga(x1, x2, x3, x4, x5)  =  U2_agga(x5)
delete26_in_aga(x1, x2, x3)  =  delete26_in_aga(x2)
delete26_out_aga(x1, x2, x3)  =  delete26_out_aga(x1, x3)
U1_aga(x1, x2, x3, x4, x5)  =  U1_aga(x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
perm35_in_ga(x1, x2)  =  perm35_in_ga(x1)
perm35_out_ga(x1, x2)  =  perm35_out_ga
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x5)
U11_ga(x1, x2, x3, x4, x5)  =  U11_ga(x3, x5)
U12_ga(x1, x2, x3, x4, x5)  =  U12_ga(x5)
le51_in_ga(x1, x2)  =  le51_in_ga(x1)
s(x1)  =  s(x1)
U6_ga(x1, x2, x3)  =  U6_ga(x3)
0  =  0
le51_out_ga(x1, x2)  =  le51_out_ga
U13_ga(x1, x2, x3, x4, x5)  =  U13_ga(x5)
U14_ga(x1, x2, x3, x4, x5)  =  U14_ga(x3, x5)
U15_ga(x1, x2, x3, x4, x5)  =  U15_ga(x5)
LE51_IN_GA(x1, x2)  =  LE51_IN_GA(x1)

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_GA(s(T136), s(T137)) → LE51_IN_GA(T136, T137)

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

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

(12) PiDPToQDPProof (SOUND 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_GA(s(T136)) → LE51_IN_GA(T136)

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_GA(s(T136)) → LE51_IN_GA(T136)
    The graph contains the following edges 1 > 1

(15) YES

(16) Obligation:

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

DELETE26_IN_AGA(T81, .(T79, T80), X96) → DELETE26_IN_AGA(T81, T80, X96)

The TRS R consists of the following rules:

slowsort1_in_ga([], []) → slowsort1_out_ga([], [])
slowsort1_in_ga(.(T16, .(T17, [])), .(T20, .(T21, []))) → U7_ga(T16, T17, T20, T21, delete18_in_agga(T20, T16, T17, X22))
delete18_in_agga(T41, T41, T42, T42) → delete18_out_agga(T41, T41, T42, T42)
delete18_in_agga(T57, T55, T56, X65) → U2_agga(T57, T55, T56, X65, delete26_in_aga(T57, T56, X65))
delete26_in_aga(T70, .(T70, T71), T71) → delete26_out_aga(T70, .(T70, T71), T71)
delete26_in_aga(T81, .(T79, T80), X96) → U1_aga(T81, T79, T80, X96, delete26_in_aga(T81, T80, X96))
U1_aga(T81, T79, T80, X96, delete26_out_aga(T81, T80, X96)) → delete26_out_aga(T81, .(T79, T80), X96)
U2_agga(T57, T55, T56, X65, delete26_out_aga(T57, T56, X65)) → delete18_out_agga(T57, T55, T56, X65)
U7_ga(T16, T17, T20, T21, delete18_out_agga(T20, T16, T17, X22)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T20, .(T21, [])))
slowsort1_in_ga(.(T16, .(T17, [])), .(T28, .(T27, []))) → U8_ga(T16, T17, T28, T27, delete18_in_agga(T28, T16, T17, T26))
U8_ga(T16, T17, T28, T27, delete18_out_agga(T28, T16, T17, T26)) → U9_ga(T16, T17, T28, T27, perm35_in_ga(T26, T27))
perm35_in_ga([], []) → perm35_out_ga([], [])
perm35_in_ga(.(T95, .(T96, [])), .(T99, .(T100, []))) → U3_ga(T95, T96, T99, T100, delete18_in_agga(T99, T95, T96, X118))
U3_ga(T95, T96, T99, T100, delete18_out_agga(T99, T95, T96, X118)) → perm35_out_ga(.(T95, .(T96, [])), .(T99, .(T100, [])))
perm35_in_ga(.(T95, .(T96, [])), .(T99, .(T106, []))) → U4_ga(T95, T96, T99, T106, delete18_in_agga(T99, T95, T96, T105))
U4_ga(T95, T96, T99, T106, delete18_out_agga(T99, T95, T96, T105)) → U5_ga(T95, T96, T99, T106, perm35_in_ga(T105, T106))
U5_ga(T95, T96, T99, T106, perm35_out_ga(T105, T106)) → perm35_out_ga(.(T95, .(T96, [])), .(T99, .(T106, [])))
U9_ga(T16, T17, T28, T27, perm35_out_ga(T26, T27)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T28, .(T27, [])))
slowsort1_in_ga(.(T16, .(T17, [])), .(T122, .(T123, []))) → U10_ga(T16, T17, T122, T123, delete18_in_agga(T122, T16, T17, T26))
U10_ga(T16, T17, T122, T123, delete18_out_agga(T122, T16, T17, T26)) → U11_ga(T16, T17, T122, T123, perm35_in_ga(T26, T123))
U11_ga(T16, T17, T122, T123, perm35_out_ga(T26, T123)) → U12_ga(T16, T17, T122, T123, le51_in_ga(T122, T123))
le51_in_ga(s(T136), s(T137)) → U6_ga(T136, T137, le51_in_ga(T136, T137))
le51_in_ga(0, s(T144)) → le51_out_ga(0, s(T144))
le51_in_ga(0, 0) → le51_out_ga(0, 0)
U6_ga(T136, T137, le51_out_ga(T136, T137)) → le51_out_ga(s(T136), s(T137))
U12_ga(T16, T17, T122, T123, le51_out_ga(T122, T123)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T122, .(T123, [])))
slowsort1_in_ga(.(T16, .(T17, [])), .(T122, .(T150, []))) → U13_ga(T16, T17, T122, T150, delete18_in_agga(T122, T16, T17, T26))
U13_ga(T16, T17, T122, T150, delete18_out_agga(T122, T16, T17, T26)) → U14_ga(T16, T17, T122, T150, perm35_in_ga(T26, T150))
U14_ga(T16, T17, T122, T150, perm35_out_ga(T26, T150)) → U15_ga(T16, T17, T122, T150, le51_in_ga(T122, T150))
U15_ga(T16, T17, T122, T150, le51_out_ga(T122, T150)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T122, .(T150, [])))

The argument filtering Pi contains the following mapping:
slowsort1_in_ga(x1, x2)  =  slowsort1_in_ga(x1)
[]  =  []
slowsort1_out_ga(x1, x2)  =  slowsort1_out_ga
.(x1, x2)  =  .(x1, x2)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
delete18_in_agga(x1, x2, x3, x4)  =  delete18_in_agga(x2, x3)
delete18_out_agga(x1, x2, x3, x4)  =  delete18_out_agga(x1, x4)
U2_agga(x1, x2, x3, x4, x5)  =  U2_agga(x5)
delete26_in_aga(x1, x2, x3)  =  delete26_in_aga(x2)
delete26_out_aga(x1, x2, x3)  =  delete26_out_aga(x1, x3)
U1_aga(x1, x2, x3, x4, x5)  =  U1_aga(x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
perm35_in_ga(x1, x2)  =  perm35_in_ga(x1)
perm35_out_ga(x1, x2)  =  perm35_out_ga
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x5)
U11_ga(x1, x2, x3, x4, x5)  =  U11_ga(x3, x5)
U12_ga(x1, x2, x3, x4, x5)  =  U12_ga(x5)
le51_in_ga(x1, x2)  =  le51_in_ga(x1)
s(x1)  =  s(x1)
U6_ga(x1, x2, x3)  =  U6_ga(x3)
0  =  0
le51_out_ga(x1, x2)  =  le51_out_ga
U13_ga(x1, x2, x3, x4, x5)  =  U13_ga(x5)
U14_ga(x1, x2, x3, x4, x5)  =  U14_ga(x3, x5)
U15_ga(x1, x2, x3, x4, x5)  =  U15_ga(x5)
DELETE26_IN_AGA(x1, x2, x3)  =  DELETE26_IN_AGA(x2)

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_AGA(T81, .(T79, T80), X96) → DELETE26_IN_AGA(T81, T80, X96)

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

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_AGA(.(T79, T80)) → DELETE26_IN_AGA(T80)

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

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

  • DELETE26_IN_AGA(.(T79, T80)) → DELETE26_IN_AGA(T80)
    The graph contains the following edges 1 > 1

(22) YES

(23) Obligation:

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

PERM35_IN_GA(.(T95, .(T96, [])), .(T99, .(T106, []))) → U4_GA(T95, T96, T99, T106, delete18_in_agga(T99, T95, T96, T105))
U4_GA(T95, T96, T99, T106, delete18_out_agga(T99, T95, T96, T105)) → PERM35_IN_GA(T105, T106)

The TRS R consists of the following rules:

slowsort1_in_ga([], []) → slowsort1_out_ga([], [])
slowsort1_in_ga(.(T16, .(T17, [])), .(T20, .(T21, []))) → U7_ga(T16, T17, T20, T21, delete18_in_agga(T20, T16, T17, X22))
delete18_in_agga(T41, T41, T42, T42) → delete18_out_agga(T41, T41, T42, T42)
delete18_in_agga(T57, T55, T56, X65) → U2_agga(T57, T55, T56, X65, delete26_in_aga(T57, T56, X65))
delete26_in_aga(T70, .(T70, T71), T71) → delete26_out_aga(T70, .(T70, T71), T71)
delete26_in_aga(T81, .(T79, T80), X96) → U1_aga(T81, T79, T80, X96, delete26_in_aga(T81, T80, X96))
U1_aga(T81, T79, T80, X96, delete26_out_aga(T81, T80, X96)) → delete26_out_aga(T81, .(T79, T80), X96)
U2_agga(T57, T55, T56, X65, delete26_out_aga(T57, T56, X65)) → delete18_out_agga(T57, T55, T56, X65)
U7_ga(T16, T17, T20, T21, delete18_out_agga(T20, T16, T17, X22)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T20, .(T21, [])))
slowsort1_in_ga(.(T16, .(T17, [])), .(T28, .(T27, []))) → U8_ga(T16, T17, T28, T27, delete18_in_agga(T28, T16, T17, T26))
U8_ga(T16, T17, T28, T27, delete18_out_agga(T28, T16, T17, T26)) → U9_ga(T16, T17, T28, T27, perm35_in_ga(T26, T27))
perm35_in_ga([], []) → perm35_out_ga([], [])
perm35_in_ga(.(T95, .(T96, [])), .(T99, .(T100, []))) → U3_ga(T95, T96, T99, T100, delete18_in_agga(T99, T95, T96, X118))
U3_ga(T95, T96, T99, T100, delete18_out_agga(T99, T95, T96, X118)) → perm35_out_ga(.(T95, .(T96, [])), .(T99, .(T100, [])))
perm35_in_ga(.(T95, .(T96, [])), .(T99, .(T106, []))) → U4_ga(T95, T96, T99, T106, delete18_in_agga(T99, T95, T96, T105))
U4_ga(T95, T96, T99, T106, delete18_out_agga(T99, T95, T96, T105)) → U5_ga(T95, T96, T99, T106, perm35_in_ga(T105, T106))
U5_ga(T95, T96, T99, T106, perm35_out_ga(T105, T106)) → perm35_out_ga(.(T95, .(T96, [])), .(T99, .(T106, [])))
U9_ga(T16, T17, T28, T27, perm35_out_ga(T26, T27)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T28, .(T27, [])))
slowsort1_in_ga(.(T16, .(T17, [])), .(T122, .(T123, []))) → U10_ga(T16, T17, T122, T123, delete18_in_agga(T122, T16, T17, T26))
U10_ga(T16, T17, T122, T123, delete18_out_agga(T122, T16, T17, T26)) → U11_ga(T16, T17, T122, T123, perm35_in_ga(T26, T123))
U11_ga(T16, T17, T122, T123, perm35_out_ga(T26, T123)) → U12_ga(T16, T17, T122, T123, le51_in_ga(T122, T123))
le51_in_ga(s(T136), s(T137)) → U6_ga(T136, T137, le51_in_ga(T136, T137))
le51_in_ga(0, s(T144)) → le51_out_ga(0, s(T144))
le51_in_ga(0, 0) → le51_out_ga(0, 0)
U6_ga(T136, T137, le51_out_ga(T136, T137)) → le51_out_ga(s(T136), s(T137))
U12_ga(T16, T17, T122, T123, le51_out_ga(T122, T123)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T122, .(T123, [])))
slowsort1_in_ga(.(T16, .(T17, [])), .(T122, .(T150, []))) → U13_ga(T16, T17, T122, T150, delete18_in_agga(T122, T16, T17, T26))
U13_ga(T16, T17, T122, T150, delete18_out_agga(T122, T16, T17, T26)) → U14_ga(T16, T17, T122, T150, perm35_in_ga(T26, T150))
U14_ga(T16, T17, T122, T150, perm35_out_ga(T26, T150)) → U15_ga(T16, T17, T122, T150, le51_in_ga(T122, T150))
U15_ga(T16, T17, T122, T150, le51_out_ga(T122, T150)) → slowsort1_out_ga(.(T16, .(T17, [])), .(T122, .(T150, [])))

The argument filtering Pi contains the following mapping:
slowsort1_in_ga(x1, x2)  =  slowsort1_in_ga(x1)
[]  =  []
slowsort1_out_ga(x1, x2)  =  slowsort1_out_ga
.(x1, x2)  =  .(x1, x2)
U7_ga(x1, x2, x3, x4, x5)  =  U7_ga(x5)
delete18_in_agga(x1, x2, x3, x4)  =  delete18_in_agga(x2, x3)
delete18_out_agga(x1, x2, x3, x4)  =  delete18_out_agga(x1, x4)
U2_agga(x1, x2, x3, x4, x5)  =  U2_agga(x5)
delete26_in_aga(x1, x2, x3)  =  delete26_in_aga(x2)
delete26_out_aga(x1, x2, x3)  =  delete26_out_aga(x1, x3)
U1_aga(x1, x2, x3, x4, x5)  =  U1_aga(x5)
U8_ga(x1, x2, x3, x4, x5)  =  U8_ga(x5)
U9_ga(x1, x2, x3, x4, x5)  =  U9_ga(x5)
perm35_in_ga(x1, x2)  =  perm35_in_ga(x1)
perm35_out_ga(x1, x2)  =  perm35_out_ga
U3_ga(x1, x2, x3, x4, x5)  =  U3_ga(x5)
U4_ga(x1, x2, x3, x4, x5)  =  U4_ga(x5)
U5_ga(x1, x2, x3, x4, x5)  =  U5_ga(x5)
U10_ga(x1, x2, x3, x4, x5)  =  U10_ga(x5)
U11_ga(x1, x2, x3, x4, x5)  =  U11_ga(x3, x5)
U12_ga(x1, x2, x3, x4, x5)  =  U12_ga(x5)
le51_in_ga(x1, x2)  =  le51_in_ga(x1)
s(x1)  =  s(x1)
U6_ga(x1, x2, x3)  =  U6_ga(x3)
0  =  0
le51_out_ga(x1, x2)  =  le51_out_ga
U13_ga(x1, x2, x3, x4, x5)  =  U13_ga(x5)
U14_ga(x1, x2, x3, x4, x5)  =  U14_ga(x3, x5)
U15_ga(x1, x2, x3, x4, x5)  =  U15_ga(x5)
PERM35_IN_GA(x1, x2)  =  PERM35_IN_GA(x1)
U4_GA(x1, x2, x3, x4, x5)  =  U4_GA(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_GA(.(T95, .(T96, [])), .(T99, .(T106, []))) → U4_GA(T95, T96, T99, T106, delete18_in_agga(T99, T95, T96, T105))
U4_GA(T95, T96, T99, T106, delete18_out_agga(T99, T95, T96, T105)) → PERM35_IN_GA(T105, T106)

The TRS R consists of the following rules:

delete18_in_agga(T41, T41, T42, T42) → delete18_out_agga(T41, T41, T42, T42)
delete18_in_agga(T57, T55, T56, X65) → U2_agga(T57, T55, T56, X65, delete26_in_aga(T57, T56, X65))
U2_agga(T57, T55, T56, X65, delete26_out_aga(T57, T56, X65)) → delete18_out_agga(T57, T55, T56, X65)
delete26_in_aga(T70, .(T70, T71), T71) → delete26_out_aga(T70, .(T70, T71), T71)
delete26_in_aga(T81, .(T79, T80), X96) → U1_aga(T81, T79, T80, X96, delete26_in_aga(T81, T80, X96))
U1_aga(T81, T79, T80, X96, delete26_out_aga(T81, T80, X96)) → delete26_out_aga(T81, .(T79, T80), X96)

The argument filtering Pi contains the following mapping:
[]  =  []
.(x1, x2)  =  .(x1, x2)
delete18_in_agga(x1, x2, x3, x4)  =  delete18_in_agga(x2, x3)
delete18_out_agga(x1, x2, x3, x4)  =  delete18_out_agga(x1, x4)
U2_agga(x1, x2, x3, x4, x5)  =  U2_agga(x5)
delete26_in_aga(x1, x2, x3)  =  delete26_in_aga(x2)
delete26_out_aga(x1, x2, x3)  =  delete26_out_aga(x1, x3)
U1_aga(x1, x2, x3, x4, x5)  =  U1_aga(x5)
PERM35_IN_GA(x1, x2)  =  PERM35_IN_GA(x1)
U4_GA(x1, x2, x3, x4, x5)  =  U4_GA(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_GA(.(T95, .(T96, []))) → U4_GA(delete18_in_agga(T95, T96))
U4_GA(delete18_out_agga(T99, T105)) → PERM35_IN_GA(T105)

The TRS R consists of the following rules:

delete18_in_agga(T41, T42) → delete18_out_agga(T41, T42)
delete18_in_agga(T55, T56) → U2_agga(delete26_in_aga(T56))
U2_agga(delete26_out_aga(T57, X65)) → delete18_out_agga(T57, X65)
delete26_in_aga(.(T70, T71)) → delete26_out_aga(T70, T71)
delete26_in_aga(.(T79, T80)) → U1_aga(delete26_in_aga(T80))
U1_aga(delete26_out_aga(T81, X96)) → delete26_out_aga(T81, X96)

The set Q consists of the following terms:

delete18_in_agga(x0, x1)
U2_agga(x0)
delete26_in_aga(x0)
U1_aga(x0)

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

(28) UsableRulesReductionPairsProof (EQUIVALENT transformation)

By using the usable rules with reduction pair processor [LPAR04] with a polynomial ordering [POLO], all dependency pairs and the corresponding usable rules [FROCOS05] can be oriented non-strictly. All non-usable rules are removed, and those dependency pairs and usable rules that have been oriented strictly or contain non-usable symbols in their left-hand side are removed as well.

The following dependency pairs can be deleted:

PERM35_IN_GA(.(T95, .(T96, []))) → U4_GA(delete18_in_agga(T95, T96))
U4_GA(delete18_out_agga(T99, T105)) → PERM35_IN_GA(T105)
The following rules are removed from R:

delete18_in_agga(T41, T42) → delete18_out_agga(T41, T42)
delete26_in_aga(.(T70, T71)) → delete26_out_aga(T70, T71)
delete26_in_aga(.(T79, T80)) → U1_aga(delete26_in_aga(T80))
U2_agga(delete26_out_aga(T57, X65)) → delete18_out_agga(T57, X65)
U1_aga(delete26_out_aga(T81, X96)) → delete26_out_aga(T81, X96)
Used ordering: POLO with Polynomial interpretation [POLO]:

POL(.(x1, x2)) = 1 + 2·x1 + 2·x2   
POL(PERM35_IN_GA(x1)) = 1 + x1   
POL(U1_aga(x1)) = 1 + x1   
POL(U2_agga(x1)) = 2 + x1   
POL(U4_GA(x1)) = 2·x1   
POL([]) = 0   
POL(delete18_in_agga(x1, x2)) = 2 + x1 + 2·x2   
POL(delete18_out_agga(x1, x2)) = 1 + x1 + 2·x2   
POL(delete26_in_aga(x1)) = x1   
POL(delete26_out_aga(x1, x2)) = x1 + 2·x2   

(29) Obligation:

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

delete18_in_agga(T55, T56) → U2_agga(delete26_in_aga(T56))

The set Q consists of the following terms:

delete18_in_agga(x0, x1)
U2_agga(x0)
delete26_in_aga(x0)
U1_aga(x0)

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

(30) PisEmptyProof (EQUIVALENT transformation)

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

(31) YES