↳ PROLOG
↳ PrologToPiTRSProof
With regard to the inferred argument filtering the predicates were used in the following modes:
sublist2: (b,b)
append13: (f,f,b)
append23: (f,b,b)
Transforming PROLOG into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:
sublist_2_in_gg2(X, Y) -> if_sublist_2_in_1_gg3(X, Y, append1_3_in_aag3(P, underscore, Y))
append1_3_in_aag3([]_0, Ys, Ys) -> append1_3_out_aag3([]_0, Ys, Ys)
append1_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append1_3_in_1_aag5(X, Xs, Ys, Zs, append1_3_in_aag3(Xs, Ys, Zs))
if_append1_3_in_1_aag5(X, Xs, Ys, Zs, append1_3_out_aag3(Xs, Ys, Zs)) -> append1_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_1_gg3(X, Y, append1_3_out_aag3(P, underscore, Y)) -> if_sublist_2_in_2_gg4(X, Y, P, append2_3_in_agg3(underscore1, X, P))
append2_3_in_agg3([]_0, Ys, Ys) -> append2_3_out_agg3([]_0, Ys, Ys)
append2_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append2_3_in_1_agg5(X, Xs, Ys, Zs, append2_3_in_agg3(Xs, Ys, Zs))
if_append2_3_in_1_agg5(X, Xs, Ys, Zs, append2_3_out_agg3(Xs, Ys, Zs)) -> append2_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_2_gg4(X, Y, P, append2_3_out_agg3(underscore1, X, P)) -> sublist_2_out_gg2(X, Y)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
sublist_2_in_gg2(X, Y) -> if_sublist_2_in_1_gg3(X, Y, append1_3_in_aag3(P, underscore, Y))
append1_3_in_aag3([]_0, Ys, Ys) -> append1_3_out_aag3([]_0, Ys, Ys)
append1_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append1_3_in_1_aag5(X, Xs, Ys, Zs, append1_3_in_aag3(Xs, Ys, Zs))
if_append1_3_in_1_aag5(X, Xs, Ys, Zs, append1_3_out_aag3(Xs, Ys, Zs)) -> append1_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_1_gg3(X, Y, append1_3_out_aag3(P, underscore, Y)) -> if_sublist_2_in_2_gg4(X, Y, P, append2_3_in_agg3(underscore1, X, P))
append2_3_in_agg3([]_0, Ys, Ys) -> append2_3_out_agg3([]_0, Ys, Ys)
append2_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append2_3_in_1_agg5(X, Xs, Ys, Zs, append2_3_in_agg3(Xs, Ys, Zs))
if_append2_3_in_1_agg5(X, Xs, Ys, Zs, append2_3_out_agg3(Xs, Ys, Zs)) -> append2_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_2_gg4(X, Y, P, append2_3_out_agg3(underscore1, X, P)) -> sublist_2_out_gg2(X, Y)
SUBLIST_2_IN_GG2(X, Y) -> IF_SUBLIST_2_IN_1_GG3(X, Y, append1_3_in_aag3(P, underscore, Y))
SUBLIST_2_IN_GG2(X, Y) -> APPEND1_3_IN_AAG3(P, underscore, Y)
APPEND1_3_IN_AAG3(._22(X, Xs), Ys, ._22(X, Zs)) -> IF_APPEND1_3_IN_1_AAG5(X, Xs, Ys, Zs, append1_3_in_aag3(Xs, Ys, Zs))
APPEND1_3_IN_AAG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APPEND1_3_IN_AAG3(Xs, Ys, Zs)
IF_SUBLIST_2_IN_1_GG3(X, Y, append1_3_out_aag3(P, underscore, Y)) -> IF_SUBLIST_2_IN_2_GG4(X, Y, P, append2_3_in_agg3(underscore1, X, P))
IF_SUBLIST_2_IN_1_GG3(X, Y, append1_3_out_aag3(P, underscore, Y)) -> APPEND2_3_IN_AGG3(underscore1, X, P)
APPEND2_3_IN_AGG3(._22(X, Xs), Ys, ._22(X, Zs)) -> IF_APPEND2_3_IN_1_AGG5(X, Xs, Ys, Zs, append2_3_in_agg3(Xs, Ys, Zs))
APPEND2_3_IN_AGG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APPEND2_3_IN_AGG3(Xs, Ys, Zs)
sublist_2_in_gg2(X, Y) -> if_sublist_2_in_1_gg3(X, Y, append1_3_in_aag3(P, underscore, Y))
append1_3_in_aag3([]_0, Ys, Ys) -> append1_3_out_aag3([]_0, Ys, Ys)
append1_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append1_3_in_1_aag5(X, Xs, Ys, Zs, append1_3_in_aag3(Xs, Ys, Zs))
if_append1_3_in_1_aag5(X, Xs, Ys, Zs, append1_3_out_aag3(Xs, Ys, Zs)) -> append1_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_1_gg3(X, Y, append1_3_out_aag3(P, underscore, Y)) -> if_sublist_2_in_2_gg4(X, Y, P, append2_3_in_agg3(underscore1, X, P))
append2_3_in_agg3([]_0, Ys, Ys) -> append2_3_out_agg3([]_0, Ys, Ys)
append2_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append2_3_in_1_agg5(X, Xs, Ys, Zs, append2_3_in_agg3(Xs, Ys, Zs))
if_append2_3_in_1_agg5(X, Xs, Ys, Zs, append2_3_out_agg3(Xs, Ys, Zs)) -> append2_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_2_gg4(X, Y, P, append2_3_out_agg3(underscore1, X, P)) -> sublist_2_out_gg2(X, Y)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
SUBLIST_2_IN_GG2(X, Y) -> IF_SUBLIST_2_IN_1_GG3(X, Y, append1_3_in_aag3(P, underscore, Y))
SUBLIST_2_IN_GG2(X, Y) -> APPEND1_3_IN_AAG3(P, underscore, Y)
APPEND1_3_IN_AAG3(._22(X, Xs), Ys, ._22(X, Zs)) -> IF_APPEND1_3_IN_1_AAG5(X, Xs, Ys, Zs, append1_3_in_aag3(Xs, Ys, Zs))
APPEND1_3_IN_AAG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APPEND1_3_IN_AAG3(Xs, Ys, Zs)
IF_SUBLIST_2_IN_1_GG3(X, Y, append1_3_out_aag3(P, underscore, Y)) -> IF_SUBLIST_2_IN_2_GG4(X, Y, P, append2_3_in_agg3(underscore1, X, P))
IF_SUBLIST_2_IN_1_GG3(X, Y, append1_3_out_aag3(P, underscore, Y)) -> APPEND2_3_IN_AGG3(underscore1, X, P)
APPEND2_3_IN_AGG3(._22(X, Xs), Ys, ._22(X, Zs)) -> IF_APPEND2_3_IN_1_AGG5(X, Xs, Ys, Zs, append2_3_in_agg3(Xs, Ys, Zs))
APPEND2_3_IN_AGG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APPEND2_3_IN_AGG3(Xs, Ys, Zs)
sublist_2_in_gg2(X, Y) -> if_sublist_2_in_1_gg3(X, Y, append1_3_in_aag3(P, underscore, Y))
append1_3_in_aag3([]_0, Ys, Ys) -> append1_3_out_aag3([]_0, Ys, Ys)
append1_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append1_3_in_1_aag5(X, Xs, Ys, Zs, append1_3_in_aag3(Xs, Ys, Zs))
if_append1_3_in_1_aag5(X, Xs, Ys, Zs, append1_3_out_aag3(Xs, Ys, Zs)) -> append1_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_1_gg3(X, Y, append1_3_out_aag3(P, underscore, Y)) -> if_sublist_2_in_2_gg4(X, Y, P, append2_3_in_agg3(underscore1, X, P))
append2_3_in_agg3([]_0, Ys, Ys) -> append2_3_out_agg3([]_0, Ys, Ys)
append2_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append2_3_in_1_agg5(X, Xs, Ys, Zs, append2_3_in_agg3(Xs, Ys, Zs))
if_append2_3_in_1_agg5(X, Xs, Ys, Zs, append2_3_out_agg3(Xs, Ys, Zs)) -> append2_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_2_gg4(X, Y, P, append2_3_out_agg3(underscore1, X, P)) -> sublist_2_out_gg2(X, Y)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
APPEND2_3_IN_AGG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APPEND2_3_IN_AGG3(Xs, Ys, Zs)
sublist_2_in_gg2(X, Y) -> if_sublist_2_in_1_gg3(X, Y, append1_3_in_aag3(P, underscore, Y))
append1_3_in_aag3([]_0, Ys, Ys) -> append1_3_out_aag3([]_0, Ys, Ys)
append1_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append1_3_in_1_aag5(X, Xs, Ys, Zs, append1_3_in_aag3(Xs, Ys, Zs))
if_append1_3_in_1_aag5(X, Xs, Ys, Zs, append1_3_out_aag3(Xs, Ys, Zs)) -> append1_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_1_gg3(X, Y, append1_3_out_aag3(P, underscore, Y)) -> if_sublist_2_in_2_gg4(X, Y, P, append2_3_in_agg3(underscore1, X, P))
append2_3_in_agg3([]_0, Ys, Ys) -> append2_3_out_agg3([]_0, Ys, Ys)
append2_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append2_3_in_1_agg5(X, Xs, Ys, Zs, append2_3_in_agg3(Xs, Ys, Zs))
if_append2_3_in_1_agg5(X, Xs, Ys, Zs, append2_3_out_agg3(Xs, Ys, Zs)) -> append2_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_2_gg4(X, Y, P, append2_3_out_agg3(underscore1, X, P)) -> sublist_2_out_gg2(X, Y)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
APPEND2_3_IN_AGG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APPEND2_3_IN_AGG3(Xs, Ys, Zs)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
APPEND2_3_IN_AGG2(Ys, ._22(X, Zs)) -> APPEND2_3_IN_AGG2(Ys, Zs)
From the DPs we obtained the following set of size-change graphs:
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
APPEND1_3_IN_AAG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APPEND1_3_IN_AAG3(Xs, Ys, Zs)
sublist_2_in_gg2(X, Y) -> if_sublist_2_in_1_gg3(X, Y, append1_3_in_aag3(P, underscore, Y))
append1_3_in_aag3([]_0, Ys, Ys) -> append1_3_out_aag3([]_0, Ys, Ys)
append1_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append1_3_in_1_aag5(X, Xs, Ys, Zs, append1_3_in_aag3(Xs, Ys, Zs))
if_append1_3_in_1_aag5(X, Xs, Ys, Zs, append1_3_out_aag3(Xs, Ys, Zs)) -> append1_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_1_gg3(X, Y, append1_3_out_aag3(P, underscore, Y)) -> if_sublist_2_in_2_gg4(X, Y, P, append2_3_in_agg3(underscore1, X, P))
append2_3_in_agg3([]_0, Ys, Ys) -> append2_3_out_agg3([]_0, Ys, Ys)
append2_3_in_agg3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append2_3_in_1_agg5(X, Xs, Ys, Zs, append2_3_in_agg3(Xs, Ys, Zs))
if_append2_3_in_1_agg5(X, Xs, Ys, Zs, append2_3_out_agg3(Xs, Ys, Zs)) -> append2_3_out_agg3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_2_gg4(X, Y, P, append2_3_out_agg3(underscore1, X, P)) -> sublist_2_out_gg2(X, Y)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
APPEND1_3_IN_AAG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APPEND1_3_IN_AAG3(Xs, Ys, Zs)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
APPEND1_3_IN_AAG1(._22(X, Zs)) -> APPEND1_3_IN_AAG1(Zs)
From the DPs we obtained the following set of size-change graphs: