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 PrologToPiTRSProof (⇐)
↳18 PiTRS
↳19 DependencyPairsProof (⇔)
↳20 PiDP
↳21 DependencyGraphProof (⇔)
↳22 AND
↳23 PiDP
↳24 UsableRulesProof (⇔)
↳25 PiDP
↳26 PiDPToQDPProof (⇔)
↳27 QDP
↳28 QDPSizeChangeProof (⇔)
↳29 TRUE
↳30 PiDP
↳31 UsableRulesProof (⇔)
↳32 PiDP
↳33 PiDPToQDPProof (⇐)
↳34 QDP
↳35 QDPSizeChangeProof (⇔)
↳36 TRUE
search_tree_in_g(void) → search_tree_out_g(void)
search_tree_in_g(T) → U1_g(T, search_tree_in_gaa(T, X1, X2))
search_tree_in_gaa(tree(X, void, void), X, X) → search_tree_out_gaa(tree(X, void, void), X, X)
search_tree_in_gaa(tree(X, void, Right), X, Max) → U2_gaa(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
search_tree_in_gaa(tree(X, Left, void), Min, X) → U4_gaa(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
search_tree_in_gaa(tree(X, Left, Right), Min1, Max2) → U6_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
U6_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_gaa(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
less_in_gg(0, s(X3)) → less_out_gg(0, s(X3))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U7_gaa(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U8_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_gaa(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U9_gaa(X, Left, Right, Min1, Max2, less_out_gg(X, Min2)) → search_tree_out_gaa(tree(X, Left, Right), Min1, Max2)
U4_gaa(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_gaa(X, Left, Min, less_in_gg(Max, X))
U5_gaa(X, Left, Min, less_out_gg(Max, X)) → search_tree_out_gaa(tree(X, Left, void), Min, X)
U2_gaa(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_gaa(X, Right, Max, less_in_gg(X, Min))
U3_gaa(X, Right, Max, less_out_gg(X, Min)) → search_tree_out_gaa(tree(X, void, Right), X, Max)
U1_g(T, search_tree_out_gaa(T, X1, X2)) → search_tree_out_g(T)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
search_tree_in_g(void) → search_tree_out_g(void)
search_tree_in_g(T) → U1_g(T, search_tree_in_gaa(T, X1, X2))
search_tree_in_gaa(tree(X, void, void), X, X) → search_tree_out_gaa(tree(X, void, void), X, X)
search_tree_in_gaa(tree(X, void, Right), X, Max) → U2_gaa(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
search_tree_in_gaa(tree(X, Left, void), Min, X) → U4_gaa(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
search_tree_in_gaa(tree(X, Left, Right), Min1, Max2) → U6_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
U6_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_gaa(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
less_in_gg(0, s(X3)) → less_out_gg(0, s(X3))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U7_gaa(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U8_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_gaa(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U9_gaa(X, Left, Right, Min1, Max2, less_out_gg(X, Min2)) → search_tree_out_gaa(tree(X, Left, Right), Min1, Max2)
U4_gaa(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_gaa(X, Left, Min, less_in_gg(Max, X))
U5_gaa(X, Left, Min, less_out_gg(Max, X)) → search_tree_out_gaa(tree(X, Left, void), Min, X)
U2_gaa(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_gaa(X, Right, Max, less_in_gg(X, Min))
U3_gaa(X, Right, Max, less_out_gg(X, Min)) → search_tree_out_gaa(tree(X, void, Right), X, Max)
U1_g(T, search_tree_out_gaa(T, X1, X2)) → search_tree_out_g(T)
SEARCH_TREE_IN_G(T) → U1_G(T, search_tree_in_gaa(T, X1, X2))
SEARCH_TREE_IN_G(T) → SEARCH_TREE_IN_GAA(T, X1, X2)
SEARCH_TREE_IN_GAA(tree(X, void, Right), X, Max) → U2_GAA(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
SEARCH_TREE_IN_GAA(tree(X, void, Right), X, Max) → SEARCH_TREE_IN_GAA(Right, Min, Max)
SEARCH_TREE_IN_GAA(tree(X, Left, void), Min, X) → U4_GAA(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
SEARCH_TREE_IN_GAA(tree(X, Left, void), Min, X) → SEARCH_TREE_IN_GAA(Left, Min, Max)
SEARCH_TREE_IN_GAA(tree(X, Left, Right), Min1, Max2) → U6_GAA(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
SEARCH_TREE_IN_GAA(tree(X, Left, Right), Min1, Max2) → SEARCH_TREE_IN_GAA(Left, Min1, Max1)
U6_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_GAA(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
U6_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → LESS_IN_GG(Max1, X)
LESS_IN_GG(s(X), s(Y)) → U10_GG(X, Y, less_in_gg(X, Y))
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
U7_GAA(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_GAA(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U7_GAA(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → SEARCH_TREE_IN_GAA(Right, Min2, Max2)
U8_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_GAA(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U8_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → LESS_IN_GG(X, Min2)
U4_GAA(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_GAA(X, Left, Min, less_in_gg(Max, X))
U4_GAA(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → LESS_IN_GG(Max, X)
U2_GAA(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_GAA(X, Right, Max, less_in_gg(X, Min))
U2_GAA(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → LESS_IN_GG(X, Min)
search_tree_in_g(void) → search_tree_out_g(void)
search_tree_in_g(T) → U1_g(T, search_tree_in_gaa(T, X1, X2))
search_tree_in_gaa(tree(X, void, void), X, X) → search_tree_out_gaa(tree(X, void, void), X, X)
search_tree_in_gaa(tree(X, void, Right), X, Max) → U2_gaa(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
search_tree_in_gaa(tree(X, Left, void), Min, X) → U4_gaa(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
search_tree_in_gaa(tree(X, Left, Right), Min1, Max2) → U6_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
U6_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_gaa(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
less_in_gg(0, s(X3)) → less_out_gg(0, s(X3))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U7_gaa(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U8_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_gaa(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U9_gaa(X, Left, Right, Min1, Max2, less_out_gg(X, Min2)) → search_tree_out_gaa(tree(X, Left, Right), Min1, Max2)
U4_gaa(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_gaa(X, Left, Min, less_in_gg(Max, X))
U5_gaa(X, Left, Min, less_out_gg(Max, X)) → search_tree_out_gaa(tree(X, Left, void), Min, X)
U2_gaa(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_gaa(X, Right, Max, less_in_gg(X, Min))
U3_gaa(X, Right, Max, less_out_gg(X, Min)) → search_tree_out_gaa(tree(X, void, Right), X, Max)
U1_g(T, search_tree_out_gaa(T, X1, X2)) → search_tree_out_g(T)
SEARCH_TREE_IN_G(T) → U1_G(T, search_tree_in_gaa(T, X1, X2))
SEARCH_TREE_IN_G(T) → SEARCH_TREE_IN_GAA(T, X1, X2)
SEARCH_TREE_IN_GAA(tree(X, void, Right), X, Max) → U2_GAA(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
SEARCH_TREE_IN_GAA(tree(X, void, Right), X, Max) → SEARCH_TREE_IN_GAA(Right, Min, Max)
SEARCH_TREE_IN_GAA(tree(X, Left, void), Min, X) → U4_GAA(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
SEARCH_TREE_IN_GAA(tree(X, Left, void), Min, X) → SEARCH_TREE_IN_GAA(Left, Min, Max)
SEARCH_TREE_IN_GAA(tree(X, Left, Right), Min1, Max2) → U6_GAA(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
SEARCH_TREE_IN_GAA(tree(X, Left, Right), Min1, Max2) → SEARCH_TREE_IN_GAA(Left, Min1, Max1)
U6_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_GAA(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
U6_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → LESS_IN_GG(Max1, X)
LESS_IN_GG(s(X), s(Y)) → U10_GG(X, Y, less_in_gg(X, Y))
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
U7_GAA(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_GAA(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U7_GAA(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → SEARCH_TREE_IN_GAA(Right, Min2, Max2)
U8_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_GAA(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U8_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → LESS_IN_GG(X, Min2)
U4_GAA(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_GAA(X, Left, Min, less_in_gg(Max, X))
U4_GAA(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → LESS_IN_GG(Max, X)
U2_GAA(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_GAA(X, Right, Max, less_in_gg(X, Min))
U2_GAA(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → LESS_IN_GG(X, Min)
search_tree_in_g(void) → search_tree_out_g(void)
search_tree_in_g(T) → U1_g(T, search_tree_in_gaa(T, X1, X2))
search_tree_in_gaa(tree(X, void, void), X, X) → search_tree_out_gaa(tree(X, void, void), X, X)
search_tree_in_gaa(tree(X, void, Right), X, Max) → U2_gaa(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
search_tree_in_gaa(tree(X, Left, void), Min, X) → U4_gaa(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
search_tree_in_gaa(tree(X, Left, Right), Min1, Max2) → U6_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
U6_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_gaa(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
less_in_gg(0, s(X3)) → less_out_gg(0, s(X3))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U7_gaa(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U8_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_gaa(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U9_gaa(X, Left, Right, Min1, Max2, less_out_gg(X, Min2)) → search_tree_out_gaa(tree(X, Left, Right), Min1, Max2)
U4_gaa(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_gaa(X, Left, Min, less_in_gg(Max, X))
U5_gaa(X, Left, Min, less_out_gg(Max, X)) → search_tree_out_gaa(tree(X, Left, void), Min, X)
U2_gaa(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_gaa(X, Right, Max, less_in_gg(X, Min))
U3_gaa(X, Right, Max, less_out_gg(X, Min)) → search_tree_out_gaa(tree(X, void, Right), X, Max)
U1_g(T, search_tree_out_gaa(T, X1, X2)) → search_tree_out_g(T)
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
search_tree_in_g(void) → search_tree_out_g(void)
search_tree_in_g(T) → U1_g(T, search_tree_in_gaa(T, X1, X2))
search_tree_in_gaa(tree(X, void, void), X, X) → search_tree_out_gaa(tree(X, void, void), X, X)
search_tree_in_gaa(tree(X, void, Right), X, Max) → U2_gaa(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
search_tree_in_gaa(tree(X, Left, void), Min, X) → U4_gaa(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
search_tree_in_gaa(tree(X, Left, Right), Min1, Max2) → U6_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
U6_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_gaa(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
less_in_gg(0, s(X3)) → less_out_gg(0, s(X3))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U7_gaa(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U8_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_gaa(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U9_gaa(X, Left, Right, Min1, Max2, less_out_gg(X, Min2)) → search_tree_out_gaa(tree(X, Left, Right), Min1, Max2)
U4_gaa(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_gaa(X, Left, Min, less_in_gg(Max, X))
U5_gaa(X, Left, Min, less_out_gg(Max, X)) → search_tree_out_gaa(tree(X, Left, void), Min, X)
U2_gaa(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_gaa(X, Right, Max, less_in_gg(X, Min))
U3_gaa(X, Right, Max, less_out_gg(X, Min)) → search_tree_out_gaa(tree(X, void, Right), X, Max)
U1_g(T, search_tree_out_gaa(T, X1, X2)) → search_tree_out_g(T)
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
From the DPs we obtained the following set of size-change graphs:
SEARCH_TREE_IN_GAA(tree(X, Left, void), Min, X) → SEARCH_TREE_IN_GAA(Left, Min, Max)
SEARCH_TREE_IN_GAA(tree(X, void, Right), X, Max) → SEARCH_TREE_IN_GAA(Right, Min, Max)
SEARCH_TREE_IN_GAA(tree(X, Left, Right), Min1, Max2) → U6_GAA(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
U6_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_GAA(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
U7_GAA(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → SEARCH_TREE_IN_GAA(Right, Min2, Max2)
SEARCH_TREE_IN_GAA(tree(X, Left, Right), Min1, Max2) → SEARCH_TREE_IN_GAA(Left, Min1, Max1)
search_tree_in_g(void) → search_tree_out_g(void)
search_tree_in_g(T) → U1_g(T, search_tree_in_gaa(T, X1, X2))
search_tree_in_gaa(tree(X, void, void), X, X) → search_tree_out_gaa(tree(X, void, void), X, X)
search_tree_in_gaa(tree(X, void, Right), X, Max) → U2_gaa(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
search_tree_in_gaa(tree(X, Left, void), Min, X) → U4_gaa(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
search_tree_in_gaa(tree(X, Left, Right), Min1, Max2) → U6_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
U6_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_gaa(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
less_in_gg(0, s(X3)) → less_out_gg(0, s(X3))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U7_gaa(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U8_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_gaa(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U9_gaa(X, Left, Right, Min1, Max2, less_out_gg(X, Min2)) → search_tree_out_gaa(tree(X, Left, Right), Min1, Max2)
U4_gaa(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_gaa(X, Left, Min, less_in_gg(Max, X))
U5_gaa(X, Left, Min, less_out_gg(Max, X)) → search_tree_out_gaa(tree(X, Left, void), Min, X)
U2_gaa(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_gaa(X, Right, Max, less_in_gg(X, Min))
U3_gaa(X, Right, Max, less_out_gg(X, Min)) → search_tree_out_gaa(tree(X, void, Right), X, Max)
U1_g(T, search_tree_out_gaa(T, X1, X2)) → search_tree_out_g(T)
SEARCH_TREE_IN_GAA(tree(X, Left, void), Min, X) → SEARCH_TREE_IN_GAA(Left, Min, Max)
SEARCH_TREE_IN_GAA(tree(X, void, Right), X, Max) → SEARCH_TREE_IN_GAA(Right, Min, Max)
SEARCH_TREE_IN_GAA(tree(X, Left, Right), Min1, Max2) → U6_GAA(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
U6_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_GAA(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
U7_GAA(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → SEARCH_TREE_IN_GAA(Right, Min2, Max2)
SEARCH_TREE_IN_GAA(tree(X, Left, Right), Min1, Max2) → SEARCH_TREE_IN_GAA(Left, Min1, Max1)
search_tree_in_gaa(tree(X, void, void), X, X) → search_tree_out_gaa(tree(X, void, void), X, X)
search_tree_in_gaa(tree(X, void, Right), X, Max) → U2_gaa(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
search_tree_in_gaa(tree(X, Left, void), Min, X) → U4_gaa(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
search_tree_in_gaa(tree(X, Left, Right), Min1, Max2) → U6_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
less_in_gg(0, s(X3)) → less_out_gg(0, s(X3))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U2_gaa(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_gaa(X, Right, Max, less_in_gg(X, Min))
U4_gaa(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_gaa(X, Left, Min, less_in_gg(Max, X))
U6_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_gaa(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U3_gaa(X, Right, Max, less_out_gg(X, Min)) → search_tree_out_gaa(tree(X, void, Right), X, Max)
U5_gaa(X, Left, Min, less_out_gg(Max, X)) → search_tree_out_gaa(tree(X, Left, void), Min, X)
U7_gaa(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U8_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_gaa(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U9_gaa(X, Left, Right, Min1, Max2, less_out_gg(X, Min2)) → search_tree_out_gaa(tree(X, Left, Right), Min1, Max2)
search_tree_in_g(void) → search_tree_out_g(void)
search_tree_in_g(T) → U1_g(T, search_tree_in_gaa(T, X1, X2))
search_tree_in_gaa(tree(X, void, void), X, X) → search_tree_out_gaa(tree(X, void, void), X, X)
search_tree_in_gaa(tree(X, void, Right), X, Max) → U2_gaa(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
search_tree_in_gaa(tree(X, Left, void), Min, X) → U4_gaa(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
search_tree_in_gaa(tree(X, Left, Right), Min1, Max2) → U6_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
U6_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_gaa(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
less_in_gg(0, s(X3)) → less_out_gg(0, s(X3))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U7_gaa(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U8_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_gaa(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U9_gaa(X, Left, Right, Min1, Max2, less_out_gg(X, Min2)) → search_tree_out_gaa(tree(X, Left, Right), Min1, Max2)
U4_gaa(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_gaa(X, Left, Min, less_in_gg(Max, X))
U5_gaa(X, Left, Min, less_out_gg(Max, X)) → search_tree_out_gaa(tree(X, Left, void), Min, X)
U2_gaa(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_gaa(X, Right, Max, less_in_gg(X, Min))
U3_gaa(X, Right, Max, less_out_gg(X, Min)) → search_tree_out_gaa(tree(X, void, Right), X, Max)
U1_g(T, search_tree_out_gaa(T, X1, X2)) → search_tree_out_g(T)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
search_tree_in_g(void) → search_tree_out_g(void)
search_tree_in_g(T) → U1_g(T, search_tree_in_gaa(T, X1, X2))
search_tree_in_gaa(tree(X, void, void), X, X) → search_tree_out_gaa(tree(X, void, void), X, X)
search_tree_in_gaa(tree(X, void, Right), X, Max) → U2_gaa(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
search_tree_in_gaa(tree(X, Left, void), Min, X) → U4_gaa(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
search_tree_in_gaa(tree(X, Left, Right), Min1, Max2) → U6_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
U6_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_gaa(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
less_in_gg(0, s(X3)) → less_out_gg(0, s(X3))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U7_gaa(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U8_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_gaa(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U9_gaa(X, Left, Right, Min1, Max2, less_out_gg(X, Min2)) → search_tree_out_gaa(tree(X, Left, Right), Min1, Max2)
U4_gaa(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_gaa(X, Left, Min, less_in_gg(Max, X))
U5_gaa(X, Left, Min, less_out_gg(Max, X)) → search_tree_out_gaa(tree(X, Left, void), Min, X)
U2_gaa(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_gaa(X, Right, Max, less_in_gg(X, Min))
U3_gaa(X, Right, Max, less_out_gg(X, Min)) → search_tree_out_gaa(tree(X, void, Right), X, Max)
U1_g(T, search_tree_out_gaa(T, X1, X2)) → search_tree_out_g(T)
SEARCH_TREE_IN_G(T) → U1_G(T, search_tree_in_gaa(T, X1, X2))
SEARCH_TREE_IN_G(T) → SEARCH_TREE_IN_GAA(T, X1, X2)
SEARCH_TREE_IN_GAA(tree(X, void, Right), X, Max) → U2_GAA(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
SEARCH_TREE_IN_GAA(tree(X, void, Right), X, Max) → SEARCH_TREE_IN_GAA(Right, Min, Max)
SEARCH_TREE_IN_GAA(tree(X, Left, void), Min, X) → U4_GAA(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
SEARCH_TREE_IN_GAA(tree(X, Left, void), Min, X) → SEARCH_TREE_IN_GAA(Left, Min, Max)
SEARCH_TREE_IN_GAA(tree(X, Left, Right), Min1, Max2) → U6_GAA(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
SEARCH_TREE_IN_GAA(tree(X, Left, Right), Min1, Max2) → SEARCH_TREE_IN_GAA(Left, Min1, Max1)
U6_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_GAA(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
U6_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → LESS_IN_GG(Max1, X)
LESS_IN_GG(s(X), s(Y)) → U10_GG(X, Y, less_in_gg(X, Y))
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
U7_GAA(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_GAA(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U7_GAA(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → SEARCH_TREE_IN_GAA(Right, Min2, Max2)
U8_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_GAA(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U8_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → LESS_IN_GG(X, Min2)
U4_GAA(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_GAA(X, Left, Min, less_in_gg(Max, X))
U4_GAA(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → LESS_IN_GG(Max, X)
U2_GAA(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_GAA(X, Right, Max, less_in_gg(X, Min))
U2_GAA(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → LESS_IN_GG(X, Min)
search_tree_in_g(void) → search_tree_out_g(void)
search_tree_in_g(T) → U1_g(T, search_tree_in_gaa(T, X1, X2))
search_tree_in_gaa(tree(X, void, void), X, X) → search_tree_out_gaa(tree(X, void, void), X, X)
search_tree_in_gaa(tree(X, void, Right), X, Max) → U2_gaa(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
search_tree_in_gaa(tree(X, Left, void), Min, X) → U4_gaa(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
search_tree_in_gaa(tree(X, Left, Right), Min1, Max2) → U6_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
U6_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_gaa(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
less_in_gg(0, s(X3)) → less_out_gg(0, s(X3))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U7_gaa(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U8_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_gaa(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U9_gaa(X, Left, Right, Min1, Max2, less_out_gg(X, Min2)) → search_tree_out_gaa(tree(X, Left, Right), Min1, Max2)
U4_gaa(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_gaa(X, Left, Min, less_in_gg(Max, X))
U5_gaa(X, Left, Min, less_out_gg(Max, X)) → search_tree_out_gaa(tree(X, Left, void), Min, X)
U2_gaa(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_gaa(X, Right, Max, less_in_gg(X, Min))
U3_gaa(X, Right, Max, less_out_gg(X, Min)) → search_tree_out_gaa(tree(X, void, Right), X, Max)
U1_g(T, search_tree_out_gaa(T, X1, X2)) → search_tree_out_g(T)
SEARCH_TREE_IN_G(T) → U1_G(T, search_tree_in_gaa(T, X1, X2))
SEARCH_TREE_IN_G(T) → SEARCH_TREE_IN_GAA(T, X1, X2)
SEARCH_TREE_IN_GAA(tree(X, void, Right), X, Max) → U2_GAA(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
SEARCH_TREE_IN_GAA(tree(X, void, Right), X, Max) → SEARCH_TREE_IN_GAA(Right, Min, Max)
SEARCH_TREE_IN_GAA(tree(X, Left, void), Min, X) → U4_GAA(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
SEARCH_TREE_IN_GAA(tree(X, Left, void), Min, X) → SEARCH_TREE_IN_GAA(Left, Min, Max)
SEARCH_TREE_IN_GAA(tree(X, Left, Right), Min1, Max2) → U6_GAA(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
SEARCH_TREE_IN_GAA(tree(X, Left, Right), Min1, Max2) → SEARCH_TREE_IN_GAA(Left, Min1, Max1)
U6_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_GAA(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
U6_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → LESS_IN_GG(Max1, X)
LESS_IN_GG(s(X), s(Y)) → U10_GG(X, Y, less_in_gg(X, Y))
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
U7_GAA(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_GAA(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U7_GAA(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → SEARCH_TREE_IN_GAA(Right, Min2, Max2)
U8_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_GAA(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U8_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → LESS_IN_GG(X, Min2)
U4_GAA(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_GAA(X, Left, Min, less_in_gg(Max, X))
U4_GAA(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → LESS_IN_GG(Max, X)
U2_GAA(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_GAA(X, Right, Max, less_in_gg(X, Min))
U2_GAA(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → LESS_IN_GG(X, Min)
search_tree_in_g(void) → search_tree_out_g(void)
search_tree_in_g(T) → U1_g(T, search_tree_in_gaa(T, X1, X2))
search_tree_in_gaa(tree(X, void, void), X, X) → search_tree_out_gaa(tree(X, void, void), X, X)
search_tree_in_gaa(tree(X, void, Right), X, Max) → U2_gaa(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
search_tree_in_gaa(tree(X, Left, void), Min, X) → U4_gaa(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
search_tree_in_gaa(tree(X, Left, Right), Min1, Max2) → U6_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
U6_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_gaa(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
less_in_gg(0, s(X3)) → less_out_gg(0, s(X3))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U7_gaa(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U8_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_gaa(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U9_gaa(X, Left, Right, Min1, Max2, less_out_gg(X, Min2)) → search_tree_out_gaa(tree(X, Left, Right), Min1, Max2)
U4_gaa(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_gaa(X, Left, Min, less_in_gg(Max, X))
U5_gaa(X, Left, Min, less_out_gg(Max, X)) → search_tree_out_gaa(tree(X, Left, void), Min, X)
U2_gaa(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_gaa(X, Right, Max, less_in_gg(X, Min))
U3_gaa(X, Right, Max, less_out_gg(X, Min)) → search_tree_out_gaa(tree(X, void, Right), X, Max)
U1_g(T, search_tree_out_gaa(T, X1, X2)) → search_tree_out_g(T)
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
search_tree_in_g(void) → search_tree_out_g(void)
search_tree_in_g(T) → U1_g(T, search_tree_in_gaa(T, X1, X2))
search_tree_in_gaa(tree(X, void, void), X, X) → search_tree_out_gaa(tree(X, void, void), X, X)
search_tree_in_gaa(tree(X, void, Right), X, Max) → U2_gaa(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
search_tree_in_gaa(tree(X, Left, void), Min, X) → U4_gaa(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
search_tree_in_gaa(tree(X, Left, Right), Min1, Max2) → U6_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
U6_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_gaa(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
less_in_gg(0, s(X3)) → less_out_gg(0, s(X3))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U7_gaa(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U8_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_gaa(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U9_gaa(X, Left, Right, Min1, Max2, less_out_gg(X, Min2)) → search_tree_out_gaa(tree(X, Left, Right), Min1, Max2)
U4_gaa(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_gaa(X, Left, Min, less_in_gg(Max, X))
U5_gaa(X, Left, Min, less_out_gg(Max, X)) → search_tree_out_gaa(tree(X, Left, void), Min, X)
U2_gaa(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_gaa(X, Right, Max, less_in_gg(X, Min))
U3_gaa(X, Right, Max, less_out_gg(X, Min)) → search_tree_out_gaa(tree(X, void, Right), X, Max)
U1_g(T, search_tree_out_gaa(T, X1, X2)) → search_tree_out_g(T)
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
LESS_IN_GG(s(X), s(Y)) → LESS_IN_GG(X, Y)
From the DPs we obtained the following set of size-change graphs:
SEARCH_TREE_IN_GAA(tree(X, Left, void), Min, X) → SEARCH_TREE_IN_GAA(Left, Min, Max)
SEARCH_TREE_IN_GAA(tree(X, void, Right), X, Max) → SEARCH_TREE_IN_GAA(Right, Min, Max)
SEARCH_TREE_IN_GAA(tree(X, Left, Right), Min1, Max2) → U6_GAA(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
U6_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_GAA(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
U7_GAA(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → SEARCH_TREE_IN_GAA(Right, Min2, Max2)
SEARCH_TREE_IN_GAA(tree(X, Left, Right), Min1, Max2) → SEARCH_TREE_IN_GAA(Left, Min1, Max1)
search_tree_in_g(void) → search_tree_out_g(void)
search_tree_in_g(T) → U1_g(T, search_tree_in_gaa(T, X1, X2))
search_tree_in_gaa(tree(X, void, void), X, X) → search_tree_out_gaa(tree(X, void, void), X, X)
search_tree_in_gaa(tree(X, void, Right), X, Max) → U2_gaa(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
search_tree_in_gaa(tree(X, Left, void), Min, X) → U4_gaa(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
search_tree_in_gaa(tree(X, Left, Right), Min1, Max2) → U6_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
U6_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_gaa(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
less_in_gg(0, s(X3)) → less_out_gg(0, s(X3))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U7_gaa(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U8_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_gaa(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U9_gaa(X, Left, Right, Min1, Max2, less_out_gg(X, Min2)) → search_tree_out_gaa(tree(X, Left, Right), Min1, Max2)
U4_gaa(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_gaa(X, Left, Min, less_in_gg(Max, X))
U5_gaa(X, Left, Min, less_out_gg(Max, X)) → search_tree_out_gaa(tree(X, Left, void), Min, X)
U2_gaa(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_gaa(X, Right, Max, less_in_gg(X, Min))
U3_gaa(X, Right, Max, less_out_gg(X, Min)) → search_tree_out_gaa(tree(X, void, Right), X, Max)
U1_g(T, search_tree_out_gaa(T, X1, X2)) → search_tree_out_g(T)
SEARCH_TREE_IN_GAA(tree(X, Left, void), Min, X) → SEARCH_TREE_IN_GAA(Left, Min, Max)
SEARCH_TREE_IN_GAA(tree(X, void, Right), X, Max) → SEARCH_TREE_IN_GAA(Right, Min, Max)
SEARCH_TREE_IN_GAA(tree(X, Left, Right), Min1, Max2) → U6_GAA(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
U6_GAA(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_GAA(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
U7_GAA(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → SEARCH_TREE_IN_GAA(Right, Min2, Max2)
SEARCH_TREE_IN_GAA(tree(X, Left, Right), Min1, Max2) → SEARCH_TREE_IN_GAA(Left, Min1, Max1)
search_tree_in_gaa(tree(X, void, void), X, X) → search_tree_out_gaa(tree(X, void, void), X, X)
search_tree_in_gaa(tree(X, void, Right), X, Max) → U2_gaa(X, Right, Max, search_tree_in_gaa(Right, Min, Max))
search_tree_in_gaa(tree(X, Left, void), Min, X) → U4_gaa(X, Left, Min, search_tree_in_gaa(Left, Min, Max))
search_tree_in_gaa(tree(X, Left, Right), Min1, Max2) → U6_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Left, Min1, Max1))
less_in_gg(0, s(X3)) → less_out_gg(0, s(X3))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U2_gaa(X, Right, Max, search_tree_out_gaa(Right, Min, Max)) → U3_gaa(X, Right, Max, less_in_gg(X, Min))
U4_gaa(X, Left, Min, search_tree_out_gaa(Left, Min, Max)) → U5_gaa(X, Left, Min, less_in_gg(Max, X))
U6_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Left, Min1, Max1)) → U7_gaa(X, Left, Right, Min1, Max2, Max1, less_in_gg(Max1, X))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U3_gaa(X, Right, Max, less_out_gg(X, Min)) → search_tree_out_gaa(tree(X, void, Right), X, Max)
U5_gaa(X, Left, Min, less_out_gg(Max, X)) → search_tree_out_gaa(tree(X, Left, void), Min, X)
U7_gaa(X, Left, Right, Min1, Max2, Max1, less_out_gg(Max1, X)) → U8_gaa(X, Left, Right, Min1, Max2, search_tree_in_gaa(Right, Min2, Max2))
U8_gaa(X, Left, Right, Min1, Max2, search_tree_out_gaa(Right, Min2, Max2)) → U9_gaa(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U9_gaa(X, Left, Right, Min1, Max2, less_out_gg(X, Min2)) → search_tree_out_gaa(tree(X, Left, Right), Min1, Max2)
SEARCH_TREE_IN_GAA(tree(X, Left, void)) → SEARCH_TREE_IN_GAA(Left)
SEARCH_TREE_IN_GAA(tree(X, void, Right)) → SEARCH_TREE_IN_GAA(Right)
SEARCH_TREE_IN_GAA(tree(X, Left, Right)) → U6_GAA(X, Left, Right, search_tree_in_gaa(Left))
U6_GAA(X, Left, Right, search_tree_out_gaa(Left, Min1, Max1)) → U7_GAA(X, Left, Right, Min1, less_in_gg(Max1, X))
U7_GAA(X, Left, Right, Min1, less_out_gg(Max1, X)) → SEARCH_TREE_IN_GAA(Right)
SEARCH_TREE_IN_GAA(tree(X, Left, Right)) → SEARCH_TREE_IN_GAA(Left)
search_tree_in_gaa(tree(X, void, void)) → search_tree_out_gaa(tree(X, void, void), X, X)
search_tree_in_gaa(tree(X, void, Right)) → U2_gaa(X, Right, search_tree_in_gaa(Right))
search_tree_in_gaa(tree(X, Left, void)) → U4_gaa(X, Left, search_tree_in_gaa(Left))
search_tree_in_gaa(tree(X, Left, Right)) → U6_gaa(X, Left, Right, search_tree_in_gaa(Left))
less_in_gg(0, s(X3)) → less_out_gg(0, s(X3))
less_in_gg(s(X), s(Y)) → U10_gg(X, Y, less_in_gg(X, Y))
U2_gaa(X, Right, search_tree_out_gaa(Right, Min, Max)) → U3_gaa(X, Right, Max, less_in_gg(X, Min))
U4_gaa(X, Left, search_tree_out_gaa(Left, Min, Max)) → U5_gaa(X, Left, Min, less_in_gg(Max, X))
U6_gaa(X, Left, Right, search_tree_out_gaa(Left, Min1, Max1)) → U7_gaa(X, Left, Right, Min1, less_in_gg(Max1, X))
U10_gg(X, Y, less_out_gg(X, Y)) → less_out_gg(s(X), s(Y))
U3_gaa(X, Right, Max, less_out_gg(X, Min)) → search_tree_out_gaa(tree(X, void, Right), X, Max)
U5_gaa(X, Left, Min, less_out_gg(Max, X)) → search_tree_out_gaa(tree(X, Left, void), Min, X)
U7_gaa(X, Left, Right, Min1, less_out_gg(Max1, X)) → U8_gaa(X, Left, Right, Min1, search_tree_in_gaa(Right))
U8_gaa(X, Left, Right, Min1, search_tree_out_gaa(Right, Min2, Max2)) → U9_gaa(X, Left, Right, Min1, Max2, less_in_gg(X, Min2))
U9_gaa(X, Left, Right, Min1, Max2, less_out_gg(X, Min2)) → search_tree_out_gaa(tree(X, Left, Right), Min1, Max2)
search_tree_in_gaa(x0)
less_in_gg(x0, x1)
U2_gaa(x0, x1, x2)
U4_gaa(x0, x1, x2)
U6_gaa(x0, x1, x2, x3)
U10_gg(x0, x1, x2)
U3_gaa(x0, x1, x2, x3)
U5_gaa(x0, x1, x2, x3)
U7_gaa(x0, x1, x2, x3, x4)
U8_gaa(x0, x1, x2, x3, x4)
U9_gaa(x0, x1, x2, x3, x4, x5)
From the DPs we obtained the following set of size-change graphs: