0 Prolog
↳1 PrologToPiTRSProof (⇐)
↳2 PiTRS
↳3 DependencyPairsProof (⇔)
↳4 PiDP
↳5 DependencyGraphProof (⇔)
↳6 AND
↳7 PiDP
↳8 UsableRulesProof (⇔)
↳9 PiDP
↳10 PiDPToQDPProof (⇐)
↳11 QDP
↳12 QDPSizeChangeProof (⇔)
↳13 TRUE
↳14 PiDP
↳15 UsableRulesProof (⇔)
↳16 PiDP
↳17 PiDPToQDPProof (⇐)
↳18 QDP
↳19 QDPSizeChangeProof (⇔)
↳20 TRUE
↳21 PrologToPiTRSProof (⇐)
↳22 PiTRS
↳23 DependencyPairsProof (⇔)
↳24 PiDP
↳25 DependencyGraphProof (⇔)
↳26 AND
↳27 PiDP
↳28 UsableRulesProof (⇔)
↳29 PiDP
↳30 PiDPToQDPProof (⇐)
↳31 QDP
↳32 QDPSizeChangeProof (⇔)
↳33 TRUE
↳34 PiDP
↳35 UsableRulesProof (⇔)
↳36 PiDP
↳37 PiDPToQDPProof (⇐)
↳38 QDP
goal_in_g(X) → U6_g(X, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, T)) → U3_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, T)) → U4_ga(X, Y, T, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, nil)) → U5_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, nil)) → s2t_out_ga(s(X), node(nil, Y, nil))
s2t_in_ga(0, nil) → s2t_out_ga(0, nil)
U5_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, nil))
U4_ga(X, Y, T, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(nil, Y, T))
U3_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, T))
U6_g(X, s2t_out_ga(X, T)) → U7_g(X, tree_in_g(T))
tree_in_g(nil) → tree_out_g(nil)
tree_in_g(node(L, X, R)) → U1_g(L, X, R, tree_in_g(L))
U1_g(L, X, R, tree_out_g(L)) → U2_g(L, X, R, tree_in_g(R))
U2_g(L, X, R, tree_out_g(R)) → tree_out_g(node(L, X, R))
U7_g(X, tree_out_g(T)) → goal_out_g(X)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
goal_in_g(X) → U6_g(X, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, T)) → U3_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, T)) → U4_ga(X, Y, T, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, nil)) → U5_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, nil)) → s2t_out_ga(s(X), node(nil, Y, nil))
s2t_in_ga(0, nil) → s2t_out_ga(0, nil)
U5_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, nil))
U4_ga(X, Y, T, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(nil, Y, T))
U3_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, T))
U6_g(X, s2t_out_ga(X, T)) → U7_g(X, tree_in_g(T))
tree_in_g(nil) → tree_out_g(nil)
tree_in_g(node(L, X, R)) → U1_g(L, X, R, tree_in_g(L))
U1_g(L, X, R, tree_out_g(L)) → U2_g(L, X, R, tree_in_g(R))
U2_g(L, X, R, tree_out_g(R)) → tree_out_g(node(L, X, R))
U7_g(X, tree_out_g(T)) → goal_out_g(X)
GOAL_IN_G(X) → U6_G(X, s2t_in_ga(X, T))
GOAL_IN_G(X) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(T, Y, T)) → U3_GA(X, T, Y, s2t_in_ga(X, T))
S2T_IN_GA(s(X), node(T, Y, T)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(nil, Y, T)) → U4_GA(X, Y, T, s2t_in_ga(X, T))
S2T_IN_GA(s(X), node(nil, Y, T)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(T, Y, nil)) → U5_GA(X, T, Y, s2t_in_ga(X, T))
S2T_IN_GA(s(X), node(T, Y, nil)) → S2T_IN_GA(X, T)
U6_G(X, s2t_out_ga(X, T)) → U7_G(X, tree_in_g(T))
U6_G(X, s2t_out_ga(X, T)) → TREE_IN_G(T)
TREE_IN_G(node(L, X, R)) → U1_G(L, X, R, tree_in_g(L))
TREE_IN_G(node(L, X, R)) → TREE_IN_G(L)
U1_G(L, X, R, tree_out_g(L)) → U2_G(L, X, R, tree_in_g(R))
U1_G(L, X, R, tree_out_g(L)) → TREE_IN_G(R)
goal_in_g(X) → U6_g(X, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, T)) → U3_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, T)) → U4_ga(X, Y, T, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, nil)) → U5_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, nil)) → s2t_out_ga(s(X), node(nil, Y, nil))
s2t_in_ga(0, nil) → s2t_out_ga(0, nil)
U5_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, nil))
U4_ga(X, Y, T, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(nil, Y, T))
U3_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, T))
U6_g(X, s2t_out_ga(X, T)) → U7_g(X, tree_in_g(T))
tree_in_g(nil) → tree_out_g(nil)
tree_in_g(node(L, X, R)) → U1_g(L, X, R, tree_in_g(L))
U1_g(L, X, R, tree_out_g(L)) → U2_g(L, X, R, tree_in_g(R))
U2_g(L, X, R, tree_out_g(R)) → tree_out_g(node(L, X, R))
U7_g(X, tree_out_g(T)) → goal_out_g(X)
GOAL_IN_G(X) → U6_G(X, s2t_in_ga(X, T))
GOAL_IN_G(X) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(T, Y, T)) → U3_GA(X, T, Y, s2t_in_ga(X, T))
S2T_IN_GA(s(X), node(T, Y, T)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(nil, Y, T)) → U4_GA(X, Y, T, s2t_in_ga(X, T))
S2T_IN_GA(s(X), node(nil, Y, T)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(T, Y, nil)) → U5_GA(X, T, Y, s2t_in_ga(X, T))
S2T_IN_GA(s(X), node(T, Y, nil)) → S2T_IN_GA(X, T)
U6_G(X, s2t_out_ga(X, T)) → U7_G(X, tree_in_g(T))
U6_G(X, s2t_out_ga(X, T)) → TREE_IN_G(T)
TREE_IN_G(node(L, X, R)) → U1_G(L, X, R, tree_in_g(L))
TREE_IN_G(node(L, X, R)) → TREE_IN_G(L)
U1_G(L, X, R, tree_out_g(L)) → U2_G(L, X, R, tree_in_g(R))
U1_G(L, X, R, tree_out_g(L)) → TREE_IN_G(R)
goal_in_g(X) → U6_g(X, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, T)) → U3_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, T)) → U4_ga(X, Y, T, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, nil)) → U5_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, nil)) → s2t_out_ga(s(X), node(nil, Y, nil))
s2t_in_ga(0, nil) → s2t_out_ga(0, nil)
U5_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, nil))
U4_ga(X, Y, T, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(nil, Y, T))
U3_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, T))
U6_g(X, s2t_out_ga(X, T)) → U7_g(X, tree_in_g(T))
tree_in_g(nil) → tree_out_g(nil)
tree_in_g(node(L, X, R)) → U1_g(L, X, R, tree_in_g(L))
U1_g(L, X, R, tree_out_g(L)) → U2_g(L, X, R, tree_in_g(R))
U2_g(L, X, R, tree_out_g(R)) → tree_out_g(node(L, X, R))
U7_g(X, tree_out_g(T)) → goal_out_g(X)
U1_G(L, X, R, tree_out_g(L)) → TREE_IN_G(R)
TREE_IN_G(node(L, X, R)) → U1_G(L, X, R, tree_in_g(L))
TREE_IN_G(node(L, X, R)) → TREE_IN_G(L)
goal_in_g(X) → U6_g(X, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, T)) → U3_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, T)) → U4_ga(X, Y, T, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, nil)) → U5_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, nil)) → s2t_out_ga(s(X), node(nil, Y, nil))
s2t_in_ga(0, nil) → s2t_out_ga(0, nil)
U5_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, nil))
U4_ga(X, Y, T, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(nil, Y, T))
U3_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, T))
U6_g(X, s2t_out_ga(X, T)) → U7_g(X, tree_in_g(T))
tree_in_g(nil) → tree_out_g(nil)
tree_in_g(node(L, X, R)) → U1_g(L, X, R, tree_in_g(L))
U1_g(L, X, R, tree_out_g(L)) → U2_g(L, X, R, tree_in_g(R))
U2_g(L, X, R, tree_out_g(R)) → tree_out_g(node(L, X, R))
U7_g(X, tree_out_g(T)) → goal_out_g(X)
U1_G(L, X, R, tree_out_g(L)) → TREE_IN_G(R)
TREE_IN_G(node(L, X, R)) → U1_G(L, X, R, tree_in_g(L))
TREE_IN_G(node(L, X, R)) → TREE_IN_G(L)
tree_in_g(nil) → tree_out_g(nil)
tree_in_g(node(L, X, R)) → U1_g(L, X, R, tree_in_g(L))
U1_g(L, X, R, tree_out_g(L)) → U2_g(L, X, R, tree_in_g(R))
U2_g(L, X, R, tree_out_g(R)) → tree_out_g(node(L, X, R))
U1_G(L, R, tree_out_g(L)) → TREE_IN_G(R)
TREE_IN_G(node(L, R)) → U1_G(L, R, tree_in_g(L))
TREE_IN_G(node(L, R)) → TREE_IN_G(L)
tree_in_g(nil) → tree_out_g(nil)
tree_in_g(node(L, R)) → U1_g(L, R, tree_in_g(L))
U1_g(L, R, tree_out_g(L)) → U2_g(L, R, tree_in_g(R))
U2_g(L, R, tree_out_g(R)) → tree_out_g(node(L, R))
tree_in_g(x0)
U1_g(x0, x1, x2)
U2_g(x0, x1, x2)
From the DPs we obtained the following set of size-change graphs:
S2T_IN_GA(s(X), node(nil, Y, T)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(T, Y, T)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(T, Y, nil)) → S2T_IN_GA(X, T)
goal_in_g(X) → U6_g(X, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, T)) → U3_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, T)) → U4_ga(X, Y, T, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, nil)) → U5_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, nil)) → s2t_out_ga(s(X), node(nil, Y, nil))
s2t_in_ga(0, nil) → s2t_out_ga(0, nil)
U5_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, nil))
U4_ga(X, Y, T, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(nil, Y, T))
U3_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, T))
U6_g(X, s2t_out_ga(X, T)) → U7_g(X, tree_in_g(T))
tree_in_g(nil) → tree_out_g(nil)
tree_in_g(node(L, X, R)) → U1_g(L, X, R, tree_in_g(L))
U1_g(L, X, R, tree_out_g(L)) → U2_g(L, X, R, tree_in_g(R))
U2_g(L, X, R, tree_out_g(R)) → tree_out_g(node(L, X, R))
U7_g(X, tree_out_g(T)) → goal_out_g(X)
S2T_IN_GA(s(X), node(nil, Y, T)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(T, Y, T)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(T, Y, nil)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X)) → S2T_IN_GA(X)
From the DPs we obtained the following set of size-change graphs:
goal_in_g(X) → U6_g(X, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, T)) → U3_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, T)) → U4_ga(X, Y, T, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, nil)) → U5_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, nil)) → s2t_out_ga(s(X), node(nil, Y, nil))
s2t_in_ga(0, nil) → s2t_out_ga(0, nil)
U5_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, nil))
U4_ga(X, Y, T, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(nil, Y, T))
U3_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, T))
U6_g(X, s2t_out_ga(X, T)) → U7_g(X, tree_in_g(T))
tree_in_g(nil) → tree_out_g(nil)
tree_in_g(node(L, X, R)) → U1_g(L, X, R, tree_in_g(L))
U1_g(L, X, R, tree_out_g(L)) → U2_g(L, X, R, tree_in_g(R))
U2_g(L, X, R, tree_out_g(R)) → tree_out_g(node(L, X, R))
U7_g(X, tree_out_g(T)) → goal_out_g(X)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
goal_in_g(X) → U6_g(X, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, T)) → U3_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, T)) → U4_ga(X, Y, T, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, nil)) → U5_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, nil)) → s2t_out_ga(s(X), node(nil, Y, nil))
s2t_in_ga(0, nil) → s2t_out_ga(0, nil)
U5_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, nil))
U4_ga(X, Y, T, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(nil, Y, T))
U3_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, T))
U6_g(X, s2t_out_ga(X, T)) → U7_g(X, tree_in_g(T))
tree_in_g(nil) → tree_out_g(nil)
tree_in_g(node(L, X, R)) → U1_g(L, X, R, tree_in_g(L))
U1_g(L, X, R, tree_out_g(L)) → U2_g(L, X, R, tree_in_g(R))
U2_g(L, X, R, tree_out_g(R)) → tree_out_g(node(L, X, R))
U7_g(X, tree_out_g(T)) → goal_out_g(X)
GOAL_IN_G(X) → U6_G(X, s2t_in_ga(X, T))
GOAL_IN_G(X) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(T, Y, T)) → U3_GA(X, T, Y, s2t_in_ga(X, T))
S2T_IN_GA(s(X), node(T, Y, T)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(nil, Y, T)) → U4_GA(X, Y, T, s2t_in_ga(X, T))
S2T_IN_GA(s(X), node(nil, Y, T)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(T, Y, nil)) → U5_GA(X, T, Y, s2t_in_ga(X, T))
S2T_IN_GA(s(X), node(T, Y, nil)) → S2T_IN_GA(X, T)
U6_G(X, s2t_out_ga(X, T)) → U7_G(X, tree_in_g(T))
U6_G(X, s2t_out_ga(X, T)) → TREE_IN_G(T)
TREE_IN_G(node(L, X, R)) → U1_G(L, X, R, tree_in_g(L))
TREE_IN_G(node(L, X, R)) → TREE_IN_G(L)
U1_G(L, X, R, tree_out_g(L)) → U2_G(L, X, R, tree_in_g(R))
U1_G(L, X, R, tree_out_g(L)) → TREE_IN_G(R)
goal_in_g(X) → U6_g(X, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, T)) → U3_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, T)) → U4_ga(X, Y, T, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, nil)) → U5_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, nil)) → s2t_out_ga(s(X), node(nil, Y, nil))
s2t_in_ga(0, nil) → s2t_out_ga(0, nil)
U5_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, nil))
U4_ga(X, Y, T, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(nil, Y, T))
U3_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, T))
U6_g(X, s2t_out_ga(X, T)) → U7_g(X, tree_in_g(T))
tree_in_g(nil) → tree_out_g(nil)
tree_in_g(node(L, X, R)) → U1_g(L, X, R, tree_in_g(L))
U1_g(L, X, R, tree_out_g(L)) → U2_g(L, X, R, tree_in_g(R))
U2_g(L, X, R, tree_out_g(R)) → tree_out_g(node(L, X, R))
U7_g(X, tree_out_g(T)) → goal_out_g(X)
GOAL_IN_G(X) → U6_G(X, s2t_in_ga(X, T))
GOAL_IN_G(X) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(T, Y, T)) → U3_GA(X, T, Y, s2t_in_ga(X, T))
S2T_IN_GA(s(X), node(T, Y, T)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(nil, Y, T)) → U4_GA(X, Y, T, s2t_in_ga(X, T))
S2T_IN_GA(s(X), node(nil, Y, T)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(T, Y, nil)) → U5_GA(X, T, Y, s2t_in_ga(X, T))
S2T_IN_GA(s(X), node(T, Y, nil)) → S2T_IN_GA(X, T)
U6_G(X, s2t_out_ga(X, T)) → U7_G(X, tree_in_g(T))
U6_G(X, s2t_out_ga(X, T)) → TREE_IN_G(T)
TREE_IN_G(node(L, X, R)) → U1_G(L, X, R, tree_in_g(L))
TREE_IN_G(node(L, X, R)) → TREE_IN_G(L)
U1_G(L, X, R, tree_out_g(L)) → U2_G(L, X, R, tree_in_g(R))
U1_G(L, X, R, tree_out_g(L)) → TREE_IN_G(R)
goal_in_g(X) → U6_g(X, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, T)) → U3_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, T)) → U4_ga(X, Y, T, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, nil)) → U5_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, nil)) → s2t_out_ga(s(X), node(nil, Y, nil))
s2t_in_ga(0, nil) → s2t_out_ga(0, nil)
U5_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, nil))
U4_ga(X, Y, T, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(nil, Y, T))
U3_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, T))
U6_g(X, s2t_out_ga(X, T)) → U7_g(X, tree_in_g(T))
tree_in_g(nil) → tree_out_g(nil)
tree_in_g(node(L, X, R)) → U1_g(L, X, R, tree_in_g(L))
U1_g(L, X, R, tree_out_g(L)) → U2_g(L, X, R, tree_in_g(R))
U2_g(L, X, R, tree_out_g(R)) → tree_out_g(node(L, X, R))
U7_g(X, tree_out_g(T)) → goal_out_g(X)
U1_G(L, X, R, tree_out_g(L)) → TREE_IN_G(R)
TREE_IN_G(node(L, X, R)) → U1_G(L, X, R, tree_in_g(L))
TREE_IN_G(node(L, X, R)) → TREE_IN_G(L)
goal_in_g(X) → U6_g(X, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, T)) → U3_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, T)) → U4_ga(X, Y, T, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, nil)) → U5_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, nil)) → s2t_out_ga(s(X), node(nil, Y, nil))
s2t_in_ga(0, nil) → s2t_out_ga(0, nil)
U5_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, nil))
U4_ga(X, Y, T, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(nil, Y, T))
U3_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, T))
U6_g(X, s2t_out_ga(X, T)) → U7_g(X, tree_in_g(T))
tree_in_g(nil) → tree_out_g(nil)
tree_in_g(node(L, X, R)) → U1_g(L, X, R, tree_in_g(L))
U1_g(L, X, R, tree_out_g(L)) → U2_g(L, X, R, tree_in_g(R))
U2_g(L, X, R, tree_out_g(R)) → tree_out_g(node(L, X, R))
U7_g(X, tree_out_g(T)) → goal_out_g(X)
U1_G(L, X, R, tree_out_g(L)) → TREE_IN_G(R)
TREE_IN_G(node(L, X, R)) → U1_G(L, X, R, tree_in_g(L))
TREE_IN_G(node(L, X, R)) → TREE_IN_G(L)
tree_in_g(nil) → tree_out_g(nil)
tree_in_g(node(L, X, R)) → U1_g(L, X, R, tree_in_g(L))
U1_g(L, X, R, tree_out_g(L)) → U2_g(L, X, R, tree_in_g(R))
U2_g(L, X, R, tree_out_g(R)) → tree_out_g(node(L, X, R))
U1_G(R, tree_out_g) → TREE_IN_G(R)
TREE_IN_G(node(L, R)) → U1_G(R, tree_in_g(L))
TREE_IN_G(node(L, R)) → TREE_IN_G(L)
tree_in_g(nil) → tree_out_g
tree_in_g(node(L, R)) → U1_g(R, tree_in_g(L))
U1_g(R, tree_out_g) → U2_g(tree_in_g(R))
U2_g(tree_out_g) → tree_out_g
tree_in_g(x0)
U1_g(x0, x1)
U2_g(x0)
From the DPs we obtained the following set of size-change graphs:
S2T_IN_GA(s(X), node(nil, Y, T)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(T, Y, T)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(T, Y, nil)) → S2T_IN_GA(X, T)
goal_in_g(X) → U6_g(X, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, T)) → U3_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, T)) → U4_ga(X, Y, T, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(T, Y, nil)) → U5_ga(X, T, Y, s2t_in_ga(X, T))
s2t_in_ga(s(X), node(nil, Y, nil)) → s2t_out_ga(s(X), node(nil, Y, nil))
s2t_in_ga(0, nil) → s2t_out_ga(0, nil)
U5_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, nil))
U4_ga(X, Y, T, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(nil, Y, T))
U3_ga(X, T, Y, s2t_out_ga(X, T)) → s2t_out_ga(s(X), node(T, Y, T))
U6_g(X, s2t_out_ga(X, T)) → U7_g(X, tree_in_g(T))
tree_in_g(nil) → tree_out_g(nil)
tree_in_g(node(L, X, R)) → U1_g(L, X, R, tree_in_g(L))
U1_g(L, X, R, tree_out_g(L)) → U2_g(L, X, R, tree_in_g(R))
U2_g(L, X, R, tree_out_g(R)) → tree_out_g(node(L, X, R))
U7_g(X, tree_out_g(T)) → goal_out_g(X)
S2T_IN_GA(s(X), node(nil, Y, T)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(T, Y, T)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X), node(T, Y, nil)) → S2T_IN_GA(X, T)
S2T_IN_GA(s(X)) → S2T_IN_GA(X)