↳ PROLOG
↳ PrologToPiTRSProof
With regard to the inferred argument filtering the predicates were used in the following modes:
goal1: (b)
s2t2: (b,f)
tree1: (b)
Transforming PROLOG into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:
goal_1_in_g1(X) -> if_goal_1_in_1_g2(X, s2t_2_in_ga2(X, 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_1_in_1_g2(X, s2t_2_out_ga2(X, T)) -> if_goal_1_in_2_g3(X, T, tree_1_in_g1(T))
tree_1_in_g1(nil_0) -> tree_1_out_g1(nil_0)
tree_1_in_g1(node_33(L, X, R)) -> if_tree_1_in_1_g4(L, X, R, tree_1_in_g1(L))
if_tree_1_in_1_g4(L, X, R, tree_1_out_g1(L)) -> if_tree_1_in_2_g4(L, X, R, tree_1_in_g1(R))
if_tree_1_in_2_g4(L, X, R, tree_1_out_g1(R)) -> tree_1_out_g1(node_33(L, X, R))
if_goal_1_in_2_g3(X, T, tree_1_out_g1(T)) -> goal_1_out_g1(X)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
goal_1_in_g1(X) -> if_goal_1_in_1_g2(X, s2t_2_in_ga2(X, 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_1_in_1_g2(X, s2t_2_out_ga2(X, T)) -> if_goal_1_in_2_g3(X, T, tree_1_in_g1(T))
tree_1_in_g1(nil_0) -> tree_1_out_g1(nil_0)
tree_1_in_g1(node_33(L, X, R)) -> if_tree_1_in_1_g4(L, X, R, tree_1_in_g1(L))
if_tree_1_in_1_g4(L, X, R, tree_1_out_g1(L)) -> if_tree_1_in_2_g4(L, X, R, tree_1_in_g1(R))
if_tree_1_in_2_g4(L, X, R, tree_1_out_g1(R)) -> tree_1_out_g1(node_33(L, X, R))
if_goal_1_in_2_g3(X, T, tree_1_out_g1(T)) -> goal_1_out_g1(X)
GOAL_1_IN_G1(X) -> IF_GOAL_1_IN_1_G2(X, s2t_2_in_ga2(X, T))
GOAL_1_IN_G1(X) -> S2T_2_IN_GA2(X, 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_1_IN_1_G2(X, s2t_2_out_ga2(X, T)) -> IF_GOAL_1_IN_2_G3(X, T, tree_1_in_g1(T))
IF_GOAL_1_IN_1_G2(X, s2t_2_out_ga2(X, T)) -> TREE_1_IN_G1(T)
TREE_1_IN_G1(node_33(L, X, R)) -> IF_TREE_1_IN_1_G4(L, X, R, tree_1_in_g1(L))
TREE_1_IN_G1(node_33(L, X, R)) -> TREE_1_IN_G1(L)
IF_TREE_1_IN_1_G4(L, X, R, tree_1_out_g1(L)) -> IF_TREE_1_IN_2_G4(L, X, R, tree_1_in_g1(R))
IF_TREE_1_IN_1_G4(L, X, R, tree_1_out_g1(L)) -> TREE_1_IN_G1(R)
goal_1_in_g1(X) -> if_goal_1_in_1_g2(X, s2t_2_in_ga2(X, 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_1_in_1_g2(X, s2t_2_out_ga2(X, T)) -> if_goal_1_in_2_g3(X, T, tree_1_in_g1(T))
tree_1_in_g1(nil_0) -> tree_1_out_g1(nil_0)
tree_1_in_g1(node_33(L, X, R)) -> if_tree_1_in_1_g4(L, X, R, tree_1_in_g1(L))
if_tree_1_in_1_g4(L, X, R, tree_1_out_g1(L)) -> if_tree_1_in_2_g4(L, X, R, tree_1_in_g1(R))
if_tree_1_in_2_g4(L, X, R, tree_1_out_g1(R)) -> tree_1_out_g1(node_33(L, X, R))
if_goal_1_in_2_g3(X, T, tree_1_out_g1(T)) -> goal_1_out_g1(X)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
GOAL_1_IN_G1(X) -> IF_GOAL_1_IN_1_G2(X, s2t_2_in_ga2(X, T))
GOAL_1_IN_G1(X) -> S2T_2_IN_GA2(X, 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_1_IN_1_G2(X, s2t_2_out_ga2(X, T)) -> IF_GOAL_1_IN_2_G3(X, T, tree_1_in_g1(T))
IF_GOAL_1_IN_1_G2(X, s2t_2_out_ga2(X, T)) -> TREE_1_IN_G1(T)
TREE_1_IN_G1(node_33(L, X, R)) -> IF_TREE_1_IN_1_G4(L, X, R, tree_1_in_g1(L))
TREE_1_IN_G1(node_33(L, X, R)) -> TREE_1_IN_G1(L)
IF_TREE_1_IN_1_G4(L, X, R, tree_1_out_g1(L)) -> IF_TREE_1_IN_2_G4(L, X, R, tree_1_in_g1(R))
IF_TREE_1_IN_1_G4(L, X, R, tree_1_out_g1(L)) -> TREE_1_IN_G1(R)
goal_1_in_g1(X) -> if_goal_1_in_1_g2(X, s2t_2_in_ga2(X, 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_1_in_1_g2(X, s2t_2_out_ga2(X, T)) -> if_goal_1_in_2_g3(X, T, tree_1_in_g1(T))
tree_1_in_g1(nil_0) -> tree_1_out_g1(nil_0)
tree_1_in_g1(node_33(L, X, R)) -> if_tree_1_in_1_g4(L, X, R, tree_1_in_g1(L))
if_tree_1_in_1_g4(L, X, R, tree_1_out_g1(L)) -> if_tree_1_in_2_g4(L, X, R, tree_1_in_g1(R))
if_tree_1_in_2_g4(L, X, R, tree_1_out_g1(R)) -> tree_1_out_g1(node_33(L, X, R))
if_goal_1_in_2_g3(X, T, tree_1_out_g1(T)) -> goal_1_out_g1(X)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
TREE_1_IN_G1(node_33(L, X, R)) -> TREE_1_IN_G1(L)
TREE_1_IN_G1(node_33(L, X, R)) -> IF_TREE_1_IN_1_G4(L, X, R, tree_1_in_g1(L))
IF_TREE_1_IN_1_G4(L, X, R, tree_1_out_g1(L)) -> TREE_1_IN_G1(R)
goal_1_in_g1(X) -> if_goal_1_in_1_g2(X, s2t_2_in_ga2(X, 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_1_in_1_g2(X, s2t_2_out_ga2(X, T)) -> if_goal_1_in_2_g3(X, T, tree_1_in_g1(T))
tree_1_in_g1(nil_0) -> tree_1_out_g1(nil_0)
tree_1_in_g1(node_33(L, X, R)) -> if_tree_1_in_1_g4(L, X, R, tree_1_in_g1(L))
if_tree_1_in_1_g4(L, X, R, tree_1_out_g1(L)) -> if_tree_1_in_2_g4(L, X, R, tree_1_in_g1(R))
if_tree_1_in_2_g4(L, X, R, tree_1_out_g1(R)) -> tree_1_out_g1(node_33(L, X, R))
if_goal_1_in_2_g3(X, T, tree_1_out_g1(T)) -> goal_1_out_g1(X)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
TREE_1_IN_G1(node_33(L, X, R)) -> TREE_1_IN_G1(L)
TREE_1_IN_G1(node_33(L, X, R)) -> IF_TREE_1_IN_1_G4(L, X, R, tree_1_in_g1(L))
IF_TREE_1_IN_1_G4(L, X, R, tree_1_out_g1(L)) -> TREE_1_IN_G1(R)
tree_1_in_g1(nil_0) -> tree_1_out_g1(nil_0)
tree_1_in_g1(node_33(L, X, R)) -> if_tree_1_in_1_g4(L, X, R, tree_1_in_g1(L))
if_tree_1_in_1_g4(L, X, R, tree_1_out_g1(L)) -> if_tree_1_in_2_g4(L, X, R, tree_1_in_g1(R))
if_tree_1_in_2_g4(L, X, R, tree_1_out_g1(R)) -> tree_1_out_g1(node_33(L, X, R))
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
TREE_1_IN_G1(node_32(L, R)) -> TREE_1_IN_G1(L)
TREE_1_IN_G1(node_32(L, R)) -> IF_TREE_1_IN_1_G2(R, tree_1_in_g1(L))
IF_TREE_1_IN_1_G2(R, tree_1_out_g) -> TREE_1_IN_G1(R)
tree_1_in_g1(nil_0) -> tree_1_out_g
tree_1_in_g1(node_32(L, R)) -> if_tree_1_in_1_g2(R, tree_1_in_g1(L))
if_tree_1_in_1_g2(R, tree_1_out_g) -> if_tree_1_in_2_g1(tree_1_in_g1(R))
if_tree_1_in_2_g1(tree_1_out_g) -> tree_1_out_g
tree_1_in_g1(x0)
if_tree_1_in_1_g2(x0, x1)
if_tree_1_in_2_g1(x0)
From the DPs we obtained the following set of size-change graphs:
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ 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_1_in_g1(X) -> if_goal_1_in_1_g2(X, s2t_2_in_ga2(X, 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_1_in_1_g2(X, s2t_2_out_ga2(X, T)) -> if_goal_1_in_2_g3(X, T, tree_1_in_g1(T))
tree_1_in_g1(nil_0) -> tree_1_out_g1(nil_0)
tree_1_in_g1(node_33(L, X, R)) -> if_tree_1_in_1_g4(L, X, R, tree_1_in_g1(L))
if_tree_1_in_1_g4(L, X, R, tree_1_out_g1(L)) -> if_tree_1_in_2_g4(L, X, R, tree_1_in_g1(R))
if_tree_1_in_2_g4(L, X, R, tree_1_out_g1(R)) -> tree_1_out_g1(node_33(L, X, R))
if_goal_1_in_2_g3(X, T, tree_1_out_g1(T)) -> goal_1_out_g1(X)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ 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
↳ 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: