↳ PROLOG
↳ PrologToPiTRSProof
With regard to the inferred argument filtering the predicates were used in the following modes:
goal3: (b,f,f)
s2t2: (b,f)
tapplast3: (b,f,f)
tappend3: (b,b,f)
tlast2: (f,b)
Transforming PROLOG into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:
goal_3_in_gaa3(A, B, C) -> if_goal_3_in_1_gaa4(A, B, C, s2t_2_in_ga2(A, T))
s2t_2_in_ga2(s_11(X), node_33(T, Y, T)) -> if_s2t_2_in_1_ga4(X, T, Y, s2t_2_in_ga2(X, T))
s2t_2_in_ga2(s_11(X), node_33(nil_0, Y, T)) -> if_s2t_2_in_2_ga4(X, Y, T, s2t_2_in_ga2(X, T))
s2t_2_in_ga2(s_11(X), node_33(T, Y, nil_0)) -> if_s2t_2_in_3_ga4(X, T, Y, s2t_2_in_ga2(X, T))
s2t_2_in_ga2(s_11(X), node_33(nil_0, Y, nil_0)) -> s2t_2_out_ga2(s_11(X), node_33(nil_0, Y, nil_0))
s2t_2_in_ga2(0_0, nil_0) -> s2t_2_out_ga2(0_0, nil_0)
if_s2t_2_in_3_ga4(X, T, Y, s2t_2_out_ga2(X, T)) -> s2t_2_out_ga2(s_11(X), node_33(T, Y, nil_0))
if_s2t_2_in_2_ga4(X, Y, T, s2t_2_out_ga2(X, T)) -> s2t_2_out_ga2(s_11(X), node_33(nil_0, Y, T))
if_s2t_2_in_1_ga4(X, T, Y, s2t_2_out_ga2(X, T)) -> s2t_2_out_ga2(s_11(X), node_33(T, Y, T))
if_goal_3_in_1_gaa4(A, B, C, s2t_2_out_ga2(A, T)) -> if_goal_3_in_2_gaa5(A, B, C, T, tapplast_3_in_gaa3(T, B, C))
tapplast_3_in_gaa3(L, X, Last) -> if_tapplast_3_in_1_gaa4(L, X, Last, tappend_3_in_gga3(L, node_33(nil_0, X, nil_0), LX))
tappend_3_in_gga3(nil_0, T, T) -> tappend_3_out_gga3(nil_0, T, T)
tappend_3_in_gga3(node_33(nil_0, X, T2), T1, node_33(T1, X, T2)) -> tappend_3_out_gga3(node_33(nil_0, X, T2), T1, node_33(T1, X, T2))
tappend_3_in_gga3(node_33(T1, X, nil_0), T2, node_33(T1, X, T2)) -> tappend_3_out_gga3(node_33(T1, X, nil_0), T2, node_33(T1, X, T2))
tappend_3_in_gga3(node_33(T1, X, T2), T3, node_33(U, X, T2)) -> if_tappend_3_in_1_gga6(T1, X, T2, T3, U, tappend_3_in_gga3(T1, T3, U))
tappend_3_in_gga3(node_33(T1, X, T2), T3, node_33(T1, X, U)) -> if_tappend_3_in_2_gga6(T1, X, T2, T3, U, tappend_3_in_gga3(T2, T3, U))
if_tappend_3_in_2_gga6(T1, X, T2, T3, U, tappend_3_out_gga3(T2, T3, U)) -> tappend_3_out_gga3(node_33(T1, X, T2), T3, node_33(T1, X, U))
if_tappend_3_in_1_gga6(T1, X, T2, T3, U, tappend_3_out_gga3(T1, T3, U)) -> tappend_3_out_gga3(node_33(T1, X, T2), T3, node_33(U, X, T2))
if_tapplast_3_in_1_gaa4(L, X, Last, tappend_3_out_gga3(L, node_33(nil_0, X, nil_0), LX)) -> if_tapplast_3_in_2_gaa5(L, X, Last, LX, tlast_2_in_ag2(Last, LX))
tlast_2_in_ag2(X, node_33(nil_0, X, nil_0)) -> tlast_2_out_ag2(X, node_33(nil_0, X, nil_0))
tlast_2_in_ag2(X, node_33(L, H, R)) -> if_tlast_2_in_1_ag5(X, L, H, R, tlast_2_in_ag2(X, L))
tlast_2_in_ag2(X, node_33(L, H, R)) -> if_tlast_2_in_2_ag5(X, L, H, R, tlast_2_in_ag2(X, R))
if_tlast_2_in_2_ag5(X, L, H, R, tlast_2_out_ag2(X, R)) -> tlast_2_out_ag2(X, node_33(L, H, R))
if_tlast_2_in_1_ag5(X, L, H, R, tlast_2_out_ag2(X, L)) -> tlast_2_out_ag2(X, node_33(L, H, R))
if_tapplast_3_in_2_gaa5(L, X, Last, LX, tlast_2_out_ag2(Last, LX)) -> tapplast_3_out_gaa3(L, X, Last)
if_goal_3_in_2_gaa5(A, B, C, T, tapplast_3_out_gaa3(T, B, C)) -> goal_3_out_gaa3(A, B, C)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
goal_3_in_gaa3(A, B, C) -> if_goal_3_in_1_gaa4(A, B, C, s2t_2_in_ga2(A, T))
s2t_2_in_ga2(s_11(X), node_33(T, Y, T)) -> if_s2t_2_in_1_ga4(X, T, Y, s2t_2_in_ga2(X, T))
s2t_2_in_ga2(s_11(X), node_33(nil_0, Y, T)) -> if_s2t_2_in_2_ga4(X, Y, T, s2t_2_in_ga2(X, T))
s2t_2_in_ga2(s_11(X), node_33(T, Y, nil_0)) -> if_s2t_2_in_3_ga4(X, T, Y, s2t_2_in_ga2(X, T))
s2t_2_in_ga2(s_11(X), node_33(nil_0, Y, nil_0)) -> s2t_2_out_ga2(s_11(X), node_33(nil_0, Y, nil_0))
s2t_2_in_ga2(0_0, nil_0) -> s2t_2_out_ga2(0_0, nil_0)
if_s2t_2_in_3_ga4(X, T, Y, s2t_2_out_ga2(X, T)) -> s2t_2_out_ga2(s_11(X), node_33(T, Y, nil_0))
if_s2t_2_in_2_ga4(X, Y, T, s2t_2_out_ga2(X, T)) -> s2t_2_out_ga2(s_11(X), node_33(nil_0, Y, T))
if_s2t_2_in_1_ga4(X, T, Y, s2t_2_out_ga2(X, T)) -> s2t_2_out_ga2(s_11(X), node_33(T, Y, T))
if_goal_3_in_1_gaa4(A, B, C, s2t_2_out_ga2(A, T)) -> if_goal_3_in_2_gaa5(A, B, C, T, tapplast_3_in_gaa3(T, B, C))
tapplast_3_in_gaa3(L, X, Last) -> if_tapplast_3_in_1_gaa4(L, X, Last, tappend_3_in_gga3(L, node_33(nil_0, X, nil_0), LX))
tappend_3_in_gga3(nil_0, T, T) -> tappend_3_out_gga3(nil_0, T, T)
tappend_3_in_gga3(node_33(nil_0, X, T2), T1, node_33(T1, X, T2)) -> tappend_3_out_gga3(node_33(nil_0, X, T2), T1, node_33(T1, X, T2))
tappend_3_in_gga3(node_33(T1, X, nil_0), T2, node_33(T1, X, T2)) -> tappend_3_out_gga3(node_33(T1, X, nil_0), T2, node_33(T1, X, T2))
tappend_3_in_gga3(node_33(T1, X, T2), T3, node_33(U, X, T2)) -> if_tappend_3_in_1_gga6(T1, X, T2, T3, U, tappend_3_in_gga3(T1, T3, U))
tappend_3_in_gga3(node_33(T1, X, T2), T3, node_33(T1, X, U)) -> if_tappend_3_in_2_gga6(T1, X, T2, T3, U, tappend_3_in_gga3(T2, T3, U))
if_tappend_3_in_2_gga6(T1, X, T2, T3, U, tappend_3_out_gga3(T2, T3, U)) -> tappend_3_out_gga3(node_33(T1, X, T2), T3, node_33(T1, X, U))
if_tappend_3_in_1_gga6(T1, X, T2, T3, U, tappend_3_out_gga3(T1, T3, U)) -> tappend_3_out_gga3(node_33(T1, X, T2), T3, node_33(U, X, T2))
if_tapplast_3_in_1_gaa4(L, X, Last, tappend_3_out_gga3(L, node_33(nil_0, X, nil_0), LX)) -> if_tapplast_3_in_2_gaa5(L, X, Last, LX, tlast_2_in_ag2(Last, LX))
tlast_2_in_ag2(X, node_33(nil_0, X, nil_0)) -> tlast_2_out_ag2(X, node_33(nil_0, X, nil_0))
tlast_2_in_ag2(X, node_33(L, H, R)) -> if_tlast_2_in_1_ag5(X, L, H, R, tlast_2_in_ag2(X, L))
tlast_2_in_ag2(X, node_33(L, H, R)) -> if_tlast_2_in_2_ag5(X, L, H, R, tlast_2_in_ag2(X, R))
if_tlast_2_in_2_ag5(X, L, H, R, tlast_2_out_ag2(X, R)) -> tlast_2_out_ag2(X, node_33(L, H, R))
if_tlast_2_in_1_ag5(X, L, H, R, tlast_2_out_ag2(X, L)) -> tlast_2_out_ag2(X, node_33(L, H, R))
if_tapplast_3_in_2_gaa5(L, X, Last, LX, tlast_2_out_ag2(Last, LX)) -> tapplast_3_out_gaa3(L, X, Last)
if_goal_3_in_2_gaa5(A, B, C, T, tapplast_3_out_gaa3(T, B, C)) -> goal_3_out_gaa3(A, B, C)
GOAL_3_IN_GAA3(A, B, C) -> IF_GOAL_3_IN_1_GAA4(A, B, C, s2t_2_in_ga2(A, T))
GOAL_3_IN_GAA3(A, B, C) -> S2T_2_IN_GA2(A, T)
S2T_2_IN_GA2(s_11(X), node_33(T, Y, T)) -> IF_S2T_2_IN_1_GA4(X, T, Y, s2t_2_in_ga2(X, T))
S2T_2_IN_GA2(s_11(X), node_33(T, Y, T)) -> S2T_2_IN_GA2(X, T)
S2T_2_IN_GA2(s_11(X), node_33(nil_0, Y, T)) -> IF_S2T_2_IN_2_GA4(X, Y, T, s2t_2_in_ga2(X, T))
S2T_2_IN_GA2(s_11(X), node_33(nil_0, Y, T)) -> S2T_2_IN_GA2(X, T)
S2T_2_IN_GA2(s_11(X), node_33(T, Y, nil_0)) -> IF_S2T_2_IN_3_GA4(X, T, Y, s2t_2_in_ga2(X, T))
S2T_2_IN_GA2(s_11(X), node_33(T, Y, nil_0)) -> S2T_2_IN_GA2(X, T)
IF_GOAL_3_IN_1_GAA4(A, B, C, s2t_2_out_ga2(A, T)) -> IF_GOAL_3_IN_2_GAA5(A, B, C, T, tapplast_3_in_gaa3(T, B, C))
IF_GOAL_3_IN_1_GAA4(A, B, C, s2t_2_out_ga2(A, T)) -> TAPPLAST_3_IN_GAA3(T, B, C)
TAPPLAST_3_IN_GAA3(L, X, Last) -> IF_TAPPLAST_3_IN_1_GAA4(L, X, Last, tappend_3_in_gga3(L, node_33(nil_0, X, nil_0), LX))
TAPPLAST_3_IN_GAA3(L, X, Last) -> TAPPEND_3_IN_GGA3(L, node_33(nil_0, X, nil_0), LX)
TAPPEND_3_IN_GGA3(node_33(T1, X, T2), T3, node_33(U, X, T2)) -> IF_TAPPEND_3_IN_1_GGA6(T1, X, T2, T3, U, tappend_3_in_gga3(T1, T3, U))
TAPPEND_3_IN_GGA3(node_33(T1, X, T2), T3, node_33(U, X, T2)) -> TAPPEND_3_IN_GGA3(T1, T3, U)
TAPPEND_3_IN_GGA3(node_33(T1, X, T2), T3, node_33(T1, X, U)) -> IF_TAPPEND_3_IN_2_GGA6(T1, X, T2, T3, U, tappend_3_in_gga3(T2, T3, U))
TAPPEND_3_IN_GGA3(node_33(T1, X, T2), T3, node_33(T1, X, U)) -> TAPPEND_3_IN_GGA3(T2, T3, U)
IF_TAPPLAST_3_IN_1_GAA4(L, X, Last, tappend_3_out_gga3(L, node_33(nil_0, X, nil_0), LX)) -> IF_TAPPLAST_3_IN_2_GAA5(L, X, Last, LX, tlast_2_in_ag2(Last, LX))
IF_TAPPLAST_3_IN_1_GAA4(L, X, Last, tappend_3_out_gga3(L, node_33(nil_0, X, nil_0), LX)) -> TLAST_2_IN_AG2(Last, LX)
TLAST_2_IN_AG2(X, node_33(L, H, R)) -> IF_TLAST_2_IN_1_AG5(X, L, H, R, tlast_2_in_ag2(X, L))
TLAST_2_IN_AG2(X, node_33(L, H, R)) -> TLAST_2_IN_AG2(X, L)
TLAST_2_IN_AG2(X, node_33(L, H, R)) -> IF_TLAST_2_IN_2_AG5(X, L, H, R, tlast_2_in_ag2(X, R))
TLAST_2_IN_AG2(X, node_33(L, H, R)) -> TLAST_2_IN_AG2(X, R)
goal_3_in_gaa3(A, B, C) -> if_goal_3_in_1_gaa4(A, B, C, s2t_2_in_ga2(A, T))
s2t_2_in_ga2(s_11(X), node_33(T, Y, T)) -> if_s2t_2_in_1_ga4(X, T, Y, s2t_2_in_ga2(X, T))
s2t_2_in_ga2(s_11(X), node_33(nil_0, Y, T)) -> if_s2t_2_in_2_ga4(X, Y, T, s2t_2_in_ga2(X, T))
s2t_2_in_ga2(s_11(X), node_33(T, Y, nil_0)) -> if_s2t_2_in_3_ga4(X, T, Y, s2t_2_in_ga2(X, T))
s2t_2_in_ga2(s_11(X), node_33(nil_0, Y, nil_0)) -> s2t_2_out_ga2(s_11(X), node_33(nil_0, Y, nil_0))
s2t_2_in_ga2(0_0, nil_0) -> s2t_2_out_ga2(0_0, nil_0)
if_s2t_2_in_3_ga4(X, T, Y, s2t_2_out_ga2(X, T)) -> s2t_2_out_ga2(s_11(X), node_33(T, Y, nil_0))
if_s2t_2_in_2_ga4(X, Y, T, s2t_2_out_ga2(X, T)) -> s2t_2_out_ga2(s_11(X), node_33(nil_0, Y, T))
if_s2t_2_in_1_ga4(X, T, Y, s2t_2_out_ga2(X, T)) -> s2t_2_out_ga2(s_11(X), node_33(T, Y, T))
if_goal_3_in_1_gaa4(A, B, C, s2t_2_out_ga2(A, T)) -> if_goal_3_in_2_gaa5(A, B, C, T, tapplast_3_in_gaa3(T, B, C))
tapplast_3_in_gaa3(L, X, Last) -> if_tapplast_3_in_1_gaa4(L, X, Last, tappend_3_in_gga3(L, node_33(nil_0, X, nil_0), LX))
tappend_3_in_gga3(nil_0, T, T) -> tappend_3_out_gga3(nil_0, T, T)
tappend_3_in_gga3(node_33(nil_0, X, T2), T1, node_33(T1, X, T2)) -> tappend_3_out_gga3(node_33(nil_0, X, T2), T1, node_33(T1, X, T2))
tappend_3_in_gga3(node_33(T1, X, nil_0), T2, node_33(T1, X, T2)) -> tappend_3_out_gga3(node_33(T1, X, nil_0), T2, node_33(T1, X, T2))
tappend_3_in_gga3(node_33(T1, X, T2), T3, node_33(U, X, T2)) -> if_tappend_3_in_1_gga6(T1, X, T2, T3, U, tappend_3_in_gga3(T1, T3, U))
tappend_3_in_gga3(node_33(T1, X, T2), T3, node_33(T1, X, U)) -> if_tappend_3_in_2_gga6(T1, X, T2, T3, U, tappend_3_in_gga3(T2, T3, U))
if_tappend_3_in_2_gga6(T1, X, T2, T3, U, tappend_3_out_gga3(T2, T3, U)) -> tappend_3_out_gga3(node_33(T1, X, T2), T3, node_33(T1, X, U))
if_tappend_3_in_1_gga6(T1, X, T2, T3, U, tappend_3_out_gga3(T1, T3, U)) -> tappend_3_out_gga3(node_33(T1, X, T2), T3, node_33(U, X, T2))
if_tapplast_3_in_1_gaa4(L, X, Last, tappend_3_out_gga3(L, node_33(nil_0, X, nil_0), LX)) -> if_tapplast_3_in_2_gaa5(L, X, Last, LX, tlast_2_in_ag2(Last, LX))
tlast_2_in_ag2(X, node_33(nil_0, X, nil_0)) -> tlast_2_out_ag2(X, node_33(nil_0, X, nil_0))
tlast_2_in_ag2(X, node_33(L, H, R)) -> if_tlast_2_in_1_ag5(X, L, H, R, tlast_2_in_ag2(X, L))
tlast_2_in_ag2(X, node_33(L, H, R)) -> if_tlast_2_in_2_ag5(X, L, H, R, tlast_2_in_ag2(X, R))
if_tlast_2_in_2_ag5(X, L, H, R, tlast_2_out_ag2(X, R)) -> tlast_2_out_ag2(X, node_33(L, H, R))
if_tlast_2_in_1_ag5(X, L, H, R, tlast_2_out_ag2(X, L)) -> tlast_2_out_ag2(X, node_33(L, H, R))
if_tapplast_3_in_2_gaa5(L, X, Last, LX, tlast_2_out_ag2(Last, LX)) -> tapplast_3_out_gaa3(L, X, Last)
if_goal_3_in_2_gaa5(A, B, C, T, tapplast_3_out_gaa3(T, B, C)) -> goal_3_out_gaa3(A, B, C)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
GOAL_3_IN_GAA3(A, B, C) -> IF_GOAL_3_IN_1_GAA4(A, B, C, s2t_2_in_ga2(A, T))
GOAL_3_IN_GAA3(A, B, C) -> S2T_2_IN_GA2(A, T)
S2T_2_IN_GA2(s_11(X), node_33(T, Y, T)) -> IF_S2T_2_IN_1_GA4(X, T, Y, s2t_2_in_ga2(X, T))
S2T_2_IN_GA2(s_11(X), node_33(T, Y, T)) -> S2T_2_IN_GA2(X, T)
S2T_2_IN_GA2(s_11(X), node_33(nil_0, Y, T)) -> IF_S2T_2_IN_2_GA4(X, Y, T, s2t_2_in_ga2(X, T))
S2T_2_IN_GA2(s_11(X), node_33(nil_0, Y, T)) -> S2T_2_IN_GA2(X, T)
S2T_2_IN_GA2(s_11(X), node_33(T, Y, nil_0)) -> IF_S2T_2_IN_3_GA4(X, T, Y, s2t_2_in_ga2(X, T))
S2T_2_IN_GA2(s_11(X), node_33(T, Y, nil_0)) -> S2T_2_IN_GA2(X, T)
IF_GOAL_3_IN_1_GAA4(A, B, C, s2t_2_out_ga2(A, T)) -> IF_GOAL_3_IN_2_GAA5(A, B, C, T, tapplast_3_in_gaa3(T, B, C))
IF_GOAL_3_IN_1_GAA4(A, B, C, s2t_2_out_ga2(A, T)) -> TAPPLAST_3_IN_GAA3(T, B, C)
TAPPLAST_3_IN_GAA3(L, X, Last) -> IF_TAPPLAST_3_IN_1_GAA4(L, X, Last, tappend_3_in_gga3(L, node_33(nil_0, X, nil_0), LX))
TAPPLAST_3_IN_GAA3(L, X, Last) -> TAPPEND_3_IN_GGA3(L, node_33(nil_0, X, nil_0), LX)
TAPPEND_3_IN_GGA3(node_33(T1, X, T2), T3, node_33(U, X, T2)) -> IF_TAPPEND_3_IN_1_GGA6(T1, X, T2, T3, U, tappend_3_in_gga3(T1, T3, U))
TAPPEND_3_IN_GGA3(node_33(T1, X, T2), T3, node_33(U, X, T2)) -> TAPPEND_3_IN_GGA3(T1, T3, U)
TAPPEND_3_IN_GGA3(node_33(T1, X, T2), T3, node_33(T1, X, U)) -> IF_TAPPEND_3_IN_2_GGA6(T1, X, T2, T3, U, tappend_3_in_gga3(T2, T3, U))
TAPPEND_3_IN_GGA3(node_33(T1, X, T2), T3, node_33(T1, X, U)) -> TAPPEND_3_IN_GGA3(T2, T3, U)
IF_TAPPLAST_3_IN_1_GAA4(L, X, Last, tappend_3_out_gga3(L, node_33(nil_0, X, nil_0), LX)) -> IF_TAPPLAST_3_IN_2_GAA5(L, X, Last, LX, tlast_2_in_ag2(Last, LX))
IF_TAPPLAST_3_IN_1_GAA4(L, X, Last, tappend_3_out_gga3(L, node_33(nil_0, X, nil_0), LX)) -> TLAST_2_IN_AG2(Last, LX)
TLAST_2_IN_AG2(X, node_33(L, H, R)) -> IF_TLAST_2_IN_1_AG5(X, L, H, R, tlast_2_in_ag2(X, L))
TLAST_2_IN_AG2(X, node_33(L, H, R)) -> TLAST_2_IN_AG2(X, L)
TLAST_2_IN_AG2(X, node_33(L, H, R)) -> IF_TLAST_2_IN_2_AG5(X, L, H, R, tlast_2_in_ag2(X, R))
TLAST_2_IN_AG2(X, node_33(L, H, R)) -> TLAST_2_IN_AG2(X, R)
goal_3_in_gaa3(A, B, C) -> if_goal_3_in_1_gaa4(A, B, C, s2t_2_in_ga2(A, T))
s2t_2_in_ga2(s_11(X), node_33(T, Y, T)) -> if_s2t_2_in_1_ga4(X, T, Y, s2t_2_in_ga2(X, T))
s2t_2_in_ga2(s_11(X), node_33(nil_0, Y, T)) -> if_s2t_2_in_2_ga4(X, Y, T, s2t_2_in_ga2(X, T))
s2t_2_in_ga2(s_11(X), node_33(T, Y, nil_0)) -> if_s2t_2_in_3_ga4(X, T, Y, s2t_2_in_ga2(X, T))
s2t_2_in_ga2(s_11(X), node_33(nil_0, Y, nil_0)) -> s2t_2_out_ga2(s_11(X), node_33(nil_0, Y, nil_0))
s2t_2_in_ga2(0_0, nil_0) -> s2t_2_out_ga2(0_0, nil_0)
if_s2t_2_in_3_ga4(X, T, Y, s2t_2_out_ga2(X, T)) -> s2t_2_out_ga2(s_11(X), node_33(T, Y, nil_0))
if_s2t_2_in_2_ga4(X, Y, T, s2t_2_out_ga2(X, T)) -> s2t_2_out_ga2(s_11(X), node_33(nil_0, Y, T))
if_s2t_2_in_1_ga4(X, T, Y, s2t_2_out_ga2(X, T)) -> s2t_2_out_ga2(s_11(X), node_33(T, Y, T))
if_goal_3_in_1_gaa4(A, B, C, s2t_2_out_ga2(A, T)) -> if_goal_3_in_2_gaa5(A, B, C, T, tapplast_3_in_gaa3(T, B, C))
tapplast_3_in_gaa3(L, X, Last) -> if_tapplast_3_in_1_gaa4(L, X, Last, tappend_3_in_gga3(L, node_33(nil_0, X, nil_0), LX))
tappend_3_in_gga3(nil_0, T, T) -> tappend_3_out_gga3(nil_0, T, T)
tappend_3_in_gga3(node_33(nil_0, X, T2), T1, node_33(T1, X, T2)) -> tappend_3_out_gga3(node_33(nil_0, X, T2), T1, node_33(T1, X, T2))
tappend_3_in_gga3(node_33(T1, X, nil_0), T2, node_33(T1, X, T2)) -> tappend_3_out_gga3(node_33(T1, X, nil_0), T2, node_33(T1, X, T2))
tappend_3_in_gga3(node_33(T1, X, T2), T3, node_33(U, X, T2)) -> if_tappend_3_in_1_gga6(T1, X, T2, T3, U, tappend_3_in_gga3(T1, T3, U))
tappend_3_in_gga3(node_33(T1, X, T2), T3, node_33(T1, X, U)) -> if_tappend_3_in_2_gga6(T1, X, T2, T3, U, tappend_3_in_gga3(T2, T3, U))
if_tappend_3_in_2_gga6(T1, X, T2, T3, U, tappend_3_out_gga3(T2, T3, U)) -> tappend_3_out_gga3(node_33(T1, X, T2), T3, node_33(T1, X, U))
if_tappend_3_in_1_gga6(T1, X, T2, T3, U, tappend_3_out_gga3(T1, T3, U)) -> tappend_3_out_gga3(node_33(T1, X, T2), T3, node_33(U, X, T2))
if_tapplast_3_in_1_gaa4(L, X, Last, tappend_3_out_gga3(L, node_33(nil_0, X, nil_0), LX)) -> if_tapplast_3_in_2_gaa5(L, X, Last, LX, tlast_2_in_ag2(Last, LX))
tlast_2_in_ag2(X, node_33(nil_0, X, nil_0)) -> tlast_2_out_ag2(X, node_33(nil_0, X, nil_0))
tlast_2_in_ag2(X, node_33(L, H, R)) -> if_tlast_2_in_1_ag5(X, L, H, R, tlast_2_in_ag2(X, L))
tlast_2_in_ag2(X, node_33(L, H, R)) -> if_tlast_2_in_2_ag5(X, L, H, R, tlast_2_in_ag2(X, R))
if_tlast_2_in_2_ag5(X, L, H, R, tlast_2_out_ag2(X, R)) -> tlast_2_out_ag2(X, node_33(L, H, R))
if_tlast_2_in_1_ag5(X, L, H, R, tlast_2_out_ag2(X, L)) -> tlast_2_out_ag2(X, node_33(L, H, R))
if_tapplast_3_in_2_gaa5(L, X, Last, LX, tlast_2_out_ag2(Last, LX)) -> tapplast_3_out_gaa3(L, X, Last)
if_goal_3_in_2_gaa5(A, B, C, T, tapplast_3_out_gaa3(T, B, C)) -> goal_3_out_gaa3(A, B, C)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDP
TLAST_2_IN_AG2(X, node_33(L, H, R)) -> TLAST_2_IN_AG2(X, R)
TLAST_2_IN_AG2(X, node_33(L, H, R)) -> TLAST_2_IN_AG2(X, L)
goal_3_in_gaa3(A, B, C) -> if_goal_3_in_1_gaa4(A, B, C, s2t_2_in_ga2(A, T))
s2t_2_in_ga2(s_11(X), node_33(T, Y, T)) -> if_s2t_2_in_1_ga4(X, T, Y, s2t_2_in_ga2(X, T))
s2t_2_in_ga2(s_11(X), node_33(nil_0, Y, T)) -> if_s2t_2_in_2_ga4(X, Y, T, s2t_2_in_ga2(X, T))
s2t_2_in_ga2(s_11(X), node_33(T, Y, nil_0)) -> if_s2t_2_in_3_ga4(X, T, Y, s2t_2_in_ga2(X, T))
s2t_2_in_ga2(s_11(X), node_33(nil_0, Y, nil_0)) -> s2t_2_out_ga2(s_11(X), node_33(nil_0, Y, nil_0))
s2t_2_in_ga2(0_0, nil_0) -> s2t_2_out_ga2(0_0, nil_0)
if_s2t_2_in_3_ga4(X, T, Y, s2t_2_out_ga2(X, T)) -> s2t_2_out_ga2(s_11(X), node_33(T, Y, nil_0))
if_s2t_2_in_2_ga4(X, Y, T, s2t_2_out_ga2(X, T)) -> s2t_2_out_ga2(s_11(X), node_33(nil_0, Y, T))
if_s2t_2_in_1_ga4(X, T, Y, s2t_2_out_ga2(X, T)) -> s2t_2_out_ga2(s_11(X), node_33(T, Y, T))
if_goal_3_in_1_gaa4(A, B, C, s2t_2_out_ga2(A, T)) -> if_goal_3_in_2_gaa5(A, B, C, T, tapplast_3_in_gaa3(T, B, C))
tapplast_3_in_gaa3(L, X, Last) -> if_tapplast_3_in_1_gaa4(L, X, Last, tappend_3_in_gga3(L, node_33(nil_0, X, nil_0), LX))
tappend_3_in_gga3(nil_0, T, T) -> tappend_3_out_gga3(nil_0, T, T)
tappend_3_in_gga3(node_33(nil_0, X, T2), T1, node_33(T1, X, T2)) -> tappend_3_out_gga3(node_33(nil_0, X, T2), T1, node_33(T1, X, T2))
tappend_3_in_gga3(node_33(T1, X, nil_0), T2, node_33(T1, X, T2)) -> tappend_3_out_gga3(node_33(T1, X, nil_0), T2, node_33(T1, X, T2))
tappend_3_in_gga3(node_33(T1, X, T2), T3, node_33(U, X, T2)) -> if_tappend_3_in_1_gga6(T1, X, T2, T3, U, tappend_3_in_gga3(T1, T3, U))
tappend_3_in_gga3(node_33(T1, X, T2), T3, node_33(T1, X, U)) -> if_tappend_3_in_2_gga6(T1, X, T2, T3, U, tappend_3_in_gga3(T2, T3, U))
if_tappend_3_in_2_gga6(T1, X, T2, T3, U, tappend_3_out_gga3(T2, T3, U)) -> tappend_3_out_gga3(node_33(T1, X, T2), T3, node_33(T1, X, U))
if_tappend_3_in_1_gga6(T1, X, T2, T3, U, tappend_3_out_gga3(T1, T3, U)) -> tappend_3_out_gga3(node_33(T1, X, T2), T3, node_33(U, X, T2))
if_tapplast_3_in_1_gaa4(L, X, Last, tappend_3_out_gga3(L, node_33(nil_0, X, nil_0), LX)) -> if_tapplast_3_in_2_gaa5(L, X, Last, LX, tlast_2_in_ag2(Last, LX))
tlast_2_in_ag2(X, node_33(nil_0, X, nil_0)) -> tlast_2_out_ag2(X, node_33(nil_0, X, nil_0))
tlast_2_in_ag2(X, node_33(L, H, R)) -> if_tlast_2_in_1_ag5(X, L, H, R, tlast_2_in_ag2(X, L))
tlast_2_in_ag2(X, node_33(L, H, R)) -> if_tlast_2_in_2_ag5(X, L, H, R, tlast_2_in_ag2(X, R))
if_tlast_2_in_2_ag5(X, L, H, R, tlast_2_out_ag2(X, R)) -> tlast_2_out_ag2(X, node_33(L, H, R))
if_tlast_2_in_1_ag5(X, L, H, R, tlast_2_out_ag2(X, L)) -> tlast_2_out_ag2(X, node_33(L, H, R))
if_tapplast_3_in_2_gaa5(L, X, Last, LX, tlast_2_out_ag2(Last, LX)) -> tapplast_3_out_gaa3(L, X, Last)
if_goal_3_in_2_gaa5(A, B, C, T, tapplast_3_out_gaa3(T, B, C)) -> goal_3_out_gaa3(A, B, C)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
↳ PiDP
TLAST_2_IN_AG2(X, node_33(L, H, R)) -> TLAST_2_IN_AG2(X, R)
TLAST_2_IN_AG2(X, node_33(L, H, R)) -> TLAST_2_IN_AG2(X, L)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
↳ PiDP
TLAST_2_IN_AG1(node_32(L, R)) -> TLAST_2_IN_AG1(R)
TLAST_2_IN_AG1(node_32(L, R)) -> TLAST_2_IN_AG1(L)
From the DPs we obtained the following set of size-change graphs:
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
TAPPEND_3_IN_GGA3(node_33(T1, X, T2), T3, node_33(T1, X, U)) -> TAPPEND_3_IN_GGA3(T2, T3, U)
TAPPEND_3_IN_GGA3(node_33(T1, X, T2), T3, node_33(U, X, T2)) -> TAPPEND_3_IN_GGA3(T1, T3, U)
goal_3_in_gaa3(A, B, C) -> if_goal_3_in_1_gaa4(A, B, C, s2t_2_in_ga2(A, T))
s2t_2_in_ga2(s_11(X), node_33(T, Y, T)) -> if_s2t_2_in_1_ga4(X, T, Y, s2t_2_in_ga2(X, T))
s2t_2_in_ga2(s_11(X), node_33(nil_0, Y, T)) -> if_s2t_2_in_2_ga4(X, Y, T, s2t_2_in_ga2(X, T))
s2t_2_in_ga2(s_11(X), node_33(T, Y, nil_0)) -> if_s2t_2_in_3_ga4(X, T, Y, s2t_2_in_ga2(X, T))
s2t_2_in_ga2(s_11(X), node_33(nil_0, Y, nil_0)) -> s2t_2_out_ga2(s_11(X), node_33(nil_0, Y, nil_0))
s2t_2_in_ga2(0_0, nil_0) -> s2t_2_out_ga2(0_0, nil_0)
if_s2t_2_in_3_ga4(X, T, Y, s2t_2_out_ga2(X, T)) -> s2t_2_out_ga2(s_11(X), node_33(T, Y, nil_0))
if_s2t_2_in_2_ga4(X, Y, T, s2t_2_out_ga2(X, T)) -> s2t_2_out_ga2(s_11(X), node_33(nil_0, Y, T))
if_s2t_2_in_1_ga4(X, T, Y, s2t_2_out_ga2(X, T)) -> s2t_2_out_ga2(s_11(X), node_33(T, Y, T))
if_goal_3_in_1_gaa4(A, B, C, s2t_2_out_ga2(A, T)) -> if_goal_3_in_2_gaa5(A, B, C, T, tapplast_3_in_gaa3(T, B, C))
tapplast_3_in_gaa3(L, X, Last) -> if_tapplast_3_in_1_gaa4(L, X, Last, tappend_3_in_gga3(L, node_33(nil_0, X, nil_0), LX))
tappend_3_in_gga3(nil_0, T, T) -> tappend_3_out_gga3(nil_0, T, T)
tappend_3_in_gga3(node_33(nil_0, X, T2), T1, node_33(T1, X, T2)) -> tappend_3_out_gga3(node_33(nil_0, X, T2), T1, node_33(T1, X, T2))
tappend_3_in_gga3(node_33(T1, X, nil_0), T2, node_33(T1, X, T2)) -> tappend_3_out_gga3(node_33(T1, X, nil_0), T2, node_33(T1, X, T2))
tappend_3_in_gga3(node_33(T1, X, T2), T3, node_33(U, X, T2)) -> if_tappend_3_in_1_gga6(T1, X, T2, T3, U, tappend_3_in_gga3(T1, T3, U))
tappend_3_in_gga3(node_33(T1, X, T2), T3, node_33(T1, X, U)) -> if_tappend_3_in_2_gga6(T1, X, T2, T3, U, tappend_3_in_gga3(T2, T3, U))
if_tappend_3_in_2_gga6(T1, X, T2, T3, U, tappend_3_out_gga3(T2, T3, U)) -> tappend_3_out_gga3(node_33(T1, X, T2), T3, node_33(T1, X, U))
if_tappend_3_in_1_gga6(T1, X, T2, T3, U, tappend_3_out_gga3(T1, T3, U)) -> tappend_3_out_gga3(node_33(T1, X, T2), T3, node_33(U, X, T2))
if_tapplast_3_in_1_gaa4(L, X, Last, tappend_3_out_gga3(L, node_33(nil_0, X, nil_0), LX)) -> if_tapplast_3_in_2_gaa5(L, X, Last, LX, tlast_2_in_ag2(Last, LX))
tlast_2_in_ag2(X, node_33(nil_0, X, nil_0)) -> tlast_2_out_ag2(X, node_33(nil_0, X, nil_0))
tlast_2_in_ag2(X, node_33(L, H, R)) -> if_tlast_2_in_1_ag5(X, L, H, R, tlast_2_in_ag2(X, L))
tlast_2_in_ag2(X, node_33(L, H, R)) -> if_tlast_2_in_2_ag5(X, L, H, R, tlast_2_in_ag2(X, R))
if_tlast_2_in_2_ag5(X, L, H, R, tlast_2_out_ag2(X, R)) -> tlast_2_out_ag2(X, node_33(L, H, R))
if_tlast_2_in_1_ag5(X, L, H, R, tlast_2_out_ag2(X, L)) -> tlast_2_out_ag2(X, node_33(L, H, R))
if_tapplast_3_in_2_gaa5(L, X, Last, LX, tlast_2_out_ag2(Last, LX)) -> tapplast_3_out_gaa3(L, X, Last)
if_goal_3_in_2_gaa5(A, B, C, T, tapplast_3_out_gaa3(T, B, C)) -> goal_3_out_gaa3(A, B, C)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
TAPPEND_3_IN_GGA3(node_33(T1, X, T2), T3, node_33(T1, X, U)) -> TAPPEND_3_IN_GGA3(T2, T3, U)
TAPPEND_3_IN_GGA3(node_33(T1, X, T2), T3, node_33(U, X, T2)) -> TAPPEND_3_IN_GGA3(T1, T3, U)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
TAPPEND_3_IN_GGA2(node_32(T1, T2), T3) -> TAPPEND_3_IN_GGA2(T2, T3)
TAPPEND_3_IN_GGA2(node_32(T1, T2), T3) -> TAPPEND_3_IN_GGA2(T1, T3)
From the DPs we obtained the following set of size-change graphs:
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
S2T_2_IN_GA2(s_11(X), node_33(T, Y, nil_0)) -> S2T_2_IN_GA2(X, T)
S2T_2_IN_GA2(s_11(X), node_33(nil_0, Y, T)) -> S2T_2_IN_GA2(X, T)
S2T_2_IN_GA2(s_11(X), node_33(T, Y, T)) -> S2T_2_IN_GA2(X, T)
goal_3_in_gaa3(A, B, C) -> if_goal_3_in_1_gaa4(A, B, C, s2t_2_in_ga2(A, T))
s2t_2_in_ga2(s_11(X), node_33(T, Y, T)) -> if_s2t_2_in_1_ga4(X, T, Y, s2t_2_in_ga2(X, T))
s2t_2_in_ga2(s_11(X), node_33(nil_0, Y, T)) -> if_s2t_2_in_2_ga4(X, Y, T, s2t_2_in_ga2(X, T))
s2t_2_in_ga2(s_11(X), node_33(T, Y, nil_0)) -> if_s2t_2_in_3_ga4(X, T, Y, s2t_2_in_ga2(X, T))
s2t_2_in_ga2(s_11(X), node_33(nil_0, Y, nil_0)) -> s2t_2_out_ga2(s_11(X), node_33(nil_0, Y, nil_0))
s2t_2_in_ga2(0_0, nil_0) -> s2t_2_out_ga2(0_0, nil_0)
if_s2t_2_in_3_ga4(X, T, Y, s2t_2_out_ga2(X, T)) -> s2t_2_out_ga2(s_11(X), node_33(T, Y, nil_0))
if_s2t_2_in_2_ga4(X, Y, T, s2t_2_out_ga2(X, T)) -> s2t_2_out_ga2(s_11(X), node_33(nil_0, Y, T))
if_s2t_2_in_1_ga4(X, T, Y, s2t_2_out_ga2(X, T)) -> s2t_2_out_ga2(s_11(X), node_33(T, Y, T))
if_goal_3_in_1_gaa4(A, B, C, s2t_2_out_ga2(A, T)) -> if_goal_3_in_2_gaa5(A, B, C, T, tapplast_3_in_gaa3(T, B, C))
tapplast_3_in_gaa3(L, X, Last) -> if_tapplast_3_in_1_gaa4(L, X, Last, tappend_3_in_gga3(L, node_33(nil_0, X, nil_0), LX))
tappend_3_in_gga3(nil_0, T, T) -> tappend_3_out_gga3(nil_0, T, T)
tappend_3_in_gga3(node_33(nil_0, X, T2), T1, node_33(T1, X, T2)) -> tappend_3_out_gga3(node_33(nil_0, X, T2), T1, node_33(T1, X, T2))
tappend_3_in_gga3(node_33(T1, X, nil_0), T2, node_33(T1, X, T2)) -> tappend_3_out_gga3(node_33(T1, X, nil_0), T2, node_33(T1, X, T2))
tappend_3_in_gga3(node_33(T1, X, T2), T3, node_33(U, X, T2)) -> if_tappend_3_in_1_gga6(T1, X, T2, T3, U, tappend_3_in_gga3(T1, T3, U))
tappend_3_in_gga3(node_33(T1, X, T2), T3, node_33(T1, X, U)) -> if_tappend_3_in_2_gga6(T1, X, T2, T3, U, tappend_3_in_gga3(T2, T3, U))
if_tappend_3_in_2_gga6(T1, X, T2, T3, U, tappend_3_out_gga3(T2, T3, U)) -> tappend_3_out_gga3(node_33(T1, X, T2), T3, node_33(T1, X, U))
if_tappend_3_in_1_gga6(T1, X, T2, T3, U, tappend_3_out_gga3(T1, T3, U)) -> tappend_3_out_gga3(node_33(T1, X, T2), T3, node_33(U, X, T2))
if_tapplast_3_in_1_gaa4(L, X, Last, tappend_3_out_gga3(L, node_33(nil_0, X, nil_0), LX)) -> if_tapplast_3_in_2_gaa5(L, X, Last, LX, tlast_2_in_ag2(Last, LX))
tlast_2_in_ag2(X, node_33(nil_0, X, nil_0)) -> tlast_2_out_ag2(X, node_33(nil_0, X, nil_0))
tlast_2_in_ag2(X, node_33(L, H, R)) -> if_tlast_2_in_1_ag5(X, L, H, R, tlast_2_in_ag2(X, L))
tlast_2_in_ag2(X, node_33(L, H, R)) -> if_tlast_2_in_2_ag5(X, L, H, R, tlast_2_in_ag2(X, R))
if_tlast_2_in_2_ag5(X, L, H, R, tlast_2_out_ag2(X, R)) -> tlast_2_out_ag2(X, node_33(L, H, R))
if_tlast_2_in_1_ag5(X, L, H, R, tlast_2_out_ag2(X, L)) -> tlast_2_out_ag2(X, node_33(L, H, R))
if_tapplast_3_in_2_gaa5(L, X, Last, LX, tlast_2_out_ag2(Last, LX)) -> tapplast_3_out_gaa3(L, X, Last)
if_goal_3_in_2_gaa5(A, B, C, T, tapplast_3_out_gaa3(T, B, C)) -> goal_3_out_gaa3(A, B, C)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
S2T_2_IN_GA2(s_11(X), node_33(T, Y, nil_0)) -> S2T_2_IN_GA2(X, T)
S2T_2_IN_GA2(s_11(X), node_33(nil_0, Y, T)) -> S2T_2_IN_GA2(X, T)
S2T_2_IN_GA2(s_11(X), node_33(T, Y, T)) -> S2T_2_IN_GA2(X, T)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
S2T_2_IN_GA1(s_11(X)) -> S2T_2_IN_GA1(X)
From the DPs we obtained the following set of size-change graphs: