Left Termination of the query pattern insert(f,f,b) w.r.t. the given Prolog program could not be shown:



PROLOG
  ↳ PrologToPiTRSProof
  ↳ PrologToPiTRSProof

insert3(X, void0, tree3(X, void0, void0)).
insert3(X, tree3(X, Left, Right), tree3(X, Left, Right)).
insert3(X, tree3(Y, Left, Right), tree3(Y, Left1, Right)) :- less2(X, Y), insert3(X, Left, Left1).
insert3(X, tree3(Y, Left, Right), tree3(Y, Left, Right1)) :- less2(Y, X), insert3(X, Right, Right1).
less2(00, s1(underscore)).
less2(s1(X), s1(Y)) :- less2(X, Y).


With regard to the inferred argument filtering the predicates were used in the following modes:
insert3: (f,f,b) (b,f,b)
less2: (f,b) (f,f) (b,b) (b,f)
Transforming PROLOG into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:


insert_3_in_aag3(X, void_0, tree_33(X, void_0, void_0)) -> insert_3_out_aag3(X, void_0, tree_33(X, void_0, void_0))
insert_3_in_aag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right)) -> insert_3_out_aag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right))
insert_3_in_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> if_insert_3_in_1_aag6(X, Y, Left, Right, Left1, less_2_in_ag2(X, Y))
less_2_in_ag2(0_0, s_11(underscore)) -> less_2_out_ag2(0_0, s_11(underscore))
less_2_in_ag2(s_11(X), s_11(Y)) -> if_less_2_in_1_ag3(X, Y, less_2_in_aa2(X, Y))
less_2_in_aa2(0_0, s_11(underscore)) -> less_2_out_aa2(0_0, s_11(underscore))
less_2_in_aa2(s_11(X), s_11(Y)) -> if_less_2_in_1_aa3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_aa3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_aa2(s_11(X), s_11(Y))
if_less_2_in_1_ag3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_ag2(s_11(X), s_11(Y))
if_insert_3_in_1_aag6(X, Y, Left, Right, Left1, less_2_out_ag2(X, Y)) -> if_insert_3_in_2_aag6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
insert_3_in_gag3(X, void_0, tree_33(X, void_0, void_0)) -> insert_3_out_gag3(X, void_0, tree_33(X, void_0, void_0))
insert_3_in_gag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right)) -> insert_3_out_gag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right))
insert_3_in_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> if_insert_3_in_1_gag6(X, Y, Left, Right, Left1, less_2_in_gg2(X, Y))
less_2_in_gg2(0_0, s_11(underscore)) -> less_2_out_gg2(0_0, s_11(underscore))
less_2_in_gg2(s_11(X), s_11(Y)) -> if_less_2_in_1_gg3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_gg3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_gg2(s_11(X), s_11(Y))
if_insert_3_in_1_gag6(X, Y, Left, Right, Left1, less_2_out_gg2(X, Y)) -> if_insert_3_in_2_gag6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
insert_3_in_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> if_insert_3_in_3_gag6(X, Y, Left, Right, Right1, less_2_in_gg2(Y, X))
if_insert_3_in_3_gag6(X, Y, Left, Right, Right1, less_2_out_gg2(Y, X)) -> if_insert_3_in_4_gag6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
if_insert_3_in_4_gag6(X, Y, Left, Right, Right1, insert_3_out_gag3(X, Right, Right1)) -> insert_3_out_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1))
if_insert_3_in_2_gag6(X, Y, Left, Right, Left1, insert_3_out_gag3(X, Left, Left1)) -> insert_3_out_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right))
if_insert_3_in_2_aag6(X, Y, Left, Right, Left1, insert_3_out_gag3(X, Left, Left1)) -> insert_3_out_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right))
insert_3_in_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> if_insert_3_in_3_aag6(X, Y, Left, Right, Right1, less_2_in_ga2(Y, X))
less_2_in_ga2(0_0, s_11(underscore)) -> less_2_out_ga2(0_0, s_11(underscore))
less_2_in_ga2(s_11(X), s_11(Y)) -> if_less_2_in_1_ga3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_ga3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_ga2(s_11(X), s_11(Y))
if_insert_3_in_3_aag6(X, Y, Left, Right, Right1, less_2_out_ga2(Y, X)) -> if_insert_3_in_4_aag6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
if_insert_3_in_4_aag6(X, Y, Left, Right, Right1, insert_3_out_gag3(X, Right, Right1)) -> insert_3_out_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1))

The argument filtering Pi contains the following mapping:
insert_3_in_aag3(x1, x2, x3)  =  insert_3_in_aag1(x3)
void_0  =  void_0
tree_33(x1, x2, x3)  =  tree_33(x1, x2, x3)
0_0  =  0_0
s_11(x1)  =  s_1
insert_3_out_aag3(x1, x2, x3)  =  insert_3_out_aag2(x1, x2)
if_insert_3_in_1_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_1_aag4(x2, x4, x5, x6)
less_2_in_ag2(x1, x2)  =  less_2_in_ag1(x2)
less_2_out_ag2(x1, x2)  =  less_2_out_ag1(x1)
if_less_2_in_1_ag3(x1, x2, x3)  =  if_less_2_in_1_ag1(x3)
if_insert_3_in_2_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_2_aag4(x1, x2, x4, x6)
insert_3_in_gag3(x1, x2, x3)  =  insert_3_in_gag2(x1, x3)
insert_3_out_gag3(x1, x2, x3)  =  insert_3_out_gag1(x2)
if_insert_3_in_1_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_1_gag5(x1, x2, x4, x5, x6)
less_2_in_gg2(x1, x2)  =  less_2_in_gg2(x1, x2)
less_2_out_gg2(x1, x2)  =  less_2_out_gg
if_less_2_in_1_gg3(x1, x2, x3)  =  if_less_2_in_1_gg1(x3)
if_insert_3_in_2_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_2_gag3(x2, x4, x6)
if_insert_3_in_3_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_3_gag5(x1, x2, x3, x5, x6)
if_insert_3_in_4_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_4_gag3(x2, x3, x6)
if_insert_3_in_3_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_3_aag4(x2, x3, x5, x6)
less_2_in_ga2(x1, x2)  =  less_2_in_ga1(x1)
less_2_out_ga2(x1, x2)  =  less_2_out_ga1(x2)
less_2_in_aa2(x1, x2)  =  less_2_in_aa
less_2_out_aa2(x1, x2)  =  less_2_out_aa2(x1, x2)
if_less_2_in_1_aa3(x1, x2, x3)  =  if_less_2_in_1_aa1(x3)
if_less_2_in_1_ga3(x1, x2, x3)  =  if_less_2_in_1_ga1(x3)
if_insert_3_in_4_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_4_aag4(x1, x2, x3, x6)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG



↳ PROLOG
  ↳ PrologToPiTRSProof
PiTRS
      ↳ DependencyPairsProof
  ↳ PrologToPiTRSProof

Pi-finite rewrite system:
The TRS R consists of the following rules:

insert_3_in_aag3(X, void_0, tree_33(X, void_0, void_0)) -> insert_3_out_aag3(X, void_0, tree_33(X, void_0, void_0))
insert_3_in_aag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right)) -> insert_3_out_aag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right))
insert_3_in_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> if_insert_3_in_1_aag6(X, Y, Left, Right, Left1, less_2_in_ag2(X, Y))
less_2_in_ag2(0_0, s_11(underscore)) -> less_2_out_ag2(0_0, s_11(underscore))
less_2_in_ag2(s_11(X), s_11(Y)) -> if_less_2_in_1_ag3(X, Y, less_2_in_aa2(X, Y))
less_2_in_aa2(0_0, s_11(underscore)) -> less_2_out_aa2(0_0, s_11(underscore))
less_2_in_aa2(s_11(X), s_11(Y)) -> if_less_2_in_1_aa3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_aa3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_aa2(s_11(X), s_11(Y))
if_less_2_in_1_ag3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_ag2(s_11(X), s_11(Y))
if_insert_3_in_1_aag6(X, Y, Left, Right, Left1, less_2_out_ag2(X, Y)) -> if_insert_3_in_2_aag6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
insert_3_in_gag3(X, void_0, tree_33(X, void_0, void_0)) -> insert_3_out_gag3(X, void_0, tree_33(X, void_0, void_0))
insert_3_in_gag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right)) -> insert_3_out_gag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right))
insert_3_in_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> if_insert_3_in_1_gag6(X, Y, Left, Right, Left1, less_2_in_gg2(X, Y))
less_2_in_gg2(0_0, s_11(underscore)) -> less_2_out_gg2(0_0, s_11(underscore))
less_2_in_gg2(s_11(X), s_11(Y)) -> if_less_2_in_1_gg3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_gg3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_gg2(s_11(X), s_11(Y))
if_insert_3_in_1_gag6(X, Y, Left, Right, Left1, less_2_out_gg2(X, Y)) -> if_insert_3_in_2_gag6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
insert_3_in_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> if_insert_3_in_3_gag6(X, Y, Left, Right, Right1, less_2_in_gg2(Y, X))
if_insert_3_in_3_gag6(X, Y, Left, Right, Right1, less_2_out_gg2(Y, X)) -> if_insert_3_in_4_gag6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
if_insert_3_in_4_gag6(X, Y, Left, Right, Right1, insert_3_out_gag3(X, Right, Right1)) -> insert_3_out_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1))
if_insert_3_in_2_gag6(X, Y, Left, Right, Left1, insert_3_out_gag3(X, Left, Left1)) -> insert_3_out_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right))
if_insert_3_in_2_aag6(X, Y, Left, Right, Left1, insert_3_out_gag3(X, Left, Left1)) -> insert_3_out_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right))
insert_3_in_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> if_insert_3_in_3_aag6(X, Y, Left, Right, Right1, less_2_in_ga2(Y, X))
less_2_in_ga2(0_0, s_11(underscore)) -> less_2_out_ga2(0_0, s_11(underscore))
less_2_in_ga2(s_11(X), s_11(Y)) -> if_less_2_in_1_ga3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_ga3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_ga2(s_11(X), s_11(Y))
if_insert_3_in_3_aag6(X, Y, Left, Right, Right1, less_2_out_ga2(Y, X)) -> if_insert_3_in_4_aag6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
if_insert_3_in_4_aag6(X, Y, Left, Right, Right1, insert_3_out_gag3(X, Right, Right1)) -> insert_3_out_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1))

The argument filtering Pi contains the following mapping:
insert_3_in_aag3(x1, x2, x3)  =  insert_3_in_aag1(x3)
void_0  =  void_0
tree_33(x1, x2, x3)  =  tree_33(x1, x2, x3)
0_0  =  0_0
s_11(x1)  =  s_1
insert_3_out_aag3(x1, x2, x3)  =  insert_3_out_aag2(x1, x2)
if_insert_3_in_1_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_1_aag4(x2, x4, x5, x6)
less_2_in_ag2(x1, x2)  =  less_2_in_ag1(x2)
less_2_out_ag2(x1, x2)  =  less_2_out_ag1(x1)
if_less_2_in_1_ag3(x1, x2, x3)  =  if_less_2_in_1_ag1(x3)
if_insert_3_in_2_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_2_aag4(x1, x2, x4, x6)
insert_3_in_gag3(x1, x2, x3)  =  insert_3_in_gag2(x1, x3)
insert_3_out_gag3(x1, x2, x3)  =  insert_3_out_gag1(x2)
if_insert_3_in_1_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_1_gag5(x1, x2, x4, x5, x6)
less_2_in_gg2(x1, x2)  =  less_2_in_gg2(x1, x2)
less_2_out_gg2(x1, x2)  =  less_2_out_gg
if_less_2_in_1_gg3(x1, x2, x3)  =  if_less_2_in_1_gg1(x3)
if_insert_3_in_2_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_2_gag3(x2, x4, x6)
if_insert_3_in_3_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_3_gag5(x1, x2, x3, x5, x6)
if_insert_3_in_4_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_4_gag3(x2, x3, x6)
if_insert_3_in_3_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_3_aag4(x2, x3, x5, x6)
less_2_in_ga2(x1, x2)  =  less_2_in_ga1(x1)
less_2_out_ga2(x1, x2)  =  less_2_out_ga1(x2)
less_2_in_aa2(x1, x2)  =  less_2_in_aa
less_2_out_aa2(x1, x2)  =  less_2_out_aa2(x1, x2)
if_less_2_in_1_aa3(x1, x2, x3)  =  if_less_2_in_1_aa1(x3)
if_less_2_in_1_ga3(x1, x2, x3)  =  if_less_2_in_1_ga1(x3)
if_insert_3_in_4_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_4_aag4(x1, x2, x3, x6)


Pi DP problem:
The TRS P consists of the following rules:

INSERT_3_IN_AAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> IF_INSERT_3_IN_1_AAG6(X, Y, Left, Right, Left1, less_2_in_ag2(X, Y))
INSERT_3_IN_AAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> LESS_2_IN_AG2(X, Y)
LESS_2_IN_AG2(s_11(X), s_11(Y)) -> IF_LESS_2_IN_1_AG3(X, Y, less_2_in_aa2(X, Y))
LESS_2_IN_AG2(s_11(X), s_11(Y)) -> LESS_2_IN_AA2(X, Y)
LESS_2_IN_AA2(s_11(X), s_11(Y)) -> IF_LESS_2_IN_1_AA3(X, Y, less_2_in_aa2(X, Y))
LESS_2_IN_AA2(s_11(X), s_11(Y)) -> LESS_2_IN_AA2(X, Y)
IF_INSERT_3_IN_1_AAG6(X, Y, Left, Right, Left1, less_2_out_ag2(X, Y)) -> IF_INSERT_3_IN_2_AAG6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
IF_INSERT_3_IN_1_AAG6(X, Y, Left, Right, Left1, less_2_out_ag2(X, Y)) -> INSERT_3_IN_GAG3(X, Left, Left1)
INSERT_3_IN_GAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> IF_INSERT_3_IN_1_GAG6(X, Y, Left, Right, Left1, less_2_in_gg2(X, Y))
INSERT_3_IN_GAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> LESS_2_IN_GG2(X, Y)
LESS_2_IN_GG2(s_11(X), s_11(Y)) -> IF_LESS_2_IN_1_GG3(X, Y, less_2_in_aa2(X, Y))
LESS_2_IN_GG2(s_11(X), s_11(Y)) -> LESS_2_IN_AA2(X, Y)
IF_INSERT_3_IN_1_GAG6(X, Y, Left, Right, Left1, less_2_out_gg2(X, Y)) -> IF_INSERT_3_IN_2_GAG6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
IF_INSERT_3_IN_1_GAG6(X, Y, Left, Right, Left1, less_2_out_gg2(X, Y)) -> INSERT_3_IN_GAG3(X, Left, Left1)
INSERT_3_IN_GAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> IF_INSERT_3_IN_3_GAG6(X, Y, Left, Right, Right1, less_2_in_gg2(Y, X))
INSERT_3_IN_GAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> LESS_2_IN_GG2(Y, X)
IF_INSERT_3_IN_3_GAG6(X, Y, Left, Right, Right1, less_2_out_gg2(Y, X)) -> IF_INSERT_3_IN_4_GAG6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
IF_INSERT_3_IN_3_GAG6(X, Y, Left, Right, Right1, less_2_out_gg2(Y, X)) -> INSERT_3_IN_GAG3(X, Right, Right1)
INSERT_3_IN_AAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> IF_INSERT_3_IN_3_AAG6(X, Y, Left, Right, Right1, less_2_in_ga2(Y, X))
INSERT_3_IN_AAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> LESS_2_IN_GA2(Y, X)
LESS_2_IN_GA2(s_11(X), s_11(Y)) -> IF_LESS_2_IN_1_GA3(X, Y, less_2_in_aa2(X, Y))
LESS_2_IN_GA2(s_11(X), s_11(Y)) -> LESS_2_IN_AA2(X, Y)
IF_INSERT_3_IN_3_AAG6(X, Y, Left, Right, Right1, less_2_out_ga2(Y, X)) -> IF_INSERT_3_IN_4_AAG6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
IF_INSERT_3_IN_3_AAG6(X, Y, Left, Right, Right1, less_2_out_ga2(Y, X)) -> INSERT_3_IN_GAG3(X, Right, Right1)

The TRS R consists of the following rules:

insert_3_in_aag3(X, void_0, tree_33(X, void_0, void_0)) -> insert_3_out_aag3(X, void_0, tree_33(X, void_0, void_0))
insert_3_in_aag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right)) -> insert_3_out_aag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right))
insert_3_in_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> if_insert_3_in_1_aag6(X, Y, Left, Right, Left1, less_2_in_ag2(X, Y))
less_2_in_ag2(0_0, s_11(underscore)) -> less_2_out_ag2(0_0, s_11(underscore))
less_2_in_ag2(s_11(X), s_11(Y)) -> if_less_2_in_1_ag3(X, Y, less_2_in_aa2(X, Y))
less_2_in_aa2(0_0, s_11(underscore)) -> less_2_out_aa2(0_0, s_11(underscore))
less_2_in_aa2(s_11(X), s_11(Y)) -> if_less_2_in_1_aa3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_aa3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_aa2(s_11(X), s_11(Y))
if_less_2_in_1_ag3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_ag2(s_11(X), s_11(Y))
if_insert_3_in_1_aag6(X, Y, Left, Right, Left1, less_2_out_ag2(X, Y)) -> if_insert_3_in_2_aag6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
insert_3_in_gag3(X, void_0, tree_33(X, void_0, void_0)) -> insert_3_out_gag3(X, void_0, tree_33(X, void_0, void_0))
insert_3_in_gag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right)) -> insert_3_out_gag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right))
insert_3_in_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> if_insert_3_in_1_gag6(X, Y, Left, Right, Left1, less_2_in_gg2(X, Y))
less_2_in_gg2(0_0, s_11(underscore)) -> less_2_out_gg2(0_0, s_11(underscore))
less_2_in_gg2(s_11(X), s_11(Y)) -> if_less_2_in_1_gg3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_gg3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_gg2(s_11(X), s_11(Y))
if_insert_3_in_1_gag6(X, Y, Left, Right, Left1, less_2_out_gg2(X, Y)) -> if_insert_3_in_2_gag6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
insert_3_in_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> if_insert_3_in_3_gag6(X, Y, Left, Right, Right1, less_2_in_gg2(Y, X))
if_insert_3_in_3_gag6(X, Y, Left, Right, Right1, less_2_out_gg2(Y, X)) -> if_insert_3_in_4_gag6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
if_insert_3_in_4_gag6(X, Y, Left, Right, Right1, insert_3_out_gag3(X, Right, Right1)) -> insert_3_out_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1))
if_insert_3_in_2_gag6(X, Y, Left, Right, Left1, insert_3_out_gag3(X, Left, Left1)) -> insert_3_out_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right))
if_insert_3_in_2_aag6(X, Y, Left, Right, Left1, insert_3_out_gag3(X, Left, Left1)) -> insert_3_out_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right))
insert_3_in_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> if_insert_3_in_3_aag6(X, Y, Left, Right, Right1, less_2_in_ga2(Y, X))
less_2_in_ga2(0_0, s_11(underscore)) -> less_2_out_ga2(0_0, s_11(underscore))
less_2_in_ga2(s_11(X), s_11(Y)) -> if_less_2_in_1_ga3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_ga3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_ga2(s_11(X), s_11(Y))
if_insert_3_in_3_aag6(X, Y, Left, Right, Right1, less_2_out_ga2(Y, X)) -> if_insert_3_in_4_aag6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
if_insert_3_in_4_aag6(X, Y, Left, Right, Right1, insert_3_out_gag3(X, Right, Right1)) -> insert_3_out_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1))

The argument filtering Pi contains the following mapping:
insert_3_in_aag3(x1, x2, x3)  =  insert_3_in_aag1(x3)
void_0  =  void_0
tree_33(x1, x2, x3)  =  tree_33(x1, x2, x3)
0_0  =  0_0
s_11(x1)  =  s_1
insert_3_out_aag3(x1, x2, x3)  =  insert_3_out_aag2(x1, x2)
if_insert_3_in_1_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_1_aag4(x2, x4, x5, x6)
less_2_in_ag2(x1, x2)  =  less_2_in_ag1(x2)
less_2_out_ag2(x1, x2)  =  less_2_out_ag1(x1)
if_less_2_in_1_ag3(x1, x2, x3)  =  if_less_2_in_1_ag1(x3)
if_insert_3_in_2_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_2_aag4(x1, x2, x4, x6)
insert_3_in_gag3(x1, x2, x3)  =  insert_3_in_gag2(x1, x3)
insert_3_out_gag3(x1, x2, x3)  =  insert_3_out_gag1(x2)
if_insert_3_in_1_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_1_gag5(x1, x2, x4, x5, x6)
less_2_in_gg2(x1, x2)  =  less_2_in_gg2(x1, x2)
less_2_out_gg2(x1, x2)  =  less_2_out_gg
if_less_2_in_1_gg3(x1, x2, x3)  =  if_less_2_in_1_gg1(x3)
if_insert_3_in_2_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_2_gag3(x2, x4, x6)
if_insert_3_in_3_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_3_gag5(x1, x2, x3, x5, x6)
if_insert_3_in_4_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_4_gag3(x2, x3, x6)
if_insert_3_in_3_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_3_aag4(x2, x3, x5, x6)
less_2_in_ga2(x1, x2)  =  less_2_in_ga1(x1)
less_2_out_ga2(x1, x2)  =  less_2_out_ga1(x2)
less_2_in_aa2(x1, x2)  =  less_2_in_aa
less_2_out_aa2(x1, x2)  =  less_2_out_aa2(x1, x2)
if_less_2_in_1_aa3(x1, x2, x3)  =  if_less_2_in_1_aa1(x3)
if_less_2_in_1_ga3(x1, x2, x3)  =  if_less_2_in_1_ga1(x3)
if_insert_3_in_4_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_4_aag4(x1, x2, x3, x6)
IF_INSERT_3_IN_4_AAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_4_AAG4(x1, x2, x3, x6)
LESS_2_IN_GA2(x1, x2)  =  LESS_2_IN_GA1(x1)
LESS_2_IN_AG2(x1, x2)  =  LESS_2_IN_AG1(x2)
IF_LESS_2_IN_1_AG3(x1, x2, x3)  =  IF_LESS_2_IN_1_AG1(x3)
IF_INSERT_3_IN_3_AAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_3_AAG4(x2, x3, x5, x6)
IF_INSERT_3_IN_4_GAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_4_GAG3(x2, x3, x6)
IF_LESS_2_IN_1_AA3(x1, x2, x3)  =  IF_LESS_2_IN_1_AA1(x3)
IF_INSERT_3_IN_1_AAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_1_AAG4(x2, x4, x5, x6)
IF_INSERT_3_IN_3_GAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_3_GAG5(x1, x2, x3, x5, x6)
IF_INSERT_3_IN_1_GAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_1_GAG5(x1, x2, x4, x5, x6)
IF_INSERT_3_IN_2_AAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_2_AAG4(x1, x2, x4, x6)
IF_LESS_2_IN_1_GA3(x1, x2, x3)  =  IF_LESS_2_IN_1_GA1(x3)
INSERT_3_IN_AAG3(x1, x2, x3)  =  INSERT_3_IN_AAG1(x3)
LESS_2_IN_AA2(x1, x2)  =  LESS_2_IN_AA
IF_LESS_2_IN_1_GG3(x1, x2, x3)  =  IF_LESS_2_IN_1_GG1(x3)
IF_INSERT_3_IN_2_GAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_2_GAG3(x2, x4, x6)
INSERT_3_IN_GAG3(x1, x2, x3)  =  INSERT_3_IN_GAG2(x1, x3)
LESS_2_IN_GG2(x1, x2)  =  LESS_2_IN_GG2(x1, x2)

We have to consider all (P,R,Pi)-chains

↳ PROLOG
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
PiDP
          ↳ DependencyGraphProof
  ↳ PrologToPiTRSProof

Pi DP problem:
The TRS P consists of the following rules:

INSERT_3_IN_AAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> IF_INSERT_3_IN_1_AAG6(X, Y, Left, Right, Left1, less_2_in_ag2(X, Y))
INSERT_3_IN_AAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> LESS_2_IN_AG2(X, Y)
LESS_2_IN_AG2(s_11(X), s_11(Y)) -> IF_LESS_2_IN_1_AG3(X, Y, less_2_in_aa2(X, Y))
LESS_2_IN_AG2(s_11(X), s_11(Y)) -> LESS_2_IN_AA2(X, Y)
LESS_2_IN_AA2(s_11(X), s_11(Y)) -> IF_LESS_2_IN_1_AA3(X, Y, less_2_in_aa2(X, Y))
LESS_2_IN_AA2(s_11(X), s_11(Y)) -> LESS_2_IN_AA2(X, Y)
IF_INSERT_3_IN_1_AAG6(X, Y, Left, Right, Left1, less_2_out_ag2(X, Y)) -> IF_INSERT_3_IN_2_AAG6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
IF_INSERT_3_IN_1_AAG6(X, Y, Left, Right, Left1, less_2_out_ag2(X, Y)) -> INSERT_3_IN_GAG3(X, Left, Left1)
INSERT_3_IN_GAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> IF_INSERT_3_IN_1_GAG6(X, Y, Left, Right, Left1, less_2_in_gg2(X, Y))
INSERT_3_IN_GAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> LESS_2_IN_GG2(X, Y)
LESS_2_IN_GG2(s_11(X), s_11(Y)) -> IF_LESS_2_IN_1_GG3(X, Y, less_2_in_aa2(X, Y))
LESS_2_IN_GG2(s_11(X), s_11(Y)) -> LESS_2_IN_AA2(X, Y)
IF_INSERT_3_IN_1_GAG6(X, Y, Left, Right, Left1, less_2_out_gg2(X, Y)) -> IF_INSERT_3_IN_2_GAG6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
IF_INSERT_3_IN_1_GAG6(X, Y, Left, Right, Left1, less_2_out_gg2(X, Y)) -> INSERT_3_IN_GAG3(X, Left, Left1)
INSERT_3_IN_GAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> IF_INSERT_3_IN_3_GAG6(X, Y, Left, Right, Right1, less_2_in_gg2(Y, X))
INSERT_3_IN_GAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> LESS_2_IN_GG2(Y, X)
IF_INSERT_3_IN_3_GAG6(X, Y, Left, Right, Right1, less_2_out_gg2(Y, X)) -> IF_INSERT_3_IN_4_GAG6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
IF_INSERT_3_IN_3_GAG6(X, Y, Left, Right, Right1, less_2_out_gg2(Y, X)) -> INSERT_3_IN_GAG3(X, Right, Right1)
INSERT_3_IN_AAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> IF_INSERT_3_IN_3_AAG6(X, Y, Left, Right, Right1, less_2_in_ga2(Y, X))
INSERT_3_IN_AAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> LESS_2_IN_GA2(Y, X)
LESS_2_IN_GA2(s_11(X), s_11(Y)) -> IF_LESS_2_IN_1_GA3(X, Y, less_2_in_aa2(X, Y))
LESS_2_IN_GA2(s_11(X), s_11(Y)) -> LESS_2_IN_AA2(X, Y)
IF_INSERT_3_IN_3_AAG6(X, Y, Left, Right, Right1, less_2_out_ga2(Y, X)) -> IF_INSERT_3_IN_4_AAG6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
IF_INSERT_3_IN_3_AAG6(X, Y, Left, Right, Right1, less_2_out_ga2(Y, X)) -> INSERT_3_IN_GAG3(X, Right, Right1)

The TRS R consists of the following rules:

insert_3_in_aag3(X, void_0, tree_33(X, void_0, void_0)) -> insert_3_out_aag3(X, void_0, tree_33(X, void_0, void_0))
insert_3_in_aag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right)) -> insert_3_out_aag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right))
insert_3_in_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> if_insert_3_in_1_aag6(X, Y, Left, Right, Left1, less_2_in_ag2(X, Y))
less_2_in_ag2(0_0, s_11(underscore)) -> less_2_out_ag2(0_0, s_11(underscore))
less_2_in_ag2(s_11(X), s_11(Y)) -> if_less_2_in_1_ag3(X, Y, less_2_in_aa2(X, Y))
less_2_in_aa2(0_0, s_11(underscore)) -> less_2_out_aa2(0_0, s_11(underscore))
less_2_in_aa2(s_11(X), s_11(Y)) -> if_less_2_in_1_aa3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_aa3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_aa2(s_11(X), s_11(Y))
if_less_2_in_1_ag3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_ag2(s_11(X), s_11(Y))
if_insert_3_in_1_aag6(X, Y, Left, Right, Left1, less_2_out_ag2(X, Y)) -> if_insert_3_in_2_aag6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
insert_3_in_gag3(X, void_0, tree_33(X, void_0, void_0)) -> insert_3_out_gag3(X, void_0, tree_33(X, void_0, void_0))
insert_3_in_gag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right)) -> insert_3_out_gag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right))
insert_3_in_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> if_insert_3_in_1_gag6(X, Y, Left, Right, Left1, less_2_in_gg2(X, Y))
less_2_in_gg2(0_0, s_11(underscore)) -> less_2_out_gg2(0_0, s_11(underscore))
less_2_in_gg2(s_11(X), s_11(Y)) -> if_less_2_in_1_gg3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_gg3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_gg2(s_11(X), s_11(Y))
if_insert_3_in_1_gag6(X, Y, Left, Right, Left1, less_2_out_gg2(X, Y)) -> if_insert_3_in_2_gag6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
insert_3_in_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> if_insert_3_in_3_gag6(X, Y, Left, Right, Right1, less_2_in_gg2(Y, X))
if_insert_3_in_3_gag6(X, Y, Left, Right, Right1, less_2_out_gg2(Y, X)) -> if_insert_3_in_4_gag6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
if_insert_3_in_4_gag6(X, Y, Left, Right, Right1, insert_3_out_gag3(X, Right, Right1)) -> insert_3_out_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1))
if_insert_3_in_2_gag6(X, Y, Left, Right, Left1, insert_3_out_gag3(X, Left, Left1)) -> insert_3_out_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right))
if_insert_3_in_2_aag6(X, Y, Left, Right, Left1, insert_3_out_gag3(X, Left, Left1)) -> insert_3_out_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right))
insert_3_in_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> if_insert_3_in_3_aag6(X, Y, Left, Right, Right1, less_2_in_ga2(Y, X))
less_2_in_ga2(0_0, s_11(underscore)) -> less_2_out_ga2(0_0, s_11(underscore))
less_2_in_ga2(s_11(X), s_11(Y)) -> if_less_2_in_1_ga3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_ga3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_ga2(s_11(X), s_11(Y))
if_insert_3_in_3_aag6(X, Y, Left, Right, Right1, less_2_out_ga2(Y, X)) -> if_insert_3_in_4_aag6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
if_insert_3_in_4_aag6(X, Y, Left, Right, Right1, insert_3_out_gag3(X, Right, Right1)) -> insert_3_out_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1))

The argument filtering Pi contains the following mapping:
insert_3_in_aag3(x1, x2, x3)  =  insert_3_in_aag1(x3)
void_0  =  void_0
tree_33(x1, x2, x3)  =  tree_33(x1, x2, x3)
0_0  =  0_0
s_11(x1)  =  s_1
insert_3_out_aag3(x1, x2, x3)  =  insert_3_out_aag2(x1, x2)
if_insert_3_in_1_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_1_aag4(x2, x4, x5, x6)
less_2_in_ag2(x1, x2)  =  less_2_in_ag1(x2)
less_2_out_ag2(x1, x2)  =  less_2_out_ag1(x1)
if_less_2_in_1_ag3(x1, x2, x3)  =  if_less_2_in_1_ag1(x3)
if_insert_3_in_2_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_2_aag4(x1, x2, x4, x6)
insert_3_in_gag3(x1, x2, x3)  =  insert_3_in_gag2(x1, x3)
insert_3_out_gag3(x1, x2, x3)  =  insert_3_out_gag1(x2)
if_insert_3_in_1_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_1_gag5(x1, x2, x4, x5, x6)
less_2_in_gg2(x1, x2)  =  less_2_in_gg2(x1, x2)
less_2_out_gg2(x1, x2)  =  less_2_out_gg
if_less_2_in_1_gg3(x1, x2, x3)  =  if_less_2_in_1_gg1(x3)
if_insert_3_in_2_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_2_gag3(x2, x4, x6)
if_insert_3_in_3_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_3_gag5(x1, x2, x3, x5, x6)
if_insert_3_in_4_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_4_gag3(x2, x3, x6)
if_insert_3_in_3_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_3_aag4(x2, x3, x5, x6)
less_2_in_ga2(x1, x2)  =  less_2_in_ga1(x1)
less_2_out_ga2(x1, x2)  =  less_2_out_ga1(x2)
less_2_in_aa2(x1, x2)  =  less_2_in_aa
less_2_out_aa2(x1, x2)  =  less_2_out_aa2(x1, x2)
if_less_2_in_1_aa3(x1, x2, x3)  =  if_less_2_in_1_aa1(x3)
if_less_2_in_1_ga3(x1, x2, x3)  =  if_less_2_in_1_ga1(x3)
if_insert_3_in_4_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_4_aag4(x1, x2, x3, x6)
IF_INSERT_3_IN_4_AAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_4_AAG4(x1, x2, x3, x6)
LESS_2_IN_GA2(x1, x2)  =  LESS_2_IN_GA1(x1)
LESS_2_IN_AG2(x1, x2)  =  LESS_2_IN_AG1(x2)
IF_LESS_2_IN_1_AG3(x1, x2, x3)  =  IF_LESS_2_IN_1_AG1(x3)
IF_INSERT_3_IN_3_AAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_3_AAG4(x2, x3, x5, x6)
IF_INSERT_3_IN_4_GAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_4_GAG3(x2, x3, x6)
IF_LESS_2_IN_1_AA3(x1, x2, x3)  =  IF_LESS_2_IN_1_AA1(x3)
IF_INSERT_3_IN_1_AAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_1_AAG4(x2, x4, x5, x6)
IF_INSERT_3_IN_3_GAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_3_GAG5(x1, x2, x3, x5, x6)
IF_INSERT_3_IN_1_GAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_1_GAG5(x1, x2, x4, x5, x6)
IF_INSERT_3_IN_2_AAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_2_AAG4(x1, x2, x4, x6)
IF_LESS_2_IN_1_GA3(x1, x2, x3)  =  IF_LESS_2_IN_1_GA1(x3)
INSERT_3_IN_AAG3(x1, x2, x3)  =  INSERT_3_IN_AAG1(x3)
LESS_2_IN_AA2(x1, x2)  =  LESS_2_IN_AA
IF_LESS_2_IN_1_GG3(x1, x2, x3)  =  IF_LESS_2_IN_1_GG1(x3)
IF_INSERT_3_IN_2_GAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_2_GAG3(x2, x4, x6)
INSERT_3_IN_GAG3(x1, x2, x3)  =  INSERT_3_IN_GAG2(x1, x3)
LESS_2_IN_GG2(x1, x2)  =  LESS_2_IN_GG2(x1, x2)

We have to consider all (P,R,Pi)-chains
The approximation of the Dependency Graph contains 2 SCCs with 19 less nodes.

↳ PROLOG
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
PiDP
                ↳ UsableRulesProof
              ↳ PiDP
  ↳ PrologToPiTRSProof

Pi DP problem:
The TRS P consists of the following rules:

LESS_2_IN_AA2(s_11(X), s_11(Y)) -> LESS_2_IN_AA2(X, Y)

The TRS R consists of the following rules:

insert_3_in_aag3(X, void_0, tree_33(X, void_0, void_0)) -> insert_3_out_aag3(X, void_0, tree_33(X, void_0, void_0))
insert_3_in_aag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right)) -> insert_3_out_aag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right))
insert_3_in_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> if_insert_3_in_1_aag6(X, Y, Left, Right, Left1, less_2_in_ag2(X, Y))
less_2_in_ag2(0_0, s_11(underscore)) -> less_2_out_ag2(0_0, s_11(underscore))
less_2_in_ag2(s_11(X), s_11(Y)) -> if_less_2_in_1_ag3(X, Y, less_2_in_aa2(X, Y))
less_2_in_aa2(0_0, s_11(underscore)) -> less_2_out_aa2(0_0, s_11(underscore))
less_2_in_aa2(s_11(X), s_11(Y)) -> if_less_2_in_1_aa3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_aa3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_aa2(s_11(X), s_11(Y))
if_less_2_in_1_ag3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_ag2(s_11(X), s_11(Y))
if_insert_3_in_1_aag6(X, Y, Left, Right, Left1, less_2_out_ag2(X, Y)) -> if_insert_3_in_2_aag6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
insert_3_in_gag3(X, void_0, tree_33(X, void_0, void_0)) -> insert_3_out_gag3(X, void_0, tree_33(X, void_0, void_0))
insert_3_in_gag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right)) -> insert_3_out_gag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right))
insert_3_in_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> if_insert_3_in_1_gag6(X, Y, Left, Right, Left1, less_2_in_gg2(X, Y))
less_2_in_gg2(0_0, s_11(underscore)) -> less_2_out_gg2(0_0, s_11(underscore))
less_2_in_gg2(s_11(X), s_11(Y)) -> if_less_2_in_1_gg3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_gg3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_gg2(s_11(X), s_11(Y))
if_insert_3_in_1_gag6(X, Y, Left, Right, Left1, less_2_out_gg2(X, Y)) -> if_insert_3_in_2_gag6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
insert_3_in_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> if_insert_3_in_3_gag6(X, Y, Left, Right, Right1, less_2_in_gg2(Y, X))
if_insert_3_in_3_gag6(X, Y, Left, Right, Right1, less_2_out_gg2(Y, X)) -> if_insert_3_in_4_gag6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
if_insert_3_in_4_gag6(X, Y, Left, Right, Right1, insert_3_out_gag3(X, Right, Right1)) -> insert_3_out_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1))
if_insert_3_in_2_gag6(X, Y, Left, Right, Left1, insert_3_out_gag3(X, Left, Left1)) -> insert_3_out_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right))
if_insert_3_in_2_aag6(X, Y, Left, Right, Left1, insert_3_out_gag3(X, Left, Left1)) -> insert_3_out_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right))
insert_3_in_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> if_insert_3_in_3_aag6(X, Y, Left, Right, Right1, less_2_in_ga2(Y, X))
less_2_in_ga2(0_0, s_11(underscore)) -> less_2_out_ga2(0_0, s_11(underscore))
less_2_in_ga2(s_11(X), s_11(Y)) -> if_less_2_in_1_ga3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_ga3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_ga2(s_11(X), s_11(Y))
if_insert_3_in_3_aag6(X, Y, Left, Right, Right1, less_2_out_ga2(Y, X)) -> if_insert_3_in_4_aag6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
if_insert_3_in_4_aag6(X, Y, Left, Right, Right1, insert_3_out_gag3(X, Right, Right1)) -> insert_3_out_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1))

The argument filtering Pi contains the following mapping:
insert_3_in_aag3(x1, x2, x3)  =  insert_3_in_aag1(x3)
void_0  =  void_0
tree_33(x1, x2, x3)  =  tree_33(x1, x2, x3)
0_0  =  0_0
s_11(x1)  =  s_1
insert_3_out_aag3(x1, x2, x3)  =  insert_3_out_aag2(x1, x2)
if_insert_3_in_1_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_1_aag4(x2, x4, x5, x6)
less_2_in_ag2(x1, x2)  =  less_2_in_ag1(x2)
less_2_out_ag2(x1, x2)  =  less_2_out_ag1(x1)
if_less_2_in_1_ag3(x1, x2, x3)  =  if_less_2_in_1_ag1(x3)
if_insert_3_in_2_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_2_aag4(x1, x2, x4, x6)
insert_3_in_gag3(x1, x2, x3)  =  insert_3_in_gag2(x1, x3)
insert_3_out_gag3(x1, x2, x3)  =  insert_3_out_gag1(x2)
if_insert_3_in_1_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_1_gag5(x1, x2, x4, x5, x6)
less_2_in_gg2(x1, x2)  =  less_2_in_gg2(x1, x2)
less_2_out_gg2(x1, x2)  =  less_2_out_gg
if_less_2_in_1_gg3(x1, x2, x3)  =  if_less_2_in_1_gg1(x3)
if_insert_3_in_2_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_2_gag3(x2, x4, x6)
if_insert_3_in_3_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_3_gag5(x1, x2, x3, x5, x6)
if_insert_3_in_4_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_4_gag3(x2, x3, x6)
if_insert_3_in_3_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_3_aag4(x2, x3, x5, x6)
less_2_in_ga2(x1, x2)  =  less_2_in_ga1(x1)
less_2_out_ga2(x1, x2)  =  less_2_out_ga1(x2)
less_2_in_aa2(x1, x2)  =  less_2_in_aa
less_2_out_aa2(x1, x2)  =  less_2_out_aa2(x1, x2)
if_less_2_in_1_aa3(x1, x2, x3)  =  if_less_2_in_1_aa1(x3)
if_less_2_in_1_ga3(x1, x2, x3)  =  if_less_2_in_1_ga1(x3)
if_insert_3_in_4_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_4_aag4(x1, x2, x3, x6)
LESS_2_IN_AA2(x1, x2)  =  LESS_2_IN_AA

We have to consider all (P,R,Pi)-chains
For (infinitary) constructor rewriting we can delete all non-usable rules from R.

↳ PROLOG
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
                ↳ UsableRulesProof
PiDP
                    ↳ PiDPToQDPProof
              ↳ PiDP
  ↳ PrologToPiTRSProof

Pi DP problem:
The TRS P consists of the following rules:

LESS_2_IN_AA2(s_11(X), s_11(Y)) -> LESS_2_IN_AA2(X, Y)

R is empty.
The argument filtering Pi contains the following mapping:
s_11(x1)  =  s_1
LESS_2_IN_AA2(x1, x2)  =  LESS_2_IN_AA

We have to consider all (P,R,Pi)-chains
Transforming (infinitary) constructor rewriting Pi-DP problem into ordinary QDP problem by application of Pi.

↳ PROLOG
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
                ↳ UsableRulesProof
                  ↳ PiDP
                    ↳ PiDPToQDPProof
QDP
              ↳ PiDP
  ↳ PrologToPiTRSProof

Q DP problem:
The TRS P consists of the following rules:

LESS_2_IN_AA -> LESS_2_IN_AA

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.
The head symbols of this DP problem are {LESS_2_IN_AA}.

↳ PROLOG
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
PiDP
                ↳ UsableRulesProof
  ↳ PrologToPiTRSProof

Pi DP problem:
The TRS P consists of the following rules:

INSERT_3_IN_GAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> IF_INSERT_3_IN_3_GAG6(X, Y, Left, Right, Right1, less_2_in_gg2(Y, X))
IF_INSERT_3_IN_3_GAG6(X, Y, Left, Right, Right1, less_2_out_gg2(Y, X)) -> INSERT_3_IN_GAG3(X, Right, Right1)
IF_INSERT_3_IN_1_GAG6(X, Y, Left, Right, Left1, less_2_out_gg2(X, Y)) -> INSERT_3_IN_GAG3(X, Left, Left1)
INSERT_3_IN_GAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> IF_INSERT_3_IN_1_GAG6(X, Y, Left, Right, Left1, less_2_in_gg2(X, Y))

The TRS R consists of the following rules:

insert_3_in_aag3(X, void_0, tree_33(X, void_0, void_0)) -> insert_3_out_aag3(X, void_0, tree_33(X, void_0, void_0))
insert_3_in_aag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right)) -> insert_3_out_aag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right))
insert_3_in_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> if_insert_3_in_1_aag6(X, Y, Left, Right, Left1, less_2_in_ag2(X, Y))
less_2_in_ag2(0_0, s_11(underscore)) -> less_2_out_ag2(0_0, s_11(underscore))
less_2_in_ag2(s_11(X), s_11(Y)) -> if_less_2_in_1_ag3(X, Y, less_2_in_aa2(X, Y))
less_2_in_aa2(0_0, s_11(underscore)) -> less_2_out_aa2(0_0, s_11(underscore))
less_2_in_aa2(s_11(X), s_11(Y)) -> if_less_2_in_1_aa3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_aa3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_aa2(s_11(X), s_11(Y))
if_less_2_in_1_ag3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_ag2(s_11(X), s_11(Y))
if_insert_3_in_1_aag6(X, Y, Left, Right, Left1, less_2_out_ag2(X, Y)) -> if_insert_3_in_2_aag6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
insert_3_in_gag3(X, void_0, tree_33(X, void_0, void_0)) -> insert_3_out_gag3(X, void_0, tree_33(X, void_0, void_0))
insert_3_in_gag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right)) -> insert_3_out_gag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right))
insert_3_in_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> if_insert_3_in_1_gag6(X, Y, Left, Right, Left1, less_2_in_gg2(X, Y))
less_2_in_gg2(0_0, s_11(underscore)) -> less_2_out_gg2(0_0, s_11(underscore))
less_2_in_gg2(s_11(X), s_11(Y)) -> if_less_2_in_1_gg3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_gg3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_gg2(s_11(X), s_11(Y))
if_insert_3_in_1_gag6(X, Y, Left, Right, Left1, less_2_out_gg2(X, Y)) -> if_insert_3_in_2_gag6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
insert_3_in_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> if_insert_3_in_3_gag6(X, Y, Left, Right, Right1, less_2_in_gg2(Y, X))
if_insert_3_in_3_gag6(X, Y, Left, Right, Right1, less_2_out_gg2(Y, X)) -> if_insert_3_in_4_gag6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
if_insert_3_in_4_gag6(X, Y, Left, Right, Right1, insert_3_out_gag3(X, Right, Right1)) -> insert_3_out_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1))
if_insert_3_in_2_gag6(X, Y, Left, Right, Left1, insert_3_out_gag3(X, Left, Left1)) -> insert_3_out_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right))
if_insert_3_in_2_aag6(X, Y, Left, Right, Left1, insert_3_out_gag3(X, Left, Left1)) -> insert_3_out_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right))
insert_3_in_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> if_insert_3_in_3_aag6(X, Y, Left, Right, Right1, less_2_in_ga2(Y, X))
less_2_in_ga2(0_0, s_11(underscore)) -> less_2_out_ga2(0_0, s_11(underscore))
less_2_in_ga2(s_11(X), s_11(Y)) -> if_less_2_in_1_ga3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_ga3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_ga2(s_11(X), s_11(Y))
if_insert_3_in_3_aag6(X, Y, Left, Right, Right1, less_2_out_ga2(Y, X)) -> if_insert_3_in_4_aag6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
if_insert_3_in_4_aag6(X, Y, Left, Right, Right1, insert_3_out_gag3(X, Right, Right1)) -> insert_3_out_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1))

The argument filtering Pi contains the following mapping:
insert_3_in_aag3(x1, x2, x3)  =  insert_3_in_aag1(x3)
void_0  =  void_0
tree_33(x1, x2, x3)  =  tree_33(x1, x2, x3)
0_0  =  0_0
s_11(x1)  =  s_1
insert_3_out_aag3(x1, x2, x3)  =  insert_3_out_aag2(x1, x2)
if_insert_3_in_1_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_1_aag4(x2, x4, x5, x6)
less_2_in_ag2(x1, x2)  =  less_2_in_ag1(x2)
less_2_out_ag2(x1, x2)  =  less_2_out_ag1(x1)
if_less_2_in_1_ag3(x1, x2, x3)  =  if_less_2_in_1_ag1(x3)
if_insert_3_in_2_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_2_aag4(x1, x2, x4, x6)
insert_3_in_gag3(x1, x2, x3)  =  insert_3_in_gag2(x1, x3)
insert_3_out_gag3(x1, x2, x3)  =  insert_3_out_gag1(x2)
if_insert_3_in_1_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_1_gag5(x1, x2, x4, x5, x6)
less_2_in_gg2(x1, x2)  =  less_2_in_gg2(x1, x2)
less_2_out_gg2(x1, x2)  =  less_2_out_gg
if_less_2_in_1_gg3(x1, x2, x3)  =  if_less_2_in_1_gg1(x3)
if_insert_3_in_2_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_2_gag3(x2, x4, x6)
if_insert_3_in_3_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_3_gag5(x1, x2, x3, x5, x6)
if_insert_3_in_4_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_4_gag3(x2, x3, x6)
if_insert_3_in_3_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_3_aag4(x2, x3, x5, x6)
less_2_in_ga2(x1, x2)  =  less_2_in_ga1(x1)
less_2_out_ga2(x1, x2)  =  less_2_out_ga1(x2)
less_2_in_aa2(x1, x2)  =  less_2_in_aa
less_2_out_aa2(x1, x2)  =  less_2_out_aa2(x1, x2)
if_less_2_in_1_aa3(x1, x2, x3)  =  if_less_2_in_1_aa1(x3)
if_less_2_in_1_ga3(x1, x2, x3)  =  if_less_2_in_1_ga1(x3)
if_insert_3_in_4_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_4_aag4(x1, x2, x3, x6)
IF_INSERT_3_IN_3_GAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_3_GAG5(x1, x2, x3, x5, x6)
IF_INSERT_3_IN_1_GAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_1_GAG5(x1, x2, x4, x5, x6)
INSERT_3_IN_GAG3(x1, x2, x3)  =  INSERT_3_IN_GAG2(x1, x3)

We have to consider all (P,R,Pi)-chains
For (infinitary) constructor rewriting we can delete all non-usable rules from R.

↳ PROLOG
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
              ↳ PiDP
                ↳ UsableRulesProof
PiDP
                    ↳ PiDPToQDPProof
  ↳ PrologToPiTRSProof

Pi DP problem:
The TRS P consists of the following rules:

INSERT_3_IN_GAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> IF_INSERT_3_IN_3_GAG6(X, Y, Left, Right, Right1, less_2_in_gg2(Y, X))
IF_INSERT_3_IN_3_GAG6(X, Y, Left, Right, Right1, less_2_out_gg2(Y, X)) -> INSERT_3_IN_GAG3(X, Right, Right1)
IF_INSERT_3_IN_1_GAG6(X, Y, Left, Right, Left1, less_2_out_gg2(X, Y)) -> INSERT_3_IN_GAG3(X, Left, Left1)
INSERT_3_IN_GAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> IF_INSERT_3_IN_1_GAG6(X, Y, Left, Right, Left1, less_2_in_gg2(X, Y))

The TRS R consists of the following rules:

less_2_in_gg2(0_0, s_11(underscore)) -> less_2_out_gg2(0_0, s_11(underscore))
less_2_in_gg2(s_11(X), s_11(Y)) -> if_less_2_in_1_gg3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_gg3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_gg2(s_11(X), s_11(Y))
less_2_in_aa2(0_0, s_11(underscore)) -> less_2_out_aa2(0_0, s_11(underscore))
less_2_in_aa2(s_11(X), s_11(Y)) -> if_less_2_in_1_aa3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_aa3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_aa2(s_11(X), s_11(Y))

The argument filtering Pi contains the following mapping:
tree_33(x1, x2, x3)  =  tree_33(x1, x2, x3)
0_0  =  0_0
s_11(x1)  =  s_1
less_2_in_gg2(x1, x2)  =  less_2_in_gg2(x1, x2)
less_2_out_gg2(x1, x2)  =  less_2_out_gg
if_less_2_in_1_gg3(x1, x2, x3)  =  if_less_2_in_1_gg1(x3)
less_2_in_aa2(x1, x2)  =  less_2_in_aa
less_2_out_aa2(x1, x2)  =  less_2_out_aa2(x1, x2)
if_less_2_in_1_aa3(x1, x2, x3)  =  if_less_2_in_1_aa1(x3)
IF_INSERT_3_IN_3_GAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_3_GAG5(x1, x2, x3, x5, x6)
IF_INSERT_3_IN_1_GAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_1_GAG5(x1, x2, x4, x5, x6)
INSERT_3_IN_GAG3(x1, x2, x3)  =  INSERT_3_IN_GAG2(x1, x3)

We have to consider all (P,R,Pi)-chains
Transforming (infinitary) constructor rewriting Pi-DP problem into ordinary QDP problem by application of Pi.

↳ PROLOG
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
              ↳ PiDP
                ↳ UsableRulesProof
                  ↳ PiDP
                    ↳ PiDPToQDPProof
QDP
                        ↳ QDPSizeChangeProof
  ↳ PrologToPiTRSProof

Q DP problem:
The TRS P consists of the following rules:

INSERT_3_IN_GAG2(X, tree_33(Y, Left, Right1)) -> IF_INSERT_3_IN_3_GAG5(X, Y, Left, Right1, less_2_in_gg2(Y, X))
IF_INSERT_3_IN_3_GAG5(X, Y, Left, Right1, less_2_out_gg) -> INSERT_3_IN_GAG2(X, Right1)
IF_INSERT_3_IN_1_GAG5(X, Y, Right, Left1, less_2_out_gg) -> INSERT_3_IN_GAG2(X, Left1)
INSERT_3_IN_GAG2(X, tree_33(Y, Left1, Right)) -> IF_INSERT_3_IN_1_GAG5(X, Y, Right, Left1, less_2_in_gg2(X, Y))

The TRS R consists of the following rules:

less_2_in_gg2(0_0, s_1) -> less_2_out_gg
less_2_in_gg2(s_1, s_1) -> if_less_2_in_1_gg1(less_2_in_aa)
if_less_2_in_1_gg1(less_2_out_aa2(X, Y)) -> less_2_out_gg
less_2_in_aa -> less_2_out_aa2(0_0, s_1)
less_2_in_aa -> if_less_2_in_1_aa1(less_2_in_aa)
if_less_2_in_1_aa1(less_2_out_aa2(X, Y)) -> less_2_out_aa2(s_1, s_1)

The set Q consists of the following terms:

less_2_in_gg2(x0, x1)
if_less_2_in_1_gg1(x0)
less_2_in_aa
if_less_2_in_1_aa1(x0)

We have to consider all (P,Q,R)-chains.
The head symbols of this DP problem are {IF_INSERT_3_IN_3_GAG5, INSERT_3_IN_GAG2, IF_INSERT_3_IN_1_GAG5}.
By using the subterm criterion together with the size-change analysis we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:


With regard to the inferred argument filtering the predicates were used in the following modes:
insert3: (f,f,b) (b,f,b)
less2: (f,b) (f,f) (b,b) (b,f)
Transforming PROLOG into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

insert_3_in_aag3(X, void_0, tree_33(X, void_0, void_0)) -> insert_3_out_aag3(X, void_0, tree_33(X, void_0, void_0))
insert_3_in_aag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right)) -> insert_3_out_aag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right))
insert_3_in_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> if_insert_3_in_1_aag6(X, Y, Left, Right, Left1, less_2_in_ag2(X, Y))
less_2_in_ag2(0_0, s_11(underscore)) -> less_2_out_ag2(0_0, s_11(underscore))
less_2_in_ag2(s_11(X), s_11(Y)) -> if_less_2_in_1_ag3(X, Y, less_2_in_aa2(X, Y))
less_2_in_aa2(0_0, s_11(underscore)) -> less_2_out_aa2(0_0, s_11(underscore))
less_2_in_aa2(s_11(X), s_11(Y)) -> if_less_2_in_1_aa3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_aa3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_aa2(s_11(X), s_11(Y))
if_less_2_in_1_ag3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_ag2(s_11(X), s_11(Y))
if_insert_3_in_1_aag6(X, Y, Left, Right, Left1, less_2_out_ag2(X, Y)) -> if_insert_3_in_2_aag6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
insert_3_in_gag3(X, void_0, tree_33(X, void_0, void_0)) -> insert_3_out_gag3(X, void_0, tree_33(X, void_0, void_0))
insert_3_in_gag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right)) -> insert_3_out_gag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right))
insert_3_in_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> if_insert_3_in_1_gag6(X, Y, Left, Right, Left1, less_2_in_gg2(X, Y))
less_2_in_gg2(0_0, s_11(underscore)) -> less_2_out_gg2(0_0, s_11(underscore))
less_2_in_gg2(s_11(X), s_11(Y)) -> if_less_2_in_1_gg3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_gg3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_gg2(s_11(X), s_11(Y))
if_insert_3_in_1_gag6(X, Y, Left, Right, Left1, less_2_out_gg2(X, Y)) -> if_insert_3_in_2_gag6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
insert_3_in_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> if_insert_3_in_3_gag6(X, Y, Left, Right, Right1, less_2_in_gg2(Y, X))
if_insert_3_in_3_gag6(X, Y, Left, Right, Right1, less_2_out_gg2(Y, X)) -> if_insert_3_in_4_gag6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
if_insert_3_in_4_gag6(X, Y, Left, Right, Right1, insert_3_out_gag3(X, Right, Right1)) -> insert_3_out_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1))
if_insert_3_in_2_gag6(X, Y, Left, Right, Left1, insert_3_out_gag3(X, Left, Left1)) -> insert_3_out_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right))
if_insert_3_in_2_aag6(X, Y, Left, Right, Left1, insert_3_out_gag3(X, Left, Left1)) -> insert_3_out_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right))
insert_3_in_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> if_insert_3_in_3_aag6(X, Y, Left, Right, Right1, less_2_in_ga2(Y, X))
less_2_in_ga2(0_0, s_11(underscore)) -> less_2_out_ga2(0_0, s_11(underscore))
less_2_in_ga2(s_11(X), s_11(Y)) -> if_less_2_in_1_ga3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_ga3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_ga2(s_11(X), s_11(Y))
if_insert_3_in_3_aag6(X, Y, Left, Right, Right1, less_2_out_ga2(Y, X)) -> if_insert_3_in_4_aag6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
if_insert_3_in_4_aag6(X, Y, Left, Right, Right1, insert_3_out_gag3(X, Right, Right1)) -> insert_3_out_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1))

The argument filtering Pi contains the following mapping:
insert_3_in_aag3(x1, x2, x3)  =  insert_3_in_aag1(x3)
void_0  =  void_0
tree_33(x1, x2, x3)  =  tree_33(x1, x2, x3)
0_0  =  0_0
s_11(x1)  =  s_1
insert_3_out_aag3(x1, x2, x3)  =  insert_3_out_aag3(x1, x2, x3)
if_insert_3_in_1_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_1_aag4(x2, x4, x5, x6)
less_2_in_ag2(x1, x2)  =  less_2_in_ag1(x2)
less_2_out_ag2(x1, x2)  =  less_2_out_ag2(x1, x2)
if_less_2_in_1_ag3(x1, x2, x3)  =  if_less_2_in_1_ag1(x3)
if_insert_3_in_2_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_2_aag5(x1, x2, x4, x5, x6)
insert_3_in_gag3(x1, x2, x3)  =  insert_3_in_gag2(x1, x3)
insert_3_out_gag3(x1, x2, x3)  =  insert_3_out_gag3(x1, x2, x3)
if_insert_3_in_1_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_1_gag5(x1, x2, x4, x5, x6)
less_2_in_gg2(x1, x2)  =  less_2_in_gg2(x1, x2)
less_2_out_gg2(x1, x2)  =  less_2_out_gg2(x1, x2)
if_less_2_in_1_gg3(x1, x2, x3)  =  if_less_2_in_1_gg1(x3)
if_insert_3_in_2_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_2_gag5(x1, x2, x4, x5, x6)
if_insert_3_in_3_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_3_gag5(x1, x2, x3, x5, x6)
if_insert_3_in_4_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_4_gag5(x1, x2, x3, x5, x6)
if_insert_3_in_3_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_3_aag4(x2, x3, x5, x6)
less_2_in_ga2(x1, x2)  =  less_2_in_ga1(x1)
less_2_out_ga2(x1, x2)  =  less_2_out_ga2(x1, x2)
less_2_in_aa2(x1, x2)  =  less_2_in_aa
less_2_out_aa2(x1, x2)  =  less_2_out_aa2(x1, x2)
if_less_2_in_1_aa3(x1, x2, x3)  =  if_less_2_in_1_aa1(x3)
if_less_2_in_1_ga3(x1, x2, x3)  =  if_less_2_in_1_ga1(x3)
if_insert_3_in_4_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_4_aag5(x1, x2, x3, x5, x6)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG



↳ PROLOG
  ↳ PrologToPiTRSProof
  ↳ PrologToPiTRSProof
PiTRS
      ↳ DependencyPairsProof

Pi-finite rewrite system:
The TRS R consists of the following rules:

insert_3_in_aag3(X, void_0, tree_33(X, void_0, void_0)) -> insert_3_out_aag3(X, void_0, tree_33(X, void_0, void_0))
insert_3_in_aag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right)) -> insert_3_out_aag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right))
insert_3_in_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> if_insert_3_in_1_aag6(X, Y, Left, Right, Left1, less_2_in_ag2(X, Y))
less_2_in_ag2(0_0, s_11(underscore)) -> less_2_out_ag2(0_0, s_11(underscore))
less_2_in_ag2(s_11(X), s_11(Y)) -> if_less_2_in_1_ag3(X, Y, less_2_in_aa2(X, Y))
less_2_in_aa2(0_0, s_11(underscore)) -> less_2_out_aa2(0_0, s_11(underscore))
less_2_in_aa2(s_11(X), s_11(Y)) -> if_less_2_in_1_aa3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_aa3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_aa2(s_11(X), s_11(Y))
if_less_2_in_1_ag3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_ag2(s_11(X), s_11(Y))
if_insert_3_in_1_aag6(X, Y, Left, Right, Left1, less_2_out_ag2(X, Y)) -> if_insert_3_in_2_aag6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
insert_3_in_gag3(X, void_0, tree_33(X, void_0, void_0)) -> insert_3_out_gag3(X, void_0, tree_33(X, void_0, void_0))
insert_3_in_gag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right)) -> insert_3_out_gag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right))
insert_3_in_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> if_insert_3_in_1_gag6(X, Y, Left, Right, Left1, less_2_in_gg2(X, Y))
less_2_in_gg2(0_0, s_11(underscore)) -> less_2_out_gg2(0_0, s_11(underscore))
less_2_in_gg2(s_11(X), s_11(Y)) -> if_less_2_in_1_gg3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_gg3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_gg2(s_11(X), s_11(Y))
if_insert_3_in_1_gag6(X, Y, Left, Right, Left1, less_2_out_gg2(X, Y)) -> if_insert_3_in_2_gag6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
insert_3_in_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> if_insert_3_in_3_gag6(X, Y, Left, Right, Right1, less_2_in_gg2(Y, X))
if_insert_3_in_3_gag6(X, Y, Left, Right, Right1, less_2_out_gg2(Y, X)) -> if_insert_3_in_4_gag6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
if_insert_3_in_4_gag6(X, Y, Left, Right, Right1, insert_3_out_gag3(X, Right, Right1)) -> insert_3_out_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1))
if_insert_3_in_2_gag6(X, Y, Left, Right, Left1, insert_3_out_gag3(X, Left, Left1)) -> insert_3_out_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right))
if_insert_3_in_2_aag6(X, Y, Left, Right, Left1, insert_3_out_gag3(X, Left, Left1)) -> insert_3_out_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right))
insert_3_in_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> if_insert_3_in_3_aag6(X, Y, Left, Right, Right1, less_2_in_ga2(Y, X))
less_2_in_ga2(0_0, s_11(underscore)) -> less_2_out_ga2(0_0, s_11(underscore))
less_2_in_ga2(s_11(X), s_11(Y)) -> if_less_2_in_1_ga3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_ga3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_ga2(s_11(X), s_11(Y))
if_insert_3_in_3_aag6(X, Y, Left, Right, Right1, less_2_out_ga2(Y, X)) -> if_insert_3_in_4_aag6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
if_insert_3_in_4_aag6(X, Y, Left, Right, Right1, insert_3_out_gag3(X, Right, Right1)) -> insert_3_out_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1))

The argument filtering Pi contains the following mapping:
insert_3_in_aag3(x1, x2, x3)  =  insert_3_in_aag1(x3)
void_0  =  void_0
tree_33(x1, x2, x3)  =  tree_33(x1, x2, x3)
0_0  =  0_0
s_11(x1)  =  s_1
insert_3_out_aag3(x1, x2, x3)  =  insert_3_out_aag3(x1, x2, x3)
if_insert_3_in_1_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_1_aag4(x2, x4, x5, x6)
less_2_in_ag2(x1, x2)  =  less_2_in_ag1(x2)
less_2_out_ag2(x1, x2)  =  less_2_out_ag2(x1, x2)
if_less_2_in_1_ag3(x1, x2, x3)  =  if_less_2_in_1_ag1(x3)
if_insert_3_in_2_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_2_aag5(x1, x2, x4, x5, x6)
insert_3_in_gag3(x1, x2, x3)  =  insert_3_in_gag2(x1, x3)
insert_3_out_gag3(x1, x2, x3)  =  insert_3_out_gag3(x1, x2, x3)
if_insert_3_in_1_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_1_gag5(x1, x2, x4, x5, x6)
less_2_in_gg2(x1, x2)  =  less_2_in_gg2(x1, x2)
less_2_out_gg2(x1, x2)  =  less_2_out_gg2(x1, x2)
if_less_2_in_1_gg3(x1, x2, x3)  =  if_less_2_in_1_gg1(x3)
if_insert_3_in_2_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_2_gag5(x1, x2, x4, x5, x6)
if_insert_3_in_3_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_3_gag5(x1, x2, x3, x5, x6)
if_insert_3_in_4_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_4_gag5(x1, x2, x3, x5, x6)
if_insert_3_in_3_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_3_aag4(x2, x3, x5, x6)
less_2_in_ga2(x1, x2)  =  less_2_in_ga1(x1)
less_2_out_ga2(x1, x2)  =  less_2_out_ga2(x1, x2)
less_2_in_aa2(x1, x2)  =  less_2_in_aa
less_2_out_aa2(x1, x2)  =  less_2_out_aa2(x1, x2)
if_less_2_in_1_aa3(x1, x2, x3)  =  if_less_2_in_1_aa1(x3)
if_less_2_in_1_ga3(x1, x2, x3)  =  if_less_2_in_1_ga1(x3)
if_insert_3_in_4_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_4_aag5(x1, x2, x3, x5, x6)


Pi DP problem:
The TRS P consists of the following rules:

INSERT_3_IN_AAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> IF_INSERT_3_IN_1_AAG6(X, Y, Left, Right, Left1, less_2_in_ag2(X, Y))
INSERT_3_IN_AAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> LESS_2_IN_AG2(X, Y)
LESS_2_IN_AG2(s_11(X), s_11(Y)) -> IF_LESS_2_IN_1_AG3(X, Y, less_2_in_aa2(X, Y))
LESS_2_IN_AG2(s_11(X), s_11(Y)) -> LESS_2_IN_AA2(X, Y)
LESS_2_IN_AA2(s_11(X), s_11(Y)) -> IF_LESS_2_IN_1_AA3(X, Y, less_2_in_aa2(X, Y))
LESS_2_IN_AA2(s_11(X), s_11(Y)) -> LESS_2_IN_AA2(X, Y)
IF_INSERT_3_IN_1_AAG6(X, Y, Left, Right, Left1, less_2_out_ag2(X, Y)) -> IF_INSERT_3_IN_2_AAG6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
IF_INSERT_3_IN_1_AAG6(X, Y, Left, Right, Left1, less_2_out_ag2(X, Y)) -> INSERT_3_IN_GAG3(X, Left, Left1)
INSERT_3_IN_GAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> IF_INSERT_3_IN_1_GAG6(X, Y, Left, Right, Left1, less_2_in_gg2(X, Y))
INSERT_3_IN_GAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> LESS_2_IN_GG2(X, Y)
LESS_2_IN_GG2(s_11(X), s_11(Y)) -> IF_LESS_2_IN_1_GG3(X, Y, less_2_in_aa2(X, Y))
LESS_2_IN_GG2(s_11(X), s_11(Y)) -> LESS_2_IN_AA2(X, Y)
IF_INSERT_3_IN_1_GAG6(X, Y, Left, Right, Left1, less_2_out_gg2(X, Y)) -> IF_INSERT_3_IN_2_GAG6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
IF_INSERT_3_IN_1_GAG6(X, Y, Left, Right, Left1, less_2_out_gg2(X, Y)) -> INSERT_3_IN_GAG3(X, Left, Left1)
INSERT_3_IN_GAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> IF_INSERT_3_IN_3_GAG6(X, Y, Left, Right, Right1, less_2_in_gg2(Y, X))
INSERT_3_IN_GAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> LESS_2_IN_GG2(Y, X)
IF_INSERT_3_IN_3_GAG6(X, Y, Left, Right, Right1, less_2_out_gg2(Y, X)) -> IF_INSERT_3_IN_4_GAG6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
IF_INSERT_3_IN_3_GAG6(X, Y, Left, Right, Right1, less_2_out_gg2(Y, X)) -> INSERT_3_IN_GAG3(X, Right, Right1)
INSERT_3_IN_AAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> IF_INSERT_3_IN_3_AAG6(X, Y, Left, Right, Right1, less_2_in_ga2(Y, X))
INSERT_3_IN_AAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> LESS_2_IN_GA2(Y, X)
LESS_2_IN_GA2(s_11(X), s_11(Y)) -> IF_LESS_2_IN_1_GA3(X, Y, less_2_in_aa2(X, Y))
LESS_2_IN_GA2(s_11(X), s_11(Y)) -> LESS_2_IN_AA2(X, Y)
IF_INSERT_3_IN_3_AAG6(X, Y, Left, Right, Right1, less_2_out_ga2(Y, X)) -> IF_INSERT_3_IN_4_AAG6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
IF_INSERT_3_IN_3_AAG6(X, Y, Left, Right, Right1, less_2_out_ga2(Y, X)) -> INSERT_3_IN_GAG3(X, Right, Right1)

The TRS R consists of the following rules:

insert_3_in_aag3(X, void_0, tree_33(X, void_0, void_0)) -> insert_3_out_aag3(X, void_0, tree_33(X, void_0, void_0))
insert_3_in_aag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right)) -> insert_3_out_aag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right))
insert_3_in_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> if_insert_3_in_1_aag6(X, Y, Left, Right, Left1, less_2_in_ag2(X, Y))
less_2_in_ag2(0_0, s_11(underscore)) -> less_2_out_ag2(0_0, s_11(underscore))
less_2_in_ag2(s_11(X), s_11(Y)) -> if_less_2_in_1_ag3(X, Y, less_2_in_aa2(X, Y))
less_2_in_aa2(0_0, s_11(underscore)) -> less_2_out_aa2(0_0, s_11(underscore))
less_2_in_aa2(s_11(X), s_11(Y)) -> if_less_2_in_1_aa3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_aa3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_aa2(s_11(X), s_11(Y))
if_less_2_in_1_ag3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_ag2(s_11(X), s_11(Y))
if_insert_3_in_1_aag6(X, Y, Left, Right, Left1, less_2_out_ag2(X, Y)) -> if_insert_3_in_2_aag6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
insert_3_in_gag3(X, void_0, tree_33(X, void_0, void_0)) -> insert_3_out_gag3(X, void_0, tree_33(X, void_0, void_0))
insert_3_in_gag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right)) -> insert_3_out_gag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right))
insert_3_in_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> if_insert_3_in_1_gag6(X, Y, Left, Right, Left1, less_2_in_gg2(X, Y))
less_2_in_gg2(0_0, s_11(underscore)) -> less_2_out_gg2(0_0, s_11(underscore))
less_2_in_gg2(s_11(X), s_11(Y)) -> if_less_2_in_1_gg3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_gg3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_gg2(s_11(X), s_11(Y))
if_insert_3_in_1_gag6(X, Y, Left, Right, Left1, less_2_out_gg2(X, Y)) -> if_insert_3_in_2_gag6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
insert_3_in_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> if_insert_3_in_3_gag6(X, Y, Left, Right, Right1, less_2_in_gg2(Y, X))
if_insert_3_in_3_gag6(X, Y, Left, Right, Right1, less_2_out_gg2(Y, X)) -> if_insert_3_in_4_gag6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
if_insert_3_in_4_gag6(X, Y, Left, Right, Right1, insert_3_out_gag3(X, Right, Right1)) -> insert_3_out_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1))
if_insert_3_in_2_gag6(X, Y, Left, Right, Left1, insert_3_out_gag3(X, Left, Left1)) -> insert_3_out_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right))
if_insert_3_in_2_aag6(X, Y, Left, Right, Left1, insert_3_out_gag3(X, Left, Left1)) -> insert_3_out_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right))
insert_3_in_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> if_insert_3_in_3_aag6(X, Y, Left, Right, Right1, less_2_in_ga2(Y, X))
less_2_in_ga2(0_0, s_11(underscore)) -> less_2_out_ga2(0_0, s_11(underscore))
less_2_in_ga2(s_11(X), s_11(Y)) -> if_less_2_in_1_ga3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_ga3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_ga2(s_11(X), s_11(Y))
if_insert_3_in_3_aag6(X, Y, Left, Right, Right1, less_2_out_ga2(Y, X)) -> if_insert_3_in_4_aag6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
if_insert_3_in_4_aag6(X, Y, Left, Right, Right1, insert_3_out_gag3(X, Right, Right1)) -> insert_3_out_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1))

The argument filtering Pi contains the following mapping:
insert_3_in_aag3(x1, x2, x3)  =  insert_3_in_aag1(x3)
void_0  =  void_0
tree_33(x1, x2, x3)  =  tree_33(x1, x2, x3)
0_0  =  0_0
s_11(x1)  =  s_1
insert_3_out_aag3(x1, x2, x3)  =  insert_3_out_aag3(x1, x2, x3)
if_insert_3_in_1_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_1_aag4(x2, x4, x5, x6)
less_2_in_ag2(x1, x2)  =  less_2_in_ag1(x2)
less_2_out_ag2(x1, x2)  =  less_2_out_ag2(x1, x2)
if_less_2_in_1_ag3(x1, x2, x3)  =  if_less_2_in_1_ag1(x3)
if_insert_3_in_2_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_2_aag5(x1, x2, x4, x5, x6)
insert_3_in_gag3(x1, x2, x3)  =  insert_3_in_gag2(x1, x3)
insert_3_out_gag3(x1, x2, x3)  =  insert_3_out_gag3(x1, x2, x3)
if_insert_3_in_1_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_1_gag5(x1, x2, x4, x5, x6)
less_2_in_gg2(x1, x2)  =  less_2_in_gg2(x1, x2)
less_2_out_gg2(x1, x2)  =  less_2_out_gg2(x1, x2)
if_less_2_in_1_gg3(x1, x2, x3)  =  if_less_2_in_1_gg1(x3)
if_insert_3_in_2_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_2_gag5(x1, x2, x4, x5, x6)
if_insert_3_in_3_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_3_gag5(x1, x2, x3, x5, x6)
if_insert_3_in_4_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_4_gag5(x1, x2, x3, x5, x6)
if_insert_3_in_3_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_3_aag4(x2, x3, x5, x6)
less_2_in_ga2(x1, x2)  =  less_2_in_ga1(x1)
less_2_out_ga2(x1, x2)  =  less_2_out_ga2(x1, x2)
less_2_in_aa2(x1, x2)  =  less_2_in_aa
less_2_out_aa2(x1, x2)  =  less_2_out_aa2(x1, x2)
if_less_2_in_1_aa3(x1, x2, x3)  =  if_less_2_in_1_aa1(x3)
if_less_2_in_1_ga3(x1, x2, x3)  =  if_less_2_in_1_ga1(x3)
if_insert_3_in_4_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_4_aag5(x1, x2, x3, x5, x6)
IF_INSERT_3_IN_4_AAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_4_AAG5(x1, x2, x3, x5, x6)
LESS_2_IN_GA2(x1, x2)  =  LESS_2_IN_GA1(x1)
LESS_2_IN_AG2(x1, x2)  =  LESS_2_IN_AG1(x2)
IF_LESS_2_IN_1_AG3(x1, x2, x3)  =  IF_LESS_2_IN_1_AG1(x3)
IF_INSERT_3_IN_3_AAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_3_AAG4(x2, x3, x5, x6)
IF_INSERT_3_IN_4_GAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_4_GAG5(x1, x2, x3, x5, x6)
IF_LESS_2_IN_1_AA3(x1, x2, x3)  =  IF_LESS_2_IN_1_AA1(x3)
IF_INSERT_3_IN_1_AAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_1_AAG4(x2, x4, x5, x6)
IF_INSERT_3_IN_3_GAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_3_GAG5(x1, x2, x3, x5, x6)
IF_INSERT_3_IN_1_GAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_1_GAG5(x1, x2, x4, x5, x6)
IF_INSERT_3_IN_2_AAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_2_AAG5(x1, x2, x4, x5, x6)
IF_LESS_2_IN_1_GA3(x1, x2, x3)  =  IF_LESS_2_IN_1_GA1(x3)
INSERT_3_IN_AAG3(x1, x2, x3)  =  INSERT_3_IN_AAG1(x3)
LESS_2_IN_AA2(x1, x2)  =  LESS_2_IN_AA
IF_LESS_2_IN_1_GG3(x1, x2, x3)  =  IF_LESS_2_IN_1_GG1(x3)
IF_INSERT_3_IN_2_GAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_2_GAG5(x1, x2, x4, x5, x6)
INSERT_3_IN_GAG3(x1, x2, x3)  =  INSERT_3_IN_GAG2(x1, x3)
LESS_2_IN_GG2(x1, x2)  =  LESS_2_IN_GG2(x1, x2)

We have to consider all (P,R,Pi)-chains

↳ PROLOG
  ↳ PrologToPiTRSProof
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
PiDP
          ↳ DependencyGraphProof

Pi DP problem:
The TRS P consists of the following rules:

INSERT_3_IN_AAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> IF_INSERT_3_IN_1_AAG6(X, Y, Left, Right, Left1, less_2_in_ag2(X, Y))
INSERT_3_IN_AAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> LESS_2_IN_AG2(X, Y)
LESS_2_IN_AG2(s_11(X), s_11(Y)) -> IF_LESS_2_IN_1_AG3(X, Y, less_2_in_aa2(X, Y))
LESS_2_IN_AG2(s_11(X), s_11(Y)) -> LESS_2_IN_AA2(X, Y)
LESS_2_IN_AA2(s_11(X), s_11(Y)) -> IF_LESS_2_IN_1_AA3(X, Y, less_2_in_aa2(X, Y))
LESS_2_IN_AA2(s_11(X), s_11(Y)) -> LESS_2_IN_AA2(X, Y)
IF_INSERT_3_IN_1_AAG6(X, Y, Left, Right, Left1, less_2_out_ag2(X, Y)) -> IF_INSERT_3_IN_2_AAG6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
IF_INSERT_3_IN_1_AAG6(X, Y, Left, Right, Left1, less_2_out_ag2(X, Y)) -> INSERT_3_IN_GAG3(X, Left, Left1)
INSERT_3_IN_GAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> IF_INSERT_3_IN_1_GAG6(X, Y, Left, Right, Left1, less_2_in_gg2(X, Y))
INSERT_3_IN_GAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> LESS_2_IN_GG2(X, Y)
LESS_2_IN_GG2(s_11(X), s_11(Y)) -> IF_LESS_2_IN_1_GG3(X, Y, less_2_in_aa2(X, Y))
LESS_2_IN_GG2(s_11(X), s_11(Y)) -> LESS_2_IN_AA2(X, Y)
IF_INSERT_3_IN_1_GAG6(X, Y, Left, Right, Left1, less_2_out_gg2(X, Y)) -> IF_INSERT_3_IN_2_GAG6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
IF_INSERT_3_IN_1_GAG6(X, Y, Left, Right, Left1, less_2_out_gg2(X, Y)) -> INSERT_3_IN_GAG3(X, Left, Left1)
INSERT_3_IN_GAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> IF_INSERT_3_IN_3_GAG6(X, Y, Left, Right, Right1, less_2_in_gg2(Y, X))
INSERT_3_IN_GAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> LESS_2_IN_GG2(Y, X)
IF_INSERT_3_IN_3_GAG6(X, Y, Left, Right, Right1, less_2_out_gg2(Y, X)) -> IF_INSERT_3_IN_4_GAG6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
IF_INSERT_3_IN_3_GAG6(X, Y, Left, Right, Right1, less_2_out_gg2(Y, X)) -> INSERT_3_IN_GAG3(X, Right, Right1)
INSERT_3_IN_AAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> IF_INSERT_3_IN_3_AAG6(X, Y, Left, Right, Right1, less_2_in_ga2(Y, X))
INSERT_3_IN_AAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> LESS_2_IN_GA2(Y, X)
LESS_2_IN_GA2(s_11(X), s_11(Y)) -> IF_LESS_2_IN_1_GA3(X, Y, less_2_in_aa2(X, Y))
LESS_2_IN_GA2(s_11(X), s_11(Y)) -> LESS_2_IN_AA2(X, Y)
IF_INSERT_3_IN_3_AAG6(X, Y, Left, Right, Right1, less_2_out_ga2(Y, X)) -> IF_INSERT_3_IN_4_AAG6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
IF_INSERT_3_IN_3_AAG6(X, Y, Left, Right, Right1, less_2_out_ga2(Y, X)) -> INSERT_3_IN_GAG3(X, Right, Right1)

The TRS R consists of the following rules:

insert_3_in_aag3(X, void_0, tree_33(X, void_0, void_0)) -> insert_3_out_aag3(X, void_0, tree_33(X, void_0, void_0))
insert_3_in_aag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right)) -> insert_3_out_aag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right))
insert_3_in_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> if_insert_3_in_1_aag6(X, Y, Left, Right, Left1, less_2_in_ag2(X, Y))
less_2_in_ag2(0_0, s_11(underscore)) -> less_2_out_ag2(0_0, s_11(underscore))
less_2_in_ag2(s_11(X), s_11(Y)) -> if_less_2_in_1_ag3(X, Y, less_2_in_aa2(X, Y))
less_2_in_aa2(0_0, s_11(underscore)) -> less_2_out_aa2(0_0, s_11(underscore))
less_2_in_aa2(s_11(X), s_11(Y)) -> if_less_2_in_1_aa3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_aa3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_aa2(s_11(X), s_11(Y))
if_less_2_in_1_ag3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_ag2(s_11(X), s_11(Y))
if_insert_3_in_1_aag6(X, Y, Left, Right, Left1, less_2_out_ag2(X, Y)) -> if_insert_3_in_2_aag6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
insert_3_in_gag3(X, void_0, tree_33(X, void_0, void_0)) -> insert_3_out_gag3(X, void_0, tree_33(X, void_0, void_0))
insert_3_in_gag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right)) -> insert_3_out_gag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right))
insert_3_in_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> if_insert_3_in_1_gag6(X, Y, Left, Right, Left1, less_2_in_gg2(X, Y))
less_2_in_gg2(0_0, s_11(underscore)) -> less_2_out_gg2(0_0, s_11(underscore))
less_2_in_gg2(s_11(X), s_11(Y)) -> if_less_2_in_1_gg3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_gg3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_gg2(s_11(X), s_11(Y))
if_insert_3_in_1_gag6(X, Y, Left, Right, Left1, less_2_out_gg2(X, Y)) -> if_insert_3_in_2_gag6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
insert_3_in_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> if_insert_3_in_3_gag6(X, Y, Left, Right, Right1, less_2_in_gg2(Y, X))
if_insert_3_in_3_gag6(X, Y, Left, Right, Right1, less_2_out_gg2(Y, X)) -> if_insert_3_in_4_gag6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
if_insert_3_in_4_gag6(X, Y, Left, Right, Right1, insert_3_out_gag3(X, Right, Right1)) -> insert_3_out_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1))
if_insert_3_in_2_gag6(X, Y, Left, Right, Left1, insert_3_out_gag3(X, Left, Left1)) -> insert_3_out_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right))
if_insert_3_in_2_aag6(X, Y, Left, Right, Left1, insert_3_out_gag3(X, Left, Left1)) -> insert_3_out_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right))
insert_3_in_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> if_insert_3_in_3_aag6(X, Y, Left, Right, Right1, less_2_in_ga2(Y, X))
less_2_in_ga2(0_0, s_11(underscore)) -> less_2_out_ga2(0_0, s_11(underscore))
less_2_in_ga2(s_11(X), s_11(Y)) -> if_less_2_in_1_ga3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_ga3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_ga2(s_11(X), s_11(Y))
if_insert_3_in_3_aag6(X, Y, Left, Right, Right1, less_2_out_ga2(Y, X)) -> if_insert_3_in_4_aag6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
if_insert_3_in_4_aag6(X, Y, Left, Right, Right1, insert_3_out_gag3(X, Right, Right1)) -> insert_3_out_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1))

The argument filtering Pi contains the following mapping:
insert_3_in_aag3(x1, x2, x3)  =  insert_3_in_aag1(x3)
void_0  =  void_0
tree_33(x1, x2, x3)  =  tree_33(x1, x2, x3)
0_0  =  0_0
s_11(x1)  =  s_1
insert_3_out_aag3(x1, x2, x3)  =  insert_3_out_aag3(x1, x2, x3)
if_insert_3_in_1_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_1_aag4(x2, x4, x5, x6)
less_2_in_ag2(x1, x2)  =  less_2_in_ag1(x2)
less_2_out_ag2(x1, x2)  =  less_2_out_ag2(x1, x2)
if_less_2_in_1_ag3(x1, x2, x3)  =  if_less_2_in_1_ag1(x3)
if_insert_3_in_2_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_2_aag5(x1, x2, x4, x5, x6)
insert_3_in_gag3(x1, x2, x3)  =  insert_3_in_gag2(x1, x3)
insert_3_out_gag3(x1, x2, x3)  =  insert_3_out_gag3(x1, x2, x3)
if_insert_3_in_1_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_1_gag5(x1, x2, x4, x5, x6)
less_2_in_gg2(x1, x2)  =  less_2_in_gg2(x1, x2)
less_2_out_gg2(x1, x2)  =  less_2_out_gg2(x1, x2)
if_less_2_in_1_gg3(x1, x2, x3)  =  if_less_2_in_1_gg1(x3)
if_insert_3_in_2_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_2_gag5(x1, x2, x4, x5, x6)
if_insert_3_in_3_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_3_gag5(x1, x2, x3, x5, x6)
if_insert_3_in_4_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_4_gag5(x1, x2, x3, x5, x6)
if_insert_3_in_3_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_3_aag4(x2, x3, x5, x6)
less_2_in_ga2(x1, x2)  =  less_2_in_ga1(x1)
less_2_out_ga2(x1, x2)  =  less_2_out_ga2(x1, x2)
less_2_in_aa2(x1, x2)  =  less_2_in_aa
less_2_out_aa2(x1, x2)  =  less_2_out_aa2(x1, x2)
if_less_2_in_1_aa3(x1, x2, x3)  =  if_less_2_in_1_aa1(x3)
if_less_2_in_1_ga3(x1, x2, x3)  =  if_less_2_in_1_ga1(x3)
if_insert_3_in_4_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_4_aag5(x1, x2, x3, x5, x6)
IF_INSERT_3_IN_4_AAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_4_AAG5(x1, x2, x3, x5, x6)
LESS_2_IN_GA2(x1, x2)  =  LESS_2_IN_GA1(x1)
LESS_2_IN_AG2(x1, x2)  =  LESS_2_IN_AG1(x2)
IF_LESS_2_IN_1_AG3(x1, x2, x3)  =  IF_LESS_2_IN_1_AG1(x3)
IF_INSERT_3_IN_3_AAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_3_AAG4(x2, x3, x5, x6)
IF_INSERT_3_IN_4_GAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_4_GAG5(x1, x2, x3, x5, x6)
IF_LESS_2_IN_1_AA3(x1, x2, x3)  =  IF_LESS_2_IN_1_AA1(x3)
IF_INSERT_3_IN_1_AAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_1_AAG4(x2, x4, x5, x6)
IF_INSERT_3_IN_3_GAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_3_GAG5(x1, x2, x3, x5, x6)
IF_INSERT_3_IN_1_GAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_1_GAG5(x1, x2, x4, x5, x6)
IF_INSERT_3_IN_2_AAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_2_AAG5(x1, x2, x4, x5, x6)
IF_LESS_2_IN_1_GA3(x1, x2, x3)  =  IF_LESS_2_IN_1_GA1(x3)
INSERT_3_IN_AAG3(x1, x2, x3)  =  INSERT_3_IN_AAG1(x3)
LESS_2_IN_AA2(x1, x2)  =  LESS_2_IN_AA
IF_LESS_2_IN_1_GG3(x1, x2, x3)  =  IF_LESS_2_IN_1_GG1(x3)
IF_INSERT_3_IN_2_GAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_2_GAG5(x1, x2, x4, x5, x6)
INSERT_3_IN_GAG3(x1, x2, x3)  =  INSERT_3_IN_GAG2(x1, x3)
LESS_2_IN_GG2(x1, x2)  =  LESS_2_IN_GG2(x1, x2)

We have to consider all (P,R,Pi)-chains
The approximation of the Dependency Graph contains 2 SCCs with 19 less nodes.

↳ PROLOG
  ↳ PrologToPiTRSProof
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
PiDP
                ↳ UsableRulesProof
              ↳ PiDP

Pi DP problem:
The TRS P consists of the following rules:

LESS_2_IN_AA2(s_11(X), s_11(Y)) -> LESS_2_IN_AA2(X, Y)

The TRS R consists of the following rules:

insert_3_in_aag3(X, void_0, tree_33(X, void_0, void_0)) -> insert_3_out_aag3(X, void_0, tree_33(X, void_0, void_0))
insert_3_in_aag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right)) -> insert_3_out_aag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right))
insert_3_in_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> if_insert_3_in_1_aag6(X, Y, Left, Right, Left1, less_2_in_ag2(X, Y))
less_2_in_ag2(0_0, s_11(underscore)) -> less_2_out_ag2(0_0, s_11(underscore))
less_2_in_ag2(s_11(X), s_11(Y)) -> if_less_2_in_1_ag3(X, Y, less_2_in_aa2(X, Y))
less_2_in_aa2(0_0, s_11(underscore)) -> less_2_out_aa2(0_0, s_11(underscore))
less_2_in_aa2(s_11(X), s_11(Y)) -> if_less_2_in_1_aa3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_aa3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_aa2(s_11(X), s_11(Y))
if_less_2_in_1_ag3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_ag2(s_11(X), s_11(Y))
if_insert_3_in_1_aag6(X, Y, Left, Right, Left1, less_2_out_ag2(X, Y)) -> if_insert_3_in_2_aag6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
insert_3_in_gag3(X, void_0, tree_33(X, void_0, void_0)) -> insert_3_out_gag3(X, void_0, tree_33(X, void_0, void_0))
insert_3_in_gag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right)) -> insert_3_out_gag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right))
insert_3_in_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> if_insert_3_in_1_gag6(X, Y, Left, Right, Left1, less_2_in_gg2(X, Y))
less_2_in_gg2(0_0, s_11(underscore)) -> less_2_out_gg2(0_0, s_11(underscore))
less_2_in_gg2(s_11(X), s_11(Y)) -> if_less_2_in_1_gg3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_gg3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_gg2(s_11(X), s_11(Y))
if_insert_3_in_1_gag6(X, Y, Left, Right, Left1, less_2_out_gg2(X, Y)) -> if_insert_3_in_2_gag6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
insert_3_in_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> if_insert_3_in_3_gag6(X, Y, Left, Right, Right1, less_2_in_gg2(Y, X))
if_insert_3_in_3_gag6(X, Y, Left, Right, Right1, less_2_out_gg2(Y, X)) -> if_insert_3_in_4_gag6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
if_insert_3_in_4_gag6(X, Y, Left, Right, Right1, insert_3_out_gag3(X, Right, Right1)) -> insert_3_out_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1))
if_insert_3_in_2_gag6(X, Y, Left, Right, Left1, insert_3_out_gag3(X, Left, Left1)) -> insert_3_out_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right))
if_insert_3_in_2_aag6(X, Y, Left, Right, Left1, insert_3_out_gag3(X, Left, Left1)) -> insert_3_out_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right))
insert_3_in_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> if_insert_3_in_3_aag6(X, Y, Left, Right, Right1, less_2_in_ga2(Y, X))
less_2_in_ga2(0_0, s_11(underscore)) -> less_2_out_ga2(0_0, s_11(underscore))
less_2_in_ga2(s_11(X), s_11(Y)) -> if_less_2_in_1_ga3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_ga3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_ga2(s_11(X), s_11(Y))
if_insert_3_in_3_aag6(X, Y, Left, Right, Right1, less_2_out_ga2(Y, X)) -> if_insert_3_in_4_aag6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
if_insert_3_in_4_aag6(X, Y, Left, Right, Right1, insert_3_out_gag3(X, Right, Right1)) -> insert_3_out_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1))

The argument filtering Pi contains the following mapping:
insert_3_in_aag3(x1, x2, x3)  =  insert_3_in_aag1(x3)
void_0  =  void_0
tree_33(x1, x2, x3)  =  tree_33(x1, x2, x3)
0_0  =  0_0
s_11(x1)  =  s_1
insert_3_out_aag3(x1, x2, x3)  =  insert_3_out_aag3(x1, x2, x3)
if_insert_3_in_1_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_1_aag4(x2, x4, x5, x6)
less_2_in_ag2(x1, x2)  =  less_2_in_ag1(x2)
less_2_out_ag2(x1, x2)  =  less_2_out_ag2(x1, x2)
if_less_2_in_1_ag3(x1, x2, x3)  =  if_less_2_in_1_ag1(x3)
if_insert_3_in_2_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_2_aag5(x1, x2, x4, x5, x6)
insert_3_in_gag3(x1, x2, x3)  =  insert_3_in_gag2(x1, x3)
insert_3_out_gag3(x1, x2, x3)  =  insert_3_out_gag3(x1, x2, x3)
if_insert_3_in_1_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_1_gag5(x1, x2, x4, x5, x6)
less_2_in_gg2(x1, x2)  =  less_2_in_gg2(x1, x2)
less_2_out_gg2(x1, x2)  =  less_2_out_gg2(x1, x2)
if_less_2_in_1_gg3(x1, x2, x3)  =  if_less_2_in_1_gg1(x3)
if_insert_3_in_2_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_2_gag5(x1, x2, x4, x5, x6)
if_insert_3_in_3_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_3_gag5(x1, x2, x3, x5, x6)
if_insert_3_in_4_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_4_gag5(x1, x2, x3, x5, x6)
if_insert_3_in_3_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_3_aag4(x2, x3, x5, x6)
less_2_in_ga2(x1, x2)  =  less_2_in_ga1(x1)
less_2_out_ga2(x1, x2)  =  less_2_out_ga2(x1, x2)
less_2_in_aa2(x1, x2)  =  less_2_in_aa
less_2_out_aa2(x1, x2)  =  less_2_out_aa2(x1, x2)
if_less_2_in_1_aa3(x1, x2, x3)  =  if_less_2_in_1_aa1(x3)
if_less_2_in_1_ga3(x1, x2, x3)  =  if_less_2_in_1_ga1(x3)
if_insert_3_in_4_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_4_aag5(x1, x2, x3, x5, x6)
LESS_2_IN_AA2(x1, x2)  =  LESS_2_IN_AA

We have to consider all (P,R,Pi)-chains
For (infinitary) constructor rewriting we can delete all non-usable rules from R.

↳ PROLOG
  ↳ PrologToPiTRSProof
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
                ↳ UsableRulesProof
PiDP
              ↳ PiDP

Pi DP problem:
The TRS P consists of the following rules:

LESS_2_IN_AA2(s_11(X), s_11(Y)) -> LESS_2_IN_AA2(X, Y)

R is empty.
The argument filtering Pi contains the following mapping:
s_11(x1)  =  s_1
LESS_2_IN_AA2(x1, x2)  =  LESS_2_IN_AA

We have to consider all (P,R,Pi)-chains

↳ PROLOG
  ↳ PrologToPiTRSProof
  ↳ PrologToPiTRSProof
    ↳ PiTRS
      ↳ DependencyPairsProof
        ↳ PiDP
          ↳ DependencyGraphProof
            ↳ AND
              ↳ PiDP
PiDP

Pi DP problem:
The TRS P consists of the following rules:

INSERT_3_IN_GAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> IF_INSERT_3_IN_3_GAG6(X, Y, Left, Right, Right1, less_2_in_gg2(Y, X))
IF_INSERT_3_IN_3_GAG6(X, Y, Left, Right, Right1, less_2_out_gg2(Y, X)) -> INSERT_3_IN_GAG3(X, Right, Right1)
IF_INSERT_3_IN_1_GAG6(X, Y, Left, Right, Left1, less_2_out_gg2(X, Y)) -> INSERT_3_IN_GAG3(X, Left, Left1)
INSERT_3_IN_GAG3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> IF_INSERT_3_IN_1_GAG6(X, Y, Left, Right, Left1, less_2_in_gg2(X, Y))

The TRS R consists of the following rules:

insert_3_in_aag3(X, void_0, tree_33(X, void_0, void_0)) -> insert_3_out_aag3(X, void_0, tree_33(X, void_0, void_0))
insert_3_in_aag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right)) -> insert_3_out_aag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right))
insert_3_in_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> if_insert_3_in_1_aag6(X, Y, Left, Right, Left1, less_2_in_ag2(X, Y))
less_2_in_ag2(0_0, s_11(underscore)) -> less_2_out_ag2(0_0, s_11(underscore))
less_2_in_ag2(s_11(X), s_11(Y)) -> if_less_2_in_1_ag3(X, Y, less_2_in_aa2(X, Y))
less_2_in_aa2(0_0, s_11(underscore)) -> less_2_out_aa2(0_0, s_11(underscore))
less_2_in_aa2(s_11(X), s_11(Y)) -> if_less_2_in_1_aa3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_aa3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_aa2(s_11(X), s_11(Y))
if_less_2_in_1_ag3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_ag2(s_11(X), s_11(Y))
if_insert_3_in_1_aag6(X, Y, Left, Right, Left1, less_2_out_ag2(X, Y)) -> if_insert_3_in_2_aag6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
insert_3_in_gag3(X, void_0, tree_33(X, void_0, void_0)) -> insert_3_out_gag3(X, void_0, tree_33(X, void_0, void_0))
insert_3_in_gag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right)) -> insert_3_out_gag3(X, tree_33(X, Left, Right), tree_33(X, Left, Right))
insert_3_in_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right)) -> if_insert_3_in_1_gag6(X, Y, Left, Right, Left1, less_2_in_gg2(X, Y))
less_2_in_gg2(0_0, s_11(underscore)) -> less_2_out_gg2(0_0, s_11(underscore))
less_2_in_gg2(s_11(X), s_11(Y)) -> if_less_2_in_1_gg3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_gg3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_gg2(s_11(X), s_11(Y))
if_insert_3_in_1_gag6(X, Y, Left, Right, Left1, less_2_out_gg2(X, Y)) -> if_insert_3_in_2_gag6(X, Y, Left, Right, Left1, insert_3_in_gag3(X, Left, Left1))
insert_3_in_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> if_insert_3_in_3_gag6(X, Y, Left, Right, Right1, less_2_in_gg2(Y, X))
if_insert_3_in_3_gag6(X, Y, Left, Right, Right1, less_2_out_gg2(Y, X)) -> if_insert_3_in_4_gag6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
if_insert_3_in_4_gag6(X, Y, Left, Right, Right1, insert_3_out_gag3(X, Right, Right1)) -> insert_3_out_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1))
if_insert_3_in_2_gag6(X, Y, Left, Right, Left1, insert_3_out_gag3(X, Left, Left1)) -> insert_3_out_gag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right))
if_insert_3_in_2_aag6(X, Y, Left, Right, Left1, insert_3_out_gag3(X, Left, Left1)) -> insert_3_out_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left1, Right))
insert_3_in_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1)) -> if_insert_3_in_3_aag6(X, Y, Left, Right, Right1, less_2_in_ga2(Y, X))
less_2_in_ga2(0_0, s_11(underscore)) -> less_2_out_ga2(0_0, s_11(underscore))
less_2_in_ga2(s_11(X), s_11(Y)) -> if_less_2_in_1_ga3(X, Y, less_2_in_aa2(X, Y))
if_less_2_in_1_ga3(X, Y, less_2_out_aa2(X, Y)) -> less_2_out_ga2(s_11(X), s_11(Y))
if_insert_3_in_3_aag6(X, Y, Left, Right, Right1, less_2_out_ga2(Y, X)) -> if_insert_3_in_4_aag6(X, Y, Left, Right, Right1, insert_3_in_gag3(X, Right, Right1))
if_insert_3_in_4_aag6(X, Y, Left, Right, Right1, insert_3_out_gag3(X, Right, Right1)) -> insert_3_out_aag3(X, tree_33(Y, Left, Right), tree_33(Y, Left, Right1))

The argument filtering Pi contains the following mapping:
insert_3_in_aag3(x1, x2, x3)  =  insert_3_in_aag1(x3)
void_0  =  void_0
tree_33(x1, x2, x3)  =  tree_33(x1, x2, x3)
0_0  =  0_0
s_11(x1)  =  s_1
insert_3_out_aag3(x1, x2, x3)  =  insert_3_out_aag3(x1, x2, x3)
if_insert_3_in_1_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_1_aag4(x2, x4, x5, x6)
less_2_in_ag2(x1, x2)  =  less_2_in_ag1(x2)
less_2_out_ag2(x1, x2)  =  less_2_out_ag2(x1, x2)
if_less_2_in_1_ag3(x1, x2, x3)  =  if_less_2_in_1_ag1(x3)
if_insert_3_in_2_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_2_aag5(x1, x2, x4, x5, x6)
insert_3_in_gag3(x1, x2, x3)  =  insert_3_in_gag2(x1, x3)
insert_3_out_gag3(x1, x2, x3)  =  insert_3_out_gag3(x1, x2, x3)
if_insert_3_in_1_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_1_gag5(x1, x2, x4, x5, x6)
less_2_in_gg2(x1, x2)  =  less_2_in_gg2(x1, x2)
less_2_out_gg2(x1, x2)  =  less_2_out_gg2(x1, x2)
if_less_2_in_1_gg3(x1, x2, x3)  =  if_less_2_in_1_gg1(x3)
if_insert_3_in_2_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_2_gag5(x1, x2, x4, x5, x6)
if_insert_3_in_3_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_3_gag5(x1, x2, x3, x5, x6)
if_insert_3_in_4_gag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_4_gag5(x1, x2, x3, x5, x6)
if_insert_3_in_3_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_3_aag4(x2, x3, x5, x6)
less_2_in_ga2(x1, x2)  =  less_2_in_ga1(x1)
less_2_out_ga2(x1, x2)  =  less_2_out_ga2(x1, x2)
less_2_in_aa2(x1, x2)  =  less_2_in_aa
less_2_out_aa2(x1, x2)  =  less_2_out_aa2(x1, x2)
if_less_2_in_1_aa3(x1, x2, x3)  =  if_less_2_in_1_aa1(x3)
if_less_2_in_1_ga3(x1, x2, x3)  =  if_less_2_in_1_ga1(x3)
if_insert_3_in_4_aag6(x1, x2, x3, x4, x5, x6)  =  if_insert_3_in_4_aag5(x1, x2, x3, x5, x6)
IF_INSERT_3_IN_3_GAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_3_GAG5(x1, x2, x3, x5, x6)
IF_INSERT_3_IN_1_GAG6(x1, x2, x3, x4, x5, x6)  =  IF_INSERT_3_IN_1_GAG5(x1, x2, x4, x5, x6)
INSERT_3_IN_GAG3(x1, x2, x3)  =  INSERT_3_IN_GAG2(x1, x3)

We have to consider all (P,R,Pi)-chains