↳ PROLOG
↳ PrologToPiTRSProof
With regard to the inferred argument filtering the predicates were used in the following modes:
perm2: (b,f)
app13: (f,f,b)
app23: (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(X, ._22(X0, Y)) -> if_perm_2_in_1_ga4(X, X0, Y, app1_3_in_aag3(X1, ._22(X0, X2), X))
app1_3_in_aag3(._22(X0, X), Y, ._22(X0, Z)) -> if_app1_3_in_1_aag5(X0, X, Y, Z, app1_3_in_aag3(X, Y, Z))
app1_3_in_aag3([]_0, Y, Y) -> app1_3_out_aag3([]_0, Y, Y)
if_app1_3_in_1_aag5(X0, X, Y, Z, app1_3_out_aag3(X, Y, Z)) -> app1_3_out_aag3(._22(X0, X), Y, ._22(X0, Z))
if_perm_2_in_1_ga4(X, X0, Y, app1_3_out_aag3(X1, ._22(X0, X2), X)) -> if_perm_2_in_2_ga6(X, X0, Y, X1, X2, app2_3_in_gga3(X1, X2, Z))
app2_3_in_gga3(._22(X0, X), Y, ._22(X0, Z)) -> if_app2_3_in_1_gga5(X0, X, Y, Z, app2_3_in_gga3(X, Y, Z))
app2_3_in_gga3([]_0, Y, Y) -> app2_3_out_gga3([]_0, Y, Y)
if_app2_3_in_1_gga5(X0, X, Y, Z, app2_3_out_gga3(X, Y, Z)) -> app2_3_out_gga3(._22(X0, X), Y, ._22(X0, Z))
if_perm_2_in_2_ga6(X, X0, Y, X1, X2, app2_3_out_gga3(X1, X2, Z)) -> if_perm_2_in_3_ga5(X, X0, Y, Z, perm_2_in_ga2(Z, Y))
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
if_perm_2_in_3_ga5(X, X0, Y, Z, perm_2_out_ga2(Z, Y)) -> perm_2_out_ga2(X, ._22(X0, Y))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
perm_2_in_ga2(X, ._22(X0, Y)) -> if_perm_2_in_1_ga4(X, X0, Y, app1_3_in_aag3(X1, ._22(X0, X2), X))
app1_3_in_aag3(._22(X0, X), Y, ._22(X0, Z)) -> if_app1_3_in_1_aag5(X0, X, Y, Z, app1_3_in_aag3(X, Y, Z))
app1_3_in_aag3([]_0, Y, Y) -> app1_3_out_aag3([]_0, Y, Y)
if_app1_3_in_1_aag5(X0, X, Y, Z, app1_3_out_aag3(X, Y, Z)) -> app1_3_out_aag3(._22(X0, X), Y, ._22(X0, Z))
if_perm_2_in_1_ga4(X, X0, Y, app1_3_out_aag3(X1, ._22(X0, X2), X)) -> if_perm_2_in_2_ga6(X, X0, Y, X1, X2, app2_3_in_gga3(X1, X2, Z))
app2_3_in_gga3(._22(X0, X), Y, ._22(X0, Z)) -> if_app2_3_in_1_gga5(X0, X, Y, Z, app2_3_in_gga3(X, Y, Z))
app2_3_in_gga3([]_0, Y, Y) -> app2_3_out_gga3([]_0, Y, Y)
if_app2_3_in_1_gga5(X0, X, Y, Z, app2_3_out_gga3(X, Y, Z)) -> app2_3_out_gga3(._22(X0, X), Y, ._22(X0, Z))
if_perm_2_in_2_ga6(X, X0, Y, X1, X2, app2_3_out_gga3(X1, X2, Z)) -> if_perm_2_in_3_ga5(X, X0, Y, Z, perm_2_in_ga2(Z, Y))
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
if_perm_2_in_3_ga5(X, X0, Y, Z, perm_2_out_ga2(Z, Y)) -> perm_2_out_ga2(X, ._22(X0, Y))
PERM_2_IN_GA2(X, ._22(X0, Y)) -> IF_PERM_2_IN_1_GA4(X, X0, Y, app1_3_in_aag3(X1, ._22(X0, X2), X))
PERM_2_IN_GA2(X, ._22(X0, Y)) -> APP1_3_IN_AAG3(X1, ._22(X0, X2), X)
APP1_3_IN_AAG3(._22(X0, X), Y, ._22(X0, Z)) -> IF_APP1_3_IN_1_AAG5(X0, X, Y, Z, app1_3_in_aag3(X, Y, Z))
APP1_3_IN_AAG3(._22(X0, X), Y, ._22(X0, Z)) -> APP1_3_IN_AAG3(X, Y, Z)
IF_PERM_2_IN_1_GA4(X, X0, Y, app1_3_out_aag3(X1, ._22(X0, X2), X)) -> IF_PERM_2_IN_2_GA6(X, X0, Y, X1, X2, app2_3_in_gga3(X1, X2, Z))
IF_PERM_2_IN_1_GA4(X, X0, Y, app1_3_out_aag3(X1, ._22(X0, X2), X)) -> APP2_3_IN_GGA3(X1, X2, Z)
APP2_3_IN_GGA3(._22(X0, X), Y, ._22(X0, Z)) -> IF_APP2_3_IN_1_GGA5(X0, X, Y, Z, app2_3_in_gga3(X, Y, Z))
APP2_3_IN_GGA3(._22(X0, X), Y, ._22(X0, Z)) -> APP2_3_IN_GGA3(X, Y, Z)
IF_PERM_2_IN_2_GA6(X, X0, Y, X1, X2, app2_3_out_gga3(X1, X2, Z)) -> IF_PERM_2_IN_3_GA5(X, X0, Y, Z, perm_2_in_ga2(Z, Y))
IF_PERM_2_IN_2_GA6(X, X0, Y, X1, X2, app2_3_out_gga3(X1, X2, Z)) -> PERM_2_IN_GA2(Z, Y)
perm_2_in_ga2(X, ._22(X0, Y)) -> if_perm_2_in_1_ga4(X, X0, Y, app1_3_in_aag3(X1, ._22(X0, X2), X))
app1_3_in_aag3(._22(X0, X), Y, ._22(X0, Z)) -> if_app1_3_in_1_aag5(X0, X, Y, Z, app1_3_in_aag3(X, Y, Z))
app1_3_in_aag3([]_0, Y, Y) -> app1_3_out_aag3([]_0, Y, Y)
if_app1_3_in_1_aag5(X0, X, Y, Z, app1_3_out_aag3(X, Y, Z)) -> app1_3_out_aag3(._22(X0, X), Y, ._22(X0, Z))
if_perm_2_in_1_ga4(X, X0, Y, app1_3_out_aag3(X1, ._22(X0, X2), X)) -> if_perm_2_in_2_ga6(X, X0, Y, X1, X2, app2_3_in_gga3(X1, X2, Z))
app2_3_in_gga3(._22(X0, X), Y, ._22(X0, Z)) -> if_app2_3_in_1_gga5(X0, X, Y, Z, app2_3_in_gga3(X, Y, Z))
app2_3_in_gga3([]_0, Y, Y) -> app2_3_out_gga3([]_0, Y, Y)
if_app2_3_in_1_gga5(X0, X, Y, Z, app2_3_out_gga3(X, Y, Z)) -> app2_3_out_gga3(._22(X0, X), Y, ._22(X0, Z))
if_perm_2_in_2_ga6(X, X0, Y, X1, X2, app2_3_out_gga3(X1, X2, Z)) -> if_perm_2_in_3_ga5(X, X0, Y, Z, perm_2_in_ga2(Z, Y))
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
if_perm_2_in_3_ga5(X, X0, Y, Z, perm_2_out_ga2(Z, Y)) -> perm_2_out_ga2(X, ._22(X0, Y))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
PERM_2_IN_GA2(X, ._22(X0, Y)) -> IF_PERM_2_IN_1_GA4(X, X0, Y, app1_3_in_aag3(X1, ._22(X0, X2), X))
PERM_2_IN_GA2(X, ._22(X0, Y)) -> APP1_3_IN_AAG3(X1, ._22(X0, X2), X)
APP1_3_IN_AAG3(._22(X0, X), Y, ._22(X0, Z)) -> IF_APP1_3_IN_1_AAG5(X0, X, Y, Z, app1_3_in_aag3(X, Y, Z))
APP1_3_IN_AAG3(._22(X0, X), Y, ._22(X0, Z)) -> APP1_3_IN_AAG3(X, Y, Z)
IF_PERM_2_IN_1_GA4(X, X0, Y, app1_3_out_aag3(X1, ._22(X0, X2), X)) -> IF_PERM_2_IN_2_GA6(X, X0, Y, X1, X2, app2_3_in_gga3(X1, X2, Z))
IF_PERM_2_IN_1_GA4(X, X0, Y, app1_3_out_aag3(X1, ._22(X0, X2), X)) -> APP2_3_IN_GGA3(X1, X2, Z)
APP2_3_IN_GGA3(._22(X0, X), Y, ._22(X0, Z)) -> IF_APP2_3_IN_1_GGA5(X0, X, Y, Z, app2_3_in_gga3(X, Y, Z))
APP2_3_IN_GGA3(._22(X0, X), Y, ._22(X0, Z)) -> APP2_3_IN_GGA3(X, Y, Z)
IF_PERM_2_IN_2_GA6(X, X0, Y, X1, X2, app2_3_out_gga3(X1, X2, Z)) -> IF_PERM_2_IN_3_GA5(X, X0, Y, Z, perm_2_in_ga2(Z, Y))
IF_PERM_2_IN_2_GA6(X, X0, Y, X1, X2, app2_3_out_gga3(X1, X2, Z)) -> PERM_2_IN_GA2(Z, Y)
perm_2_in_ga2(X, ._22(X0, Y)) -> if_perm_2_in_1_ga4(X, X0, Y, app1_3_in_aag3(X1, ._22(X0, X2), X))
app1_3_in_aag3(._22(X0, X), Y, ._22(X0, Z)) -> if_app1_3_in_1_aag5(X0, X, Y, Z, app1_3_in_aag3(X, Y, Z))
app1_3_in_aag3([]_0, Y, Y) -> app1_3_out_aag3([]_0, Y, Y)
if_app1_3_in_1_aag5(X0, X, Y, Z, app1_3_out_aag3(X, Y, Z)) -> app1_3_out_aag3(._22(X0, X), Y, ._22(X0, Z))
if_perm_2_in_1_ga4(X, X0, Y, app1_3_out_aag3(X1, ._22(X0, X2), X)) -> if_perm_2_in_2_ga6(X, X0, Y, X1, X2, app2_3_in_gga3(X1, X2, Z))
app2_3_in_gga3(._22(X0, X), Y, ._22(X0, Z)) -> if_app2_3_in_1_gga5(X0, X, Y, Z, app2_3_in_gga3(X, Y, Z))
app2_3_in_gga3([]_0, Y, Y) -> app2_3_out_gga3([]_0, Y, Y)
if_app2_3_in_1_gga5(X0, X, Y, Z, app2_3_out_gga3(X, Y, Z)) -> app2_3_out_gga3(._22(X0, X), Y, ._22(X0, Z))
if_perm_2_in_2_ga6(X, X0, Y, X1, X2, app2_3_out_gga3(X1, X2, Z)) -> if_perm_2_in_3_ga5(X, X0, Y, Z, perm_2_in_ga2(Z, Y))
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
if_perm_2_in_3_ga5(X, X0, Y, Z, perm_2_out_ga2(Z, Y)) -> perm_2_out_ga2(X, ._22(X0, Y))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDP
APP2_3_IN_GGA3(._22(X0, X), Y, ._22(X0, Z)) -> APP2_3_IN_GGA3(X, Y, Z)
perm_2_in_ga2(X, ._22(X0, Y)) -> if_perm_2_in_1_ga4(X, X0, Y, app1_3_in_aag3(X1, ._22(X0, X2), X))
app1_3_in_aag3(._22(X0, X), Y, ._22(X0, Z)) -> if_app1_3_in_1_aag5(X0, X, Y, Z, app1_3_in_aag3(X, Y, Z))
app1_3_in_aag3([]_0, Y, Y) -> app1_3_out_aag3([]_0, Y, Y)
if_app1_3_in_1_aag5(X0, X, Y, Z, app1_3_out_aag3(X, Y, Z)) -> app1_3_out_aag3(._22(X0, X), Y, ._22(X0, Z))
if_perm_2_in_1_ga4(X, X0, Y, app1_3_out_aag3(X1, ._22(X0, X2), X)) -> if_perm_2_in_2_ga6(X, X0, Y, X1, X2, app2_3_in_gga3(X1, X2, Z))
app2_3_in_gga3(._22(X0, X), Y, ._22(X0, Z)) -> if_app2_3_in_1_gga5(X0, X, Y, Z, app2_3_in_gga3(X, Y, Z))
app2_3_in_gga3([]_0, Y, Y) -> app2_3_out_gga3([]_0, Y, Y)
if_app2_3_in_1_gga5(X0, X, Y, Z, app2_3_out_gga3(X, Y, Z)) -> app2_3_out_gga3(._22(X0, X), Y, ._22(X0, Z))
if_perm_2_in_2_ga6(X, X0, Y, X1, X2, app2_3_out_gga3(X1, X2, Z)) -> if_perm_2_in_3_ga5(X, X0, Y, Z, perm_2_in_ga2(Z, Y))
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
if_perm_2_in_3_ga5(X, X0, Y, Z, perm_2_out_ga2(Z, Y)) -> perm_2_out_ga2(X, ._22(X0, Y))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
↳ PiDP
APP2_3_IN_GGA3(._22(X0, X), Y, ._22(X0, Z)) -> APP2_3_IN_GGA3(X, Y, Z)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
↳ PiDP
APP2_3_IN_GGA2(._22(X0, X), Y) -> APP2_3_IN_GGA2(X, Y)
From the DPs we obtained the following set of size-change graphs:
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
APP1_3_IN_AAG3(._22(X0, X), Y, ._22(X0, Z)) -> APP1_3_IN_AAG3(X, Y, Z)
perm_2_in_ga2(X, ._22(X0, Y)) -> if_perm_2_in_1_ga4(X, X0, Y, app1_3_in_aag3(X1, ._22(X0, X2), X))
app1_3_in_aag3(._22(X0, X), Y, ._22(X0, Z)) -> if_app1_3_in_1_aag5(X0, X, Y, Z, app1_3_in_aag3(X, Y, Z))
app1_3_in_aag3([]_0, Y, Y) -> app1_3_out_aag3([]_0, Y, Y)
if_app1_3_in_1_aag5(X0, X, Y, Z, app1_3_out_aag3(X, Y, Z)) -> app1_3_out_aag3(._22(X0, X), Y, ._22(X0, Z))
if_perm_2_in_1_ga4(X, X0, Y, app1_3_out_aag3(X1, ._22(X0, X2), X)) -> if_perm_2_in_2_ga6(X, X0, Y, X1, X2, app2_3_in_gga3(X1, X2, Z))
app2_3_in_gga3(._22(X0, X), Y, ._22(X0, Z)) -> if_app2_3_in_1_gga5(X0, X, Y, Z, app2_3_in_gga3(X, Y, Z))
app2_3_in_gga3([]_0, Y, Y) -> app2_3_out_gga3([]_0, Y, Y)
if_app2_3_in_1_gga5(X0, X, Y, Z, app2_3_out_gga3(X, Y, Z)) -> app2_3_out_gga3(._22(X0, X), Y, ._22(X0, Z))
if_perm_2_in_2_ga6(X, X0, Y, X1, X2, app2_3_out_gga3(X1, X2, Z)) -> if_perm_2_in_3_ga5(X, X0, Y, Z, perm_2_in_ga2(Z, Y))
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
if_perm_2_in_3_ga5(X, X0, Y, Z, perm_2_out_ga2(Z, Y)) -> perm_2_out_ga2(X, ._22(X0, Y))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
APP1_3_IN_AAG3(._22(X0, X), Y, ._22(X0, Z)) -> APP1_3_IN_AAG3(X, Y, Z)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
APP1_3_IN_AAG1(._22(X0, Z)) -> APP1_3_IN_AAG1(Z)
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(X, ._22(X0, Y)) -> IF_PERM_2_IN_1_GA4(X, X0, Y, app1_3_in_aag3(X1, ._22(X0, X2), X))
IF_PERM_2_IN_2_GA6(X, X0, Y, X1, X2, app2_3_out_gga3(X1, X2, Z)) -> PERM_2_IN_GA2(Z, Y)
IF_PERM_2_IN_1_GA4(X, X0, Y, app1_3_out_aag3(X1, ._22(X0, X2), X)) -> IF_PERM_2_IN_2_GA6(X, X0, Y, X1, X2, app2_3_in_gga3(X1, X2, Z))
perm_2_in_ga2(X, ._22(X0, Y)) -> if_perm_2_in_1_ga4(X, X0, Y, app1_3_in_aag3(X1, ._22(X0, X2), X))
app1_3_in_aag3(._22(X0, X), Y, ._22(X0, Z)) -> if_app1_3_in_1_aag5(X0, X, Y, Z, app1_3_in_aag3(X, Y, Z))
app1_3_in_aag3([]_0, Y, Y) -> app1_3_out_aag3([]_0, Y, Y)
if_app1_3_in_1_aag5(X0, X, Y, Z, app1_3_out_aag3(X, Y, Z)) -> app1_3_out_aag3(._22(X0, X), Y, ._22(X0, Z))
if_perm_2_in_1_ga4(X, X0, Y, app1_3_out_aag3(X1, ._22(X0, X2), X)) -> if_perm_2_in_2_ga6(X, X0, Y, X1, X2, app2_3_in_gga3(X1, X2, Z))
app2_3_in_gga3(._22(X0, X), Y, ._22(X0, Z)) -> if_app2_3_in_1_gga5(X0, X, Y, Z, app2_3_in_gga3(X, Y, Z))
app2_3_in_gga3([]_0, Y, Y) -> app2_3_out_gga3([]_0, Y, Y)
if_app2_3_in_1_gga5(X0, X, Y, Z, app2_3_out_gga3(X, Y, Z)) -> app2_3_out_gga3(._22(X0, X), Y, ._22(X0, Z))
if_perm_2_in_2_ga6(X, X0, Y, X1, X2, app2_3_out_gga3(X1, X2, Z)) -> if_perm_2_in_3_ga5(X, X0, Y, Z, perm_2_in_ga2(Z, Y))
perm_2_in_ga2([]_0, []_0) -> perm_2_out_ga2([]_0, []_0)
if_perm_2_in_3_ga5(X, X0, Y, Z, perm_2_out_ga2(Z, Y)) -> perm_2_out_ga2(X, ._22(X0, Y))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
PERM_2_IN_GA2(X, ._22(X0, Y)) -> IF_PERM_2_IN_1_GA4(X, X0, Y, app1_3_in_aag3(X1, ._22(X0, X2), X))
IF_PERM_2_IN_2_GA6(X, X0, Y, X1, X2, app2_3_out_gga3(X1, X2, Z)) -> PERM_2_IN_GA2(Z, Y)
IF_PERM_2_IN_1_GA4(X, X0, Y, app1_3_out_aag3(X1, ._22(X0, X2), X)) -> IF_PERM_2_IN_2_GA6(X, X0, Y, X1, X2, app2_3_in_gga3(X1, X2, Z))
app1_3_in_aag3(._22(X0, X), Y, ._22(X0, Z)) -> if_app1_3_in_1_aag5(X0, X, Y, Z, app1_3_in_aag3(X, Y, Z))
app1_3_in_aag3([]_0, Y, Y) -> app1_3_out_aag3([]_0, Y, Y)
app2_3_in_gga3(._22(X0, X), Y, ._22(X0, Z)) -> if_app2_3_in_1_gga5(X0, X, Y, Z, app2_3_in_gga3(X, Y, Z))
app2_3_in_gga3([]_0, Y, Y) -> app2_3_out_gga3([]_0, Y, Y)
if_app1_3_in_1_aag5(X0, X, Y, Z, app1_3_out_aag3(X, Y, Z)) -> app1_3_out_aag3(._22(X0, X), Y, ._22(X0, Z))
if_app2_3_in_1_gga5(X0, X, Y, Z, app2_3_out_gga3(X, Y, Z)) -> app2_3_out_gga3(._22(X0, X), Y, ._22(X0, Z))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
PERM_2_IN_GA1(X) -> IF_PERM_2_IN_1_GA1(app1_3_in_aag1(X))
IF_PERM_2_IN_2_GA2(X0, app2_3_out_gga1(Z)) -> PERM_2_IN_GA1(Z)
IF_PERM_2_IN_1_GA1(app1_3_out_aag2(X1, ._22(X0, X2))) -> IF_PERM_2_IN_2_GA2(X0, app2_3_in_gga2(X1, X2))
app1_3_in_aag1(._22(X0, Z)) -> if_app1_3_in_1_aag2(X0, app1_3_in_aag1(Z))
app1_3_in_aag1(Y) -> app1_3_out_aag2([]_0, Y)
app2_3_in_gga2(._22(X0, X), Y) -> if_app2_3_in_1_gga2(X0, app2_3_in_gga2(X, Y))
app2_3_in_gga2([]_0, Y) -> app2_3_out_gga1(Y)
if_app1_3_in_1_aag2(X0, app1_3_out_aag2(X, Y)) -> app1_3_out_aag2(._22(X0, X), Y)
if_app2_3_in_1_gga2(X0, app2_3_out_gga1(Z)) -> app2_3_out_gga1(._22(X0, Z))
app1_3_in_aag1(x0)
app2_3_in_gga2(x0, x1)
if_app1_3_in_1_aag2(x0, x1)
if_app2_3_in_1_gga2(x0, x1)
app2_3_in_gga2([]_0, Y) -> app2_3_out_gga1(Y)
POL(if_app2_3_in_1_gga2(x1, x2)) = 1 + x1 + x2
POL(._22(x1, x2)) = 1 + x1 + x2
POL(IF_PERM_2_IN_2_GA2(x1, x2)) = 1 + x1 + x2
POL(IF_PERM_2_IN_1_GA1(x1)) = x1
POL(app2_3_in_gga2(x1, x2)) = x1 + x2
POL(app2_3_out_gga1(x1)) = 1 + x1
POL(app1_3_in_aag1(x1)) = 2 + x1
POL(if_app1_3_in_1_aag2(x1, x2)) = 1 + x1 + x2
POL(app1_3_out_aag2(x1, x2)) = x1 + x2
POL([]_0) = 2
POL(PERM_2_IN_GA1(x1)) = 2 + x1
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ RuleRemovalProof
PERM_2_IN_GA1(X) -> IF_PERM_2_IN_1_GA1(app1_3_in_aag1(X))
IF_PERM_2_IN_2_GA2(X0, app2_3_out_gga1(Z)) -> PERM_2_IN_GA1(Z)
IF_PERM_2_IN_1_GA1(app1_3_out_aag2(X1, ._22(X0, X2))) -> IF_PERM_2_IN_2_GA2(X0, app2_3_in_gga2(X1, X2))
app1_3_in_aag1(._22(X0, Z)) -> if_app1_3_in_1_aag2(X0, app1_3_in_aag1(Z))
app1_3_in_aag1(Y) -> app1_3_out_aag2([]_0, Y)
app2_3_in_gga2(._22(X0, X), Y) -> if_app2_3_in_1_gga2(X0, app2_3_in_gga2(X, Y))
if_app1_3_in_1_aag2(X0, app1_3_out_aag2(X, Y)) -> app1_3_out_aag2(._22(X0, X), Y)
if_app2_3_in_1_gga2(X0, app2_3_out_gga1(Z)) -> app2_3_out_gga1(._22(X0, Z))
app1_3_in_aag1(x0)
app2_3_in_gga2(x0, x1)
if_app1_3_in_1_aag2(x0, x1)
if_app2_3_in_1_gga2(x0, x1)
PERM_2_IN_GA1(X) -> IF_PERM_2_IN_1_GA1(app1_3_in_aag1(X))
IF_PERM_2_IN_2_GA2(X0, app2_3_out_gga1(Z)) -> PERM_2_IN_GA1(Z)
POL(if_app2_3_in_1_gga2(x1, x2)) = x1 + x2
POL(._22(x1, x2)) = x1 + x2
POL(IF_PERM_2_IN_2_GA2(x1, x2)) = x1 + x2
POL(IF_PERM_2_IN_1_GA1(x1)) = x1
POL(app2_3_in_gga2(x1, x2)) = x1 + x2
POL(app2_3_out_gga1(x1)) = 2 + x1
POL(app1_3_in_aag1(x1)) = x1
POL(if_app1_3_in_1_aag2(x1, x2)) = x1 + x2
POL(app1_3_out_aag2(x1, x2)) = x1 + x2
POL([]_0) = 0
POL(PERM_2_IN_GA1(x1)) = 1 + x1
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ RuleRemovalProof
↳ QDP
↳ DependencyGraphProof
IF_PERM_2_IN_1_GA1(app1_3_out_aag2(X1, ._22(X0, X2))) -> IF_PERM_2_IN_2_GA2(X0, app2_3_in_gga2(X1, X2))
app1_3_in_aag1(._22(X0, Z)) -> if_app1_3_in_1_aag2(X0, app1_3_in_aag1(Z))
app1_3_in_aag1(Y) -> app1_3_out_aag2([]_0, Y)
app2_3_in_gga2(._22(X0, X), Y) -> if_app2_3_in_1_gga2(X0, app2_3_in_gga2(X, Y))
if_app1_3_in_1_aag2(X0, app1_3_out_aag2(X, Y)) -> app1_3_out_aag2(._22(X0, X), Y)
if_app2_3_in_1_gga2(X0, app2_3_out_gga1(Z)) -> app2_3_out_gga1(._22(X0, Z))
app1_3_in_aag1(x0)
app2_3_in_gga2(x0, x1)
if_app1_3_in_1_aag2(x0, x1)
if_app2_3_in_1_gga2(x0, x1)