8.91/3.14 YES 8.91/3.16 proof of /export/starexec/sandbox/benchmark/theBenchmark.pl 8.91/3.16 # AProVE Commit ID: 48fb2092695e11cc9f56e44b17a92a5f88ffb256 marcel 20180622 unpublished dirty 8.91/3.16 8.91/3.16 8.91/3.16 Left Termination of the query pattern 8.91/3.16 8.91/3.16 p(g) 8.91/3.16 8.91/3.16 w.r.t. the given Prolog program could successfully be proven: 8.91/3.16 8.91/3.16 (0) Prolog 8.91/3.16 (1) PrologToPiTRSProof [SOUND, 0 ms] 8.91/3.16 (2) PiTRS 8.91/3.16 (3) DependencyPairsProof [EQUIVALENT, 16 ms] 8.91/3.16 (4) PiDP 8.91/3.16 (5) DependencyGraphProof [EQUIVALENT, 0 ms] 8.91/3.16 (6) AND 8.91/3.16 (7) PiDP 8.91/3.16 (8) UsableRulesProof [EQUIVALENT, 0 ms] 8.91/3.16 (9) PiDP 8.91/3.16 (10) PiDPToQDPProof [SOUND, 0 ms] 8.91/3.16 (11) QDP 8.91/3.16 (12) QDPSizeChangeProof [EQUIVALENT, 0 ms] 8.91/3.16 (13) YES 8.91/3.16 (14) PiDP 8.91/3.16 (15) UsableRulesProof [EQUIVALENT, 0 ms] 8.91/3.16 (16) PiDP 8.91/3.16 (17) PiDPToQDPProof [SOUND, 0 ms] 8.91/3.16 (18) QDP 8.91/3.16 (19) QDPSizeChangeProof [EQUIVALENT, 0 ms] 8.91/3.16 (20) YES 8.91/3.16 (21) PiDP 8.91/3.16 (22) PiDPToQDPProof [SOUND, 5 ms] 8.91/3.16 (23) QDP 8.91/3.16 (24) QDPQMonotonicMRRProof [EQUIVALENT, 71 ms] 8.91/3.16 (25) QDP 8.91/3.16 (26) DependencyGraphProof [EQUIVALENT, 0 ms] 8.91/3.16 (27) QDP 8.91/3.16 (28) UsableRulesProof [EQUIVALENT, 0 ms] 8.91/3.16 (29) QDP 8.91/3.16 (30) QReductionProof [EQUIVALENT, 0 ms] 8.91/3.16 (31) QDP 8.91/3.16 (32) UsableRulesReductionPairsProof [EQUIVALENT, 0 ms] 8.91/3.16 (33) QDP 8.91/3.16 (34) PisEmptyProof [EQUIVALENT, 0 ms] 8.91/3.16 (35) YES 8.91/3.16 8.91/3.16 8.91/3.16 ---------------------------------------- 8.91/3.16 8.91/3.16 (0) 8.91/3.16 Obligation: 8.91/3.16 Clauses: 8.91/3.16 8.91/3.16 p(.(X, [])). 8.91/3.16 p(.(s(s(X)), .(Y, Xs))) :- ','(p(.(X, .(Y, Xs))), ','(mult(X, Y, Z), p(.(Z, Xs)))). 8.91/3.16 p(.(0, Xs)) :- p(Xs). 8.91/3.16 sum(X, 0, X). 8.91/3.16 sum(X, s(Y), s(Z)) :- sum(X, Y, Z). 8.91/3.16 mult(X1, 0, 0). 8.91/3.16 mult(X, s(Y), Z) :- ','(mult(X, Y, W), sum(W, X, Z)). 8.91/3.16 8.91/3.16 8.91/3.16 Query: p(g) 8.91/3.16 ---------------------------------------- 8.91/3.16 8.91/3.16 (1) PrologToPiTRSProof (SOUND) 8.91/3.16 We use the technique of [TOCL09]. With regard to the inferred argument filtering the predicates were used in the following modes: 8.91/3.16 8.91/3.16 p_in_1: (b) 8.91/3.16 8.91/3.16 mult_in_3: (b,b,f) 8.91/3.16 8.91/3.16 sum_in_3: (b,b,f) 8.91/3.16 8.91/3.16 Transforming Prolog into the following Term Rewriting System: 8.91/3.16 8.91/3.16 Pi-finite rewrite system: 8.91/3.16 The TRS R consists of the following rules: 8.91/3.16 8.91/3.16 p_in_g(.(X, [])) -> p_out_g(.(X, [])) 8.91/3.16 p_in_g(.(s(s(X)), .(Y, Xs))) -> U1_g(X, Y, Xs, p_in_g(.(X, .(Y, Xs)))) 8.91/3.16 p_in_g(.(0, Xs)) -> U4_g(Xs, p_in_g(Xs)) 8.91/3.16 U4_g(Xs, p_out_g(Xs)) -> p_out_g(.(0, Xs)) 8.91/3.16 U1_g(X, Y, Xs, p_out_g(.(X, .(Y, Xs)))) -> U2_g(X, Y, Xs, mult_in_gga(X, Y, Z)) 8.91/3.16 mult_in_gga(X1, 0, 0) -> mult_out_gga(X1, 0, 0) 8.91/3.16 mult_in_gga(X, s(Y), Z) -> U6_gga(X, Y, Z, mult_in_gga(X, Y, W)) 8.91/3.16 U6_gga(X, Y, Z, mult_out_gga(X, Y, W)) -> U7_gga(X, Y, Z, sum_in_gga(W, X, Z)) 8.91/3.16 sum_in_gga(X, 0, X) -> sum_out_gga(X, 0, X) 8.91/3.16 sum_in_gga(X, s(Y), s(Z)) -> U5_gga(X, Y, Z, sum_in_gga(X, Y, Z)) 8.91/3.16 U5_gga(X, Y, Z, sum_out_gga(X, Y, Z)) -> sum_out_gga(X, s(Y), s(Z)) 8.91/3.16 U7_gga(X, Y, Z, sum_out_gga(W, X, Z)) -> mult_out_gga(X, s(Y), Z) 8.91/3.16 U2_g(X, Y, Xs, mult_out_gga(X, Y, Z)) -> U3_g(X, Y, Xs, p_in_g(.(Z, Xs))) 8.91/3.16 U3_g(X, Y, Xs, p_out_g(.(Z, Xs))) -> p_out_g(.(s(s(X)), .(Y, Xs))) 8.91/3.16 8.91/3.16 The argument filtering Pi contains the following mapping: 8.91/3.16 p_in_g(x1) = p_in_g(x1) 8.91/3.16 8.91/3.16 .(x1, x2) = .(x1, x2) 8.91/3.16 8.91/3.16 [] = [] 8.91/3.16 8.91/3.16 p_out_g(x1) = p_out_g(x1) 8.91/3.16 8.91/3.16 s(x1) = s(x1) 8.91/3.16 8.91/3.16 U1_g(x1, x2, x3, x4) = U1_g(x1, x2, x3, x4) 8.91/3.16 8.91/3.16 0 = 0 8.91/3.16 8.91/3.16 U4_g(x1, x2) = U4_g(x1, x2) 8.91/3.16 8.91/3.16 U2_g(x1, x2, x3, x4) = U2_g(x1, x2, x3, x4) 8.91/3.16 8.91/3.16 mult_in_gga(x1, x2, x3) = mult_in_gga(x1, x2) 8.91/3.16 8.91/3.16 mult_out_gga(x1, x2, x3) = mult_out_gga(x1, x2, x3) 8.91/3.16 8.91/3.16 U6_gga(x1, x2, x3, x4) = U6_gga(x1, x2, x4) 8.91/3.16 8.91/3.16 U7_gga(x1, x2, x3, x4) = U7_gga(x1, x2, x4) 8.91/3.16 8.91/3.16 sum_in_gga(x1, x2, x3) = sum_in_gga(x1, x2) 8.91/3.16 8.91/3.16 sum_out_gga(x1, x2, x3) = sum_out_gga(x1, x2, x3) 8.91/3.16 8.91/3.16 U5_gga(x1, x2, x3, x4) = U5_gga(x1, x2, x4) 8.91/3.16 8.91/3.16 U3_g(x1, x2, x3, x4) = U3_g(x1, x2, x3, x4) 8.91/3.16 8.91/3.16 8.91/3.16 8.91/3.16 8.91/3.16 8.91/3.16 Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog 8.91/3.16 8.91/3.16 8.91/3.16 8.91/3.16 ---------------------------------------- 8.91/3.16 8.91/3.16 (2) 8.91/3.16 Obligation: 8.91/3.16 Pi-finite rewrite system: 8.91/3.16 The TRS R consists of the following rules: 8.91/3.16 8.91/3.16 p_in_g(.(X, [])) -> p_out_g(.(X, [])) 8.91/3.16 p_in_g(.(s(s(X)), .(Y, Xs))) -> U1_g(X, Y, Xs, p_in_g(.(X, .(Y, Xs)))) 8.91/3.16 p_in_g(.(0, Xs)) -> U4_g(Xs, p_in_g(Xs)) 8.91/3.16 U4_g(Xs, p_out_g(Xs)) -> p_out_g(.(0, Xs)) 8.91/3.16 U1_g(X, Y, Xs, p_out_g(.(X, .(Y, Xs)))) -> U2_g(X, Y, Xs, mult_in_gga(X, Y, Z)) 8.91/3.16 mult_in_gga(X1, 0, 0) -> mult_out_gga(X1, 0, 0) 8.91/3.16 mult_in_gga(X, s(Y), Z) -> U6_gga(X, Y, Z, mult_in_gga(X, Y, W)) 8.91/3.16 U6_gga(X, Y, Z, mult_out_gga(X, Y, W)) -> U7_gga(X, Y, Z, sum_in_gga(W, X, Z)) 8.91/3.16 sum_in_gga(X, 0, X) -> sum_out_gga(X, 0, X) 8.91/3.16 sum_in_gga(X, s(Y), s(Z)) -> U5_gga(X, Y, Z, sum_in_gga(X, Y, Z)) 8.91/3.16 U5_gga(X, Y, Z, sum_out_gga(X, Y, Z)) -> sum_out_gga(X, s(Y), s(Z)) 8.91/3.16 U7_gga(X, Y, Z, sum_out_gga(W, X, Z)) -> mult_out_gga(X, s(Y), Z) 8.91/3.16 U2_g(X, Y, Xs, mult_out_gga(X, Y, Z)) -> U3_g(X, Y, Xs, p_in_g(.(Z, Xs))) 8.91/3.16 U3_g(X, Y, Xs, p_out_g(.(Z, Xs))) -> p_out_g(.(s(s(X)), .(Y, Xs))) 8.91/3.16 8.91/3.16 The argument filtering Pi contains the following mapping: 8.91/3.16 p_in_g(x1) = p_in_g(x1) 8.91/3.16 8.91/3.16 .(x1, x2) = .(x1, x2) 8.91/3.16 8.91/3.16 [] = [] 8.91/3.16 8.91/3.16 p_out_g(x1) = p_out_g(x1) 8.91/3.16 8.91/3.16 s(x1) = s(x1) 8.91/3.16 8.91/3.16 U1_g(x1, x2, x3, x4) = U1_g(x1, x2, x3, x4) 8.91/3.16 8.91/3.16 0 = 0 8.91/3.16 8.91/3.16 U4_g(x1, x2) = U4_g(x1, x2) 8.91/3.16 8.91/3.16 U2_g(x1, x2, x3, x4) = U2_g(x1, x2, x3, x4) 8.91/3.16 8.91/3.16 mult_in_gga(x1, x2, x3) = mult_in_gga(x1, x2) 8.91/3.16 8.91/3.16 mult_out_gga(x1, x2, x3) = mult_out_gga(x1, x2, x3) 8.91/3.16 8.91/3.16 U6_gga(x1, x2, x3, x4) = U6_gga(x1, x2, x4) 8.91/3.16 8.91/3.16 U7_gga(x1, x2, x3, x4) = U7_gga(x1, x2, x4) 8.91/3.16 8.91/3.16 sum_in_gga(x1, x2, x3) = sum_in_gga(x1, x2) 8.91/3.16 8.91/3.16 sum_out_gga(x1, x2, x3) = sum_out_gga(x1, x2, x3) 8.91/3.16 8.91/3.16 U5_gga(x1, x2, x3, x4) = U5_gga(x1, x2, x4) 8.91/3.16 8.91/3.16 U3_g(x1, x2, x3, x4) = U3_g(x1, x2, x3, x4) 8.91/3.16 8.91/3.16 8.91/3.16 8.91/3.16 ---------------------------------------- 8.91/3.16 8.91/3.16 (3) DependencyPairsProof (EQUIVALENT) 8.91/3.16 Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem: 8.91/3.16 Pi DP problem: 8.91/3.16 The TRS P consists of the following rules: 8.91/3.16 8.91/3.16 P_IN_G(.(s(s(X)), .(Y, Xs))) -> U1_G(X, Y, Xs, p_in_g(.(X, .(Y, Xs)))) 8.91/3.16 P_IN_G(.(s(s(X)), .(Y, Xs))) -> P_IN_G(.(X, .(Y, Xs))) 8.91/3.16 P_IN_G(.(0, Xs)) -> U4_G(Xs, p_in_g(Xs)) 8.91/3.16 P_IN_G(.(0, Xs)) -> P_IN_G(Xs) 8.91/3.16 U1_G(X, Y, Xs, p_out_g(.(X, .(Y, Xs)))) -> U2_G(X, Y, Xs, mult_in_gga(X, Y, Z)) 8.91/3.16 U1_G(X, Y, Xs, p_out_g(.(X, .(Y, Xs)))) -> MULT_IN_GGA(X, Y, Z) 8.91/3.16 MULT_IN_GGA(X, s(Y), Z) -> U6_GGA(X, Y, Z, mult_in_gga(X, Y, W)) 8.91/3.16 MULT_IN_GGA(X, s(Y), Z) -> MULT_IN_GGA(X, Y, W) 8.91/3.16 U6_GGA(X, Y, Z, mult_out_gga(X, Y, W)) -> U7_GGA(X, Y, Z, sum_in_gga(W, X, Z)) 8.91/3.16 U6_GGA(X, Y, Z, mult_out_gga(X, Y, W)) -> SUM_IN_GGA(W, X, Z) 8.91/3.16 SUM_IN_GGA(X, s(Y), s(Z)) -> U5_GGA(X, Y, Z, sum_in_gga(X, Y, Z)) 8.91/3.16 SUM_IN_GGA(X, s(Y), s(Z)) -> SUM_IN_GGA(X, Y, Z) 8.91/3.16 U2_G(X, Y, Xs, mult_out_gga(X, Y, Z)) -> U3_G(X, Y, Xs, p_in_g(.(Z, Xs))) 8.91/3.16 U2_G(X, Y, Xs, mult_out_gga(X, Y, Z)) -> P_IN_G(.(Z, Xs)) 8.91/3.16 8.91/3.16 The TRS R consists of the following rules: 8.91/3.16 8.91/3.16 p_in_g(.(X, [])) -> p_out_g(.(X, [])) 8.91/3.16 p_in_g(.(s(s(X)), .(Y, Xs))) -> U1_g(X, Y, Xs, p_in_g(.(X, .(Y, Xs)))) 8.91/3.16 p_in_g(.(0, Xs)) -> U4_g(Xs, p_in_g(Xs)) 8.91/3.16 U4_g(Xs, p_out_g(Xs)) -> p_out_g(.(0, Xs)) 8.91/3.16 U1_g(X, Y, Xs, p_out_g(.(X, .(Y, Xs)))) -> U2_g(X, Y, Xs, mult_in_gga(X, Y, Z)) 8.91/3.16 mult_in_gga(X1, 0, 0) -> mult_out_gga(X1, 0, 0) 8.91/3.16 mult_in_gga(X, s(Y), Z) -> U6_gga(X, Y, Z, mult_in_gga(X, Y, W)) 8.91/3.16 U6_gga(X, Y, Z, mult_out_gga(X, Y, W)) -> U7_gga(X, Y, Z, sum_in_gga(W, X, Z)) 8.91/3.16 sum_in_gga(X, 0, X) -> sum_out_gga(X, 0, X) 8.91/3.16 sum_in_gga(X, s(Y), s(Z)) -> U5_gga(X, Y, Z, sum_in_gga(X, Y, Z)) 8.91/3.16 U5_gga(X, Y, Z, sum_out_gga(X, Y, Z)) -> sum_out_gga(X, s(Y), s(Z)) 8.91/3.16 U7_gga(X, Y, Z, sum_out_gga(W, X, Z)) -> mult_out_gga(X, s(Y), Z) 8.91/3.16 U2_g(X, Y, Xs, mult_out_gga(X, Y, Z)) -> U3_g(X, Y, Xs, p_in_g(.(Z, Xs))) 8.91/3.16 U3_g(X, Y, Xs, p_out_g(.(Z, Xs))) -> p_out_g(.(s(s(X)), .(Y, Xs))) 8.91/3.16 8.91/3.16 The argument filtering Pi contains the following mapping: 8.91/3.16 p_in_g(x1) = p_in_g(x1) 8.91/3.16 8.91/3.16 .(x1, x2) = .(x1, x2) 8.91/3.16 8.91/3.16 [] = [] 8.91/3.16 8.91/3.16 p_out_g(x1) = p_out_g(x1) 8.91/3.16 8.91/3.16 s(x1) = s(x1) 8.91/3.16 8.91/3.16 U1_g(x1, x2, x3, x4) = U1_g(x1, x2, x3, x4) 8.91/3.16 8.91/3.16 0 = 0 8.91/3.16 8.91/3.16 U4_g(x1, x2) = U4_g(x1, x2) 8.91/3.16 8.91/3.16 U2_g(x1, x2, x3, x4) = U2_g(x1, x2, x3, x4) 8.91/3.16 8.91/3.16 mult_in_gga(x1, x2, x3) = mult_in_gga(x1, x2) 8.91/3.16 8.91/3.16 mult_out_gga(x1, x2, x3) = mult_out_gga(x1, x2, x3) 8.91/3.16 8.91/3.16 U6_gga(x1, x2, x3, x4) = U6_gga(x1, x2, x4) 8.91/3.16 8.91/3.16 U7_gga(x1, x2, x3, x4) = U7_gga(x1, x2, x4) 8.91/3.16 8.91/3.16 sum_in_gga(x1, x2, x3) = sum_in_gga(x1, x2) 8.91/3.16 8.91/3.16 sum_out_gga(x1, x2, x3) = sum_out_gga(x1, x2, x3) 8.91/3.16 8.91/3.16 U5_gga(x1, x2, x3, x4) = U5_gga(x1, x2, x4) 8.91/3.16 8.91/3.16 U3_g(x1, x2, x3, x4) = U3_g(x1, x2, x3, x4) 8.91/3.16 8.91/3.16 P_IN_G(x1) = P_IN_G(x1) 8.91/3.17 8.91/3.17 U1_G(x1, x2, x3, x4) = U1_G(x1, x2, x3, x4) 8.91/3.17 8.91/3.17 U4_G(x1, x2) = U4_G(x1, x2) 8.91/3.17 8.91/3.17 U2_G(x1, x2, x3, x4) = U2_G(x1, x2, x3, x4) 8.91/3.17 8.91/3.17 MULT_IN_GGA(x1, x2, x3) = MULT_IN_GGA(x1, x2) 8.91/3.17 8.91/3.17 U6_GGA(x1, x2, x3, x4) = U6_GGA(x1, x2, x4) 8.91/3.17 8.91/3.17 U7_GGA(x1, x2, x3, x4) = U7_GGA(x1, x2, x4) 8.91/3.17 8.91/3.17 SUM_IN_GGA(x1, x2, x3) = SUM_IN_GGA(x1, x2) 8.91/3.17 8.91/3.17 U5_GGA(x1, x2, x3, x4) = U5_GGA(x1, x2, x4) 8.91/3.17 8.91/3.17 U3_G(x1, x2, x3, x4) = U3_G(x1, x2, x3, x4) 8.91/3.17 8.91/3.17 8.91/3.17 We have to consider all (P,R,Pi)-chains 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (4) 8.91/3.17 Obligation: 8.91/3.17 Pi DP problem: 8.91/3.17 The TRS P consists of the following rules: 8.91/3.17 8.91/3.17 P_IN_G(.(s(s(X)), .(Y, Xs))) -> U1_G(X, Y, Xs, p_in_g(.(X, .(Y, Xs)))) 8.91/3.17 P_IN_G(.(s(s(X)), .(Y, Xs))) -> P_IN_G(.(X, .(Y, Xs))) 8.91/3.17 P_IN_G(.(0, Xs)) -> U4_G(Xs, p_in_g(Xs)) 8.91/3.17 P_IN_G(.(0, Xs)) -> P_IN_G(Xs) 8.91/3.17 U1_G(X, Y, Xs, p_out_g(.(X, .(Y, Xs)))) -> U2_G(X, Y, Xs, mult_in_gga(X, Y, Z)) 8.91/3.17 U1_G(X, Y, Xs, p_out_g(.(X, .(Y, Xs)))) -> MULT_IN_GGA(X, Y, Z) 8.91/3.17 MULT_IN_GGA(X, s(Y), Z) -> U6_GGA(X, Y, Z, mult_in_gga(X, Y, W)) 8.91/3.17 MULT_IN_GGA(X, s(Y), Z) -> MULT_IN_GGA(X, Y, W) 8.91/3.17 U6_GGA(X, Y, Z, mult_out_gga(X, Y, W)) -> U7_GGA(X, Y, Z, sum_in_gga(W, X, Z)) 8.91/3.17 U6_GGA(X, Y, Z, mult_out_gga(X, Y, W)) -> SUM_IN_GGA(W, X, Z) 8.91/3.17 SUM_IN_GGA(X, s(Y), s(Z)) -> U5_GGA(X, Y, Z, sum_in_gga(X, Y, Z)) 8.91/3.17 SUM_IN_GGA(X, s(Y), s(Z)) -> SUM_IN_GGA(X, Y, Z) 8.91/3.17 U2_G(X, Y, Xs, mult_out_gga(X, Y, Z)) -> U3_G(X, Y, Xs, p_in_g(.(Z, Xs))) 8.91/3.17 U2_G(X, Y, Xs, mult_out_gga(X, Y, Z)) -> P_IN_G(.(Z, Xs)) 8.91/3.17 8.91/3.17 The TRS R consists of the following rules: 8.91/3.17 8.91/3.17 p_in_g(.(X, [])) -> p_out_g(.(X, [])) 8.91/3.17 p_in_g(.(s(s(X)), .(Y, Xs))) -> U1_g(X, Y, Xs, p_in_g(.(X, .(Y, Xs)))) 8.91/3.17 p_in_g(.(0, Xs)) -> U4_g(Xs, p_in_g(Xs)) 8.91/3.17 U4_g(Xs, p_out_g(Xs)) -> p_out_g(.(0, Xs)) 8.91/3.17 U1_g(X, Y, Xs, p_out_g(.(X, .(Y, Xs)))) -> U2_g(X, Y, Xs, mult_in_gga(X, Y, Z)) 8.91/3.17 mult_in_gga(X1, 0, 0) -> mult_out_gga(X1, 0, 0) 8.91/3.17 mult_in_gga(X, s(Y), Z) -> U6_gga(X, Y, Z, mult_in_gga(X, Y, W)) 8.91/3.17 U6_gga(X, Y, Z, mult_out_gga(X, Y, W)) -> U7_gga(X, Y, Z, sum_in_gga(W, X, Z)) 8.91/3.17 sum_in_gga(X, 0, X) -> sum_out_gga(X, 0, X) 8.91/3.17 sum_in_gga(X, s(Y), s(Z)) -> U5_gga(X, Y, Z, sum_in_gga(X, Y, Z)) 8.91/3.17 U5_gga(X, Y, Z, sum_out_gga(X, Y, Z)) -> sum_out_gga(X, s(Y), s(Z)) 8.91/3.17 U7_gga(X, Y, Z, sum_out_gga(W, X, Z)) -> mult_out_gga(X, s(Y), Z) 8.91/3.17 U2_g(X, Y, Xs, mult_out_gga(X, Y, Z)) -> U3_g(X, Y, Xs, p_in_g(.(Z, Xs))) 8.91/3.17 U3_g(X, Y, Xs, p_out_g(.(Z, Xs))) -> p_out_g(.(s(s(X)), .(Y, Xs))) 8.91/3.17 8.91/3.17 The argument filtering Pi contains the following mapping: 8.91/3.17 p_in_g(x1) = p_in_g(x1) 8.91/3.17 8.91/3.17 .(x1, x2) = .(x1, x2) 8.91/3.17 8.91/3.17 [] = [] 8.91/3.17 8.91/3.17 p_out_g(x1) = p_out_g(x1) 8.91/3.17 8.91/3.17 s(x1) = s(x1) 8.91/3.17 8.91/3.17 U1_g(x1, x2, x3, x4) = U1_g(x1, x2, x3, x4) 8.91/3.17 8.91/3.17 0 = 0 8.91/3.17 8.91/3.17 U4_g(x1, x2) = U4_g(x1, x2) 8.91/3.17 8.91/3.17 U2_g(x1, x2, x3, x4) = U2_g(x1, x2, x3, x4) 8.91/3.17 8.91/3.17 mult_in_gga(x1, x2, x3) = mult_in_gga(x1, x2) 8.91/3.17 8.91/3.17 mult_out_gga(x1, x2, x3) = mult_out_gga(x1, x2, x3) 8.91/3.17 8.91/3.17 U6_gga(x1, x2, x3, x4) = U6_gga(x1, x2, x4) 8.91/3.17 8.91/3.17 U7_gga(x1, x2, x3, x4) = U7_gga(x1, x2, x4) 8.91/3.17 8.91/3.17 sum_in_gga(x1, x2, x3) = sum_in_gga(x1, x2) 8.91/3.17 8.91/3.17 sum_out_gga(x1, x2, x3) = sum_out_gga(x1, x2, x3) 8.91/3.17 8.91/3.17 U5_gga(x1, x2, x3, x4) = U5_gga(x1, x2, x4) 8.91/3.17 8.91/3.17 U3_g(x1, x2, x3, x4) = U3_g(x1, x2, x3, x4) 8.91/3.17 8.91/3.17 P_IN_G(x1) = P_IN_G(x1) 8.91/3.17 8.91/3.17 U1_G(x1, x2, x3, x4) = U1_G(x1, x2, x3, x4) 8.91/3.17 8.91/3.17 U4_G(x1, x2) = U4_G(x1, x2) 8.91/3.17 8.91/3.17 U2_G(x1, x2, x3, x4) = U2_G(x1, x2, x3, x4) 8.91/3.17 8.91/3.17 MULT_IN_GGA(x1, x2, x3) = MULT_IN_GGA(x1, x2) 8.91/3.17 8.91/3.17 U6_GGA(x1, x2, x3, x4) = U6_GGA(x1, x2, x4) 8.91/3.17 8.91/3.17 U7_GGA(x1, x2, x3, x4) = U7_GGA(x1, x2, x4) 8.91/3.17 8.91/3.17 SUM_IN_GGA(x1, x2, x3) = SUM_IN_GGA(x1, x2) 8.91/3.17 8.91/3.17 U5_GGA(x1, x2, x3, x4) = U5_GGA(x1, x2, x4) 8.91/3.17 8.91/3.17 U3_G(x1, x2, x3, x4) = U3_G(x1, x2, x3, x4) 8.91/3.17 8.91/3.17 8.91/3.17 We have to consider all (P,R,Pi)-chains 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (5) DependencyGraphProof (EQUIVALENT) 8.91/3.17 The approximation of the Dependency Graph [LOPSTR] contains 3 SCCs with 7 less nodes. 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (6) 8.91/3.17 Complex Obligation (AND) 8.91/3.17 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (7) 8.91/3.17 Obligation: 8.91/3.17 Pi DP problem: 8.91/3.17 The TRS P consists of the following rules: 8.91/3.17 8.91/3.17 SUM_IN_GGA(X, s(Y), s(Z)) -> SUM_IN_GGA(X, Y, Z) 8.91/3.17 8.91/3.17 The TRS R consists of the following rules: 8.91/3.17 8.91/3.17 p_in_g(.(X, [])) -> p_out_g(.(X, [])) 8.91/3.17 p_in_g(.(s(s(X)), .(Y, Xs))) -> U1_g(X, Y, Xs, p_in_g(.(X, .(Y, Xs)))) 8.91/3.17 p_in_g(.(0, Xs)) -> U4_g(Xs, p_in_g(Xs)) 8.91/3.17 U4_g(Xs, p_out_g(Xs)) -> p_out_g(.(0, Xs)) 8.91/3.17 U1_g(X, Y, Xs, p_out_g(.(X, .(Y, Xs)))) -> U2_g(X, Y, Xs, mult_in_gga(X, Y, Z)) 8.91/3.17 mult_in_gga(X1, 0, 0) -> mult_out_gga(X1, 0, 0) 8.91/3.17 mult_in_gga(X, s(Y), Z) -> U6_gga(X, Y, Z, mult_in_gga(X, Y, W)) 8.91/3.17 U6_gga(X, Y, Z, mult_out_gga(X, Y, W)) -> U7_gga(X, Y, Z, sum_in_gga(W, X, Z)) 8.91/3.17 sum_in_gga(X, 0, X) -> sum_out_gga(X, 0, X) 8.91/3.17 sum_in_gga(X, s(Y), s(Z)) -> U5_gga(X, Y, Z, sum_in_gga(X, Y, Z)) 8.91/3.17 U5_gga(X, Y, Z, sum_out_gga(X, Y, Z)) -> sum_out_gga(X, s(Y), s(Z)) 8.91/3.17 U7_gga(X, Y, Z, sum_out_gga(W, X, Z)) -> mult_out_gga(X, s(Y), Z) 8.91/3.17 U2_g(X, Y, Xs, mult_out_gga(X, Y, Z)) -> U3_g(X, Y, Xs, p_in_g(.(Z, Xs))) 8.91/3.17 U3_g(X, Y, Xs, p_out_g(.(Z, Xs))) -> p_out_g(.(s(s(X)), .(Y, Xs))) 8.91/3.17 8.91/3.17 The argument filtering Pi contains the following mapping: 8.91/3.17 p_in_g(x1) = p_in_g(x1) 8.91/3.17 8.91/3.17 .(x1, x2) = .(x1, x2) 8.91/3.17 8.91/3.17 [] = [] 8.91/3.17 8.91/3.17 p_out_g(x1) = p_out_g(x1) 8.91/3.17 8.91/3.17 s(x1) = s(x1) 8.91/3.17 8.91/3.17 U1_g(x1, x2, x3, x4) = U1_g(x1, x2, x3, x4) 8.91/3.17 8.91/3.17 0 = 0 8.91/3.17 8.91/3.17 U4_g(x1, x2) = U4_g(x1, x2) 8.91/3.17 8.91/3.17 U2_g(x1, x2, x3, x4) = U2_g(x1, x2, x3, x4) 8.91/3.17 8.91/3.17 mult_in_gga(x1, x2, x3) = mult_in_gga(x1, x2) 8.91/3.17 8.91/3.17 mult_out_gga(x1, x2, x3) = mult_out_gga(x1, x2, x3) 8.91/3.17 8.91/3.17 U6_gga(x1, x2, x3, x4) = U6_gga(x1, x2, x4) 8.91/3.17 8.91/3.17 U7_gga(x1, x2, x3, x4) = U7_gga(x1, x2, x4) 8.91/3.17 8.91/3.17 sum_in_gga(x1, x2, x3) = sum_in_gga(x1, x2) 8.91/3.17 8.91/3.17 sum_out_gga(x1, x2, x3) = sum_out_gga(x1, x2, x3) 8.91/3.17 8.91/3.17 U5_gga(x1, x2, x3, x4) = U5_gga(x1, x2, x4) 8.91/3.17 8.91/3.17 U3_g(x1, x2, x3, x4) = U3_g(x1, x2, x3, x4) 8.91/3.17 8.91/3.17 SUM_IN_GGA(x1, x2, x3) = SUM_IN_GGA(x1, x2) 8.91/3.17 8.91/3.17 8.91/3.17 We have to consider all (P,R,Pi)-chains 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (8) UsableRulesProof (EQUIVALENT) 8.91/3.17 For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R. 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (9) 8.91/3.17 Obligation: 8.91/3.17 Pi DP problem: 8.91/3.17 The TRS P consists of the following rules: 8.91/3.17 8.91/3.17 SUM_IN_GGA(X, s(Y), s(Z)) -> SUM_IN_GGA(X, Y, Z) 8.91/3.17 8.91/3.17 R is empty. 8.91/3.17 The argument filtering Pi contains the following mapping: 8.91/3.17 s(x1) = s(x1) 8.91/3.17 8.91/3.17 SUM_IN_GGA(x1, x2, x3) = SUM_IN_GGA(x1, x2) 8.91/3.17 8.91/3.17 8.91/3.17 We have to consider all (P,R,Pi)-chains 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (10) PiDPToQDPProof (SOUND) 8.91/3.17 Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi. 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (11) 8.91/3.17 Obligation: 8.91/3.17 Q DP problem: 8.91/3.17 The TRS P consists of the following rules: 8.91/3.17 8.91/3.17 SUM_IN_GGA(X, s(Y)) -> SUM_IN_GGA(X, Y) 8.91/3.17 8.91/3.17 R is empty. 8.91/3.17 Q is empty. 8.91/3.17 We have to consider all (P,Q,R)-chains. 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (12) QDPSizeChangeProof (EQUIVALENT) 8.91/3.17 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. 8.91/3.17 8.91/3.17 From the DPs we obtained the following set of size-change graphs: 8.91/3.17 *SUM_IN_GGA(X, s(Y)) -> SUM_IN_GGA(X, Y) 8.91/3.17 The graph contains the following edges 1 >= 1, 2 > 2 8.91/3.17 8.91/3.17 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (13) 8.91/3.17 YES 8.91/3.17 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (14) 8.91/3.17 Obligation: 8.91/3.17 Pi DP problem: 8.91/3.17 The TRS P consists of the following rules: 8.91/3.17 8.91/3.17 MULT_IN_GGA(X, s(Y), Z) -> MULT_IN_GGA(X, Y, W) 8.91/3.17 8.91/3.17 The TRS R consists of the following rules: 8.91/3.17 8.91/3.17 p_in_g(.(X, [])) -> p_out_g(.(X, [])) 8.91/3.17 p_in_g(.(s(s(X)), .(Y, Xs))) -> U1_g(X, Y, Xs, p_in_g(.(X, .(Y, Xs)))) 8.91/3.17 p_in_g(.(0, Xs)) -> U4_g(Xs, p_in_g(Xs)) 8.91/3.17 U4_g(Xs, p_out_g(Xs)) -> p_out_g(.(0, Xs)) 8.91/3.17 U1_g(X, Y, Xs, p_out_g(.(X, .(Y, Xs)))) -> U2_g(X, Y, Xs, mult_in_gga(X, Y, Z)) 8.91/3.17 mult_in_gga(X1, 0, 0) -> mult_out_gga(X1, 0, 0) 8.91/3.17 mult_in_gga(X, s(Y), Z) -> U6_gga(X, Y, Z, mult_in_gga(X, Y, W)) 8.91/3.17 U6_gga(X, Y, Z, mult_out_gga(X, Y, W)) -> U7_gga(X, Y, Z, sum_in_gga(W, X, Z)) 8.91/3.17 sum_in_gga(X, 0, X) -> sum_out_gga(X, 0, X) 8.91/3.17 sum_in_gga(X, s(Y), s(Z)) -> U5_gga(X, Y, Z, sum_in_gga(X, Y, Z)) 8.91/3.17 U5_gga(X, Y, Z, sum_out_gga(X, Y, Z)) -> sum_out_gga(X, s(Y), s(Z)) 8.91/3.17 U7_gga(X, Y, Z, sum_out_gga(W, X, Z)) -> mult_out_gga(X, s(Y), Z) 8.91/3.17 U2_g(X, Y, Xs, mult_out_gga(X, Y, Z)) -> U3_g(X, Y, Xs, p_in_g(.(Z, Xs))) 8.91/3.17 U3_g(X, Y, Xs, p_out_g(.(Z, Xs))) -> p_out_g(.(s(s(X)), .(Y, Xs))) 8.91/3.17 8.91/3.17 The argument filtering Pi contains the following mapping: 8.91/3.17 p_in_g(x1) = p_in_g(x1) 8.91/3.17 8.91/3.17 .(x1, x2) = .(x1, x2) 8.91/3.17 8.91/3.17 [] = [] 8.91/3.17 8.91/3.17 p_out_g(x1) = p_out_g(x1) 8.91/3.17 8.91/3.17 s(x1) = s(x1) 8.91/3.17 8.91/3.17 U1_g(x1, x2, x3, x4) = U1_g(x1, x2, x3, x4) 8.91/3.17 8.91/3.17 0 = 0 8.91/3.17 8.91/3.17 U4_g(x1, x2) = U4_g(x1, x2) 8.91/3.17 8.91/3.17 U2_g(x1, x2, x3, x4) = U2_g(x1, x2, x3, x4) 8.91/3.17 8.91/3.17 mult_in_gga(x1, x2, x3) = mult_in_gga(x1, x2) 8.91/3.17 8.91/3.17 mult_out_gga(x1, x2, x3) = mult_out_gga(x1, x2, x3) 8.91/3.17 8.91/3.17 U6_gga(x1, x2, x3, x4) = U6_gga(x1, x2, x4) 8.91/3.17 8.91/3.17 U7_gga(x1, x2, x3, x4) = U7_gga(x1, x2, x4) 8.91/3.17 8.91/3.17 sum_in_gga(x1, x2, x3) = sum_in_gga(x1, x2) 8.91/3.17 8.91/3.17 sum_out_gga(x1, x2, x3) = sum_out_gga(x1, x2, x3) 8.91/3.17 8.91/3.17 U5_gga(x1, x2, x3, x4) = U5_gga(x1, x2, x4) 8.91/3.17 8.91/3.17 U3_g(x1, x2, x3, x4) = U3_g(x1, x2, x3, x4) 8.91/3.17 8.91/3.17 MULT_IN_GGA(x1, x2, x3) = MULT_IN_GGA(x1, x2) 8.91/3.17 8.91/3.17 8.91/3.17 We have to consider all (P,R,Pi)-chains 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (15) UsableRulesProof (EQUIVALENT) 8.91/3.17 For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R. 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (16) 8.91/3.17 Obligation: 8.91/3.17 Pi DP problem: 8.91/3.17 The TRS P consists of the following rules: 8.91/3.17 8.91/3.17 MULT_IN_GGA(X, s(Y), Z) -> MULT_IN_GGA(X, Y, W) 8.91/3.17 8.91/3.17 R is empty. 8.91/3.17 The argument filtering Pi contains the following mapping: 8.91/3.17 s(x1) = s(x1) 8.91/3.17 8.91/3.17 MULT_IN_GGA(x1, x2, x3) = MULT_IN_GGA(x1, x2) 8.91/3.17 8.91/3.17 8.91/3.17 We have to consider all (P,R,Pi)-chains 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (17) PiDPToQDPProof (SOUND) 8.91/3.17 Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi. 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (18) 8.91/3.17 Obligation: 8.91/3.17 Q DP problem: 8.91/3.17 The TRS P consists of the following rules: 8.91/3.17 8.91/3.17 MULT_IN_GGA(X, s(Y)) -> MULT_IN_GGA(X, Y) 8.91/3.17 8.91/3.17 R is empty. 8.91/3.17 Q is empty. 8.91/3.17 We have to consider all (P,Q,R)-chains. 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (19) QDPSizeChangeProof (EQUIVALENT) 8.91/3.17 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. 8.91/3.17 8.91/3.17 From the DPs we obtained the following set of size-change graphs: 8.91/3.17 *MULT_IN_GGA(X, s(Y)) -> MULT_IN_GGA(X, Y) 8.91/3.17 The graph contains the following edges 1 >= 1, 2 > 2 8.91/3.17 8.91/3.17 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (20) 8.91/3.17 YES 8.91/3.17 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (21) 8.91/3.17 Obligation: 8.91/3.17 Pi DP problem: 8.91/3.17 The TRS P consists of the following rules: 8.91/3.17 8.91/3.17 U1_G(X, Y, Xs, p_out_g(.(X, .(Y, Xs)))) -> U2_G(X, Y, Xs, mult_in_gga(X, Y, Z)) 8.91/3.17 U2_G(X, Y, Xs, mult_out_gga(X, Y, Z)) -> P_IN_G(.(Z, Xs)) 8.91/3.17 P_IN_G(.(s(s(X)), .(Y, Xs))) -> U1_G(X, Y, Xs, p_in_g(.(X, .(Y, Xs)))) 8.91/3.17 P_IN_G(.(s(s(X)), .(Y, Xs))) -> P_IN_G(.(X, .(Y, Xs))) 8.91/3.17 P_IN_G(.(0, Xs)) -> P_IN_G(Xs) 8.91/3.17 8.91/3.17 The TRS R consists of the following rules: 8.91/3.17 8.91/3.17 p_in_g(.(X, [])) -> p_out_g(.(X, [])) 8.91/3.17 p_in_g(.(s(s(X)), .(Y, Xs))) -> U1_g(X, Y, Xs, p_in_g(.(X, .(Y, Xs)))) 8.91/3.17 p_in_g(.(0, Xs)) -> U4_g(Xs, p_in_g(Xs)) 8.91/3.17 U4_g(Xs, p_out_g(Xs)) -> p_out_g(.(0, Xs)) 8.91/3.17 U1_g(X, Y, Xs, p_out_g(.(X, .(Y, Xs)))) -> U2_g(X, Y, Xs, mult_in_gga(X, Y, Z)) 8.91/3.17 mult_in_gga(X1, 0, 0) -> mult_out_gga(X1, 0, 0) 8.91/3.17 mult_in_gga(X, s(Y), Z) -> U6_gga(X, Y, Z, mult_in_gga(X, Y, W)) 8.91/3.17 U6_gga(X, Y, Z, mult_out_gga(X, Y, W)) -> U7_gga(X, Y, Z, sum_in_gga(W, X, Z)) 8.91/3.17 sum_in_gga(X, 0, X) -> sum_out_gga(X, 0, X) 8.91/3.17 sum_in_gga(X, s(Y), s(Z)) -> U5_gga(X, Y, Z, sum_in_gga(X, Y, Z)) 8.91/3.17 U5_gga(X, Y, Z, sum_out_gga(X, Y, Z)) -> sum_out_gga(X, s(Y), s(Z)) 8.91/3.17 U7_gga(X, Y, Z, sum_out_gga(W, X, Z)) -> mult_out_gga(X, s(Y), Z) 8.91/3.17 U2_g(X, Y, Xs, mult_out_gga(X, Y, Z)) -> U3_g(X, Y, Xs, p_in_g(.(Z, Xs))) 8.91/3.17 U3_g(X, Y, Xs, p_out_g(.(Z, Xs))) -> p_out_g(.(s(s(X)), .(Y, Xs))) 8.91/3.17 8.91/3.17 The argument filtering Pi contains the following mapping: 8.91/3.17 p_in_g(x1) = p_in_g(x1) 8.91/3.17 8.91/3.17 .(x1, x2) = .(x1, x2) 8.91/3.17 8.91/3.17 [] = [] 8.91/3.17 8.91/3.17 p_out_g(x1) = p_out_g(x1) 8.91/3.17 8.91/3.17 s(x1) = s(x1) 8.91/3.17 8.91/3.17 U1_g(x1, x2, x3, x4) = U1_g(x1, x2, x3, x4) 8.91/3.17 8.91/3.17 0 = 0 8.91/3.17 8.91/3.17 U4_g(x1, x2) = U4_g(x1, x2) 8.91/3.17 8.91/3.17 U2_g(x1, x2, x3, x4) = U2_g(x1, x2, x3, x4) 8.91/3.17 8.91/3.17 mult_in_gga(x1, x2, x3) = mult_in_gga(x1, x2) 8.91/3.17 8.91/3.17 mult_out_gga(x1, x2, x3) = mult_out_gga(x1, x2, x3) 8.91/3.17 8.91/3.17 U6_gga(x1, x2, x3, x4) = U6_gga(x1, x2, x4) 8.91/3.17 8.91/3.17 U7_gga(x1, x2, x3, x4) = U7_gga(x1, x2, x4) 8.91/3.17 8.91/3.17 sum_in_gga(x1, x2, x3) = sum_in_gga(x1, x2) 8.91/3.17 8.91/3.17 sum_out_gga(x1, x2, x3) = sum_out_gga(x1, x2, x3) 8.91/3.17 8.91/3.17 U5_gga(x1, x2, x3, x4) = U5_gga(x1, x2, x4) 8.91/3.17 8.91/3.17 U3_g(x1, x2, x3, x4) = U3_g(x1, x2, x3, x4) 8.91/3.17 8.91/3.17 P_IN_G(x1) = P_IN_G(x1) 8.91/3.17 8.91/3.17 U1_G(x1, x2, x3, x4) = U1_G(x1, x2, x3, x4) 8.91/3.17 8.91/3.17 U2_G(x1, x2, x3, x4) = U2_G(x1, x2, x3, x4) 8.91/3.17 8.91/3.17 8.91/3.17 We have to consider all (P,R,Pi)-chains 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (22) PiDPToQDPProof (SOUND) 8.91/3.17 Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi. 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (23) 8.91/3.17 Obligation: 8.91/3.17 Q DP problem: 8.91/3.17 The TRS P consists of the following rules: 8.91/3.17 8.91/3.17 U1_G(X, Y, Xs, p_out_g(.(X, .(Y, Xs)))) -> U2_G(X, Y, Xs, mult_in_gga(X, Y)) 8.91/3.17 U2_G(X, Y, Xs, mult_out_gga(X, Y, Z)) -> P_IN_G(.(Z, Xs)) 8.91/3.17 P_IN_G(.(s(s(X)), .(Y, Xs))) -> U1_G(X, Y, Xs, p_in_g(.(X, .(Y, Xs)))) 8.91/3.17 P_IN_G(.(s(s(X)), .(Y, Xs))) -> P_IN_G(.(X, .(Y, Xs))) 8.91/3.17 P_IN_G(.(0, Xs)) -> P_IN_G(Xs) 8.91/3.17 8.91/3.17 The TRS R consists of the following rules: 8.91/3.17 8.91/3.17 p_in_g(.(X, [])) -> p_out_g(.(X, [])) 8.91/3.17 p_in_g(.(s(s(X)), .(Y, Xs))) -> U1_g(X, Y, Xs, p_in_g(.(X, .(Y, Xs)))) 8.91/3.17 p_in_g(.(0, Xs)) -> U4_g(Xs, p_in_g(Xs)) 8.91/3.17 U4_g(Xs, p_out_g(Xs)) -> p_out_g(.(0, Xs)) 8.91/3.17 U1_g(X, Y, Xs, p_out_g(.(X, .(Y, Xs)))) -> U2_g(X, Y, Xs, mult_in_gga(X, Y)) 8.91/3.17 mult_in_gga(X1, 0) -> mult_out_gga(X1, 0, 0) 8.91/3.17 mult_in_gga(X, s(Y)) -> U6_gga(X, Y, mult_in_gga(X, Y)) 8.91/3.17 U6_gga(X, Y, mult_out_gga(X, Y, W)) -> U7_gga(X, Y, sum_in_gga(W, X)) 8.91/3.17 sum_in_gga(X, 0) -> sum_out_gga(X, 0, X) 8.91/3.17 sum_in_gga(X, s(Y)) -> U5_gga(X, Y, sum_in_gga(X, Y)) 8.91/3.17 U5_gga(X, Y, sum_out_gga(X, Y, Z)) -> sum_out_gga(X, s(Y), s(Z)) 8.91/3.17 U7_gga(X, Y, sum_out_gga(W, X, Z)) -> mult_out_gga(X, s(Y), Z) 8.91/3.17 U2_g(X, Y, Xs, mult_out_gga(X, Y, Z)) -> U3_g(X, Y, Xs, p_in_g(.(Z, Xs))) 8.91/3.17 U3_g(X, Y, Xs, p_out_g(.(Z, Xs))) -> p_out_g(.(s(s(X)), .(Y, Xs))) 8.91/3.17 8.91/3.17 The set Q consists of the following terms: 8.91/3.17 8.91/3.17 p_in_g(x0) 8.91/3.17 U4_g(x0, x1) 8.91/3.17 U1_g(x0, x1, x2, x3) 8.91/3.17 mult_in_gga(x0, x1) 8.91/3.17 U6_gga(x0, x1, x2) 8.91/3.17 sum_in_gga(x0, x1) 8.91/3.17 U5_gga(x0, x1, x2) 8.91/3.17 U7_gga(x0, x1, x2) 8.91/3.17 U2_g(x0, x1, x2, x3) 8.91/3.17 U3_g(x0, x1, x2, x3) 8.91/3.17 8.91/3.17 We have to consider all (P,Q,R)-chains. 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (24) QDPQMonotonicMRRProof (EQUIVALENT) 8.91/3.17 By using the Q-monotonic rule removal processor with the following ordering, at least one Dependency Pair or term rewrite system rule of this QDP problem can be strictly oriented such that it always occurs at a strongly monotonic position in a (P,Q,R)-chain. 8.91/3.17 8.91/3.17 Strictly oriented dependency pairs: 8.91/3.17 8.91/3.17 P_IN_G(.(s(s(X)), .(Y, Xs))) -> U1_G(X, Y, Xs, p_in_g(.(X, .(Y, Xs)))) 8.91/3.17 P_IN_G(.(0, Xs)) -> P_IN_G(Xs) 8.91/3.17 8.91/3.17 8.91/3.17 Used ordering: Polynomial interpretation [POLO]: 8.91/3.17 8.91/3.17 POL(.(x_1, x_2)) = 1 + x_2 8.91/3.17 POL(0) = 0 8.91/3.17 POL(P_IN_G(x_1)) = 2*x_1 8.91/3.17 POL(U1_G(x_1, x_2, x_3, x_4)) = 2 + 2*x_3 8.91/3.17 POL(U1_g(x_1, x_2, x_3, x_4)) = 1 8.91/3.17 POL(U2_G(x_1, x_2, x_3, x_4)) = 2 + 2*x_3 8.91/3.17 POL(U2_g(x_1, x_2, x_3, x_4)) = 1 8.91/3.17 POL(U3_g(x_1, x_2, x_3, x_4)) = 0 8.91/3.17 POL(U4_g(x_1, x_2)) = 1 8.91/3.17 POL(U5_gga(x_1, x_2, x_3)) = 0 8.91/3.17 POL(U6_gga(x_1, x_2, x_3)) = 0 8.91/3.17 POL(U7_gga(x_1, x_2, x_3)) = 0 8.91/3.17 POL([]) = 0 8.91/3.17 POL(mult_in_gga(x_1, x_2)) = 0 8.91/3.17 POL(mult_out_gga(x_1, x_2, x_3)) = 0 8.91/3.17 POL(p_in_g(x_1)) = 2 8.91/3.17 POL(p_out_g(x_1)) = 0 8.91/3.17 POL(s(x_1)) = 0 8.91/3.17 POL(sum_in_gga(x_1, x_2)) = 0 8.91/3.17 POL(sum_out_gga(x_1, x_2, x_3)) = 0 8.91/3.17 8.91/3.17 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (25) 8.91/3.17 Obligation: 8.91/3.17 Q DP problem: 8.91/3.17 The TRS P consists of the following rules: 8.91/3.17 8.91/3.17 U1_G(X, Y, Xs, p_out_g(.(X, .(Y, Xs)))) -> U2_G(X, Y, Xs, mult_in_gga(X, Y)) 8.91/3.17 U2_G(X, Y, Xs, mult_out_gga(X, Y, Z)) -> P_IN_G(.(Z, Xs)) 8.91/3.17 P_IN_G(.(s(s(X)), .(Y, Xs))) -> P_IN_G(.(X, .(Y, Xs))) 8.91/3.17 8.91/3.17 The TRS R consists of the following rules: 8.91/3.17 8.91/3.17 p_in_g(.(X, [])) -> p_out_g(.(X, [])) 8.91/3.17 p_in_g(.(s(s(X)), .(Y, Xs))) -> U1_g(X, Y, Xs, p_in_g(.(X, .(Y, Xs)))) 8.91/3.17 p_in_g(.(0, Xs)) -> U4_g(Xs, p_in_g(Xs)) 8.91/3.17 U4_g(Xs, p_out_g(Xs)) -> p_out_g(.(0, Xs)) 8.91/3.17 U1_g(X, Y, Xs, p_out_g(.(X, .(Y, Xs)))) -> U2_g(X, Y, Xs, mult_in_gga(X, Y)) 8.91/3.17 mult_in_gga(X1, 0) -> mult_out_gga(X1, 0, 0) 8.91/3.17 mult_in_gga(X, s(Y)) -> U6_gga(X, Y, mult_in_gga(X, Y)) 8.91/3.17 U6_gga(X, Y, mult_out_gga(X, Y, W)) -> U7_gga(X, Y, sum_in_gga(W, X)) 8.91/3.17 sum_in_gga(X, 0) -> sum_out_gga(X, 0, X) 8.91/3.17 sum_in_gga(X, s(Y)) -> U5_gga(X, Y, sum_in_gga(X, Y)) 8.91/3.17 U5_gga(X, Y, sum_out_gga(X, Y, Z)) -> sum_out_gga(X, s(Y), s(Z)) 8.91/3.17 U7_gga(X, Y, sum_out_gga(W, X, Z)) -> mult_out_gga(X, s(Y), Z) 8.91/3.17 U2_g(X, Y, Xs, mult_out_gga(X, Y, Z)) -> U3_g(X, Y, Xs, p_in_g(.(Z, Xs))) 8.91/3.17 U3_g(X, Y, Xs, p_out_g(.(Z, Xs))) -> p_out_g(.(s(s(X)), .(Y, Xs))) 8.91/3.17 8.91/3.17 The set Q consists of the following terms: 8.91/3.17 8.91/3.17 p_in_g(x0) 8.91/3.17 U4_g(x0, x1) 8.91/3.17 U1_g(x0, x1, x2, x3) 8.91/3.17 mult_in_gga(x0, x1) 8.91/3.17 U6_gga(x0, x1, x2) 8.91/3.17 sum_in_gga(x0, x1) 8.91/3.17 U5_gga(x0, x1, x2) 8.91/3.17 U7_gga(x0, x1, x2) 8.91/3.17 U2_g(x0, x1, x2, x3) 8.91/3.17 U3_g(x0, x1, x2, x3) 8.91/3.17 8.91/3.17 We have to consider all (P,Q,R)-chains. 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (26) DependencyGraphProof (EQUIVALENT) 8.91/3.17 The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 1 SCC with 2 less nodes. 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (27) 8.91/3.17 Obligation: 8.91/3.17 Q DP problem: 8.91/3.17 The TRS P consists of the following rules: 8.91/3.17 8.91/3.17 P_IN_G(.(s(s(X)), .(Y, Xs))) -> P_IN_G(.(X, .(Y, Xs))) 8.91/3.17 8.91/3.17 The TRS R consists of the following rules: 8.91/3.17 8.91/3.17 p_in_g(.(X, [])) -> p_out_g(.(X, [])) 8.91/3.17 p_in_g(.(s(s(X)), .(Y, Xs))) -> U1_g(X, Y, Xs, p_in_g(.(X, .(Y, Xs)))) 8.91/3.17 p_in_g(.(0, Xs)) -> U4_g(Xs, p_in_g(Xs)) 8.91/3.17 U4_g(Xs, p_out_g(Xs)) -> p_out_g(.(0, Xs)) 8.91/3.17 U1_g(X, Y, Xs, p_out_g(.(X, .(Y, Xs)))) -> U2_g(X, Y, Xs, mult_in_gga(X, Y)) 8.91/3.17 mult_in_gga(X1, 0) -> mult_out_gga(X1, 0, 0) 8.91/3.17 mult_in_gga(X, s(Y)) -> U6_gga(X, Y, mult_in_gga(X, Y)) 8.91/3.17 U6_gga(X, Y, mult_out_gga(X, Y, W)) -> U7_gga(X, Y, sum_in_gga(W, X)) 8.91/3.17 sum_in_gga(X, 0) -> sum_out_gga(X, 0, X) 8.91/3.17 sum_in_gga(X, s(Y)) -> U5_gga(X, Y, sum_in_gga(X, Y)) 8.91/3.17 U5_gga(X, Y, sum_out_gga(X, Y, Z)) -> sum_out_gga(X, s(Y), s(Z)) 8.91/3.17 U7_gga(X, Y, sum_out_gga(W, X, Z)) -> mult_out_gga(X, s(Y), Z) 8.91/3.17 U2_g(X, Y, Xs, mult_out_gga(X, Y, Z)) -> U3_g(X, Y, Xs, p_in_g(.(Z, Xs))) 8.91/3.17 U3_g(X, Y, Xs, p_out_g(.(Z, Xs))) -> p_out_g(.(s(s(X)), .(Y, Xs))) 8.91/3.17 8.91/3.17 The set Q consists of the following terms: 8.91/3.17 8.91/3.17 p_in_g(x0) 8.91/3.17 U4_g(x0, x1) 8.91/3.17 U1_g(x0, x1, x2, x3) 8.91/3.17 mult_in_gga(x0, x1) 8.91/3.17 U6_gga(x0, x1, x2) 8.91/3.17 sum_in_gga(x0, x1) 8.91/3.17 U5_gga(x0, x1, x2) 8.91/3.17 U7_gga(x0, x1, x2) 8.91/3.17 U2_g(x0, x1, x2, x3) 8.91/3.17 U3_g(x0, x1, x2, x3) 8.91/3.17 8.91/3.17 We have to consider all (P,Q,R)-chains. 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (28) UsableRulesProof (EQUIVALENT) 8.91/3.17 As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [LPAR04] we can delete all non-usable rules [FROCOS05] from R. 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (29) 8.91/3.17 Obligation: 8.91/3.17 Q DP problem: 8.91/3.17 The TRS P consists of the following rules: 8.91/3.17 8.91/3.17 P_IN_G(.(s(s(X)), .(Y, Xs))) -> P_IN_G(.(X, .(Y, Xs))) 8.91/3.17 8.91/3.17 R is empty. 8.91/3.17 The set Q consists of the following terms: 8.91/3.17 8.91/3.17 p_in_g(x0) 8.91/3.17 U4_g(x0, x1) 8.91/3.17 U1_g(x0, x1, x2, x3) 8.91/3.17 mult_in_gga(x0, x1) 8.91/3.17 U6_gga(x0, x1, x2) 8.91/3.17 sum_in_gga(x0, x1) 8.91/3.17 U5_gga(x0, x1, x2) 8.91/3.17 U7_gga(x0, x1, x2) 8.91/3.17 U2_g(x0, x1, x2, x3) 8.91/3.17 U3_g(x0, x1, x2, x3) 8.91/3.17 8.91/3.17 We have to consider all (P,Q,R)-chains. 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (30) QReductionProof (EQUIVALENT) 8.91/3.17 We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.[THIEMANN]. 8.91/3.17 8.91/3.17 p_in_g(x0) 8.91/3.17 U4_g(x0, x1) 8.91/3.17 U1_g(x0, x1, x2, x3) 8.91/3.17 mult_in_gga(x0, x1) 8.91/3.17 U6_gga(x0, x1, x2) 8.91/3.17 sum_in_gga(x0, x1) 8.91/3.17 U5_gga(x0, x1, x2) 8.91/3.17 U7_gga(x0, x1, x2) 8.91/3.17 U2_g(x0, x1, x2, x3) 8.91/3.17 U3_g(x0, x1, x2, x3) 8.91/3.17 8.91/3.17 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (31) 8.91/3.17 Obligation: 8.91/3.17 Q DP problem: 8.91/3.17 The TRS P consists of the following rules: 8.91/3.17 8.91/3.17 P_IN_G(.(s(s(X)), .(Y, Xs))) -> P_IN_G(.(X, .(Y, Xs))) 8.91/3.17 8.91/3.17 R is empty. 8.91/3.17 Q is empty. 8.91/3.17 We have to consider all (P,Q,R)-chains. 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (32) UsableRulesReductionPairsProof (EQUIVALENT) 8.91/3.17 By using the usable rules with reduction pair processor [LPAR04] with a polynomial ordering [POLO], all dependency pairs and the corresponding usable rules [FROCOS05] can be oriented non-strictly. All non-usable rules are removed, and those dependency pairs and usable rules that have been oriented strictly or contain non-usable symbols in their left-hand side are removed as well. 8.91/3.17 8.91/3.17 The following dependency pairs can be deleted: 8.91/3.17 8.91/3.17 P_IN_G(.(s(s(X)), .(Y, Xs))) -> P_IN_G(.(X, .(Y, Xs))) 8.91/3.17 No rules are removed from R. 8.91/3.17 8.91/3.17 Used ordering: POLO with Polynomial interpretation [POLO]: 8.91/3.17 8.91/3.17 POL(.(x_1, x_2)) = 2*x_1 + x_2 8.91/3.17 POL(P_IN_G(x_1)) = x_1 8.91/3.17 POL(s(x_1)) = 2*x_1 8.91/3.17 8.91/3.17 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (33) 8.91/3.17 Obligation: 8.91/3.17 Q DP problem: 8.91/3.17 P is empty. 8.91/3.17 R is empty. 8.91/3.17 Q is empty. 8.91/3.17 We have to consider all (P,Q,R)-chains. 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (34) PisEmptyProof (EQUIVALENT) 8.91/3.17 The TRS P is empty. Hence, there is no (P,Q,R) chain. 8.91/3.17 ---------------------------------------- 8.91/3.17 8.91/3.17 (35) 8.91/3.17 YES 9.12/3.22 EOF