↳ PROLOG
↳ PrologToPiTRSProof
With regard to the inferred argument filtering the predicates were used in the following modes:
sublist2: (f,b)
append3: (f,f,b)
Transforming PROLOG into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:
sublist_2_in_ag2(X, Y) -> if_sublist_2_in_1_ag3(X, Y, append_3_in_aag3(P, underscore, Y))
append_3_in_aag3([]_0, Ys, Ys) -> append_3_out_aag3([]_0, Ys, Ys)
append_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append_3_in_1_aag5(X, Xs, Ys, Zs, append_3_in_aag3(Xs, Ys, Zs))
if_append_3_in_1_aag5(X, Xs, Ys, Zs, append_3_out_aag3(Xs, Ys, Zs)) -> append_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_1_ag3(X, Y, append_3_out_aag3(P, underscore, Y)) -> if_sublist_2_in_2_ag4(X, Y, P, append_3_in_aag3(underscore1, X, P))
if_sublist_2_in_2_ag4(X, Y, P, append_3_out_aag3(underscore1, X, P)) -> sublist_2_out_ag2(X, Y)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
sublist_2_in_ag2(X, Y) -> if_sublist_2_in_1_ag3(X, Y, append_3_in_aag3(P, underscore, Y))
append_3_in_aag3([]_0, Ys, Ys) -> append_3_out_aag3([]_0, Ys, Ys)
append_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append_3_in_1_aag5(X, Xs, Ys, Zs, append_3_in_aag3(Xs, Ys, Zs))
if_append_3_in_1_aag5(X, Xs, Ys, Zs, append_3_out_aag3(Xs, Ys, Zs)) -> append_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_1_ag3(X, Y, append_3_out_aag3(P, underscore, Y)) -> if_sublist_2_in_2_ag4(X, Y, P, append_3_in_aag3(underscore1, X, P))
if_sublist_2_in_2_ag4(X, Y, P, append_3_out_aag3(underscore1, X, P)) -> sublist_2_out_ag2(X, Y)
SUBLIST_2_IN_AG2(X, Y) -> IF_SUBLIST_2_IN_1_AG3(X, Y, append_3_in_aag3(P, underscore, Y))
SUBLIST_2_IN_AG2(X, Y) -> APPEND_3_IN_AAG3(P, underscore, Y)
APPEND_3_IN_AAG3(._22(X, Xs), Ys, ._22(X, Zs)) -> IF_APPEND_3_IN_1_AAG5(X, Xs, Ys, Zs, append_3_in_aag3(Xs, Ys, Zs))
APPEND_3_IN_AAG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APPEND_3_IN_AAG3(Xs, Ys, Zs)
IF_SUBLIST_2_IN_1_AG3(X, Y, append_3_out_aag3(P, underscore, Y)) -> IF_SUBLIST_2_IN_2_AG4(X, Y, P, append_3_in_aag3(underscore1, X, P))
IF_SUBLIST_2_IN_1_AG3(X, Y, append_3_out_aag3(P, underscore, Y)) -> APPEND_3_IN_AAG3(underscore1, X, P)
sublist_2_in_ag2(X, Y) -> if_sublist_2_in_1_ag3(X, Y, append_3_in_aag3(P, underscore, Y))
append_3_in_aag3([]_0, Ys, Ys) -> append_3_out_aag3([]_0, Ys, Ys)
append_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append_3_in_1_aag5(X, Xs, Ys, Zs, append_3_in_aag3(Xs, Ys, Zs))
if_append_3_in_1_aag5(X, Xs, Ys, Zs, append_3_out_aag3(Xs, Ys, Zs)) -> append_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_1_ag3(X, Y, append_3_out_aag3(P, underscore, Y)) -> if_sublist_2_in_2_ag4(X, Y, P, append_3_in_aag3(underscore1, X, P))
if_sublist_2_in_2_ag4(X, Y, P, append_3_out_aag3(underscore1, X, P)) -> sublist_2_out_ag2(X, Y)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
SUBLIST_2_IN_AG2(X, Y) -> IF_SUBLIST_2_IN_1_AG3(X, Y, append_3_in_aag3(P, underscore, Y))
SUBLIST_2_IN_AG2(X, Y) -> APPEND_3_IN_AAG3(P, underscore, Y)
APPEND_3_IN_AAG3(._22(X, Xs), Ys, ._22(X, Zs)) -> IF_APPEND_3_IN_1_AAG5(X, Xs, Ys, Zs, append_3_in_aag3(Xs, Ys, Zs))
APPEND_3_IN_AAG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APPEND_3_IN_AAG3(Xs, Ys, Zs)
IF_SUBLIST_2_IN_1_AG3(X, Y, append_3_out_aag3(P, underscore, Y)) -> IF_SUBLIST_2_IN_2_AG4(X, Y, P, append_3_in_aag3(underscore1, X, P))
IF_SUBLIST_2_IN_1_AG3(X, Y, append_3_out_aag3(P, underscore, Y)) -> APPEND_3_IN_AAG3(underscore1, X, P)
sublist_2_in_ag2(X, Y) -> if_sublist_2_in_1_ag3(X, Y, append_3_in_aag3(P, underscore, Y))
append_3_in_aag3([]_0, Ys, Ys) -> append_3_out_aag3([]_0, Ys, Ys)
append_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append_3_in_1_aag5(X, Xs, Ys, Zs, append_3_in_aag3(Xs, Ys, Zs))
if_append_3_in_1_aag5(X, Xs, Ys, Zs, append_3_out_aag3(Xs, Ys, Zs)) -> append_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_1_ag3(X, Y, append_3_out_aag3(P, underscore, Y)) -> if_sublist_2_in_2_ag4(X, Y, P, append_3_in_aag3(underscore1, X, P))
if_sublist_2_in_2_ag4(X, Y, P, append_3_out_aag3(underscore1, X, P)) -> sublist_2_out_ag2(X, Y)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ PiDP
↳ UsableRulesProof
APPEND_3_IN_AAG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APPEND_3_IN_AAG3(Xs, Ys, Zs)
sublist_2_in_ag2(X, Y) -> if_sublist_2_in_1_ag3(X, Y, append_3_in_aag3(P, underscore, Y))
append_3_in_aag3([]_0, Ys, Ys) -> append_3_out_aag3([]_0, Ys, Ys)
append_3_in_aag3(._22(X, Xs), Ys, ._22(X, Zs)) -> if_append_3_in_1_aag5(X, Xs, Ys, Zs, append_3_in_aag3(Xs, Ys, Zs))
if_append_3_in_1_aag5(X, Xs, Ys, Zs, append_3_out_aag3(Xs, Ys, Zs)) -> append_3_out_aag3(._22(X, Xs), Ys, ._22(X, Zs))
if_sublist_2_in_1_ag3(X, Y, append_3_out_aag3(P, underscore, Y)) -> if_sublist_2_in_2_ag4(X, Y, P, append_3_in_aag3(underscore1, X, P))
if_sublist_2_in_2_ag4(X, Y, P, append_3_out_aag3(underscore1, X, P)) -> sublist_2_out_ag2(X, Y)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
APPEND_3_IN_AAG3(._22(X, Xs), Ys, ._22(X, Zs)) -> APPEND_3_IN_AAG3(Xs, Ys, Zs)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
APPEND_3_IN_AAG1(._22(X, Zs)) -> APPEND_3_IN_AAG1(Zs)
From the DPs we obtained the following set of size-change graphs: