↳ PROLOG
↳ PrologToPiTRSProof
With regard to the inferred argument filtering the predicates were used in the following modes:
perm2: (b,f)
delete3: (f,b,f)
Transforming PROLOG into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
perm_2_in_ga2(._22(X, Y), ._22(U, V)) -> if_perm_2_in_1_ga5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), W))
delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(U, ._22(X, Y), ._22(X, Z)) -> if_delete_3_in_1_aga5(U, X, Y, Z, delete_3_in_aga3(U, Y, Z))
if_delete_3_in_1_aga5(U, X, Y, Z, delete_3_out_aga3(U, Y, Z)) -> delete_3_out_aga3(U, ._22(X, Y), ._22(X, Z))
if_perm_2_in_1_ga5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), W)) -> if_perm_2_in_2_ga6(X, Y, U, V, W, perm_2_in_ga2(W, V))
if_perm_2_in_2_ga6(X, Y, U, V, W, perm_2_out_ga2(W, V)) -> perm_2_out_ga2(._22(X, Y), ._22(U, V))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
perm_2_in_ga2(._22(X, Y), ._22(U, V)) -> if_perm_2_in_1_ga5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), W))
delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(U, ._22(X, Y), ._22(X, Z)) -> if_delete_3_in_1_aga5(U, X, Y, Z, delete_3_in_aga3(U, Y, Z))
if_delete_3_in_1_aga5(U, X, Y, Z, delete_3_out_aga3(U, Y, Z)) -> delete_3_out_aga3(U, ._22(X, Y), ._22(X, Z))
if_perm_2_in_1_ga5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), W)) -> if_perm_2_in_2_ga6(X, Y, U, V, W, perm_2_in_ga2(W, V))
if_perm_2_in_2_ga6(X, Y, U, V, W, perm_2_out_ga2(W, V)) -> perm_2_out_ga2(._22(X, Y), ._22(U, V))
PERM_2_IN_GA2(._22(X, Y), ._22(U, V)) -> IF_PERM_2_IN_1_GA5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), W))
PERM_2_IN_GA2(._22(X, Y), ._22(U, V)) -> DELETE_3_IN_AGA3(U, ._22(X, Y), W)
DELETE_3_IN_AGA3(U, ._22(X, Y), ._22(X, Z)) -> IF_DELETE_3_IN_1_AGA5(U, X, Y, Z, delete_3_in_aga3(U, Y, Z))
DELETE_3_IN_AGA3(U, ._22(X, Y), ._22(X, Z)) -> DELETE_3_IN_AGA3(U, Y, Z)
IF_PERM_2_IN_1_GA5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), W)) -> IF_PERM_2_IN_2_GA6(X, Y, U, V, W, perm_2_in_ga2(W, V))
IF_PERM_2_IN_1_GA5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), W)) -> PERM_2_IN_GA2(W, V)
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
perm_2_in_ga2(._22(X, Y), ._22(U, V)) -> if_perm_2_in_1_ga5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), W))
delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(U, ._22(X, Y), ._22(X, Z)) -> if_delete_3_in_1_aga5(U, X, Y, Z, delete_3_in_aga3(U, Y, Z))
if_delete_3_in_1_aga5(U, X, Y, Z, delete_3_out_aga3(U, Y, Z)) -> delete_3_out_aga3(U, ._22(X, Y), ._22(X, Z))
if_perm_2_in_1_ga5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), W)) -> if_perm_2_in_2_ga6(X, Y, U, V, W, perm_2_in_ga2(W, V))
if_perm_2_in_2_ga6(X, Y, U, V, W, perm_2_out_ga2(W, V)) -> perm_2_out_ga2(._22(X, Y), ._22(U, V))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
PERM_2_IN_GA2(._22(X, Y), ._22(U, V)) -> IF_PERM_2_IN_1_GA5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), W))
PERM_2_IN_GA2(._22(X, Y), ._22(U, V)) -> DELETE_3_IN_AGA3(U, ._22(X, Y), W)
DELETE_3_IN_AGA3(U, ._22(X, Y), ._22(X, Z)) -> IF_DELETE_3_IN_1_AGA5(U, X, Y, Z, delete_3_in_aga3(U, Y, Z))
DELETE_3_IN_AGA3(U, ._22(X, Y), ._22(X, Z)) -> DELETE_3_IN_AGA3(U, Y, Z)
IF_PERM_2_IN_1_GA5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), W)) -> IF_PERM_2_IN_2_GA6(X, Y, U, V, W, perm_2_in_ga2(W, V))
IF_PERM_2_IN_1_GA5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), W)) -> PERM_2_IN_GA2(W, V)
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
perm_2_in_ga2(._22(X, Y), ._22(U, V)) -> if_perm_2_in_1_ga5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), W))
delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(U, ._22(X, Y), ._22(X, Z)) -> if_delete_3_in_1_aga5(U, X, Y, Z, delete_3_in_aga3(U, Y, Z))
if_delete_3_in_1_aga5(U, X, Y, Z, delete_3_out_aga3(U, Y, Z)) -> delete_3_out_aga3(U, ._22(X, Y), ._22(X, Z))
if_perm_2_in_1_ga5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), W)) -> if_perm_2_in_2_ga6(X, Y, U, V, W, perm_2_in_ga2(W, V))
if_perm_2_in_2_ga6(X, Y, U, V, W, perm_2_out_ga2(W, V)) -> perm_2_out_ga2(._22(X, Y), ._22(U, V))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
DELETE_3_IN_AGA3(U, ._22(X, Y), ._22(X, Z)) -> DELETE_3_IN_AGA3(U, Y, Z)
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
perm_2_in_ga2(._22(X, Y), ._22(U, V)) -> if_perm_2_in_1_ga5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), W))
delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(U, ._22(X, Y), ._22(X, Z)) -> if_delete_3_in_1_aga5(U, X, Y, Z, delete_3_in_aga3(U, Y, Z))
if_delete_3_in_1_aga5(U, X, Y, Z, delete_3_out_aga3(U, Y, Z)) -> delete_3_out_aga3(U, ._22(X, Y), ._22(X, Z))
if_perm_2_in_1_ga5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), W)) -> if_perm_2_in_2_ga6(X, Y, U, V, W, perm_2_in_ga2(W, V))
if_perm_2_in_2_ga6(X, Y, U, V, W, perm_2_out_ga2(W, V)) -> perm_2_out_ga2(._22(X, Y), ._22(U, V))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
DELETE_3_IN_AGA3(U, ._22(X, Y), ._22(X, Z)) -> DELETE_3_IN_AGA3(U, Y, Z)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
DELETE_3_IN_AGA1(._22(X, Y)) -> DELETE_3_IN_AGA1(Y)
From the DPs we obtained the following set of size-change graphs:
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
IF_PERM_2_IN_1_GA5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), W)) -> PERM_2_IN_GA2(W, V)
PERM_2_IN_GA2(._22(X, Y), ._22(U, V)) -> IF_PERM_2_IN_1_GA5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), W))
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
perm_2_in_ga2(._22(X, Y), ._22(U, V)) -> if_perm_2_in_1_ga5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), W))
delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(U, ._22(X, Y), ._22(X, Z)) -> if_delete_3_in_1_aga5(U, X, Y, Z, delete_3_in_aga3(U, Y, Z))
if_delete_3_in_1_aga5(U, X, Y, Z, delete_3_out_aga3(U, Y, Z)) -> delete_3_out_aga3(U, ._22(X, Y), ._22(X, Z))
if_perm_2_in_1_ga5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), W)) -> if_perm_2_in_2_ga6(X, Y, U, V, W, perm_2_in_ga2(W, V))
if_perm_2_in_2_ga6(X, Y, U, V, W, perm_2_out_ga2(W, V)) -> perm_2_out_ga2(._22(X, Y), ._22(U, V))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
IF_PERM_2_IN_1_GA5(X, Y, U, V, delete_3_out_aga3(U, ._22(X, Y), W)) -> PERM_2_IN_GA2(W, V)
PERM_2_IN_GA2(._22(X, Y), ._22(U, V)) -> IF_PERM_2_IN_1_GA5(X, Y, U, V, delete_3_in_aga3(U, ._22(X, Y), W))
delete_3_in_aga3(X, ._22(X, Y), Y) -> delete_3_out_aga3(X, ._22(X, Y), Y)
delete_3_in_aga3(U, ._22(X, Y), ._22(X, Z)) -> if_delete_3_in_1_aga5(U, X, Y, Z, delete_3_in_aga3(U, Y, Z))
if_delete_3_in_1_aga5(U, X, Y, Z, delete_3_out_aga3(U, Y, Z)) -> delete_3_out_aga3(U, ._22(X, Y), ._22(X, Z))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
IF_PERM_2_IN_1_GA1(delete_3_out_aga2(U, W)) -> PERM_2_IN_GA1(W)
PERM_2_IN_GA1(._22(X, Y)) -> IF_PERM_2_IN_1_GA1(delete_3_in_aga1(._22(X, Y)))
delete_3_in_aga1(._22(X, Y)) -> delete_3_out_aga2(X, Y)
delete_3_in_aga1(._22(X, Y)) -> if_delete_3_in_1_aga2(X, delete_3_in_aga1(Y))
if_delete_3_in_1_aga2(X, delete_3_out_aga2(U, Z)) -> delete_3_out_aga2(U, ._22(X, Z))
delete_3_in_aga1(x0)
if_delete_3_in_1_aga2(x0, x1)
IF_PERM_2_IN_1_GA1(delete_3_out_aga2(U, W)) -> PERM_2_IN_GA1(W)
delete_3_in_aga1(._22(X, Y)) -> delete_3_out_aga2(X, Y)
POL(._22(x1, x2)) = 1 + x1 + x2
POL(if_delete_3_in_1_aga2(x1, x2)) = 2 + 2·x1 + x2
POL(IF_PERM_2_IN_1_GA1(x1)) = x1
POL(delete_3_in_aga1(x1)) = 2·x1
POL(delete_3_out_aga2(x1, x2)) = 1 + x1 + 2·x2
POL(PERM_2_IN_GA1(x1)) = 2·x1
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ RuleRemovalProof
PERM_2_IN_GA1(._22(X, Y)) -> IF_PERM_2_IN_1_GA1(delete_3_in_aga1(._22(X, Y)))
delete_3_in_aga1(._22(X, Y)) -> if_delete_3_in_1_aga2(X, delete_3_in_aga1(Y))
if_delete_3_in_1_aga2(X, delete_3_out_aga2(U, Z)) -> delete_3_out_aga2(U, ._22(X, Z))
delete_3_in_aga1(x0)
if_delete_3_in_1_aga2(x0, x1)
delete_3_in_aga1(._22(X, Y)) -> if_delete_3_in_1_aga2(X, delete_3_in_aga1(Y))
POL(._22(x1, x2)) = 1 + x1 + x2
POL(if_delete_3_in_1_aga2(x1, x2)) = 1 + x1 + x2
POL(IF_PERM_2_IN_1_GA1(x1)) = x1
POL(delete_3_in_aga1(x1)) = 1 + 2·x1
POL(delete_3_out_aga2(x1, x2)) = x1 + x2
POL(PERM_2_IN_GA1(x1)) = 1 + 2·x1
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ DependencyGraphProof
PERM_2_IN_GA1(._22(X, Y)) -> IF_PERM_2_IN_1_GA1(delete_3_in_aga1(._22(X, Y)))
if_delete_3_in_1_aga2(X, delete_3_out_aga2(U, Z)) -> delete_3_out_aga2(U, ._22(X, Z))
delete_3_in_aga1(x0)
if_delete_3_in_1_aga2(x0, x1)