5.09/2.47 YES 5.42/2.50 proof of /export/starexec/sandbox/benchmark/theBenchmark.pl 5.42/2.50 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 5.42/2.50 5.42/2.50 5.42/2.50 Left Termination of the query pattern 5.42/2.50 5.42/2.50 delete(g,g,a) 5.42/2.50 5.42/2.50 w.r.t. the given Prolog program could successfully be proven: 5.42/2.50 5.42/2.50 (0) Prolog 5.42/2.50 (1) PrologToPiTRSProof [SOUND, 0 ms] 5.42/2.50 (2) PiTRS 5.42/2.50 (3) DependencyPairsProof [EQUIVALENT, 0 ms] 5.42/2.50 (4) PiDP 5.42/2.50 (5) DependencyGraphProof [EQUIVALENT, 2 ms] 5.42/2.50 (6) AND 5.42/2.50 (7) PiDP 5.42/2.50 (8) UsableRulesProof [EQUIVALENT, 0 ms] 5.42/2.50 (9) PiDP 5.42/2.50 (10) PiDPToQDPProof [EQUIVALENT, 0 ms] 5.42/2.50 (11) QDP 5.42/2.50 (12) QDPSizeChangeProof [EQUIVALENT, 1 ms] 5.42/2.50 (13) YES 5.42/2.50 (14) PiDP 5.42/2.50 (15) UsableRulesProof [EQUIVALENT, 0 ms] 5.42/2.50 (16) PiDP 5.42/2.50 (17) PiDPToQDPProof [SOUND, 0 ms] 5.42/2.50 (18) QDP 5.42/2.50 (19) QDPSizeChangeProof [EQUIVALENT, 0 ms] 5.42/2.50 (20) YES 5.42/2.50 (21) PiDP 5.42/2.50 (22) UsableRulesProof [EQUIVALENT, 0 ms] 5.42/2.50 (23) PiDP 5.42/2.50 (24) PiDPToQDPProof [SOUND, 0 ms] 5.42/2.50 (25) QDP 5.42/2.50 (26) QDPSizeChangeProof [EQUIVALENT, 0 ms] 5.42/2.50 (27) YES 5.42/2.50 5.42/2.50 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (0) 5.42/2.50 Obligation: 5.42/2.50 Clauses: 5.42/2.50 5.42/2.50 delete(X, tree(X, void, Right), Right). 5.42/2.50 delete(X, tree(X, Left, void), Left). 5.42/2.50 delete(X, tree(X, Left, Right), tree(Y, Left, Right1)) :- delmin(Right, Y, Right1). 5.42/2.50 delete(X, tree(Y, Left, Right), tree(Y, Left1, Right)) :- ','(less(X, Y), delete(X, Left, Left1)). 5.42/2.50 delete(X, tree(Y, Left, Right), tree(Y, Left, Right1)) :- ','(less(Y, X), delete(X, Right, Right1)). 5.42/2.50 delmin(tree(Y, void, Right), Y, Right). 5.42/2.50 delmin(tree(X, Left, X1), Y, tree(X, Left1, X2)) :- delmin(Left, Y, Left1). 5.42/2.50 less(0, s(X3)). 5.42/2.50 less(s(X), s(Y)) :- less(X, Y). 5.42/2.50 5.42/2.50 5.42/2.50 Query: delete(g,g,a) 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (1) PrologToPiTRSProof (SOUND) 5.42/2.50 We use the technique of [TOCL09]. With regard to the inferred argument filtering the predicates were used in the following modes: 5.42/2.50 5.42/2.50 delete_in_3: (b,b,f) 5.42/2.50 5.42/2.50 delmin_in_3: (b,f,f) 5.42/2.50 5.42/2.50 less_in_2: (b,b) 5.42/2.50 5.42/2.50 Transforming Prolog into the following Term Rewriting System: 5.42/2.50 5.42/2.50 Pi-finite rewrite system: 5.42/2.50 The TRS R consists of the following rules: 5.42/2.50 5.42/2.50 delete_in_gga(X, tree(X, void, Right), Right) -> delete_out_gga(X, tree(X, void, Right), Right) 5.42/2.50 delete_in_gga(X, tree(X, Left, void), Left) -> delete_out_gga(X, tree(X, Left, void), Left) 5.42/2.50 delete_in_gga(X, tree(X, Left, Right), tree(Y, Left, Right1)) -> U1_gga(X, Left, Right, Y, Right1, delmin_in_gaa(Right, Y, Right1)) 5.42/2.50 delmin_in_gaa(tree(Y, void, Right), Y, Right) -> delmin_out_gaa(tree(Y, void, Right), Y, Right) 5.42/2.50 delmin_in_gaa(tree(X, Left, X1), Y, tree(X, Left1, X2)) -> U6_gaa(X, Left, X1, Y, Left1, X2, delmin_in_gaa(Left, Y, Left1)) 5.42/2.50 U6_gaa(X, Left, X1, Y, Left1, X2, delmin_out_gaa(Left, Y, Left1)) -> delmin_out_gaa(tree(X, Left, X1), Y, tree(X, Left1, X2)) 5.42/2.50 U1_gga(X, Left, Right, Y, Right1, delmin_out_gaa(Right, Y, Right1)) -> delete_out_gga(X, tree(X, Left, Right), tree(Y, Left, Right1)) 5.42/2.50 delete_in_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right)) -> U2_gga(X, Y, Left, Right, Left1, less_in_gg(X, Y)) 5.42/2.50 less_in_gg(0, s(X3)) -> less_out_gg(0, s(X3)) 5.42/2.50 less_in_gg(s(X), s(Y)) -> U7_gg(X, Y, less_in_gg(X, Y)) 5.42/2.50 U7_gg(X, Y, less_out_gg(X, Y)) -> less_out_gg(s(X), s(Y)) 5.42/2.50 U2_gga(X, Y, Left, Right, Left1, less_out_gg(X, Y)) -> U3_gga(X, Y, Left, Right, Left1, delete_in_gga(X, Left, Left1)) 5.42/2.50 delete_in_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1)) -> U4_gga(X, Y, Left, Right, Right1, less_in_gg(Y, X)) 5.42/2.50 U4_gga(X, Y, Left, Right, Right1, less_out_gg(Y, X)) -> U5_gga(X, Y, Left, Right, Right1, delete_in_gga(X, Right, Right1)) 5.42/2.50 U5_gga(X, Y, Left, Right, Right1, delete_out_gga(X, Right, Right1)) -> delete_out_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1)) 5.42/2.50 U3_gga(X, Y, Left, Right, Left1, delete_out_gga(X, Left, Left1)) -> delete_out_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right)) 5.42/2.50 5.42/2.50 The argument filtering Pi contains the following mapping: 5.42/2.50 delete_in_gga(x1, x2, x3) = delete_in_gga(x1, x2) 5.42/2.50 5.42/2.50 tree(x1, x2, x3) = tree(x1, x2, x3) 5.42/2.50 5.42/2.50 void = void 5.42/2.50 5.42/2.50 delete_out_gga(x1, x2, x3) = delete_out_gga 5.42/2.50 5.42/2.50 U1_gga(x1, x2, x3, x4, x5, x6) = U1_gga(x6) 5.42/2.50 5.42/2.50 delmin_in_gaa(x1, x2, x3) = delmin_in_gaa(x1) 5.42/2.50 5.42/2.50 delmin_out_gaa(x1, x2, x3) = delmin_out_gaa(x2) 5.42/2.50 5.42/2.50 U6_gaa(x1, x2, x3, x4, x5, x6, x7) = U6_gaa(x7) 5.42/2.50 5.42/2.50 U2_gga(x1, x2, x3, x4, x5, x6) = U2_gga(x1, x3, x6) 5.42/2.50 5.42/2.50 less_in_gg(x1, x2) = less_in_gg(x1, x2) 5.42/2.50 5.42/2.50 0 = 0 5.42/2.50 5.42/2.50 s(x1) = s(x1) 5.42/2.50 5.42/2.50 less_out_gg(x1, x2) = less_out_gg 5.42/2.50 5.42/2.50 U7_gg(x1, x2, x3) = U7_gg(x3) 5.42/2.50 5.42/2.50 U3_gga(x1, x2, x3, x4, x5, x6) = U3_gga(x6) 5.42/2.50 5.42/2.50 U4_gga(x1, x2, x3, x4, x5, x6) = U4_gga(x1, x4, x6) 5.42/2.50 5.42/2.50 U5_gga(x1, x2, x3, x4, x5, x6) = U5_gga(x6) 5.42/2.50 5.42/2.50 5.42/2.50 5.42/2.50 5.42/2.50 5.42/2.50 Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog 5.42/2.50 5.42/2.50 5.42/2.50 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (2) 5.42/2.50 Obligation: 5.42/2.50 Pi-finite rewrite system: 5.42/2.50 The TRS R consists of the following rules: 5.42/2.50 5.42/2.50 delete_in_gga(X, tree(X, void, Right), Right) -> delete_out_gga(X, tree(X, void, Right), Right) 5.42/2.50 delete_in_gga(X, tree(X, Left, void), Left) -> delete_out_gga(X, tree(X, Left, void), Left) 5.42/2.50 delete_in_gga(X, tree(X, Left, Right), tree(Y, Left, Right1)) -> U1_gga(X, Left, Right, Y, Right1, delmin_in_gaa(Right, Y, Right1)) 5.42/2.50 delmin_in_gaa(tree(Y, void, Right), Y, Right) -> delmin_out_gaa(tree(Y, void, Right), Y, Right) 5.42/2.50 delmin_in_gaa(tree(X, Left, X1), Y, tree(X, Left1, X2)) -> U6_gaa(X, Left, X1, Y, Left1, X2, delmin_in_gaa(Left, Y, Left1)) 5.42/2.50 U6_gaa(X, Left, X1, Y, Left1, X2, delmin_out_gaa(Left, Y, Left1)) -> delmin_out_gaa(tree(X, Left, X1), Y, tree(X, Left1, X2)) 5.42/2.50 U1_gga(X, Left, Right, Y, Right1, delmin_out_gaa(Right, Y, Right1)) -> delete_out_gga(X, tree(X, Left, Right), tree(Y, Left, Right1)) 5.42/2.50 delete_in_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right)) -> U2_gga(X, Y, Left, Right, Left1, less_in_gg(X, Y)) 5.42/2.50 less_in_gg(0, s(X3)) -> less_out_gg(0, s(X3)) 5.42/2.50 less_in_gg(s(X), s(Y)) -> U7_gg(X, Y, less_in_gg(X, Y)) 5.42/2.50 U7_gg(X, Y, less_out_gg(X, Y)) -> less_out_gg(s(X), s(Y)) 5.42/2.50 U2_gga(X, Y, Left, Right, Left1, less_out_gg(X, Y)) -> U3_gga(X, Y, Left, Right, Left1, delete_in_gga(X, Left, Left1)) 5.42/2.50 delete_in_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1)) -> U4_gga(X, Y, Left, Right, Right1, less_in_gg(Y, X)) 5.42/2.50 U4_gga(X, Y, Left, Right, Right1, less_out_gg(Y, X)) -> U5_gga(X, Y, Left, Right, Right1, delete_in_gga(X, Right, Right1)) 5.42/2.50 U5_gga(X, Y, Left, Right, Right1, delete_out_gga(X, Right, Right1)) -> delete_out_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1)) 5.42/2.50 U3_gga(X, Y, Left, Right, Left1, delete_out_gga(X, Left, Left1)) -> delete_out_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right)) 5.42/2.50 5.42/2.50 The argument filtering Pi contains the following mapping: 5.42/2.50 delete_in_gga(x1, x2, x3) = delete_in_gga(x1, x2) 5.42/2.50 5.42/2.50 tree(x1, x2, x3) = tree(x1, x2, x3) 5.42/2.50 5.42/2.50 void = void 5.42/2.50 5.42/2.50 delete_out_gga(x1, x2, x3) = delete_out_gga 5.42/2.50 5.42/2.50 U1_gga(x1, x2, x3, x4, x5, x6) = U1_gga(x6) 5.42/2.50 5.42/2.50 delmin_in_gaa(x1, x2, x3) = delmin_in_gaa(x1) 5.42/2.50 5.42/2.50 delmin_out_gaa(x1, x2, x3) = delmin_out_gaa(x2) 5.42/2.50 5.42/2.50 U6_gaa(x1, x2, x3, x4, x5, x6, x7) = U6_gaa(x7) 5.42/2.50 5.42/2.50 U2_gga(x1, x2, x3, x4, x5, x6) = U2_gga(x1, x3, x6) 5.42/2.50 5.42/2.50 less_in_gg(x1, x2) = less_in_gg(x1, x2) 5.42/2.50 5.42/2.50 0 = 0 5.42/2.50 5.42/2.50 s(x1) = s(x1) 5.42/2.50 5.42/2.50 less_out_gg(x1, x2) = less_out_gg 5.42/2.50 5.42/2.50 U7_gg(x1, x2, x3) = U7_gg(x3) 5.42/2.50 5.42/2.50 U3_gga(x1, x2, x3, x4, x5, x6) = U3_gga(x6) 5.42/2.50 5.42/2.50 U4_gga(x1, x2, x3, x4, x5, x6) = U4_gga(x1, x4, x6) 5.42/2.50 5.42/2.50 U5_gga(x1, x2, x3, x4, x5, x6) = U5_gga(x6) 5.42/2.50 5.42/2.50 5.42/2.50 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (3) DependencyPairsProof (EQUIVALENT) 5.42/2.50 Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem: 5.42/2.50 Pi DP problem: 5.42/2.50 The TRS P consists of the following rules: 5.42/2.50 5.42/2.50 DELETE_IN_GGA(X, tree(X, Left, Right), tree(Y, Left, Right1)) -> U1_GGA(X, Left, Right, Y, Right1, delmin_in_gaa(Right, Y, Right1)) 5.42/2.50 DELETE_IN_GGA(X, tree(X, Left, Right), tree(Y, Left, Right1)) -> DELMIN_IN_GAA(Right, Y, Right1) 5.42/2.50 DELMIN_IN_GAA(tree(X, Left, X1), Y, tree(X, Left1, X2)) -> U6_GAA(X, Left, X1, Y, Left1, X2, delmin_in_gaa(Left, Y, Left1)) 5.42/2.50 DELMIN_IN_GAA(tree(X, Left, X1), Y, tree(X, Left1, X2)) -> DELMIN_IN_GAA(Left, Y, Left1) 5.42/2.50 DELETE_IN_GGA(X, tree(Y, Left, Right), tree(Y, Left1, Right)) -> U2_GGA(X, Y, Left, Right, Left1, less_in_gg(X, Y)) 5.42/2.50 DELETE_IN_GGA(X, tree(Y, Left, Right), tree(Y, Left1, Right)) -> LESS_IN_GG(X, Y) 5.42/2.50 LESS_IN_GG(s(X), s(Y)) -> U7_GG(X, Y, less_in_gg(X, Y)) 5.42/2.50 LESS_IN_GG(s(X), s(Y)) -> LESS_IN_GG(X, Y) 5.42/2.50 U2_GGA(X, Y, Left, Right, Left1, less_out_gg(X, Y)) -> U3_GGA(X, Y, Left, Right, Left1, delete_in_gga(X, Left, Left1)) 5.42/2.50 U2_GGA(X, Y, Left, Right, Left1, less_out_gg(X, Y)) -> DELETE_IN_GGA(X, Left, Left1) 5.42/2.50 DELETE_IN_GGA(X, tree(Y, Left, Right), tree(Y, Left, Right1)) -> U4_GGA(X, Y, Left, Right, Right1, less_in_gg(Y, X)) 5.42/2.50 DELETE_IN_GGA(X, tree(Y, Left, Right), tree(Y, Left, Right1)) -> LESS_IN_GG(Y, X) 5.42/2.50 U4_GGA(X, Y, Left, Right, Right1, less_out_gg(Y, X)) -> U5_GGA(X, Y, Left, Right, Right1, delete_in_gga(X, Right, Right1)) 5.42/2.50 U4_GGA(X, Y, Left, Right, Right1, less_out_gg(Y, X)) -> DELETE_IN_GGA(X, Right, Right1) 5.42/2.50 5.42/2.50 The TRS R consists of the following rules: 5.42/2.50 5.42/2.50 delete_in_gga(X, tree(X, void, Right), Right) -> delete_out_gga(X, tree(X, void, Right), Right) 5.42/2.50 delete_in_gga(X, tree(X, Left, void), Left) -> delete_out_gga(X, tree(X, Left, void), Left) 5.42/2.50 delete_in_gga(X, tree(X, Left, Right), tree(Y, Left, Right1)) -> U1_gga(X, Left, Right, Y, Right1, delmin_in_gaa(Right, Y, Right1)) 5.42/2.50 delmin_in_gaa(tree(Y, void, Right), Y, Right) -> delmin_out_gaa(tree(Y, void, Right), Y, Right) 5.42/2.50 delmin_in_gaa(tree(X, Left, X1), Y, tree(X, Left1, X2)) -> U6_gaa(X, Left, X1, Y, Left1, X2, delmin_in_gaa(Left, Y, Left1)) 5.42/2.50 U6_gaa(X, Left, X1, Y, Left1, X2, delmin_out_gaa(Left, Y, Left1)) -> delmin_out_gaa(tree(X, Left, X1), Y, tree(X, Left1, X2)) 5.42/2.50 U1_gga(X, Left, Right, Y, Right1, delmin_out_gaa(Right, Y, Right1)) -> delete_out_gga(X, tree(X, Left, Right), tree(Y, Left, Right1)) 5.42/2.50 delete_in_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right)) -> U2_gga(X, Y, Left, Right, Left1, less_in_gg(X, Y)) 5.42/2.50 less_in_gg(0, s(X3)) -> less_out_gg(0, s(X3)) 5.42/2.50 less_in_gg(s(X), s(Y)) -> U7_gg(X, Y, less_in_gg(X, Y)) 5.42/2.50 U7_gg(X, Y, less_out_gg(X, Y)) -> less_out_gg(s(X), s(Y)) 5.42/2.50 U2_gga(X, Y, Left, Right, Left1, less_out_gg(X, Y)) -> U3_gga(X, Y, Left, Right, Left1, delete_in_gga(X, Left, Left1)) 5.42/2.50 delete_in_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1)) -> U4_gga(X, Y, Left, Right, Right1, less_in_gg(Y, X)) 5.42/2.50 U4_gga(X, Y, Left, Right, Right1, less_out_gg(Y, X)) -> U5_gga(X, Y, Left, Right, Right1, delete_in_gga(X, Right, Right1)) 5.42/2.50 U5_gga(X, Y, Left, Right, Right1, delete_out_gga(X, Right, Right1)) -> delete_out_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1)) 5.42/2.50 U3_gga(X, Y, Left, Right, Left1, delete_out_gga(X, Left, Left1)) -> delete_out_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right)) 5.42/2.50 5.42/2.50 The argument filtering Pi contains the following mapping: 5.42/2.50 delete_in_gga(x1, x2, x3) = delete_in_gga(x1, x2) 5.42/2.50 5.42/2.50 tree(x1, x2, x3) = tree(x1, x2, x3) 5.42/2.50 5.42/2.50 void = void 5.42/2.50 5.42/2.50 delete_out_gga(x1, x2, x3) = delete_out_gga 5.42/2.50 5.42/2.50 U1_gga(x1, x2, x3, x4, x5, x6) = U1_gga(x6) 5.42/2.50 5.42/2.50 delmin_in_gaa(x1, x2, x3) = delmin_in_gaa(x1) 5.42/2.50 5.42/2.50 delmin_out_gaa(x1, x2, x3) = delmin_out_gaa(x2) 5.42/2.50 5.42/2.50 U6_gaa(x1, x2, x3, x4, x5, x6, x7) = U6_gaa(x7) 5.42/2.50 5.42/2.50 U2_gga(x1, x2, x3, x4, x5, x6) = U2_gga(x1, x3, x6) 5.42/2.50 5.42/2.50 less_in_gg(x1, x2) = less_in_gg(x1, x2) 5.42/2.50 5.42/2.50 0 = 0 5.42/2.50 5.42/2.50 s(x1) = s(x1) 5.42/2.50 5.42/2.50 less_out_gg(x1, x2) = less_out_gg 5.42/2.50 5.42/2.50 U7_gg(x1, x2, x3) = U7_gg(x3) 5.42/2.50 5.42/2.50 U3_gga(x1, x2, x3, x4, x5, x6) = U3_gga(x6) 5.42/2.50 5.42/2.50 U4_gga(x1, x2, x3, x4, x5, x6) = U4_gga(x1, x4, x6) 5.42/2.50 5.42/2.50 U5_gga(x1, x2, x3, x4, x5, x6) = U5_gga(x6) 5.42/2.50 5.42/2.50 DELETE_IN_GGA(x1, x2, x3) = DELETE_IN_GGA(x1, x2) 5.42/2.50 5.42/2.50 U1_GGA(x1, x2, x3, x4, x5, x6) = U1_GGA(x6) 5.42/2.50 5.42/2.50 DELMIN_IN_GAA(x1, x2, x3) = DELMIN_IN_GAA(x1) 5.42/2.50 5.42/2.50 U6_GAA(x1, x2, x3, x4, x5, x6, x7) = U6_GAA(x7) 5.42/2.50 5.42/2.50 U2_GGA(x1, x2, x3, x4, x5, x6) = U2_GGA(x1, x3, x6) 5.42/2.50 5.42/2.50 LESS_IN_GG(x1, x2) = LESS_IN_GG(x1, x2) 5.42/2.50 5.42/2.50 U7_GG(x1, x2, x3) = U7_GG(x3) 5.42/2.50 5.42/2.50 U3_GGA(x1, x2, x3, x4, x5, x6) = U3_GGA(x6) 5.42/2.50 5.42/2.50 U4_GGA(x1, x2, x3, x4, x5, x6) = U4_GGA(x1, x4, x6) 5.42/2.50 5.42/2.50 U5_GGA(x1, x2, x3, x4, x5, x6) = U5_GGA(x6) 5.42/2.50 5.42/2.50 5.42/2.50 We have to consider all (P,R,Pi)-chains 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (4) 5.42/2.50 Obligation: 5.42/2.50 Pi DP problem: 5.42/2.50 The TRS P consists of the following rules: 5.42/2.50 5.42/2.50 DELETE_IN_GGA(X, tree(X, Left, Right), tree(Y, Left, Right1)) -> U1_GGA(X, Left, Right, Y, Right1, delmin_in_gaa(Right, Y, Right1)) 5.42/2.50 DELETE_IN_GGA(X, tree(X, Left, Right), tree(Y, Left, Right1)) -> DELMIN_IN_GAA(Right, Y, Right1) 5.42/2.50 DELMIN_IN_GAA(tree(X, Left, X1), Y, tree(X, Left1, X2)) -> U6_GAA(X, Left, X1, Y, Left1, X2, delmin_in_gaa(Left, Y, Left1)) 5.42/2.50 DELMIN_IN_GAA(tree(X, Left, X1), Y, tree(X, Left1, X2)) -> DELMIN_IN_GAA(Left, Y, Left1) 5.42/2.50 DELETE_IN_GGA(X, tree(Y, Left, Right), tree(Y, Left1, Right)) -> U2_GGA(X, Y, Left, Right, Left1, less_in_gg(X, Y)) 5.42/2.50 DELETE_IN_GGA(X, tree(Y, Left, Right), tree(Y, Left1, Right)) -> LESS_IN_GG(X, Y) 5.42/2.50 LESS_IN_GG(s(X), s(Y)) -> U7_GG(X, Y, less_in_gg(X, Y)) 5.42/2.50 LESS_IN_GG(s(X), s(Y)) -> LESS_IN_GG(X, Y) 5.42/2.50 U2_GGA(X, Y, Left, Right, Left1, less_out_gg(X, Y)) -> U3_GGA(X, Y, Left, Right, Left1, delete_in_gga(X, Left, Left1)) 5.42/2.50 U2_GGA(X, Y, Left, Right, Left1, less_out_gg(X, Y)) -> DELETE_IN_GGA(X, Left, Left1) 5.42/2.50 DELETE_IN_GGA(X, tree(Y, Left, Right), tree(Y, Left, Right1)) -> U4_GGA(X, Y, Left, Right, Right1, less_in_gg(Y, X)) 5.42/2.50 DELETE_IN_GGA(X, tree(Y, Left, Right), tree(Y, Left, Right1)) -> LESS_IN_GG(Y, X) 5.42/2.50 U4_GGA(X, Y, Left, Right, Right1, less_out_gg(Y, X)) -> U5_GGA(X, Y, Left, Right, Right1, delete_in_gga(X, Right, Right1)) 5.42/2.50 U4_GGA(X, Y, Left, Right, Right1, less_out_gg(Y, X)) -> DELETE_IN_GGA(X, Right, Right1) 5.42/2.50 5.42/2.50 The TRS R consists of the following rules: 5.42/2.50 5.42/2.50 delete_in_gga(X, tree(X, void, Right), Right) -> delete_out_gga(X, tree(X, void, Right), Right) 5.42/2.50 delete_in_gga(X, tree(X, Left, void), Left) -> delete_out_gga(X, tree(X, Left, void), Left) 5.42/2.50 delete_in_gga(X, tree(X, Left, Right), tree(Y, Left, Right1)) -> U1_gga(X, Left, Right, Y, Right1, delmin_in_gaa(Right, Y, Right1)) 5.42/2.50 delmin_in_gaa(tree(Y, void, Right), Y, Right) -> delmin_out_gaa(tree(Y, void, Right), Y, Right) 5.42/2.50 delmin_in_gaa(tree(X, Left, X1), Y, tree(X, Left1, X2)) -> U6_gaa(X, Left, X1, Y, Left1, X2, delmin_in_gaa(Left, Y, Left1)) 5.42/2.50 U6_gaa(X, Left, X1, Y, Left1, X2, delmin_out_gaa(Left, Y, Left1)) -> delmin_out_gaa(tree(X, Left, X1), Y, tree(X, Left1, X2)) 5.42/2.50 U1_gga(X, Left, Right, Y, Right1, delmin_out_gaa(Right, Y, Right1)) -> delete_out_gga(X, tree(X, Left, Right), tree(Y, Left, Right1)) 5.42/2.50 delete_in_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right)) -> U2_gga(X, Y, Left, Right, Left1, less_in_gg(X, Y)) 5.42/2.50 less_in_gg(0, s(X3)) -> less_out_gg(0, s(X3)) 5.42/2.50 less_in_gg(s(X), s(Y)) -> U7_gg(X, Y, less_in_gg(X, Y)) 5.42/2.50 U7_gg(X, Y, less_out_gg(X, Y)) -> less_out_gg(s(X), s(Y)) 5.42/2.50 U2_gga(X, Y, Left, Right, Left1, less_out_gg(X, Y)) -> U3_gga(X, Y, Left, Right, Left1, delete_in_gga(X, Left, Left1)) 5.42/2.50 delete_in_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1)) -> U4_gga(X, Y, Left, Right, Right1, less_in_gg(Y, X)) 5.42/2.50 U4_gga(X, Y, Left, Right, Right1, less_out_gg(Y, X)) -> U5_gga(X, Y, Left, Right, Right1, delete_in_gga(X, Right, Right1)) 5.42/2.50 U5_gga(X, Y, Left, Right, Right1, delete_out_gga(X, Right, Right1)) -> delete_out_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1)) 5.42/2.50 U3_gga(X, Y, Left, Right, Left1, delete_out_gga(X, Left, Left1)) -> delete_out_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right)) 5.42/2.50 5.42/2.50 The argument filtering Pi contains the following mapping: 5.42/2.50 delete_in_gga(x1, x2, x3) = delete_in_gga(x1, x2) 5.42/2.50 5.42/2.50 tree(x1, x2, x3) = tree(x1, x2, x3) 5.42/2.50 5.42/2.50 void = void 5.42/2.50 5.42/2.50 delete_out_gga(x1, x2, x3) = delete_out_gga 5.42/2.50 5.42/2.50 U1_gga(x1, x2, x3, x4, x5, x6) = U1_gga(x6) 5.42/2.50 5.42/2.50 delmin_in_gaa(x1, x2, x3) = delmin_in_gaa(x1) 5.42/2.50 5.42/2.50 delmin_out_gaa(x1, x2, x3) = delmin_out_gaa(x2) 5.42/2.50 5.42/2.50 U6_gaa(x1, x2, x3, x4, x5, x6, x7) = U6_gaa(x7) 5.42/2.50 5.42/2.50 U2_gga(x1, x2, x3, x4, x5, x6) = U2_gga(x1, x3, x6) 5.42/2.50 5.42/2.50 less_in_gg(x1, x2) = less_in_gg(x1, x2) 5.42/2.50 5.42/2.50 0 = 0 5.42/2.50 5.42/2.50 s(x1) = s(x1) 5.42/2.50 5.42/2.50 less_out_gg(x1, x2) = less_out_gg 5.42/2.50 5.42/2.50 U7_gg(x1, x2, x3) = U7_gg(x3) 5.42/2.50 5.42/2.50 U3_gga(x1, x2, x3, x4, x5, x6) = U3_gga(x6) 5.42/2.50 5.42/2.50 U4_gga(x1, x2, x3, x4, x5, x6) = U4_gga(x1, x4, x6) 5.42/2.50 5.42/2.50 U5_gga(x1, x2, x3, x4, x5, x6) = U5_gga(x6) 5.42/2.50 5.42/2.50 DELETE_IN_GGA(x1, x2, x3) = DELETE_IN_GGA(x1, x2) 5.42/2.50 5.42/2.50 U1_GGA(x1, x2, x3, x4, x5, x6) = U1_GGA(x6) 5.42/2.50 5.42/2.50 DELMIN_IN_GAA(x1, x2, x3) = DELMIN_IN_GAA(x1) 5.42/2.50 5.42/2.50 U6_GAA(x1, x2, x3, x4, x5, x6, x7) = U6_GAA(x7) 5.42/2.50 5.42/2.50 U2_GGA(x1, x2, x3, x4, x5, x6) = U2_GGA(x1, x3, x6) 5.42/2.50 5.42/2.50 LESS_IN_GG(x1, x2) = LESS_IN_GG(x1, x2) 5.42/2.50 5.42/2.50 U7_GG(x1, x2, x3) = U7_GG(x3) 5.42/2.50 5.42/2.50 U3_GGA(x1, x2, x3, x4, x5, x6) = U3_GGA(x6) 5.42/2.50 5.42/2.50 U4_GGA(x1, x2, x3, x4, x5, x6) = U4_GGA(x1, x4, x6) 5.42/2.50 5.42/2.50 U5_GGA(x1, x2, x3, x4, x5, x6) = U5_GGA(x6) 5.42/2.50 5.42/2.50 5.42/2.50 We have to consider all (P,R,Pi)-chains 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (5) DependencyGraphProof (EQUIVALENT) 5.42/2.50 The approximation of the Dependency Graph [LOPSTR] contains 3 SCCs with 8 less nodes. 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (6) 5.42/2.50 Complex Obligation (AND) 5.42/2.50 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (7) 5.42/2.50 Obligation: 5.42/2.50 Pi DP problem: 5.42/2.50 The TRS P consists of the following rules: 5.42/2.50 5.42/2.50 LESS_IN_GG(s(X), s(Y)) -> LESS_IN_GG(X, Y) 5.42/2.50 5.42/2.50 The TRS R consists of the following rules: 5.42/2.50 5.42/2.50 delete_in_gga(X, tree(X, void, Right), Right) -> delete_out_gga(X, tree(X, void, Right), Right) 5.42/2.50 delete_in_gga(X, tree(X, Left, void), Left) -> delete_out_gga(X, tree(X, Left, void), Left) 5.42/2.50 delete_in_gga(X, tree(X, Left, Right), tree(Y, Left, Right1)) -> U1_gga(X, Left, Right, Y, Right1, delmin_in_gaa(Right, Y, Right1)) 5.42/2.50 delmin_in_gaa(tree(Y, void, Right), Y, Right) -> delmin_out_gaa(tree(Y, void, Right), Y, Right) 5.42/2.50 delmin_in_gaa(tree(X, Left, X1), Y, tree(X, Left1, X2)) -> U6_gaa(X, Left, X1, Y, Left1, X2, delmin_in_gaa(Left, Y, Left1)) 5.42/2.50 U6_gaa(X, Left, X1, Y, Left1, X2, delmin_out_gaa(Left, Y, Left1)) -> delmin_out_gaa(tree(X, Left, X1), Y, tree(X, Left1, X2)) 5.42/2.50 U1_gga(X, Left, Right, Y, Right1, delmin_out_gaa(Right, Y, Right1)) -> delete_out_gga(X, tree(X, Left, Right), tree(Y, Left, Right1)) 5.42/2.50 delete_in_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right)) -> U2_gga(X, Y, Left, Right, Left1, less_in_gg(X, Y)) 5.42/2.50 less_in_gg(0, s(X3)) -> less_out_gg(0, s(X3)) 5.42/2.50 less_in_gg(s(X), s(Y)) -> U7_gg(X, Y, less_in_gg(X, Y)) 5.42/2.50 U7_gg(X, Y, less_out_gg(X, Y)) -> less_out_gg(s(X), s(Y)) 5.42/2.50 U2_gga(X, Y, Left, Right, Left1, less_out_gg(X, Y)) -> U3_gga(X, Y, Left, Right, Left1, delete_in_gga(X, Left, Left1)) 5.42/2.50 delete_in_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1)) -> U4_gga(X, Y, Left, Right, Right1, less_in_gg(Y, X)) 5.42/2.50 U4_gga(X, Y, Left, Right, Right1, less_out_gg(Y, X)) -> U5_gga(X, Y, Left, Right, Right1, delete_in_gga(X, Right, Right1)) 5.42/2.50 U5_gga(X, Y, Left, Right, Right1, delete_out_gga(X, Right, Right1)) -> delete_out_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1)) 5.42/2.50 U3_gga(X, Y, Left, Right, Left1, delete_out_gga(X, Left, Left1)) -> delete_out_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right)) 5.42/2.50 5.42/2.50 The argument filtering Pi contains the following mapping: 5.42/2.50 delete_in_gga(x1, x2, x3) = delete_in_gga(x1, x2) 5.42/2.50 5.42/2.50 tree(x1, x2, x3) = tree(x1, x2, x3) 5.42/2.50 5.42/2.50 void = void 5.42/2.50 5.42/2.50 delete_out_gga(x1, x2, x3) = delete_out_gga 5.42/2.50 5.42/2.50 U1_gga(x1, x2, x3, x4, x5, x6) = U1_gga(x6) 5.42/2.50 5.42/2.50 delmin_in_gaa(x1, x2, x3) = delmin_in_gaa(x1) 5.42/2.50 5.42/2.50 delmin_out_gaa(x1, x2, x3) = delmin_out_gaa(x2) 5.42/2.50 5.42/2.50 U6_gaa(x1, x2, x3, x4, x5, x6, x7) = U6_gaa(x7) 5.42/2.50 5.42/2.50 U2_gga(x1, x2, x3, x4, x5, x6) = U2_gga(x1, x3, x6) 5.42/2.50 5.42/2.50 less_in_gg(x1, x2) = less_in_gg(x1, x2) 5.42/2.50 5.42/2.50 0 = 0 5.42/2.50 5.42/2.50 s(x1) = s(x1) 5.42/2.50 5.42/2.50 less_out_gg(x1, x2) = less_out_gg 5.42/2.50 5.42/2.50 U7_gg(x1, x2, x3) = U7_gg(x3) 5.42/2.50 5.42/2.50 U3_gga(x1, x2, x3, x4, x5, x6) = U3_gga(x6) 5.42/2.50 5.42/2.50 U4_gga(x1, x2, x3, x4, x5, x6) = U4_gga(x1, x4, x6) 5.42/2.50 5.42/2.50 U5_gga(x1, x2, x3, x4, x5, x6) = U5_gga(x6) 5.42/2.50 5.42/2.50 LESS_IN_GG(x1, x2) = LESS_IN_GG(x1, x2) 5.42/2.50 5.42/2.50 5.42/2.50 We have to consider all (P,R,Pi)-chains 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (8) UsableRulesProof (EQUIVALENT) 5.42/2.50 For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R. 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (9) 5.42/2.50 Obligation: 5.42/2.50 Pi DP problem: 5.42/2.50 The TRS P consists of the following rules: 5.42/2.50 5.42/2.50 LESS_IN_GG(s(X), s(Y)) -> LESS_IN_GG(X, Y) 5.42/2.50 5.42/2.50 R is empty. 5.42/2.50 Pi is empty. 5.42/2.50 We have to consider all (P,R,Pi)-chains 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (10) PiDPToQDPProof (EQUIVALENT) 5.42/2.50 Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi. 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (11) 5.42/2.50 Obligation: 5.42/2.50 Q DP problem: 5.42/2.50 The TRS P consists of the following rules: 5.42/2.50 5.42/2.50 LESS_IN_GG(s(X), s(Y)) -> LESS_IN_GG(X, Y) 5.42/2.50 5.42/2.50 R is empty. 5.42/2.50 Q is empty. 5.42/2.50 We have to consider all (P,Q,R)-chains. 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (12) QDPSizeChangeProof (EQUIVALENT) 5.42/2.50 By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem. 5.42/2.50 5.42/2.50 From the DPs we obtained the following set of size-change graphs: 5.42/2.50 *LESS_IN_GG(s(X), s(Y)) -> LESS_IN_GG(X, Y) 5.42/2.50 The graph contains the following edges 1 > 1, 2 > 2 5.42/2.50 5.42/2.50 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (13) 5.42/2.50 YES 5.42/2.50 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (14) 5.42/2.50 Obligation: 5.42/2.50 Pi DP problem: 5.42/2.50 The TRS P consists of the following rules: 5.42/2.50 5.42/2.50 DELMIN_IN_GAA(tree(X, Left, X1), Y, tree(X, Left1, X2)) -> DELMIN_IN_GAA(Left, Y, Left1) 5.42/2.50 5.42/2.50 The TRS R consists of the following rules: 5.42/2.50 5.42/2.50 delete_in_gga(X, tree(X, void, Right), Right) -> delete_out_gga(X, tree(X, void, Right), Right) 5.42/2.50 delete_in_gga(X, tree(X, Left, void), Left) -> delete_out_gga(X, tree(X, Left, void), Left) 5.42/2.50 delete_in_gga(X, tree(X, Left, Right), tree(Y, Left, Right1)) -> U1_gga(X, Left, Right, Y, Right1, delmin_in_gaa(Right, Y, Right1)) 5.42/2.50 delmin_in_gaa(tree(Y, void, Right), Y, Right) -> delmin_out_gaa(tree(Y, void, Right), Y, Right) 5.42/2.50 delmin_in_gaa(tree(X, Left, X1), Y, tree(X, Left1, X2)) -> U6_gaa(X, Left, X1, Y, Left1, X2, delmin_in_gaa(Left, Y, Left1)) 5.42/2.50 U6_gaa(X, Left, X1, Y, Left1, X2, delmin_out_gaa(Left, Y, Left1)) -> delmin_out_gaa(tree(X, Left, X1), Y, tree(X, Left1, X2)) 5.42/2.50 U1_gga(X, Left, Right, Y, Right1, delmin_out_gaa(Right, Y, Right1)) -> delete_out_gga(X, tree(X, Left, Right), tree(Y, Left, Right1)) 5.42/2.50 delete_in_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right)) -> U2_gga(X, Y, Left, Right, Left1, less_in_gg(X, Y)) 5.42/2.50 less_in_gg(0, s(X3)) -> less_out_gg(0, s(X3)) 5.42/2.50 less_in_gg(s(X), s(Y)) -> U7_gg(X, Y, less_in_gg(X, Y)) 5.42/2.50 U7_gg(X, Y, less_out_gg(X, Y)) -> less_out_gg(s(X), s(Y)) 5.42/2.50 U2_gga(X, Y, Left, Right, Left1, less_out_gg(X, Y)) -> U3_gga(X, Y, Left, Right, Left1, delete_in_gga(X, Left, Left1)) 5.42/2.50 delete_in_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1)) -> U4_gga(X, Y, Left, Right, Right1, less_in_gg(Y, X)) 5.42/2.50 U4_gga(X, Y, Left, Right, Right1, less_out_gg(Y, X)) -> U5_gga(X, Y, Left, Right, Right1, delete_in_gga(X, Right, Right1)) 5.42/2.50 U5_gga(X, Y, Left, Right, Right1, delete_out_gga(X, Right, Right1)) -> delete_out_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1)) 5.42/2.50 U3_gga(X, Y, Left, Right, Left1, delete_out_gga(X, Left, Left1)) -> delete_out_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right)) 5.42/2.50 5.42/2.50 The argument filtering Pi contains the following mapping: 5.42/2.50 delete_in_gga(x1, x2, x3) = delete_in_gga(x1, x2) 5.42/2.50 5.42/2.50 tree(x1, x2, x3) = tree(x1, x2, x3) 5.42/2.50 5.42/2.50 void = void 5.42/2.50 5.42/2.50 delete_out_gga(x1, x2, x3) = delete_out_gga 5.42/2.50 5.42/2.50 U1_gga(x1, x2, x3, x4, x5, x6) = U1_gga(x6) 5.42/2.50 5.42/2.50 delmin_in_gaa(x1, x2, x3) = delmin_in_gaa(x1) 5.42/2.50 5.42/2.50 delmin_out_gaa(x1, x2, x3) = delmin_out_gaa(x2) 5.42/2.50 5.42/2.50 U6_gaa(x1, x2, x3, x4, x5, x6, x7) = U6_gaa(x7) 5.42/2.50 5.42/2.50 U2_gga(x1, x2, x3, x4, x5, x6) = U2_gga(x1, x3, x6) 5.42/2.50 5.42/2.50 less_in_gg(x1, x2) = less_in_gg(x1, x2) 5.42/2.50 5.42/2.50 0 = 0 5.42/2.50 5.42/2.50 s(x1) = s(x1) 5.42/2.50 5.42/2.50 less_out_gg(x1, x2) = less_out_gg 5.42/2.50 5.42/2.50 U7_gg(x1, x2, x3) = U7_gg(x3) 5.42/2.50 5.42/2.50 U3_gga(x1, x2, x3, x4, x5, x6) = U3_gga(x6) 5.42/2.50 5.42/2.50 U4_gga(x1, x2, x3, x4, x5, x6) = U4_gga(x1, x4, x6) 5.42/2.50 5.42/2.50 U5_gga(x1, x2, x3, x4, x5, x6) = U5_gga(x6) 5.42/2.50 5.42/2.50 DELMIN_IN_GAA(x1, x2, x3) = DELMIN_IN_GAA(x1) 5.42/2.50 5.42/2.50 5.42/2.50 We have to consider all (P,R,Pi)-chains 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (15) UsableRulesProof (EQUIVALENT) 5.42/2.50 For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R. 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (16) 5.42/2.50 Obligation: 5.42/2.50 Pi DP problem: 5.42/2.50 The TRS P consists of the following rules: 5.42/2.50 5.42/2.50 DELMIN_IN_GAA(tree(X, Left, X1), Y, tree(X, Left1, X2)) -> DELMIN_IN_GAA(Left, Y, Left1) 5.42/2.50 5.42/2.50 R is empty. 5.42/2.50 The argument filtering Pi contains the following mapping: 5.42/2.50 tree(x1, x2, x3) = tree(x1, x2, x3) 5.42/2.50 5.42/2.50 DELMIN_IN_GAA(x1, x2, x3) = DELMIN_IN_GAA(x1) 5.42/2.50 5.42/2.50 5.42/2.50 We have to consider all (P,R,Pi)-chains 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (17) PiDPToQDPProof (SOUND) 5.42/2.50 Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi. 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (18) 5.42/2.50 Obligation: 5.42/2.50 Q DP problem: 5.42/2.50 The TRS P consists of the following rules: 5.42/2.50 5.42/2.50 DELMIN_IN_GAA(tree(X, Left, X1)) -> DELMIN_IN_GAA(Left) 5.42/2.50 5.42/2.50 R is empty. 5.42/2.50 Q is empty. 5.42/2.50 We have to consider all (P,Q,R)-chains. 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (19) QDPSizeChangeProof (EQUIVALENT) 5.42/2.50 By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem. 5.42/2.50 5.42/2.50 From the DPs we obtained the following set of size-change graphs: 5.42/2.50 *DELMIN_IN_GAA(tree(X, Left, X1)) -> DELMIN_IN_GAA(Left) 5.42/2.50 The graph contains the following edges 1 > 1 5.42/2.50 5.42/2.50 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (20) 5.42/2.50 YES 5.42/2.50 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (21) 5.42/2.50 Obligation: 5.42/2.50 Pi DP problem: 5.42/2.50 The TRS P consists of the following rules: 5.42/2.50 5.42/2.50 DELETE_IN_GGA(X, tree(Y, Left, Right), tree(Y, Left1, Right)) -> U2_GGA(X, Y, Left, Right, Left1, less_in_gg(X, Y)) 5.42/2.50 U2_GGA(X, Y, Left, Right, Left1, less_out_gg(X, Y)) -> DELETE_IN_GGA(X, Left, Left1) 5.42/2.50 DELETE_IN_GGA(X, tree(Y, Left, Right), tree(Y, Left, Right1)) -> U4_GGA(X, Y, Left, Right, Right1, less_in_gg(Y, X)) 5.42/2.50 U4_GGA(X, Y, Left, Right, Right1, less_out_gg(Y, X)) -> DELETE_IN_GGA(X, Right, Right1) 5.42/2.50 5.42/2.50 The TRS R consists of the following rules: 5.42/2.50 5.42/2.50 delete_in_gga(X, tree(X, void, Right), Right) -> delete_out_gga(X, tree(X, void, Right), Right) 5.42/2.50 delete_in_gga(X, tree(X, Left, void), Left) -> delete_out_gga(X, tree(X, Left, void), Left) 5.42/2.50 delete_in_gga(X, tree(X, Left, Right), tree(Y, Left, Right1)) -> U1_gga(X, Left, Right, Y, Right1, delmin_in_gaa(Right, Y, Right1)) 5.42/2.50 delmin_in_gaa(tree(Y, void, Right), Y, Right) -> delmin_out_gaa(tree(Y, void, Right), Y, Right) 5.42/2.50 delmin_in_gaa(tree(X, Left, X1), Y, tree(X, Left1, X2)) -> U6_gaa(X, Left, X1, Y, Left1, X2, delmin_in_gaa(Left, Y, Left1)) 5.42/2.50 U6_gaa(X, Left, X1, Y, Left1, X2, delmin_out_gaa(Left, Y, Left1)) -> delmin_out_gaa(tree(X, Left, X1), Y, tree(X, Left1, X2)) 5.42/2.50 U1_gga(X, Left, Right, Y, Right1, delmin_out_gaa(Right, Y, Right1)) -> delete_out_gga(X, tree(X, Left, Right), tree(Y, Left, Right1)) 5.42/2.50 delete_in_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right)) -> U2_gga(X, Y, Left, Right, Left1, less_in_gg(X, Y)) 5.42/2.50 less_in_gg(0, s(X3)) -> less_out_gg(0, s(X3)) 5.42/2.50 less_in_gg(s(X), s(Y)) -> U7_gg(X, Y, less_in_gg(X, Y)) 5.42/2.50 U7_gg(X, Y, less_out_gg(X, Y)) -> less_out_gg(s(X), s(Y)) 5.42/2.50 U2_gga(X, Y, Left, Right, Left1, less_out_gg(X, Y)) -> U3_gga(X, Y, Left, Right, Left1, delete_in_gga(X, Left, Left1)) 5.42/2.50 delete_in_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1)) -> U4_gga(X, Y, Left, Right, Right1, less_in_gg(Y, X)) 5.42/2.50 U4_gga(X, Y, Left, Right, Right1, less_out_gg(Y, X)) -> U5_gga(X, Y, Left, Right, Right1, delete_in_gga(X, Right, Right1)) 5.42/2.50 U5_gga(X, Y, Left, Right, Right1, delete_out_gga(X, Right, Right1)) -> delete_out_gga(X, tree(Y, Left, Right), tree(Y, Left, Right1)) 5.42/2.50 U3_gga(X, Y, Left, Right, Left1, delete_out_gga(X, Left, Left1)) -> delete_out_gga(X, tree(Y, Left, Right), tree(Y, Left1, Right)) 5.42/2.50 5.42/2.50 The argument filtering Pi contains the following mapping: 5.42/2.50 delete_in_gga(x1, x2, x3) = delete_in_gga(x1, x2) 5.42/2.50 5.42/2.50 tree(x1, x2, x3) = tree(x1, x2, x3) 5.42/2.50 5.42/2.50 void = void 5.42/2.50 5.42/2.50 delete_out_gga(x1, x2, x3) = delete_out_gga 5.42/2.50 5.42/2.50 U1_gga(x1, x2, x3, x4, x5, x6) = U1_gga(x6) 5.42/2.50 5.42/2.50 delmin_in_gaa(x1, x2, x3) = delmin_in_gaa(x1) 5.42/2.50 5.42/2.50 delmin_out_gaa(x1, x2, x3) = delmin_out_gaa(x2) 5.42/2.50 5.42/2.50 U6_gaa(x1, x2, x3, x4, x5, x6, x7) = U6_gaa(x7) 5.42/2.50 5.42/2.50 U2_gga(x1, x2, x3, x4, x5, x6) = U2_gga(x1, x3, x6) 5.42/2.50 5.42/2.50 less_in_gg(x1, x2) = less_in_gg(x1, x2) 5.42/2.50 5.42/2.50 0 = 0 5.42/2.50 5.42/2.50 s(x1) = s(x1) 5.42/2.50 5.42/2.50 less_out_gg(x1, x2) = less_out_gg 5.42/2.50 5.42/2.50 U7_gg(x1, x2, x3) = U7_gg(x3) 5.42/2.50 5.42/2.50 U3_gga(x1, x2, x3, x4, x5, x6) = U3_gga(x6) 5.42/2.50 5.42/2.50 U4_gga(x1, x2, x3, x4, x5, x6) = U4_gga(x1, x4, x6) 5.42/2.50 5.42/2.50 U5_gga(x1, x2, x3, x4, x5, x6) = U5_gga(x6) 5.42/2.50 5.42/2.50 DELETE_IN_GGA(x1, x2, x3) = DELETE_IN_GGA(x1, x2) 5.42/2.50 5.42/2.50 U2_GGA(x1, x2, x3, x4, x5, x6) = U2_GGA(x1, x3, x6) 5.42/2.50 5.42/2.50 U4_GGA(x1, x2, x3, x4, x5, x6) = U4_GGA(x1, x4, x6) 5.42/2.50 5.42/2.50 5.42/2.50 We have to consider all (P,R,Pi)-chains 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (22) UsableRulesProof (EQUIVALENT) 5.42/2.50 For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R. 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (23) 5.42/2.50 Obligation: 5.42/2.50 Pi DP problem: 5.42/2.50 The TRS P consists of the following rules: 5.42/2.50 5.42/2.50 DELETE_IN_GGA(X, tree(Y, Left, Right), tree(Y, Left1, Right)) -> U2_GGA(X, Y, Left, Right, Left1, less_in_gg(X, Y)) 5.42/2.50 U2_GGA(X, Y, Left, Right, Left1, less_out_gg(X, Y)) -> DELETE_IN_GGA(X, Left, Left1) 5.42/2.50 DELETE_IN_GGA(X, tree(Y, Left, Right), tree(Y, Left, Right1)) -> U4_GGA(X, Y, Left, Right, Right1, less_in_gg(Y, X)) 5.42/2.50 U4_GGA(X, Y, Left, Right, Right1, less_out_gg(Y, X)) -> DELETE_IN_GGA(X, Right, Right1) 5.42/2.50 5.42/2.50 The TRS R consists of the following rules: 5.42/2.50 5.42/2.50 less_in_gg(0, s(X3)) -> less_out_gg(0, s(X3)) 5.42/2.50 less_in_gg(s(X), s(Y)) -> U7_gg(X, Y, less_in_gg(X, Y)) 5.42/2.50 U7_gg(X, Y, less_out_gg(X, Y)) -> less_out_gg(s(X), s(Y)) 5.42/2.50 5.42/2.50 The argument filtering Pi contains the following mapping: 5.42/2.50 tree(x1, x2, x3) = tree(x1, x2, x3) 5.42/2.50 5.42/2.50 less_in_gg(x1, x2) = less_in_gg(x1, x2) 5.42/2.50 5.42/2.50 0 = 0 5.42/2.50 5.42/2.50 s(x1) = s(x1) 5.42/2.50 5.42/2.50 less_out_gg(x1, x2) = less_out_gg 5.42/2.50 5.42/2.50 U7_gg(x1, x2, x3) = U7_gg(x3) 5.42/2.50 5.42/2.50 DELETE_IN_GGA(x1, x2, x3) = DELETE_IN_GGA(x1, x2) 5.42/2.50 5.42/2.50 U2_GGA(x1, x2, x3, x4, x5, x6) = U2_GGA(x1, x3, x6) 5.42/2.50 5.42/2.50 U4_GGA(x1, x2, x3, x4, x5, x6) = U4_GGA(x1, x4, x6) 5.42/2.50 5.42/2.50 5.42/2.50 We have to consider all (P,R,Pi)-chains 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (24) PiDPToQDPProof (SOUND) 5.42/2.50 Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi. 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (25) 5.42/2.50 Obligation: 5.42/2.50 Q DP problem: 5.42/2.50 The TRS P consists of the following rules: 5.42/2.50 5.42/2.50 DELETE_IN_GGA(X, tree(Y, Left, Right)) -> U2_GGA(X, Left, less_in_gg(X, Y)) 5.42/2.50 U2_GGA(X, Left, less_out_gg) -> DELETE_IN_GGA(X, Left) 5.42/2.50 DELETE_IN_GGA(X, tree(Y, Left, Right)) -> U4_GGA(X, Right, less_in_gg(Y, X)) 5.42/2.50 U4_GGA(X, Right, less_out_gg) -> DELETE_IN_GGA(X, Right) 5.42/2.50 5.42/2.50 The TRS R consists of the following rules: 5.42/2.50 5.42/2.50 less_in_gg(0, s(X3)) -> less_out_gg 5.42/2.50 less_in_gg(s(X), s(Y)) -> U7_gg(less_in_gg(X, Y)) 5.42/2.50 U7_gg(less_out_gg) -> less_out_gg 5.42/2.50 5.42/2.50 The set Q consists of the following terms: 5.42/2.50 5.42/2.50 less_in_gg(x0, x1) 5.42/2.50 U7_gg(x0) 5.42/2.50 5.42/2.50 We have to consider all (P,Q,R)-chains. 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (26) QDPSizeChangeProof (EQUIVALENT) 5.42/2.50 By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem. 5.42/2.50 5.42/2.50 From the DPs we obtained the following set of size-change graphs: 5.42/2.50 *U2_GGA(X, Left, less_out_gg) -> DELETE_IN_GGA(X, Left) 5.42/2.50 The graph contains the following edges 1 >= 1, 2 >= 2 5.42/2.50 5.42/2.50 5.42/2.50 *U4_GGA(X, Right, less_out_gg) -> DELETE_IN_GGA(X, Right) 5.42/2.50 The graph contains the following edges 1 >= 1, 2 >= 2 5.42/2.50 5.42/2.50 5.42/2.50 *DELETE_IN_GGA(X, tree(Y, Left, Right)) -> U2_GGA(X, Left, less_in_gg(X, Y)) 5.42/2.50 The graph contains the following edges 1 >= 1, 2 > 2 5.42/2.50 5.42/2.50 5.42/2.50 *DELETE_IN_GGA(X, tree(Y, Left, Right)) -> U4_GGA(X, Right, less_in_gg(Y, X)) 5.42/2.50 The graph contains the following edges 1 >= 1, 2 > 2 5.42/2.50 5.42/2.50 5.42/2.50 ---------------------------------------- 5.42/2.50 5.42/2.50 (27) 5.42/2.50 YES 5.58/2.55 EOF