↳ PROLOG
↳ UnrequestedClauseRemoverProof
The clauses
balance510(nil0, C, T, T, A, B, A, B, X, X) :- balance5510(nil0, C, T, T, A, B, A, B, X, X).
balance510(tree3(L, V, R), XX0, XX1, NT, HR, TR, .2(tuple2(tree3(LB, VB, RB), A - D), H), .2(tuple2(LB, A - .2(VB, X)), .2(tuple2(RB, X - D), T)), IH, IT) :- balance5510(tree3(L, V, R), XX0, XX1, NT, HR, TR, .2(tuple2(tree3(LB, VB, RB), A - D), H), .2(tuple2(LB, A - .2(VB, X)), .2(tuple2(RB, X - D), T)), IH, IT).
balance5(nil0, X - X, A - B, A - B, .2(tuple2(nil0, C - C), T) - T) :- balance510(nil0, C, T, T, A, B, A, B, X, X).
balance5(tree3(L, V, R), IH - IT, .2(tuple2(tree3(LB, VB, RB), A - D), H) - .2(tuple2(LB, A - .2(VB, X)), .2(tuple2(RB, X - D), T)), HR - TR, .2(tuple2(nil0, XX0 - XX0), XX1) - NT) :- balance510(tree3(L, V, R), XX0, XX1, NT, HR, TR, .2(tuple2(tree3(LB, VB, RB), A - D), H), .2(tuple2(LB, A - .2(VB, X)), .2(tuple2(RB, X - D), T)), IH, IT).
can be ignored, as they are not needed by any of the given querys.
Deleting these clauses results in the following prolog program:
balance2(T, TB) :- balance5510(T, XX0, XX1, {}0, .2(tuple2(nil0, XX0 - XX0), XX1), {}0, .2(tuple2(TB, I - {}0), X), X, I, {}0).
balance5510(nil0, C, T, T, A, B, A, B, X, X).
balance5510(tree3(L, V, R), XX0, XX1, NT, HR, TR, .2(tuple2(tree3(LB, VB, RB), A - D), H), .2(tuple2(LB, A - .2(VB, X)), .2(tuple2(RB, X - D), T)), IH, IT) :- balance5510(L, XX0, XX1, .2(tuple2(nil0, XX2 - XX2), XX3), HR1, TR1, H, T, IH, .2(V, IT1)), balance5510(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT).
↳ PROLOG
↳ UnrequestedClauseRemoverProof
↳ PROLOG
↳ PrologToPiTRSProof
With regard to the inferred argument filtering the predicates were used in the following modes:
balance2: (b,f)
balance5510: (b,f,f,b,b,b,b,f,f,b) (b,f,f,b,f,f,f,f,f,b) (b,f,f,b,b,b,f,f,f,b)
Transforming PROLOG into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:
balance_2_in_ga2(T, TB) -> if_balance_2_in_1_ga3(T, TB, balance55_10_in_gaaggggaag10(T, XX0, XX1, []_0, ._22(tuple_22(nil_0, -2(XX0, XX0)), XX1), []_0, ._22(tuple_22(TB, -2(I, []_0)), X), X, I, []_0))
balance55_10_in_gaaggggaag10(nil_0, C, T, T, A, B, A, B, X, X) -> balance55_10_out_gaaggggaag10(nil_0, C, T, T, A, B, A, B, X, X)
balance55_10_in_gaaggggaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> if_balance55_10_in_1_gaaggggaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
balance55_10_in_gaagaaaaag10(nil_0, C, T, T, A, B, A, B, X, X) -> balance55_10_out_gaagaaaaag10(nil_0, C, T, T, A, B, A, B, X, X)
balance55_10_in_gaagaaaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> if_balance55_10_in_1_gaagaaaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
if_balance55_10_in_1_gaagaaaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> if_balance55_10_in_2_gaagaaaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagaaaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
if_balance55_10_in_2_gaagaaaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_out_gaagaaaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)) -> balance55_10_out_gaagaaaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT)
if_balance55_10_in_1_gaaggggaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> if_balance55_10_in_2_gaaggggaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
balance55_10_in_gaagggaaag10(nil_0, C, T, T, A, B, A, B, X, X) -> balance55_10_out_gaagggaaag10(nil_0, C, T, T, A, B, A, B, X, X)
balance55_10_in_gaagggaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> if_balance55_10_in_1_gaagggaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
if_balance55_10_in_1_gaagggaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> if_balance55_10_in_2_gaagggaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
if_balance55_10_in_2_gaagggaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_out_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)) -> balance55_10_out_gaagggaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT)
if_balance55_10_in_2_gaaggggaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_out_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)) -> balance55_10_out_gaaggggaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT)
if_balance_2_in_1_ga3(T, TB, balance55_10_out_gaaggggaag10(T, XX0, XX1, []_0, ._22(tuple_22(nil_0, -2(XX0, XX0)), XX1), []_0, ._22(tuple_22(TB, -2(I, []_0)), X), X, I, []_0)) -> balance_2_out_ga2(T, TB)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG
↳ PROLOG
↳ UnrequestedClauseRemoverProof
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
balance_2_in_ga2(T, TB) -> if_balance_2_in_1_ga3(T, TB, balance55_10_in_gaaggggaag10(T, XX0, XX1, []_0, ._22(tuple_22(nil_0, -2(XX0, XX0)), XX1), []_0, ._22(tuple_22(TB, -2(I, []_0)), X), X, I, []_0))
balance55_10_in_gaaggggaag10(nil_0, C, T, T, A, B, A, B, X, X) -> balance55_10_out_gaaggggaag10(nil_0, C, T, T, A, B, A, B, X, X)
balance55_10_in_gaaggggaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> if_balance55_10_in_1_gaaggggaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
balance55_10_in_gaagaaaaag10(nil_0, C, T, T, A, B, A, B, X, X) -> balance55_10_out_gaagaaaaag10(nil_0, C, T, T, A, B, A, B, X, X)
balance55_10_in_gaagaaaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> if_balance55_10_in_1_gaagaaaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
if_balance55_10_in_1_gaagaaaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> if_balance55_10_in_2_gaagaaaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagaaaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
if_balance55_10_in_2_gaagaaaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_out_gaagaaaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)) -> balance55_10_out_gaagaaaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT)
if_balance55_10_in_1_gaaggggaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> if_balance55_10_in_2_gaaggggaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
balance55_10_in_gaagggaaag10(nil_0, C, T, T, A, B, A, B, X, X) -> balance55_10_out_gaagggaaag10(nil_0, C, T, T, A, B, A, B, X, X)
balance55_10_in_gaagggaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> if_balance55_10_in_1_gaagggaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
if_balance55_10_in_1_gaagggaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> if_balance55_10_in_2_gaagggaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
if_balance55_10_in_2_gaagggaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_out_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)) -> balance55_10_out_gaagggaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT)
if_balance55_10_in_2_gaaggggaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_out_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)) -> balance55_10_out_gaaggggaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT)
if_balance_2_in_1_ga3(T, TB, balance55_10_out_gaaggggaag10(T, XX0, XX1, []_0, ._22(tuple_22(nil_0, -2(XX0, XX0)), XX1), []_0, ._22(tuple_22(TB, -2(I, []_0)), X), X, I, []_0)) -> balance_2_out_ga2(T, TB)
BALANCE_2_IN_GA2(T, TB) -> IF_BALANCE_2_IN_1_GA3(T, TB, balance55_10_in_gaaggggaag10(T, XX0, XX1, []_0, ._22(tuple_22(nil_0, -2(XX0, XX0)), XX1), []_0, ._22(tuple_22(TB, -2(I, []_0)), X), X, I, []_0))
BALANCE_2_IN_GA2(T, TB) -> BALANCE55_10_IN_GAAGGGGAAG10(T, XX0, XX1, []_0, ._22(tuple_22(nil_0, -2(XX0, XX0)), XX1), []_0, ._22(tuple_22(TB, -2(I, []_0)), X), X, I, []_0)
BALANCE55_10_IN_GAAGGGGAAG10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> IF_BALANCE55_10_IN_1_GAAGGGGAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
BALANCE55_10_IN_GAAGGGGAAG10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> BALANCE55_10_IN_GAAGAAAAAG10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))
BALANCE55_10_IN_GAAGAAAAAG10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> IF_BALANCE55_10_IN_1_GAAGAAAAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
BALANCE55_10_IN_GAAGAAAAAG10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> BALANCE55_10_IN_GAAGAAAAAG10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))
IF_BALANCE55_10_IN_1_GAAGAAAAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> IF_BALANCE55_10_IN_2_GAAGAAAAAG24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagaaaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
IF_BALANCE55_10_IN_1_GAAGAAAAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> BALANCE55_10_IN_GAAGAAAAAG10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)
IF_BALANCE55_10_IN_1_GAAGGGGAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> IF_BALANCE55_10_IN_2_GAAGGGGAAG24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
IF_BALANCE55_10_IN_1_GAAGGGGAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> BALANCE55_10_IN_GAAGGGAAAG10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)
BALANCE55_10_IN_GAAGGGAAAG10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> IF_BALANCE55_10_IN_1_GAAGGGAAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
BALANCE55_10_IN_GAAGGGAAAG10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> BALANCE55_10_IN_GAAGAAAAAG10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))
IF_BALANCE55_10_IN_1_GAAGGGAAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> IF_BALANCE55_10_IN_2_GAAGGGAAAG24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
IF_BALANCE55_10_IN_1_GAAGGGAAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> BALANCE55_10_IN_GAAGGGAAAG10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)
balance_2_in_ga2(T, TB) -> if_balance_2_in_1_ga3(T, TB, balance55_10_in_gaaggggaag10(T, XX0, XX1, []_0, ._22(tuple_22(nil_0, -2(XX0, XX0)), XX1), []_0, ._22(tuple_22(TB, -2(I, []_0)), X), X, I, []_0))
balance55_10_in_gaaggggaag10(nil_0, C, T, T, A, B, A, B, X, X) -> balance55_10_out_gaaggggaag10(nil_0, C, T, T, A, B, A, B, X, X)
balance55_10_in_gaaggggaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> if_balance55_10_in_1_gaaggggaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
balance55_10_in_gaagaaaaag10(nil_0, C, T, T, A, B, A, B, X, X) -> balance55_10_out_gaagaaaaag10(nil_0, C, T, T, A, B, A, B, X, X)
balance55_10_in_gaagaaaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> if_balance55_10_in_1_gaagaaaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
if_balance55_10_in_1_gaagaaaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> if_balance55_10_in_2_gaagaaaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagaaaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
if_balance55_10_in_2_gaagaaaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_out_gaagaaaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)) -> balance55_10_out_gaagaaaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT)
if_balance55_10_in_1_gaaggggaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> if_balance55_10_in_2_gaaggggaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
balance55_10_in_gaagggaaag10(nil_0, C, T, T, A, B, A, B, X, X) -> balance55_10_out_gaagggaaag10(nil_0, C, T, T, A, B, A, B, X, X)
balance55_10_in_gaagggaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> if_balance55_10_in_1_gaagggaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
if_balance55_10_in_1_gaagggaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> if_balance55_10_in_2_gaagggaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
if_balance55_10_in_2_gaagggaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_out_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)) -> balance55_10_out_gaagggaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT)
if_balance55_10_in_2_gaaggggaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_out_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)) -> balance55_10_out_gaaggggaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT)
if_balance_2_in_1_ga3(T, TB, balance55_10_out_gaaggggaag10(T, XX0, XX1, []_0, ._22(tuple_22(nil_0, -2(XX0, XX0)), XX1), []_0, ._22(tuple_22(TB, -2(I, []_0)), X), X, I, []_0)) -> balance_2_out_ga2(T, TB)
↳ PROLOG
↳ UnrequestedClauseRemoverProof
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
BALANCE_2_IN_GA2(T, TB) -> IF_BALANCE_2_IN_1_GA3(T, TB, balance55_10_in_gaaggggaag10(T, XX0, XX1, []_0, ._22(tuple_22(nil_0, -2(XX0, XX0)), XX1), []_0, ._22(tuple_22(TB, -2(I, []_0)), X), X, I, []_0))
BALANCE_2_IN_GA2(T, TB) -> BALANCE55_10_IN_GAAGGGGAAG10(T, XX0, XX1, []_0, ._22(tuple_22(nil_0, -2(XX0, XX0)), XX1), []_0, ._22(tuple_22(TB, -2(I, []_0)), X), X, I, []_0)
BALANCE55_10_IN_GAAGGGGAAG10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> IF_BALANCE55_10_IN_1_GAAGGGGAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
BALANCE55_10_IN_GAAGGGGAAG10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> BALANCE55_10_IN_GAAGAAAAAG10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))
BALANCE55_10_IN_GAAGAAAAAG10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> IF_BALANCE55_10_IN_1_GAAGAAAAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
BALANCE55_10_IN_GAAGAAAAAG10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> BALANCE55_10_IN_GAAGAAAAAG10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))
IF_BALANCE55_10_IN_1_GAAGAAAAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> IF_BALANCE55_10_IN_2_GAAGAAAAAG24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagaaaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
IF_BALANCE55_10_IN_1_GAAGAAAAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> BALANCE55_10_IN_GAAGAAAAAG10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)
IF_BALANCE55_10_IN_1_GAAGGGGAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> IF_BALANCE55_10_IN_2_GAAGGGGAAG24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
IF_BALANCE55_10_IN_1_GAAGGGGAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> BALANCE55_10_IN_GAAGGGAAAG10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)
BALANCE55_10_IN_GAAGGGAAAG10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> IF_BALANCE55_10_IN_1_GAAGGGAAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
BALANCE55_10_IN_GAAGGGAAAG10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> BALANCE55_10_IN_GAAGAAAAAG10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))
IF_BALANCE55_10_IN_1_GAAGGGAAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> IF_BALANCE55_10_IN_2_GAAGGGAAAG24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
IF_BALANCE55_10_IN_1_GAAGGGAAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> BALANCE55_10_IN_GAAGGGAAAG10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)
balance_2_in_ga2(T, TB) -> if_balance_2_in_1_ga3(T, TB, balance55_10_in_gaaggggaag10(T, XX0, XX1, []_0, ._22(tuple_22(nil_0, -2(XX0, XX0)), XX1), []_0, ._22(tuple_22(TB, -2(I, []_0)), X), X, I, []_0))
balance55_10_in_gaaggggaag10(nil_0, C, T, T, A, B, A, B, X, X) -> balance55_10_out_gaaggggaag10(nil_0, C, T, T, A, B, A, B, X, X)
balance55_10_in_gaaggggaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> if_balance55_10_in_1_gaaggggaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
balance55_10_in_gaagaaaaag10(nil_0, C, T, T, A, B, A, B, X, X) -> balance55_10_out_gaagaaaaag10(nil_0, C, T, T, A, B, A, B, X, X)
balance55_10_in_gaagaaaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> if_balance55_10_in_1_gaagaaaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
if_balance55_10_in_1_gaagaaaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> if_balance55_10_in_2_gaagaaaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagaaaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
if_balance55_10_in_2_gaagaaaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_out_gaagaaaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)) -> balance55_10_out_gaagaaaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT)
if_balance55_10_in_1_gaaggggaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> if_balance55_10_in_2_gaaggggaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
balance55_10_in_gaagggaaag10(nil_0, C, T, T, A, B, A, B, X, X) -> balance55_10_out_gaagggaaag10(nil_0, C, T, T, A, B, A, B, X, X)
balance55_10_in_gaagggaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> if_balance55_10_in_1_gaagggaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
if_balance55_10_in_1_gaagggaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> if_balance55_10_in_2_gaagggaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
if_balance55_10_in_2_gaagggaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_out_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)) -> balance55_10_out_gaagggaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT)
if_balance55_10_in_2_gaaggggaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_out_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)) -> balance55_10_out_gaaggggaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT)
if_balance_2_in_1_ga3(T, TB, balance55_10_out_gaaggggaag10(T, XX0, XX1, []_0, ._22(tuple_22(nil_0, -2(XX0, XX0)), XX1), []_0, ._22(tuple_22(TB, -2(I, []_0)), X), X, I, []_0)) -> balance_2_out_ga2(T, TB)
↳ PROLOG
↳ UnrequestedClauseRemoverProof
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
IF_BALANCE55_10_IN_1_GAAGAAAAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> BALANCE55_10_IN_GAAGAAAAAG10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)
BALANCE55_10_IN_GAAGAAAAAG10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> IF_BALANCE55_10_IN_1_GAAGAAAAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
BALANCE55_10_IN_GAAGAAAAAG10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> BALANCE55_10_IN_GAAGAAAAAG10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))
balance_2_in_ga2(T, TB) -> if_balance_2_in_1_ga3(T, TB, balance55_10_in_gaaggggaag10(T, XX0, XX1, []_0, ._22(tuple_22(nil_0, -2(XX0, XX0)), XX1), []_0, ._22(tuple_22(TB, -2(I, []_0)), X), X, I, []_0))
balance55_10_in_gaaggggaag10(nil_0, C, T, T, A, B, A, B, X, X) -> balance55_10_out_gaaggggaag10(nil_0, C, T, T, A, B, A, B, X, X)
balance55_10_in_gaaggggaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> if_balance55_10_in_1_gaaggggaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
balance55_10_in_gaagaaaaag10(nil_0, C, T, T, A, B, A, B, X, X) -> balance55_10_out_gaagaaaaag10(nil_0, C, T, T, A, B, A, B, X, X)
balance55_10_in_gaagaaaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> if_balance55_10_in_1_gaagaaaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
if_balance55_10_in_1_gaagaaaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> if_balance55_10_in_2_gaagaaaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagaaaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
if_balance55_10_in_2_gaagaaaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_out_gaagaaaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)) -> balance55_10_out_gaagaaaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT)
if_balance55_10_in_1_gaaggggaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> if_balance55_10_in_2_gaaggggaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
balance55_10_in_gaagggaaag10(nil_0, C, T, T, A, B, A, B, X, X) -> balance55_10_out_gaagggaaag10(nil_0, C, T, T, A, B, A, B, X, X)
balance55_10_in_gaagggaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> if_balance55_10_in_1_gaagggaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
if_balance55_10_in_1_gaagggaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> if_balance55_10_in_2_gaagggaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
if_balance55_10_in_2_gaagggaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_out_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)) -> balance55_10_out_gaagggaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT)
if_balance55_10_in_2_gaaggggaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_out_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)) -> balance55_10_out_gaaggggaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT)
if_balance_2_in_1_ga3(T, TB, balance55_10_out_gaaggggaag10(T, XX0, XX1, []_0, ._22(tuple_22(nil_0, -2(XX0, XX0)), XX1), []_0, ._22(tuple_22(TB, -2(I, []_0)), X), X, I, []_0)) -> balance_2_out_ga2(T, TB)
↳ PROLOG
↳ UnrequestedClauseRemoverProof
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
IF_BALANCE55_10_IN_1_GAAGAAAAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> BALANCE55_10_IN_GAAGAAAAAG10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)
BALANCE55_10_IN_GAAGAAAAAG10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> IF_BALANCE55_10_IN_1_GAAGAAAAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
BALANCE55_10_IN_GAAGAAAAAG10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> BALANCE55_10_IN_GAAGAAAAAG10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))
balance55_10_in_gaagaaaaag10(nil_0, C, T, T, A, B, A, B, X, X) -> balance55_10_out_gaagaaaaag10(nil_0, C, T, T, A, B, A, B, X, X)
balance55_10_in_gaagaaaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> if_balance55_10_in_1_gaagaaaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
if_balance55_10_in_1_gaagaaaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> if_balance55_10_in_2_gaagaaaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagaaaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
if_balance55_10_in_2_gaagaaaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_out_gaagaaaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)) -> balance55_10_out_gaagaaaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT)
↳ PROLOG
↳ UnrequestedClauseRemoverProof
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
IF_BALANCE55_10_IN_1_GAAGAAAAAG4(R, NT, IT, balance55_10_out_gaagaaaaag2(XX1, IH)) -> BALANCE55_10_IN_GAAGAAAAAG3(R, NT, IT)
BALANCE55_10_IN_GAAGAAAAAG3(tree_33(L, V, R), NT, IT) -> IF_BALANCE55_10_IN_1_GAAGAAAAAG4(R, NT, IT, balance55_10_in_gaagaaaaag3(L, ._21(tuple_21(-)), ._21(V)))
BALANCE55_10_IN_GAAGAAAAAG3(tree_33(L, V, R), NT, IT) -> BALANCE55_10_IN_GAAGAAAAAG3(L, ._21(tuple_21(-)), ._21(V))
balance55_10_in_gaagaaaaag3(nil_0, T, X) -> balance55_10_out_gaagaaaaag2(T, X)
balance55_10_in_gaagaaaaag3(tree_33(L, V, R), NT, IT) -> if_balance55_10_in_1_gaagaaaaag4(R, NT, IT, balance55_10_in_gaagaaaaag3(L, ._21(tuple_21(-)), ._21(V)))
if_balance55_10_in_1_gaagaaaaag4(R, NT, IT, balance55_10_out_gaagaaaaag2(XX1, IH)) -> if_balance55_10_in_2_gaagaaaaag3(XX1, IH, balance55_10_in_gaagaaaaag3(R, NT, IT))
if_balance55_10_in_2_gaagaaaaag3(XX1, IH, balance55_10_out_gaagaaaaag2(XX3, IT1)) -> balance55_10_out_gaagaaaaag2(XX1, IH)
balance55_10_in_gaagaaaaag3(x0, x1, x2)
if_balance55_10_in_1_gaagaaaaag4(x0, x1, x2, x3)
if_balance55_10_in_2_gaagaaaaag3(x0, x1, x2)
From the DPs we obtained the following set of size-change graphs:
↳ PROLOG
↳ UnrequestedClauseRemoverProof
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
BALANCE55_10_IN_GAAGGGAAAG10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> IF_BALANCE55_10_IN_1_GAAGGGAAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
IF_BALANCE55_10_IN_1_GAAGGGAAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> BALANCE55_10_IN_GAAGGGAAAG10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)
balance_2_in_ga2(T, TB) -> if_balance_2_in_1_ga3(T, TB, balance55_10_in_gaaggggaag10(T, XX0, XX1, []_0, ._22(tuple_22(nil_0, -2(XX0, XX0)), XX1), []_0, ._22(tuple_22(TB, -2(I, []_0)), X), X, I, []_0))
balance55_10_in_gaaggggaag10(nil_0, C, T, T, A, B, A, B, X, X) -> balance55_10_out_gaaggggaag10(nil_0, C, T, T, A, B, A, B, X, X)
balance55_10_in_gaaggggaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> if_balance55_10_in_1_gaaggggaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
balance55_10_in_gaagaaaaag10(nil_0, C, T, T, A, B, A, B, X, X) -> balance55_10_out_gaagaaaaag10(nil_0, C, T, T, A, B, A, B, X, X)
balance55_10_in_gaagaaaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> if_balance55_10_in_1_gaagaaaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
if_balance55_10_in_1_gaagaaaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> if_balance55_10_in_2_gaagaaaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagaaaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
if_balance55_10_in_2_gaagaaaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_out_gaagaaaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)) -> balance55_10_out_gaagaaaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT)
if_balance55_10_in_1_gaaggggaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> if_balance55_10_in_2_gaaggggaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
balance55_10_in_gaagggaaag10(nil_0, C, T, T, A, B, A, B, X, X) -> balance55_10_out_gaagggaaag10(nil_0, C, T, T, A, B, A, B, X, X)
balance55_10_in_gaagggaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> if_balance55_10_in_1_gaagggaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
if_balance55_10_in_1_gaagggaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> if_balance55_10_in_2_gaagggaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
if_balance55_10_in_2_gaagggaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_out_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)) -> balance55_10_out_gaagggaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT)
if_balance55_10_in_2_gaaggggaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_out_gaagggaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)) -> balance55_10_out_gaaggggaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT)
if_balance_2_in_1_ga3(T, TB, balance55_10_out_gaaggggaag10(T, XX0, XX1, []_0, ._22(tuple_22(nil_0, -2(XX0, XX0)), XX1), []_0, ._22(tuple_22(TB, -2(I, []_0)), X), X, I, []_0)) -> balance_2_out_ga2(T, TB)
↳ PROLOG
↳ UnrequestedClauseRemoverProof
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
BALANCE55_10_IN_GAAGGGAAAG10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> IF_BALANCE55_10_IN_1_GAAGGGAAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
IF_BALANCE55_10_IN_1_GAAGGGAAAG19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> BALANCE55_10_IN_GAAGGGAAAG10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)
balance55_10_in_gaagaaaaag10(nil_0, C, T, T, A, B, A, B, X, X) -> balance55_10_out_gaagaaaaag10(nil_0, C, T, T, A, B, A, B, X, X)
balance55_10_in_gaagaaaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT) -> if_balance55_10_in_1_gaagaaaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_in_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1)))
if_balance55_10_in_1_gaagaaaaag19(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, balance55_10_out_gaagaaaaag10(L, XX0, XX1, ._22(tuple_22(nil_0, -2(XX2, XX2)), XX3), HR1, TR1, H, T, IH, ._22(V, IT1))) -> if_balance55_10_in_2_gaagaaaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_in_gaagaaaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT))
if_balance55_10_in_2_gaagaaaaag24(L, V, R, XX0, XX1, NT, HR, TR, LB, VB, RB, A, D, H, X, T, IH, IT, XX2, XX3, HR1, TR1, IT1, balance55_10_out_gaagaaaaag10(R, XX2, XX3, NT, HR, TR, HR1, TR1, IT1, IT)) -> balance55_10_out_gaagaaaaag10(tree_33(L, V, R), XX0, XX1, NT, HR, TR, ._22(tuple_22(tree_33(LB, VB, RB), -2(A, D)), H), ._22(tuple_22(LB, -2(A, ._22(VB, X))), ._22(tuple_22(RB, -2(X, D)), T)), IH, IT)
↳ PROLOG
↳ UnrequestedClauseRemoverProof
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
BALANCE55_10_IN_GAAGGGAAAG5(tree_33(L, V, R), NT, HR, TR, IT) -> IF_BALANCE55_10_IN_1_GAAGGGAAAG6(R, NT, HR, TR, IT, balance55_10_in_gaagaaaaag3(L, ._21(tuple_21(-)), ._21(V)))
IF_BALANCE55_10_IN_1_GAAGGGAAAG6(R, NT, HR, TR, IT, balance55_10_out_gaagaaaaag2(XX1, IH)) -> BALANCE55_10_IN_GAAGGGAAAG5(R, NT, HR, TR, IT)
balance55_10_in_gaagaaaaag3(nil_0, T, X) -> balance55_10_out_gaagaaaaag2(T, X)
balance55_10_in_gaagaaaaag3(tree_33(L, V, R), NT, IT) -> if_balance55_10_in_1_gaagaaaaag4(R, NT, IT, balance55_10_in_gaagaaaaag3(L, ._21(tuple_21(-)), ._21(V)))
if_balance55_10_in_1_gaagaaaaag4(R, NT, IT, balance55_10_out_gaagaaaaag2(XX1, IH)) -> if_balance55_10_in_2_gaagaaaaag3(XX1, IH, balance55_10_in_gaagaaaaag3(R, NT, IT))
if_balance55_10_in_2_gaagaaaaag3(XX1, IH, balance55_10_out_gaagaaaaag2(XX3, IT1)) -> balance55_10_out_gaagaaaaag2(XX1, IH)
balance55_10_in_gaagaaaaag3(x0, x1, x2)
if_balance55_10_in_1_gaagaaaaag4(x0, x1, x2, x3)
if_balance55_10_in_2_gaagaaaaag3(x0, x1, x2)
From the DPs we obtained the following set of size-change graphs: