↳ PROLOG
↳ PrologToPiTRSProof
With regard to the inferred argument filtering the predicates were used in the following modes:
mult3: (b,b,f)
sum3: (b,b,f)
Transforming PROLOG into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:
mult_3_in_gga3(underscore, 0_0, 0_0) -> mult_3_out_gga3(underscore, 0_0, 0_0)
mult_3_in_gga3(X, s_11(Y), Z) -> if_mult_3_in_1_gga4(X, Y, Z, mult_3_in_gga3(X, Y, W))
if_mult_3_in_1_gga4(X, Y, Z, mult_3_out_gga3(X, Y, W)) -> if_mult_3_in_2_gga5(X, Y, Z, W, sum_3_in_gga3(W, X, Z))
sum_3_in_gga3(X, 0_0, X) -> sum_3_out_gga3(X, 0_0, X)
sum_3_in_gga3(X, s_11(Y), s_11(Z)) -> if_sum_3_in_1_gga4(X, Y, Z, sum_3_in_gga3(X, Y, Z))
if_sum_3_in_1_gga4(X, Y, Z, sum_3_out_gga3(X, Y, Z)) -> sum_3_out_gga3(X, s_11(Y), s_11(Z))
if_mult_3_in_2_gga5(X, Y, Z, W, sum_3_out_gga3(W, X, Z)) -> mult_3_out_gga3(X, s_11(Y), Z)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of PROLOG
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
mult_3_in_gga3(underscore, 0_0, 0_0) -> mult_3_out_gga3(underscore, 0_0, 0_0)
mult_3_in_gga3(X, s_11(Y), Z) -> if_mult_3_in_1_gga4(X, Y, Z, mult_3_in_gga3(X, Y, W))
if_mult_3_in_1_gga4(X, Y, Z, mult_3_out_gga3(X, Y, W)) -> if_mult_3_in_2_gga5(X, Y, Z, W, sum_3_in_gga3(W, X, Z))
sum_3_in_gga3(X, 0_0, X) -> sum_3_out_gga3(X, 0_0, X)
sum_3_in_gga3(X, s_11(Y), s_11(Z)) -> if_sum_3_in_1_gga4(X, Y, Z, sum_3_in_gga3(X, Y, Z))
if_sum_3_in_1_gga4(X, Y, Z, sum_3_out_gga3(X, Y, Z)) -> sum_3_out_gga3(X, s_11(Y), s_11(Z))
if_mult_3_in_2_gga5(X, Y, Z, W, sum_3_out_gga3(W, X, Z)) -> mult_3_out_gga3(X, s_11(Y), Z)
MULT_3_IN_GGA3(X, s_11(Y), Z) -> IF_MULT_3_IN_1_GGA4(X, Y, Z, mult_3_in_gga3(X, Y, W))
MULT_3_IN_GGA3(X, s_11(Y), Z) -> MULT_3_IN_GGA3(X, Y, W)
IF_MULT_3_IN_1_GGA4(X, Y, Z, mult_3_out_gga3(X, Y, W)) -> IF_MULT_3_IN_2_GGA5(X, Y, Z, W, sum_3_in_gga3(W, X, Z))
IF_MULT_3_IN_1_GGA4(X, Y, Z, mult_3_out_gga3(X, Y, W)) -> SUM_3_IN_GGA3(W, X, Z)
SUM_3_IN_GGA3(X, s_11(Y), s_11(Z)) -> IF_SUM_3_IN_1_GGA4(X, Y, Z, sum_3_in_gga3(X, Y, Z))
SUM_3_IN_GGA3(X, s_11(Y), s_11(Z)) -> SUM_3_IN_GGA3(X, Y, Z)
mult_3_in_gga3(underscore, 0_0, 0_0) -> mult_3_out_gga3(underscore, 0_0, 0_0)
mult_3_in_gga3(X, s_11(Y), Z) -> if_mult_3_in_1_gga4(X, Y, Z, mult_3_in_gga3(X, Y, W))
if_mult_3_in_1_gga4(X, Y, Z, mult_3_out_gga3(X, Y, W)) -> if_mult_3_in_2_gga5(X, Y, Z, W, sum_3_in_gga3(W, X, Z))
sum_3_in_gga3(X, 0_0, X) -> sum_3_out_gga3(X, 0_0, X)
sum_3_in_gga3(X, s_11(Y), s_11(Z)) -> if_sum_3_in_1_gga4(X, Y, Z, sum_3_in_gga3(X, Y, Z))
if_sum_3_in_1_gga4(X, Y, Z, sum_3_out_gga3(X, Y, Z)) -> sum_3_out_gga3(X, s_11(Y), s_11(Z))
if_mult_3_in_2_gga5(X, Y, Z, W, sum_3_out_gga3(W, X, Z)) -> mult_3_out_gga3(X, s_11(Y), Z)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
MULT_3_IN_GGA3(X, s_11(Y), Z) -> IF_MULT_3_IN_1_GGA4(X, Y, Z, mult_3_in_gga3(X, Y, W))
MULT_3_IN_GGA3(X, s_11(Y), Z) -> MULT_3_IN_GGA3(X, Y, W)
IF_MULT_3_IN_1_GGA4(X, Y, Z, mult_3_out_gga3(X, Y, W)) -> IF_MULT_3_IN_2_GGA5(X, Y, Z, W, sum_3_in_gga3(W, X, Z))
IF_MULT_3_IN_1_GGA4(X, Y, Z, mult_3_out_gga3(X, Y, W)) -> SUM_3_IN_GGA3(W, X, Z)
SUM_3_IN_GGA3(X, s_11(Y), s_11(Z)) -> IF_SUM_3_IN_1_GGA4(X, Y, Z, sum_3_in_gga3(X, Y, Z))
SUM_3_IN_GGA3(X, s_11(Y), s_11(Z)) -> SUM_3_IN_GGA3(X, Y, Z)
mult_3_in_gga3(underscore, 0_0, 0_0) -> mult_3_out_gga3(underscore, 0_0, 0_0)
mult_3_in_gga3(X, s_11(Y), Z) -> if_mult_3_in_1_gga4(X, Y, Z, mult_3_in_gga3(X, Y, W))
if_mult_3_in_1_gga4(X, Y, Z, mult_3_out_gga3(X, Y, W)) -> if_mult_3_in_2_gga5(X, Y, Z, W, sum_3_in_gga3(W, X, Z))
sum_3_in_gga3(X, 0_0, X) -> sum_3_out_gga3(X, 0_0, X)
sum_3_in_gga3(X, s_11(Y), s_11(Z)) -> if_sum_3_in_1_gga4(X, Y, Z, sum_3_in_gga3(X, Y, Z))
if_sum_3_in_1_gga4(X, Y, Z, sum_3_out_gga3(X, Y, Z)) -> sum_3_out_gga3(X, s_11(Y), s_11(Z))
if_mult_3_in_2_gga5(X, Y, Z, W, sum_3_out_gga3(W, X, Z)) -> mult_3_out_gga3(X, s_11(Y), Z)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
SUM_3_IN_GGA3(X, s_11(Y), s_11(Z)) -> SUM_3_IN_GGA3(X, Y, Z)
mult_3_in_gga3(underscore, 0_0, 0_0) -> mult_3_out_gga3(underscore, 0_0, 0_0)
mult_3_in_gga3(X, s_11(Y), Z) -> if_mult_3_in_1_gga4(X, Y, Z, mult_3_in_gga3(X, Y, W))
if_mult_3_in_1_gga4(X, Y, Z, mult_3_out_gga3(X, Y, W)) -> if_mult_3_in_2_gga5(X, Y, Z, W, sum_3_in_gga3(W, X, Z))
sum_3_in_gga3(X, 0_0, X) -> sum_3_out_gga3(X, 0_0, X)
sum_3_in_gga3(X, s_11(Y), s_11(Z)) -> if_sum_3_in_1_gga4(X, Y, Z, sum_3_in_gga3(X, Y, Z))
if_sum_3_in_1_gga4(X, Y, Z, sum_3_out_gga3(X, Y, Z)) -> sum_3_out_gga3(X, s_11(Y), s_11(Z))
if_mult_3_in_2_gga5(X, Y, Z, W, sum_3_out_gga3(W, X, Z)) -> mult_3_out_gga3(X, s_11(Y), Z)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ PiDP
SUM_3_IN_GGA3(X, s_11(Y), s_11(Z)) -> SUM_3_IN_GGA3(X, Y, Z)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
↳ PiDP
SUM_3_IN_GGA2(X, s_11(Y)) -> SUM_3_IN_GGA2(X, Y)
From the DPs we obtained the following set of size-change graphs:
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
MULT_3_IN_GGA3(X, s_11(Y), Z) -> MULT_3_IN_GGA3(X, Y, W)
mult_3_in_gga3(underscore, 0_0, 0_0) -> mult_3_out_gga3(underscore, 0_0, 0_0)
mult_3_in_gga3(X, s_11(Y), Z) -> if_mult_3_in_1_gga4(X, Y, Z, mult_3_in_gga3(X, Y, W))
if_mult_3_in_1_gga4(X, Y, Z, mult_3_out_gga3(X, Y, W)) -> if_mult_3_in_2_gga5(X, Y, Z, W, sum_3_in_gga3(W, X, Z))
sum_3_in_gga3(X, 0_0, X) -> sum_3_out_gga3(X, 0_0, X)
sum_3_in_gga3(X, s_11(Y), s_11(Z)) -> if_sum_3_in_1_gga4(X, Y, Z, sum_3_in_gga3(X, Y, Z))
if_sum_3_in_1_gga4(X, Y, Z, sum_3_out_gga3(X, Y, Z)) -> sum_3_out_gga3(X, s_11(Y), s_11(Z))
if_mult_3_in_2_gga5(X, Y, Z, W, sum_3_out_gga3(W, X, Z)) -> mult_3_out_gga3(X, s_11(Y), Z)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
MULT_3_IN_GGA3(X, s_11(Y), Z) -> MULT_3_IN_GGA3(X, Y, W)
↳ PROLOG
↳ PrologToPiTRSProof
↳ PiTRS
↳ DependencyPairsProof
↳ PiDP
↳ DependencyGraphProof
↳ AND
↳ PiDP
↳ PiDP
↳ UsableRulesProof
↳ PiDP
↳ PiDPToQDPProof
↳ QDP
↳ QDPSizeChangeProof
MULT_3_IN_GGA2(X, s_11(Y)) -> MULT_3_IN_GGA2(X, Y)
From the DPs we obtained the following set of size-change graphs: