↳ PROLOG
↳ PrologToPiTRSProof
With regard to the inferred argument filtering the predicates were used in the following modes:
perm2: (b,f)
append23: (f,f,b)
append13: (b,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(L, ._22(H, T)) -> if_perm_2_in_1_ga4(L, H, T, append2_3_in_aag3(V, ._22(H, U), L))
append2_3_in_aag3([]_0, L, L) -> append2_3_out_aag3([]_0, L, L)
append2_3_in_aag3(._22(H, L1), L2, ._22(H, L3)) -> if_append2_3_in_1_aag5(H, L1, L2, L3, append2_3_in_aag3(L1, L2, L3))
if_append2_3_in_1_aag5(H, L1, L2, L3, append2_3_out_aag3(L1, L2, L3)) -> append2_3_out_aag3(._22(H, L1), L2, ._22(H, L3))
if_perm_2_in_1_ga4(L, H, T, append2_3_out_aag3(V, ._22(H, U), L)) -> if_perm_2_in_2_ga6(L, H, T, V, U, append1_3_in_gga3(V, U, W))
append1_3_in_gga3([]_0, L, L) -> append1_3_out_gga3([]_0, L, L)
append1_3_in_gga3(._22(H, L1), L2, ._22(H, L3)) -> if_append1_3_in_1_gga5(H, L1, L2, L3, append1_3_in_gga3(L1, L2, L3))
if_append1_3_in_1_gga5(H, L1, L2, L3, append1_3_out_gga3(L1, L2, L3)) -> append1_3_out_gga3(._22(H, L1), L2, ._22(H, L3))
if_perm_2_in_2_ga6(L, H, T, V, U, append1_3_out_gga3(V, U, W)) -> if_perm_2_in_3_ga5(L, H, T, W, perm_2_in_ga2(W, T))
if_perm_2_in_3_ga5(L, H, T, W, perm_2_out_ga2(W, T)) -> perm_2_out_ga2(L, ._22(H, T))
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(L, ._22(H, T)) -> if_perm_2_in_1_ga4(L, H, T, append2_3_in_aag3(V, ._22(H, U), L))
append2_3_in_aag3([]_0, L, L) -> append2_3_out_aag3([]_0, L, L)
append2_3_in_aag3(._22(H, L1), L2, ._22(H, L3)) -> if_append2_3_in_1_aag5(H, L1, L2, L3, append2_3_in_aag3(L1, L2, L3))
if_append2_3_in_1_aag5(H, L1, L2, L3, append2_3_out_aag3(L1, L2, L3)) -> append2_3_out_aag3(._22(H, L1), L2, ._22(H, L3))
if_perm_2_in_1_ga4(L, H, T, append2_3_out_aag3(V, ._22(H, U), L)) -> if_perm_2_in_2_ga6(L, H, T, V, U, append1_3_in_gga3(V, U, W))
append1_3_in_gga3([]_0, L, L) -> append1_3_out_gga3([]_0, L, L)
append1_3_in_gga3(._22(H, L1), L2, ._22(H, L3)) -> if_append1_3_in_1_gga5(H, L1, L2, L3, append1_3_in_gga3(L1, L2, L3))
if_append1_3_in_1_gga5(H, L1, L2, L3, append1_3_out_gga3(L1, L2, L3)) -> append1_3_out_gga3(._22(H, L1), L2, ._22(H, L3))
if_perm_2_in_2_ga6(L, H, T, V, U, append1_3_out_gga3(V, U, W)) -> if_perm_2_in_3_ga5(L, H, T, W, perm_2_in_ga2(W, T))
if_perm_2_in_3_ga5(L, H, T, W, perm_2_out_ga2(W, T)) -> perm_2_out_ga2(L, ._22(H, T))
PERM_2_IN_GA2(L, ._22(H, T)) -> IF_PERM_2_IN_1_GA4(L, H, T, append2_3_in_aag3(V, ._22(H, U), L))
PERM_2_IN_GA2(L, ._22(H, T)) -> APPEND2_3_IN_AAG3(V, ._22(H, U), L)
APPEND2_3_IN_AAG3(._22(H, L1), L2, ._22(H, L3)) -> IF_APPEND2_3_IN_1_AAG5(H, L1, L2, L3, append2_3_in_aag3(L1, L2, L3))
APPEND2_3_IN_AAG3(._22(H, L1), L2, ._22(H, L3)) -> APPEND2_3_IN_AAG3(L1, L2, L3)
IF_PERM_2_IN_1_GA4(L, H, T, append2_3_out_aag3(V, ._22(H, U), L)) -> IF_PERM_2_IN_2_GA6(L, H, T, V, U, append1_3_in_gga3(V, U, W))
IF_PERM_2_IN_1_GA4(L, H, T, append2_3_out_aag3(V, ._22(H, U), L)) -> APPEND1_3_IN_GGA3(V, U, W)
APPEND1_3_IN_GGA3(._22(H, L1), L2, ._22(H, L3)) -> IF_APPEND1_3_IN_1_GGA5(H, L1, L2, L3, append1_3_in_gga3(L1, L2, L3))
APPEND1_3_IN_GGA3(._22(H, L1), L2, ._22(H, L3)) -> APPEND1_3_IN_GGA3(L1, L2, L3)
IF_PERM_2_IN_2_GA6(L, H, T, V, U, append1_3_out_gga3(V, U, W)) -> IF_PERM_2_IN_3_GA5(L, H, T, W, perm_2_in_ga2(W, T))
IF_PERM_2_IN_2_GA6(L, H, T, V, U, append1_3_out_gga3(V, U, W)) -> PERM_2_IN_GA2(W, T)
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
perm_2_in_ga2(L, ._22(H, T)) -> if_perm_2_in_1_ga4(L, H, T, append2_3_in_aag3(V, ._22(H, U), L))
append2_3_in_aag3([]_0, L, L) -> append2_3_out_aag3([]_0, L, L)
append2_3_in_aag3(._22(H, L1), L2, ._22(H, L3)) -> if_append2_3_in_1_aag5(H, L1, L2, L3, append2_3_in_aag3(L1, L2, L3))
if_append2_3_in_1_aag5(H, L1, L2, L3, append2_3_out_aag3(L1, L2, L3)) -> append2_3_out_aag3(._22(H, L1), L2, ._22(H, L3))
if_perm_2_in_1_ga4(L, H, T, append2_3_out_aag3(V, ._22(H, U), L)) -> if_perm_2_in_2_ga6(L, H, T, V, U, append1_3_in_gga3(V, U, W))
append1_3_in_gga3([]_0, L, L) -> append1_3_out_gga3([]_0, L, L)
append1_3_in_gga3(._22(H, L1), L2, ._22(H, L3)) -> if_append1_3_in_1_gga5(H, L1, L2, L3, append1_3_in_gga3(L1, L2, L3))
if_append1_3_in_1_gga5(H, L1, L2, L3, append1_3_out_gga3(L1, L2, L3)) -> append1_3_out_gga3(._22(H, L1), L2, ._22(H, L3))
if_perm_2_in_2_ga6(L, H, T, V, U, append1_3_out_gga3(V, U, W)) -> if_perm_2_in_3_ga5(L, H, T, W, perm_2_in_ga2(W, T))
if_perm_2_in_3_ga5(L, H, T, W, perm_2_out_ga2(W, T)) -> perm_2_out_ga2(L, ._22(H, T))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
PERM_2_IN_GA2(L, ._22(H, T)) -> IF_PERM_2_IN_1_GA4(L, H, T, append2_3_in_aag3(V, ._22(H, U), L))
PERM_2_IN_GA2(L, ._22(H, T)) -> APPEND2_3_IN_AAG3(V, ._22(H, U), L)
APPEND2_3_IN_AAG3(._22(H, L1), L2, ._22(H, L3)) -> IF_APPEND2_3_IN_1_AAG5(H, L1, L2, L3, append2_3_in_aag3(L1, L2, L3))
APPEND2_3_IN_AAG3(._22(H, L1), L2, ._22(H, L3)) -> APPEND2_3_IN_AAG3(L1, L2, L3)
IF_PERM_2_IN_1_GA4(L, H, T, append2_3_out_aag3(V, ._22(H, U), L)) -> IF_PERM_2_IN_2_GA6(L, H, T, V, U, append1_3_in_gga3(V, U, W))
IF_PERM_2_IN_1_GA4(L, H, T, append2_3_out_aag3(V, ._22(H, U), L)) -> APPEND1_3_IN_GGA3(V, U, W)
APPEND1_3_IN_GGA3(._22(H, L1), L2, ._22(H, L3)) -> IF_APPEND1_3_IN_1_GGA5(H, L1, L2, L3, append1_3_in_gga3(L1, L2, L3))
APPEND1_3_IN_GGA3(._22(H, L1), L2, ._22(H, L3)) -> APPEND1_3_IN_GGA3(L1, L2, L3)
IF_PERM_2_IN_2_GA6(L, H, T, V, U, append1_3_out_gga3(V, U, W)) -> IF_PERM_2_IN_3_GA5(L, H, T, W, perm_2_in_ga2(W, T))
IF_PERM_2_IN_2_GA6(L, H, T, V, U, append1_3_out_gga3(V, U, W)) -> PERM_2_IN_GA2(W, T)
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
perm_2_in_ga2(L, ._22(H, T)) -> if_perm_2_in_1_ga4(L, H, T, append2_3_in_aag3(V, ._22(H, U), L))
append2_3_in_aag3([]_0, L, L) -> append2_3_out_aag3([]_0, L, L)
append2_3_in_aag3(._22(H, L1), L2, ._22(H, L3)) -> if_append2_3_in_1_aag5(H, L1, L2, L3, append2_3_in_aag3(L1, L2, L3))
if_append2_3_in_1_aag5(H, L1, L2, L3, append2_3_out_aag3(L1, L2, L3)) -> append2_3_out_aag3(._22(H, L1), L2, ._22(H, L3))
if_perm_2_in_1_ga4(L, H, T, append2_3_out_aag3(V, ._22(H, U), L)) -> if_perm_2_in_2_ga6(L, H, T, V, U, append1_3_in_gga3(V, U, W))
append1_3_in_gga3([]_0, L, L) -> append1_3_out_gga3([]_0, L, L)
append1_3_in_gga3(._22(H, L1), L2, ._22(H, L3)) -> if_append1_3_in_1_gga5(H, L1, L2, L3, append1_3_in_gga3(L1, L2, L3))
if_append1_3_in_1_gga5(H, L1, L2, L3, append1_3_out_gga3(L1, L2, L3)) -> append1_3_out_gga3(._22(H, L1), L2, ._22(H, L3))
if_perm_2_in_2_ga6(L, H, T, V, U, append1_3_out_gga3(V, U, W)) -> if_perm_2_in_3_ga5(L, H, T, W, perm_2_in_ga2(W, T))
if_perm_2_in_3_ga5(L, H, T, W, perm_2_out_ga2(W, T)) -> perm_2_out_ga2(L, ._22(H, T))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDP
APPEND1_3_IN_GGA3(._22(H, L1), L2, ._22(H, L3)) -> APPEND1_3_IN_GGA3(L1, L2, L3)
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
perm_2_in_ga2(L, ._22(H, T)) -> if_perm_2_in_1_ga4(L, H, T, append2_3_in_aag3(V, ._22(H, U), L))
append2_3_in_aag3([]_0, L, L) -> append2_3_out_aag3([]_0, L, L)
append2_3_in_aag3(._22(H, L1), L2, ._22(H, L3)) -> if_append2_3_in_1_aag5(H, L1, L2, L3, append2_3_in_aag3(L1, L2, L3))
if_append2_3_in_1_aag5(H, L1, L2, L3, append2_3_out_aag3(L1, L2, L3)) -> append2_3_out_aag3(._22(H, L1), L2, ._22(H, L3))
if_perm_2_in_1_ga4(L, H, T, append2_3_out_aag3(V, ._22(H, U), L)) -> if_perm_2_in_2_ga6(L, H, T, V, U, append1_3_in_gga3(V, U, W))
append1_3_in_gga3([]_0, L, L) -> append1_3_out_gga3([]_0, L, L)
append1_3_in_gga3(._22(H, L1), L2, ._22(H, L3)) -> if_append1_3_in_1_gga5(H, L1, L2, L3, append1_3_in_gga3(L1, L2, L3))
if_append1_3_in_1_gga5(H, L1, L2, L3, append1_3_out_gga3(L1, L2, L3)) -> append1_3_out_gga3(._22(H, L1), L2, ._22(H, L3))
if_perm_2_in_2_ga6(L, H, T, V, U, append1_3_out_gga3(V, U, W)) -> if_perm_2_in_3_ga5(L, H, T, W, perm_2_in_ga2(W, T))
if_perm_2_in_3_ga5(L, H, T, W, perm_2_out_ga2(W, T)) -> perm_2_out_ga2(L, ._22(H, T))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
↳ PiDP
APPEND1_3_IN_GGA3(._22(H, L1), L2, ._22(H, L3)) -> APPEND1_3_IN_GGA3(L1, L2, L3)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
↳ PiDP
APPEND1_3_IN_GGA2(._22(H, L1), L2) -> APPEND1_3_IN_GGA2(L1, L2)
From the DPs we obtained the following set of size-change graphs:
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
APPEND2_3_IN_AAG3(._22(H, L1), L2, ._22(H, L3)) -> APPEND2_3_IN_AAG3(L1, L2, L3)
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
perm_2_in_ga2(L, ._22(H, T)) -> if_perm_2_in_1_ga4(L, H, T, append2_3_in_aag3(V, ._22(H, U), L))
append2_3_in_aag3([]_0, L, L) -> append2_3_out_aag3([]_0, L, L)
append2_3_in_aag3(._22(H, L1), L2, ._22(H, L3)) -> if_append2_3_in_1_aag5(H, L1, L2, L3, append2_3_in_aag3(L1, L2, L3))
if_append2_3_in_1_aag5(H, L1, L2, L3, append2_3_out_aag3(L1, L2, L3)) -> append2_3_out_aag3(._22(H, L1), L2, ._22(H, L3))
if_perm_2_in_1_ga4(L, H, T, append2_3_out_aag3(V, ._22(H, U), L)) -> if_perm_2_in_2_ga6(L, H, T, V, U, append1_3_in_gga3(V, U, W))
append1_3_in_gga3([]_0, L, L) -> append1_3_out_gga3([]_0, L, L)
append1_3_in_gga3(._22(H, L1), L2, ._22(H, L3)) -> if_append1_3_in_1_gga5(H, L1, L2, L3, append1_3_in_gga3(L1, L2, L3))
if_append1_3_in_1_gga5(H, L1, L2, L3, append1_3_out_gga3(L1, L2, L3)) -> append1_3_out_gga3(._22(H, L1), L2, ._22(H, L3))
if_perm_2_in_2_ga6(L, H, T, V, U, append1_3_out_gga3(V, U, W)) -> if_perm_2_in_3_ga5(L, H, T, W, perm_2_in_ga2(W, T))
if_perm_2_in_3_ga5(L, H, T, W, perm_2_out_ga2(W, T)) -> perm_2_out_ga2(L, ._22(H, T))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
APPEND2_3_IN_AAG3(._22(H, L1), L2, ._22(H, L3)) -> APPEND2_3_IN_AAG3(L1, L2, L3)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
APPEND2_3_IN_AAG1(._22(H, L3)) -> APPEND2_3_IN_AAG1(L3)
From the DPs we obtained the following set of size-change graphs:
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
PERM_2_IN_GA2(L, ._22(H, T)) -> IF_PERM_2_IN_1_GA4(L, H, T, append2_3_in_aag3(V, ._22(H, U), L))
IF_PERM_2_IN_2_GA6(L, H, T, V, U, append1_3_out_gga3(V, U, W)) -> PERM_2_IN_GA2(W, T)
IF_PERM_2_IN_1_GA4(L, H, T, append2_3_out_aag3(V, ._22(H, U), L)) -> IF_PERM_2_IN_2_GA6(L, H, T, V, U, append1_3_in_gga3(V, U, W))
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
perm_2_in_ga2(L, ._22(H, T)) -> if_perm_2_in_1_ga4(L, H, T, append2_3_in_aag3(V, ._22(H, U), L))
append2_3_in_aag3([]_0, L, L) -> append2_3_out_aag3([]_0, L, L)
append2_3_in_aag3(._22(H, L1), L2, ._22(H, L3)) -> if_append2_3_in_1_aag5(H, L1, L2, L3, append2_3_in_aag3(L1, L2, L3))
if_append2_3_in_1_aag5(H, L1, L2, L3, append2_3_out_aag3(L1, L2, L3)) -> append2_3_out_aag3(._22(H, L1), L2, ._22(H, L3))
if_perm_2_in_1_ga4(L, H, T, append2_3_out_aag3(V, ._22(H, U), L)) -> if_perm_2_in_2_ga6(L, H, T, V, U, append1_3_in_gga3(V, U, W))
append1_3_in_gga3([]_0, L, L) -> append1_3_out_gga3([]_0, L, L)
append1_3_in_gga3(._22(H, L1), L2, ._22(H, L3)) -> if_append1_3_in_1_gga5(H, L1, L2, L3, append1_3_in_gga3(L1, L2, L3))
if_append1_3_in_1_gga5(H, L1, L2, L3, append1_3_out_gga3(L1, L2, L3)) -> append1_3_out_gga3(._22(H, L1), L2, ._22(H, L3))
if_perm_2_in_2_ga6(L, H, T, V, U, append1_3_out_gga3(V, U, W)) -> if_perm_2_in_3_ga5(L, H, T, W, perm_2_in_ga2(W, T))
if_perm_2_in_3_ga5(L, H, T, W, perm_2_out_ga2(W, T)) -> perm_2_out_ga2(L, ._22(H, T))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
PERM_2_IN_GA2(L, ._22(H, T)) -> IF_PERM_2_IN_1_GA4(L, H, T, append2_3_in_aag3(V, ._22(H, U), L))
IF_PERM_2_IN_2_GA6(L, H, T, V, U, append1_3_out_gga3(V, U, W)) -> PERM_2_IN_GA2(W, T)
IF_PERM_2_IN_1_GA4(L, H, T, append2_3_out_aag3(V, ._22(H, U), L)) -> IF_PERM_2_IN_2_GA6(L, H, T, V, U, append1_3_in_gga3(V, U, W))
append2_3_in_aag3([]_0, L, L) -> append2_3_out_aag3([]_0, L, L)
append2_3_in_aag3(._22(H, L1), L2, ._22(H, L3)) -> if_append2_3_in_1_aag5(H, L1, L2, L3, append2_3_in_aag3(L1, L2, L3))
append1_3_in_gga3([]_0, L, L) -> append1_3_out_gga3([]_0, L, L)
append1_3_in_gga3(._22(H, L1), L2, ._22(H, L3)) -> if_append1_3_in_1_gga5(H, L1, L2, L3, append1_3_in_gga3(L1, L2, L3))
if_append2_3_in_1_aag5(H, L1, L2, L3, append2_3_out_aag3(L1, L2, L3)) -> append2_3_out_aag3(._22(H, L1), L2, ._22(H, L3))
if_append1_3_in_1_gga5(H, L1, L2, L3, append1_3_out_gga3(L1, L2, L3)) -> append1_3_out_gga3(._22(H, L1), L2, ._22(H, L3))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
PERM_2_IN_GA1(L) -> IF_PERM_2_IN_1_GA1(append2_3_in_aag1(L))
IF_PERM_2_IN_2_GA2(H, append1_3_out_gga1(W)) -> PERM_2_IN_GA1(W)
IF_PERM_2_IN_1_GA1(append2_3_out_aag2(V, ._22(H, U))) -> IF_PERM_2_IN_2_GA2(H, append1_3_in_gga2(V, U))
append2_3_in_aag1(L) -> append2_3_out_aag2([]_0, L)
append2_3_in_aag1(._22(H, L3)) -> if_append2_3_in_1_aag2(H, append2_3_in_aag1(L3))
append1_3_in_gga2([]_0, L) -> append1_3_out_gga1(L)
append1_3_in_gga2(._22(H, L1), L2) -> if_append1_3_in_1_gga2(H, append1_3_in_gga2(L1, L2))
if_append2_3_in_1_aag2(H, append2_3_out_aag2(L1, L2)) -> append2_3_out_aag2(._22(H, L1), L2)
if_append1_3_in_1_gga2(H, append1_3_out_gga1(L3)) -> append1_3_out_gga1(._22(H, L3))
append2_3_in_aag1(x0)
append1_3_in_gga2(x0, x1)
if_append2_3_in_1_aag2(x0, x1)
if_append1_3_in_1_gga2(x0, x1)
append1_3_in_gga2([]_0, L) -> append1_3_out_gga1(L)
POL(append2_3_in_aag1(x1)) = 2 + x1
POL(._22(x1, x2)) = 1 + x1 + x2
POL(IF_PERM_2_IN_2_GA2(x1, x2)) = 1 + x1 + x2
POL(append2_3_out_aag2(x1, x2)) = x1 + x2
POL(append1_3_in_gga2(x1, x2)) = x1 + x2
POL(IF_PERM_2_IN_1_GA1(x1)) = x1
POL(if_append1_3_in_1_gga2(x1, x2)) = 1 + x1 + x2
POL(if_append2_3_in_1_aag2(x1, x2)) = 1 + x1 + x2
POL([]_0) = 2
POL(append1_3_out_gga1(x1)) = 1 + x1
POL(PERM_2_IN_GA1(x1)) = 2 + x1
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ QDPPoloProof
PERM_2_IN_GA1(L) -> IF_PERM_2_IN_1_GA1(append2_3_in_aag1(L))
IF_PERM_2_IN_2_GA2(H, append1_3_out_gga1(W)) -> PERM_2_IN_GA1(W)
IF_PERM_2_IN_1_GA1(append2_3_out_aag2(V, ._22(H, U))) -> IF_PERM_2_IN_2_GA2(H, append1_3_in_gga2(V, U))
append2_3_in_aag1(L) -> append2_3_out_aag2([]_0, L)
append2_3_in_aag1(._22(H, L3)) -> if_append2_3_in_1_aag2(H, append2_3_in_aag1(L3))
append1_3_in_gga2(._22(H, L1), L2) -> if_append1_3_in_1_gga2(H, append1_3_in_gga2(L1, L2))
if_append2_3_in_1_aag2(H, append2_3_out_aag2(L1, L2)) -> append2_3_out_aag2(._22(H, L1), L2)
if_append1_3_in_1_gga2(H, append1_3_out_gga1(L3)) -> append1_3_out_gga1(._22(H, L3))
append2_3_in_aag1(x0)
append1_3_in_gga2(x0, x1)
if_append2_3_in_1_aag2(x0, x1)
if_append1_3_in_1_gga2(x0, x1)
The remaining Dependency Pairs were at least non-strictly be oriented.
IF_PERM_2_IN_2_GA2(H, append1_3_out_gga1(W)) -> PERM_2_IN_GA1(W)
With the implicit AFS we had to orient the following set of usable rules non-strictly.
PERM_2_IN_GA1(L) -> IF_PERM_2_IN_1_GA1(append2_3_in_aag1(L))
IF_PERM_2_IN_1_GA1(append2_3_out_aag2(V, ._22(H, U))) -> IF_PERM_2_IN_2_GA2(H, append1_3_in_gga2(V, U))
Used ordering: POLO with Polynomial interpretation:
append1_3_in_gga2(._22(H, L1), L2) -> if_append1_3_in_1_gga2(H, append1_3_in_gga2(L1, L2))
if_append1_3_in_1_gga2(H, append1_3_out_gga1(L3)) -> append1_3_out_gga1(._22(H, L3))
POL(._22(x1, x2)) = 0
POL(append2_3_in_aag1(x1)) = 0
POL(IF_PERM_2_IN_2_GA2(x1, x2)) = x2
POL(append2_3_out_aag2(x1, x2)) = 0
POL(append1_3_in_gga2(x1, x2)) = 0
POL(IF_PERM_2_IN_1_GA1(x1)) = 0
POL(if_append1_3_in_1_gga2(x1, x2)) = x2
POL(if_append2_3_in_1_aag2(x1, x2)) = 0
POL([]_0) = 0
POL(append1_3_out_gga1(x1)) = 1
POL(PERM_2_IN_GA1(x1)) = 0
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ QDPPoloProof
↳ QDP
↳ DependencyGraphProof
PERM_2_IN_GA1(L) -> IF_PERM_2_IN_1_GA1(append2_3_in_aag1(L))
IF_PERM_2_IN_1_GA1(append2_3_out_aag2(V, ._22(H, U))) -> IF_PERM_2_IN_2_GA2(H, append1_3_in_gga2(V, U))
append2_3_in_aag1(L) -> append2_3_out_aag2([]_0, L)
append2_3_in_aag1(._22(H, L3)) -> if_append2_3_in_1_aag2(H, append2_3_in_aag1(L3))
append1_3_in_gga2(._22(H, L1), L2) -> if_append1_3_in_1_gga2(H, append1_3_in_gga2(L1, L2))
if_append2_3_in_1_aag2(H, append2_3_out_aag2(L1, L2)) -> append2_3_out_aag2(._22(H, L1), L2)
if_append1_3_in_1_gga2(H, append1_3_out_gga1(L3)) -> append1_3_out_gga1(._22(H, L3))
append2_3_in_aag1(x0)
append1_3_in_gga2(x0, x1)
if_append2_3_in_1_aag2(x0, x1)
if_append1_3_in_1_gga2(x0, x1)