↳ PROLOG
↳ PrologToPiTRSProof
With regard to the inferred argument filtering the predicates were used in the following modes:
perm2: (b,f)
split3: (b,f,f)
append3: (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(nil_0, nil_0) -> perm_2_out_ga2(nil_0, nil_0)
perm_2_in_ga2(XS, cons_22(Y, YS)) -> if_perm_2_in_1_ga4(XS, Y, YS, split_3_in_gaa3(XS, YS1, cons_22(Y, YS2)))
split_3_in_gaa3(XS, nil_0, XS) -> split_3_out_gaa3(XS, nil_0, XS)
split_3_in_gaa3(cons_22(X, XS), cons_22(X, YS1), YS2) -> if_split_3_in_1_gaa5(X, XS, YS1, YS2, split_3_in_gaa3(XS, YS1, YS2))
if_split_3_in_1_gaa5(X, XS, YS1, YS2, split_3_out_gaa3(XS, YS1, YS2)) -> split_3_out_gaa3(cons_22(X, XS), cons_22(X, YS1), YS2)
if_perm_2_in_1_ga4(XS, Y, YS, split_3_out_gaa3(XS, YS1, cons_22(Y, YS2))) -> if_perm_2_in_2_ga6(XS, Y, YS, YS1, YS2, append_3_in_gga3(YS1, YS2, ZS))
append_3_in_gga3(nil_0, XS, XS) -> append_3_out_gga3(nil_0, XS, XS)
append_3_in_gga3(cons_22(X, XS1), XS2, cons_22(X, YS)) -> if_append_3_in_1_gga5(X, XS1, XS2, YS, append_3_in_gga3(XS1, XS2, YS))
if_append_3_in_1_gga5(X, XS1, XS2, YS, append_3_out_gga3(XS1, XS2, YS)) -> append_3_out_gga3(cons_22(X, XS1), XS2, cons_22(X, YS))
if_perm_2_in_2_ga6(XS, Y, YS, YS1, YS2, append_3_out_gga3(YS1, YS2, ZS)) -> if_perm_2_in_3_ga5(XS, Y, YS, ZS, perm_2_in_ga2(ZS, YS))
if_perm_2_in_3_ga5(XS, Y, YS, ZS, perm_2_out_ga2(ZS, YS)) -> perm_2_out_ga2(XS, cons_22(Y, YS))
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
perm_2_in_ga2(nil_0, nil_0) -> perm_2_out_ga2(nil_0, nil_0)
perm_2_in_ga2(XS, cons_22(Y, YS)) -> if_perm_2_in_1_ga4(XS, Y, YS, split_3_in_gaa3(XS, YS1, cons_22(Y, YS2)))
split_3_in_gaa3(XS, nil_0, XS) -> split_3_out_gaa3(XS, nil_0, XS)
split_3_in_gaa3(cons_22(X, XS), cons_22(X, YS1), YS2) -> if_split_3_in_1_gaa5(X, XS, YS1, YS2, split_3_in_gaa3(XS, YS1, YS2))
if_split_3_in_1_gaa5(X, XS, YS1, YS2, split_3_out_gaa3(XS, YS1, YS2)) -> split_3_out_gaa3(cons_22(X, XS), cons_22(X, YS1), YS2)
if_perm_2_in_1_ga4(XS, Y, YS, split_3_out_gaa3(XS, YS1, cons_22(Y, YS2))) -> if_perm_2_in_2_ga6(XS, Y, YS, YS1, YS2, append_3_in_gga3(YS1, YS2, ZS))
append_3_in_gga3(nil_0, XS, XS) -> append_3_out_gga3(nil_0, XS, XS)
append_3_in_gga3(cons_22(X, XS1), XS2, cons_22(X, YS)) -> if_append_3_in_1_gga5(X, XS1, XS2, YS, append_3_in_gga3(XS1, XS2, YS))
if_append_3_in_1_gga5(X, XS1, XS2, YS, append_3_out_gga3(XS1, XS2, YS)) -> append_3_out_gga3(cons_22(X, XS1), XS2, cons_22(X, YS))
if_perm_2_in_2_ga6(XS, Y, YS, YS1, YS2, append_3_out_gga3(YS1, YS2, ZS)) -> if_perm_2_in_3_ga5(XS, Y, YS, ZS, perm_2_in_ga2(ZS, YS))
if_perm_2_in_3_ga5(XS, Y, YS, ZS, perm_2_out_ga2(ZS, YS)) -> perm_2_out_ga2(XS, cons_22(Y, YS))
PERM_2_IN_GA2(XS, cons_22(Y, YS)) -> IF_PERM_2_IN_1_GA4(XS, Y, YS, split_3_in_gaa3(XS, YS1, cons_22(Y, YS2)))
PERM_2_IN_GA2(XS, cons_22(Y, YS)) -> SPLIT_3_IN_GAA3(XS, YS1, cons_22(Y, YS2))
SPLIT_3_IN_GAA3(cons_22(X, XS), cons_22(X, YS1), YS2) -> IF_SPLIT_3_IN_1_GAA5(X, XS, YS1, YS2, split_3_in_gaa3(XS, YS1, YS2))
SPLIT_3_IN_GAA3(cons_22(X, XS), cons_22(X, YS1), YS2) -> SPLIT_3_IN_GAA3(XS, YS1, YS2)
IF_PERM_2_IN_1_GA4(XS, Y, YS, split_3_out_gaa3(XS, YS1, cons_22(Y, YS2))) -> IF_PERM_2_IN_2_GA6(XS, Y, YS, YS1, YS2, append_3_in_gga3(YS1, YS2, ZS))
IF_PERM_2_IN_1_GA4(XS, Y, YS, split_3_out_gaa3(XS, YS1, cons_22(Y, YS2))) -> APPEND_3_IN_GGA3(YS1, YS2, ZS)
APPEND_3_IN_GGA3(cons_22(X, XS1), XS2, cons_22(X, YS)) -> IF_APPEND_3_IN_1_GGA5(X, XS1, XS2, YS, append_3_in_gga3(XS1, XS2, YS))
APPEND_3_IN_GGA3(cons_22(X, XS1), XS2, cons_22(X, YS)) -> APPEND_3_IN_GGA3(XS1, XS2, YS)
IF_PERM_2_IN_2_GA6(XS, Y, YS, YS1, YS2, append_3_out_gga3(YS1, YS2, ZS)) -> IF_PERM_2_IN_3_GA5(XS, Y, YS, ZS, perm_2_in_ga2(ZS, YS))
IF_PERM_2_IN_2_GA6(XS, Y, YS, YS1, YS2, append_3_out_gga3(YS1, YS2, ZS)) -> PERM_2_IN_GA2(ZS, YS)
perm_2_in_ga2(nil_0, nil_0) -> perm_2_out_ga2(nil_0, nil_0)
perm_2_in_ga2(XS, cons_22(Y, YS)) -> if_perm_2_in_1_ga4(XS, Y, YS, split_3_in_gaa3(XS, YS1, cons_22(Y, YS2)))
split_3_in_gaa3(XS, nil_0, XS) -> split_3_out_gaa3(XS, nil_0, XS)
split_3_in_gaa3(cons_22(X, XS), cons_22(X, YS1), YS2) -> if_split_3_in_1_gaa5(X, XS, YS1, YS2, split_3_in_gaa3(XS, YS1, YS2))
if_split_3_in_1_gaa5(X, XS, YS1, YS2, split_3_out_gaa3(XS, YS1, YS2)) -> split_3_out_gaa3(cons_22(X, XS), cons_22(X, YS1), YS2)
if_perm_2_in_1_ga4(XS, Y, YS, split_3_out_gaa3(XS, YS1, cons_22(Y, YS2))) -> if_perm_2_in_2_ga6(XS, Y, YS, YS1, YS2, append_3_in_gga3(YS1, YS2, ZS))
append_3_in_gga3(nil_0, XS, XS) -> append_3_out_gga3(nil_0, XS, XS)
append_3_in_gga3(cons_22(X, XS1), XS2, cons_22(X, YS)) -> if_append_3_in_1_gga5(X, XS1, XS2, YS, append_3_in_gga3(XS1, XS2, YS))
if_append_3_in_1_gga5(X, XS1, XS2, YS, append_3_out_gga3(XS1, XS2, YS)) -> append_3_out_gga3(cons_22(X, XS1), XS2, cons_22(X, YS))
if_perm_2_in_2_ga6(XS, Y, YS, YS1, YS2, append_3_out_gga3(YS1, YS2, ZS)) -> if_perm_2_in_3_ga5(XS, Y, YS, ZS, perm_2_in_ga2(ZS, YS))
if_perm_2_in_3_ga5(XS, Y, YS, ZS, perm_2_out_ga2(ZS, YS)) -> perm_2_out_ga2(XS, cons_22(Y, YS))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
PERM_2_IN_GA2(XS, cons_22(Y, YS)) -> IF_PERM_2_IN_1_GA4(XS, Y, YS, split_3_in_gaa3(XS, YS1, cons_22(Y, YS2)))
PERM_2_IN_GA2(XS, cons_22(Y, YS)) -> SPLIT_3_IN_GAA3(XS, YS1, cons_22(Y, YS2))
SPLIT_3_IN_GAA3(cons_22(X, XS), cons_22(X, YS1), YS2) -> IF_SPLIT_3_IN_1_GAA5(X, XS, YS1, YS2, split_3_in_gaa3(XS, YS1, YS2))
SPLIT_3_IN_GAA3(cons_22(X, XS), cons_22(X, YS1), YS2) -> SPLIT_3_IN_GAA3(XS, YS1, YS2)
IF_PERM_2_IN_1_GA4(XS, Y, YS, split_3_out_gaa3(XS, YS1, cons_22(Y, YS2))) -> IF_PERM_2_IN_2_GA6(XS, Y, YS, YS1, YS2, append_3_in_gga3(YS1, YS2, ZS))
IF_PERM_2_IN_1_GA4(XS, Y, YS, split_3_out_gaa3(XS, YS1, cons_22(Y, YS2))) -> APPEND_3_IN_GGA3(YS1, YS2, ZS)
APPEND_3_IN_GGA3(cons_22(X, XS1), XS2, cons_22(X, YS)) -> IF_APPEND_3_IN_1_GGA5(X, XS1, XS2, YS, append_3_in_gga3(XS1, XS2, YS))
APPEND_3_IN_GGA3(cons_22(X, XS1), XS2, cons_22(X, YS)) -> APPEND_3_IN_GGA3(XS1, XS2, YS)
IF_PERM_2_IN_2_GA6(XS, Y, YS, YS1, YS2, append_3_out_gga3(YS1, YS2, ZS)) -> IF_PERM_2_IN_3_GA5(XS, Y, YS, ZS, perm_2_in_ga2(ZS, YS))
IF_PERM_2_IN_2_GA6(XS, Y, YS, YS1, YS2, append_3_out_gga3(YS1, YS2, ZS)) -> PERM_2_IN_GA2(ZS, YS)
perm_2_in_ga2(nil_0, nil_0) -> perm_2_out_ga2(nil_0, nil_0)
perm_2_in_ga2(XS, cons_22(Y, YS)) -> if_perm_2_in_1_ga4(XS, Y, YS, split_3_in_gaa3(XS, YS1, cons_22(Y, YS2)))
split_3_in_gaa3(XS, nil_0, XS) -> split_3_out_gaa3(XS, nil_0, XS)
split_3_in_gaa3(cons_22(X, XS), cons_22(X, YS1), YS2) -> if_split_3_in_1_gaa5(X, XS, YS1, YS2, split_3_in_gaa3(XS, YS1, YS2))
if_split_3_in_1_gaa5(X, XS, YS1, YS2, split_3_out_gaa3(XS, YS1, YS2)) -> split_3_out_gaa3(cons_22(X, XS), cons_22(X, YS1), YS2)
if_perm_2_in_1_ga4(XS, Y, YS, split_3_out_gaa3(XS, YS1, cons_22(Y, YS2))) -> if_perm_2_in_2_ga6(XS, Y, YS, YS1, YS2, append_3_in_gga3(YS1, YS2, ZS))
append_3_in_gga3(nil_0, XS, XS) -> append_3_out_gga3(nil_0, XS, XS)
append_3_in_gga3(cons_22(X, XS1), XS2, cons_22(X, YS)) -> if_append_3_in_1_gga5(X, XS1, XS2, YS, append_3_in_gga3(XS1, XS2, YS))
if_append_3_in_1_gga5(X, XS1, XS2, YS, append_3_out_gga3(XS1, XS2, YS)) -> append_3_out_gga3(cons_22(X, XS1), XS2, cons_22(X, YS))
if_perm_2_in_2_ga6(XS, Y, YS, YS1, YS2, append_3_out_gga3(YS1, YS2, ZS)) -> if_perm_2_in_3_ga5(XS, Y, YS, ZS, perm_2_in_ga2(ZS, YS))
if_perm_2_in_3_ga5(XS, Y, YS, ZS, perm_2_out_ga2(ZS, YS)) -> perm_2_out_ga2(XS, cons_22(Y, YS))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDP
APPEND_3_IN_GGA3(cons_22(X, XS1), XS2, cons_22(X, YS)) -> APPEND_3_IN_GGA3(XS1, XS2, YS)
perm_2_in_ga2(nil_0, nil_0) -> perm_2_out_ga2(nil_0, nil_0)
perm_2_in_ga2(XS, cons_22(Y, YS)) -> if_perm_2_in_1_ga4(XS, Y, YS, split_3_in_gaa3(XS, YS1, cons_22(Y, YS2)))
split_3_in_gaa3(XS, nil_0, XS) -> split_3_out_gaa3(XS, nil_0, XS)
split_3_in_gaa3(cons_22(X, XS), cons_22(X, YS1), YS2) -> if_split_3_in_1_gaa5(X, XS, YS1, YS2, split_3_in_gaa3(XS, YS1, YS2))
if_split_3_in_1_gaa5(X, XS, YS1, YS2, split_3_out_gaa3(XS, YS1, YS2)) -> split_3_out_gaa3(cons_22(X, XS), cons_22(X, YS1), YS2)
if_perm_2_in_1_ga4(XS, Y, YS, split_3_out_gaa3(XS, YS1, cons_22(Y, YS2))) -> if_perm_2_in_2_ga6(XS, Y, YS, YS1, YS2, append_3_in_gga3(YS1, YS2, ZS))
append_3_in_gga3(nil_0, XS, XS) -> append_3_out_gga3(nil_0, XS, XS)
append_3_in_gga3(cons_22(X, XS1), XS2, cons_22(X, YS)) -> if_append_3_in_1_gga5(X, XS1, XS2, YS, append_3_in_gga3(XS1, XS2, YS))
if_append_3_in_1_gga5(X, XS1, XS2, YS, append_3_out_gga3(XS1, XS2, YS)) -> append_3_out_gga3(cons_22(X, XS1), XS2, cons_22(X, YS))
if_perm_2_in_2_ga6(XS, Y, YS, YS1, YS2, append_3_out_gga3(YS1, YS2, ZS)) -> if_perm_2_in_3_ga5(XS, Y, YS, ZS, perm_2_in_ga2(ZS, YS))
if_perm_2_in_3_ga5(XS, Y, YS, ZS, perm_2_out_ga2(ZS, YS)) -> perm_2_out_ga2(XS, cons_22(Y, YS))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
↳ PiDP
APPEND_3_IN_GGA3(cons_22(X, XS1), XS2, cons_22(X, YS)) -> APPEND_3_IN_GGA3(XS1, XS2, YS)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
↳ PiDP
APPEND_3_IN_GGA2(cons_22(X, XS1), XS2) -> APPEND_3_IN_GGA2(XS1, XS2)
From the DPs we obtained the following set of size-change graphs:
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
SPLIT_3_IN_GAA3(cons_22(X, XS), cons_22(X, YS1), YS2) -> SPLIT_3_IN_GAA3(XS, YS1, YS2)
perm_2_in_ga2(nil_0, nil_0) -> perm_2_out_ga2(nil_0, nil_0)
perm_2_in_ga2(XS, cons_22(Y, YS)) -> if_perm_2_in_1_ga4(XS, Y, YS, split_3_in_gaa3(XS, YS1, cons_22(Y, YS2)))
split_3_in_gaa3(XS, nil_0, XS) -> split_3_out_gaa3(XS, nil_0, XS)
split_3_in_gaa3(cons_22(X, XS), cons_22(X, YS1), YS2) -> if_split_3_in_1_gaa5(X, XS, YS1, YS2, split_3_in_gaa3(XS, YS1, YS2))
if_split_3_in_1_gaa5(X, XS, YS1, YS2, split_3_out_gaa3(XS, YS1, YS2)) -> split_3_out_gaa3(cons_22(X, XS), cons_22(X, YS1), YS2)
if_perm_2_in_1_ga4(XS, Y, YS, split_3_out_gaa3(XS, YS1, cons_22(Y, YS2))) -> if_perm_2_in_2_ga6(XS, Y, YS, YS1, YS2, append_3_in_gga3(YS1, YS2, ZS))
append_3_in_gga3(nil_0, XS, XS) -> append_3_out_gga3(nil_0, XS, XS)
append_3_in_gga3(cons_22(X, XS1), XS2, cons_22(X, YS)) -> if_append_3_in_1_gga5(X, XS1, XS2, YS, append_3_in_gga3(XS1, XS2, YS))
if_append_3_in_1_gga5(X, XS1, XS2, YS, append_3_out_gga3(XS1, XS2, YS)) -> append_3_out_gga3(cons_22(X, XS1), XS2, cons_22(X, YS))
if_perm_2_in_2_ga6(XS, Y, YS, YS1, YS2, append_3_out_gga3(YS1, YS2, ZS)) -> if_perm_2_in_3_ga5(XS, Y, YS, ZS, perm_2_in_ga2(ZS, YS))
if_perm_2_in_3_ga5(XS, Y, YS, ZS, perm_2_out_ga2(ZS, YS)) -> perm_2_out_ga2(XS, cons_22(Y, YS))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
SPLIT_3_IN_GAA3(cons_22(X, XS), cons_22(X, YS1), YS2) -> SPLIT_3_IN_GAA3(XS, YS1, YS2)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
SPLIT_3_IN_GAA1(cons_22(X, XS)) -> SPLIT_3_IN_GAA1(XS)
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(XS, cons_22(Y, YS)) -> IF_PERM_2_IN_1_GA4(XS, Y, YS, split_3_in_gaa3(XS, YS1, cons_22(Y, YS2)))
IF_PERM_2_IN_2_GA6(XS, Y, YS, YS1, YS2, append_3_out_gga3(YS1, YS2, ZS)) -> PERM_2_IN_GA2(ZS, YS)
IF_PERM_2_IN_1_GA4(XS, Y, YS, split_3_out_gaa3(XS, YS1, cons_22(Y, YS2))) -> IF_PERM_2_IN_2_GA6(XS, Y, YS, YS1, YS2, append_3_in_gga3(YS1, YS2, ZS))
perm_2_in_ga2(nil_0, nil_0) -> perm_2_out_ga2(nil_0, nil_0)
perm_2_in_ga2(XS, cons_22(Y, YS)) -> if_perm_2_in_1_ga4(XS, Y, YS, split_3_in_gaa3(XS, YS1, cons_22(Y, YS2)))
split_3_in_gaa3(XS, nil_0, XS) -> split_3_out_gaa3(XS, nil_0, XS)
split_3_in_gaa3(cons_22(X, XS), cons_22(X, YS1), YS2) -> if_split_3_in_1_gaa5(X, XS, YS1, YS2, split_3_in_gaa3(XS, YS1, YS2))
if_split_3_in_1_gaa5(X, XS, YS1, YS2, split_3_out_gaa3(XS, YS1, YS2)) -> split_3_out_gaa3(cons_22(X, XS), cons_22(X, YS1), YS2)
if_perm_2_in_1_ga4(XS, Y, YS, split_3_out_gaa3(XS, YS1, cons_22(Y, YS2))) -> if_perm_2_in_2_ga6(XS, Y, YS, YS1, YS2, append_3_in_gga3(YS1, YS2, ZS))
append_3_in_gga3(nil_0, XS, XS) -> append_3_out_gga3(nil_0, XS, XS)
append_3_in_gga3(cons_22(X, XS1), XS2, cons_22(X, YS)) -> if_append_3_in_1_gga5(X, XS1, XS2, YS, append_3_in_gga3(XS1, XS2, YS))
if_append_3_in_1_gga5(X, XS1, XS2, YS, append_3_out_gga3(XS1, XS2, YS)) -> append_3_out_gga3(cons_22(X, XS1), XS2, cons_22(X, YS))
if_perm_2_in_2_ga6(XS, Y, YS, YS1, YS2, append_3_out_gga3(YS1, YS2, ZS)) -> if_perm_2_in_3_ga5(XS, Y, YS, ZS, perm_2_in_ga2(ZS, YS))
if_perm_2_in_3_ga5(XS, Y, YS, ZS, perm_2_out_ga2(ZS, YS)) -> perm_2_out_ga2(XS, cons_22(Y, YS))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
PERM_2_IN_GA2(XS, cons_22(Y, YS)) -> IF_PERM_2_IN_1_GA4(XS, Y, YS, split_3_in_gaa3(XS, YS1, cons_22(Y, YS2)))
IF_PERM_2_IN_2_GA6(XS, Y, YS, YS1, YS2, append_3_out_gga3(YS1, YS2, ZS)) -> PERM_2_IN_GA2(ZS, YS)
IF_PERM_2_IN_1_GA4(XS, Y, YS, split_3_out_gaa3(XS, YS1, cons_22(Y, YS2))) -> IF_PERM_2_IN_2_GA6(XS, Y, YS, YS1, YS2, append_3_in_gga3(YS1, YS2, ZS))
split_3_in_gaa3(XS, nil_0, XS) -> split_3_out_gaa3(XS, nil_0, XS)
split_3_in_gaa3(cons_22(X, XS), cons_22(X, YS1), YS2) -> if_split_3_in_1_gaa5(X, XS, YS1, YS2, split_3_in_gaa3(XS, YS1, YS2))
append_3_in_gga3(nil_0, XS, XS) -> append_3_out_gga3(nil_0, XS, XS)
append_3_in_gga3(cons_22(X, XS1), XS2, cons_22(X, YS)) -> if_append_3_in_1_gga5(X, XS1, XS2, YS, append_3_in_gga3(XS1, XS2, YS))
if_split_3_in_1_gaa5(X, XS, YS1, YS2, split_3_out_gaa3(XS, YS1, YS2)) -> split_3_out_gaa3(cons_22(X, XS), cons_22(X, YS1), YS2)
if_append_3_in_1_gga5(X, XS1, XS2, YS, append_3_out_gga3(XS1, XS2, YS)) -> append_3_out_gga3(cons_22(X, XS1), XS2, cons_22(X, YS))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ RuleRemovalProof
PERM_2_IN_GA1(XS) -> IF_PERM_2_IN_1_GA1(split_3_in_gaa1(XS))
IF_PERM_2_IN_2_GA2(Y, append_3_out_gga1(ZS)) -> PERM_2_IN_GA1(ZS)
IF_PERM_2_IN_1_GA1(split_3_out_gaa2(YS1, cons_22(Y, YS2))) -> IF_PERM_2_IN_2_GA2(Y, append_3_in_gga2(YS1, YS2))
split_3_in_gaa1(XS) -> split_3_out_gaa2(nil_0, XS)
split_3_in_gaa1(cons_22(X, XS)) -> if_split_3_in_1_gaa2(X, split_3_in_gaa1(XS))
append_3_in_gga2(nil_0, XS) -> append_3_out_gga1(XS)
append_3_in_gga2(cons_22(X, XS1), XS2) -> if_append_3_in_1_gga2(X, append_3_in_gga2(XS1, XS2))
if_split_3_in_1_gaa2(X, split_3_out_gaa2(YS1, YS2)) -> split_3_out_gaa2(cons_22(X, YS1), YS2)
if_append_3_in_1_gga2(X, append_3_out_gga1(YS)) -> append_3_out_gga1(cons_22(X, YS))
split_3_in_gaa1(x0)
append_3_in_gga2(x0, x1)
if_split_3_in_1_gaa2(x0, x1)
if_append_3_in_1_gga2(x0, x1)
append_3_in_gga2(nil_0, XS) -> append_3_out_gga1(XS)
POL(nil_0) = 2
POL(append_3_out_gga1(x1)) = 1 + x1
POL(split_3_in_gaa1(x1)) = 2 + x1
POL(split_3_out_gaa2(x1, x2)) = x1 + x2
POL(IF_PERM_2_IN_2_GA2(x1, x2)) = 1 + x1 + x2
POL(if_append_3_in_1_gga2(x1, x2)) = 1 + x1 + x2
POL(IF_PERM_2_IN_1_GA1(x1)) = x1
POL(cons_22(x1, x2)) = 1 + x1 + x2
POL(if_split_3_in_1_gaa2(x1, x2)) = 1 + x1 + x2
POL(append_3_in_gga2(x1, x2)) = x1 + x2
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(XS) -> IF_PERM_2_IN_1_GA1(split_3_in_gaa1(XS))
IF_PERM_2_IN_2_GA2(Y, append_3_out_gga1(ZS)) -> PERM_2_IN_GA1(ZS)
IF_PERM_2_IN_1_GA1(split_3_out_gaa2(YS1, cons_22(Y, YS2))) -> IF_PERM_2_IN_2_GA2(Y, append_3_in_gga2(YS1, YS2))
split_3_in_gaa1(XS) -> split_3_out_gaa2(nil_0, XS)
split_3_in_gaa1(cons_22(X, XS)) -> if_split_3_in_1_gaa2(X, split_3_in_gaa1(XS))
append_3_in_gga2(cons_22(X, XS1), XS2) -> if_append_3_in_1_gga2(X, append_3_in_gga2(XS1, XS2))
if_split_3_in_1_gaa2(X, split_3_out_gaa2(YS1, YS2)) -> split_3_out_gaa2(cons_22(X, YS1), YS2)
if_append_3_in_1_gga2(X, append_3_out_gga1(YS)) -> append_3_out_gga1(cons_22(X, YS))
split_3_in_gaa1(x0)
append_3_in_gga2(x0, x1)
if_split_3_in_1_gaa2(x0, x1)
if_append_3_in_1_gga2(x0, x1)
The remaining Dependency Pairs were at least non-strictly be oriented.
IF_PERM_2_IN_2_GA2(Y, append_3_out_gga1(ZS)) -> PERM_2_IN_GA1(ZS)
With the implicit AFS we had to orient the following set of usable rules non-strictly.
PERM_2_IN_GA1(XS) -> IF_PERM_2_IN_1_GA1(split_3_in_gaa1(XS))
IF_PERM_2_IN_1_GA1(split_3_out_gaa2(YS1, cons_22(Y, YS2))) -> IF_PERM_2_IN_2_GA2(Y, append_3_in_gga2(YS1, YS2))
Used ordering: POLO with Polynomial interpretation:
append_3_in_gga2(cons_22(X, XS1), XS2) -> if_append_3_in_1_gga2(X, append_3_in_gga2(XS1, XS2))
if_append_3_in_1_gga2(X, append_3_out_gga1(YS)) -> append_3_out_gga1(cons_22(X, YS))
POL(nil_0) = 0
POL(append_3_out_gga1(x1)) = 1
POL(split_3_out_gaa2(x1, x2)) = 0
POL(split_3_in_gaa1(x1)) = 0
POL(IF_PERM_2_IN_2_GA2(x1, x2)) = x2
POL(if_append_3_in_1_gga2(x1, x2)) = x2
POL(IF_PERM_2_IN_1_GA1(x1)) = 0
POL(if_split_3_in_1_gaa2(x1, x2)) = 0
POL(cons_22(x1, x2)) = 0
POL(append_3_in_gga2(x1, x2)) = 0
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(XS) -> IF_PERM_2_IN_1_GA1(split_3_in_gaa1(XS))
IF_PERM_2_IN_1_GA1(split_3_out_gaa2(YS1, cons_22(Y, YS2))) -> IF_PERM_2_IN_2_GA2(Y, append_3_in_gga2(YS1, YS2))
split_3_in_gaa1(XS) -> split_3_out_gaa2(nil_0, XS)
split_3_in_gaa1(cons_22(X, XS)) -> if_split_3_in_1_gaa2(X, split_3_in_gaa1(XS))
append_3_in_gga2(cons_22(X, XS1), XS2) -> if_append_3_in_1_gga2(X, append_3_in_gga2(XS1, XS2))
if_split_3_in_1_gaa2(X, split_3_out_gaa2(YS1, YS2)) -> split_3_out_gaa2(cons_22(X, YS1), YS2)
if_append_3_in_1_gga2(X, append_3_out_gga1(YS)) -> append_3_out_gga1(cons_22(X, YS))
split_3_in_gaa1(x0)
append_3_in_gga2(x0, x1)
if_split_3_in_1_gaa2(x0, x1)
if_append_3_in_1_gga2(x0, x1)