0 Prolog
↳1 PrologToPiTRSProof (⇐)
↳2 PiTRS
↳3 DependencyPairsProof (⇔)
↳4 PiDP
↳5 DependencyGraphProof (⇔)
↳6 AND
↳7 PiDP
↳8 UsableRulesProof (⇔)
↳9 PiDP
↳10 PiDPToQDPProof (⇐)
↳11 QDP
↳12 QDPSizeChangeProof (⇔)
↳13 TRUE
↳14 PiDP
↳15 UsableRulesProof (⇔)
↳16 PiDP
↳17 PiDPToQDPProof (⇐)
↳18 QDP
↳19 QDPSizeChangeProof (⇔)
↳20 TRUE
↳21 PiDP
↳22 UsableRulesProof (⇔)
↳23 PiDP
↳24 PiDPToQDPProof (⇐)
↳25 QDP
↳26 QDPOrderProof (⇔)
↳27 QDP
↳28 DependencyGraphProof (⇔)
↳29 TRUE
↳30 PrologToPiTRSProof (⇐)
↳31 PiTRS
↳32 DependencyPairsProof (⇔)
↳33 PiDP
↳34 DependencyGraphProof (⇔)
↳35 AND
↳36 PiDP
↳37 UsableRulesProof (⇔)
↳38 PiDP
↳39 PiDPToQDPProof (⇐)
↳40 QDP
↳41 QDPSizeChangeProof (⇔)
↳42 TRUE
↳43 PiDP
↳44 UsableRulesProof (⇔)
↳45 PiDP
↳46 PiDPToQDPProof (⇐)
↳47 QDP
↳48 QDPSizeChangeProof (⇔)
↳49 TRUE
↳50 PiDP
↳51 UsableRulesProof (⇔)
↳52 PiDP
↳53 PiDPToQDPProof (⇐)
↳54 QDP
↳55 QDPOrderProof (⇔)
↳56 QDP
factor_in_ga(.(X, []), X) → factor_out_ga(.(X, []), X)
factor_in_ga(.(X, .(Y, Xs)), T) → U1_ga(X, Y, Xs, T, times_in_gga(X, Y, Z))
times_in_gga(0, X_, 0) → times_out_gga(0, X_, 0)
times_in_gga(s(X), Y, Z) → U3_gga(X, Y, Z, times_in_gga(X, Y, XY))
U3_gga(X, Y, Z, times_out_gga(X, Y, XY)) → U4_gga(X, Y, Z, plus_in_gga(XY, Y, Z))
plus_in_gga(0, X, X) → plus_out_gga(0, X, X)
plus_in_gga(s(X), Y, s(Z)) → U5_gga(X, Y, Z, plus_in_gga(X, Y, Z))
U5_gga(X, Y, Z, plus_out_gga(X, Y, Z)) → plus_out_gga(s(X), Y, s(Z))
U4_gga(X, Y, Z, plus_out_gga(XY, Y, Z)) → times_out_gga(s(X), Y, Z)
U1_ga(X, Y, Xs, T, times_out_gga(X, Y, Z)) → U2_ga(X, Y, Xs, T, factor_in_ga(.(Z, Xs), T))
U2_ga(X, Y, Xs, T, factor_out_ga(.(Z, Xs), T)) → factor_out_ga(.(X, .(Y, Xs)), T)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
factor_in_ga(.(X, []), X) → factor_out_ga(.(X, []), X)
factor_in_ga(.(X, .(Y, Xs)), T) → U1_ga(X, Y, Xs, T, times_in_gga(X, Y, Z))
times_in_gga(0, X_, 0) → times_out_gga(0, X_, 0)
times_in_gga(s(X), Y, Z) → U3_gga(X, Y, Z, times_in_gga(X, Y, XY))
U3_gga(X, Y, Z, times_out_gga(X, Y, XY)) → U4_gga(X, Y, Z, plus_in_gga(XY, Y, Z))
plus_in_gga(0, X, X) → plus_out_gga(0, X, X)
plus_in_gga(s(X), Y, s(Z)) → U5_gga(X, Y, Z, plus_in_gga(X, Y, Z))
U5_gga(X, Y, Z, plus_out_gga(X, Y, Z)) → plus_out_gga(s(X), Y, s(Z))
U4_gga(X, Y, Z, plus_out_gga(XY, Y, Z)) → times_out_gga(s(X), Y, Z)
U1_ga(X, Y, Xs, T, times_out_gga(X, Y, Z)) → U2_ga(X, Y, Xs, T, factor_in_ga(.(Z, Xs), T))
U2_ga(X, Y, Xs, T, factor_out_ga(.(Z, Xs), T)) → factor_out_ga(.(X, .(Y, Xs)), T)
FACTOR_IN_GA(.(X, .(Y, Xs)), T) → U1_GA(X, Y, Xs, T, times_in_gga(X, Y, Z))
FACTOR_IN_GA(.(X, .(Y, Xs)), T) → TIMES_IN_GGA(X, Y, Z)
TIMES_IN_GGA(s(X), Y, Z) → U3_GGA(X, Y, Z, times_in_gga(X, Y, XY))
TIMES_IN_GGA(s(X), Y, Z) → TIMES_IN_GGA(X, Y, XY)
U3_GGA(X, Y, Z, times_out_gga(X, Y, XY)) → U4_GGA(X, Y, Z, plus_in_gga(XY, Y, Z))
U3_GGA(X, Y, Z, times_out_gga(X, Y, XY)) → PLUS_IN_GGA(XY, Y, Z)
PLUS_IN_GGA(s(X), Y, s(Z)) → U5_GGA(X, Y, Z, plus_in_gga(X, Y, Z))
PLUS_IN_GGA(s(X), Y, s(Z)) → PLUS_IN_GGA(X, Y, Z)
U1_GA(X, Y, Xs, T, times_out_gga(X, Y, Z)) → U2_GA(X, Y, Xs, T, factor_in_ga(.(Z, Xs), T))
U1_GA(X, Y, Xs, T, times_out_gga(X, Y, Z)) → FACTOR_IN_GA(.(Z, Xs), T)
factor_in_ga(.(X, []), X) → factor_out_ga(.(X, []), X)
factor_in_ga(.(X, .(Y, Xs)), T) → U1_ga(X, Y, Xs, T, times_in_gga(X, Y, Z))
times_in_gga(0, X_, 0) → times_out_gga(0, X_, 0)
times_in_gga(s(X), Y, Z) → U3_gga(X, Y, Z, times_in_gga(X, Y, XY))
U3_gga(X, Y, Z, times_out_gga(X, Y, XY)) → U4_gga(X, Y, Z, plus_in_gga(XY, Y, Z))
plus_in_gga(0, X, X) → plus_out_gga(0, X, X)
plus_in_gga(s(X), Y, s(Z)) → U5_gga(X, Y, Z, plus_in_gga(X, Y, Z))
U5_gga(X, Y, Z, plus_out_gga(X, Y, Z)) → plus_out_gga(s(X), Y, s(Z))
U4_gga(X, Y, Z, plus_out_gga(XY, Y, Z)) → times_out_gga(s(X), Y, Z)
U1_ga(X, Y, Xs, T, times_out_gga(X, Y, Z)) → U2_ga(X, Y, Xs, T, factor_in_ga(.(Z, Xs), T))
U2_ga(X, Y, Xs, T, factor_out_ga(.(Z, Xs), T)) → factor_out_ga(.(X, .(Y, Xs)), T)
FACTOR_IN_GA(.(X, .(Y, Xs)), T) → U1_GA(X, Y, Xs, T, times_in_gga(X, Y, Z))
FACTOR_IN_GA(.(X, .(Y, Xs)), T) → TIMES_IN_GGA(X, Y, Z)
TIMES_IN_GGA(s(X), Y, Z) → U3_GGA(X, Y, Z, times_in_gga(X, Y, XY))
TIMES_IN_GGA(s(X), Y, Z) → TIMES_IN_GGA(X, Y, XY)
U3_GGA(X, Y, Z, times_out_gga(X, Y, XY)) → U4_GGA(X, Y, Z, plus_in_gga(XY, Y, Z))
U3_GGA(X, Y, Z, times_out_gga(X, Y, XY)) → PLUS_IN_GGA(XY, Y, Z)
PLUS_IN_GGA(s(X), Y, s(Z)) → U5_GGA(X, Y, Z, plus_in_gga(X, Y, Z))
PLUS_IN_GGA(s(X), Y, s(Z)) → PLUS_IN_GGA(X, Y, Z)
U1_GA(X, Y, Xs, T, times_out_gga(X, Y, Z)) → U2_GA(X, Y, Xs, T, factor_in_ga(.(Z, Xs), T))
U1_GA(X, Y, Xs, T, times_out_gga(X, Y, Z)) → FACTOR_IN_GA(.(Z, Xs), T)
factor_in_ga(.(X, []), X) → factor_out_ga(.(X, []), X)
factor_in_ga(.(X, .(Y, Xs)), T) → U1_ga(X, Y, Xs, T, times_in_gga(X, Y, Z))
times_in_gga(0, X_, 0) → times_out_gga(0, X_, 0)
times_in_gga(s(X), Y, Z) → U3_gga(X, Y, Z, times_in_gga(X, Y, XY))
U3_gga(X, Y, Z, times_out_gga(X, Y, XY)) → U4_gga(X, Y, Z, plus_in_gga(XY, Y, Z))
plus_in_gga(0, X, X) → plus_out_gga(0, X, X)
plus_in_gga(s(X), Y, s(Z)) → U5_gga(X, Y, Z, plus_in_gga(X, Y, Z))
U5_gga(X, Y, Z, plus_out_gga(X, Y, Z)) → plus_out_gga(s(X), Y, s(Z))
U4_gga(X, Y, Z, plus_out_gga(XY, Y, Z)) → times_out_gga(s(X), Y, Z)
U1_ga(X, Y, Xs, T, times_out_gga(X, Y, Z)) → U2_ga(X, Y, Xs, T, factor_in_ga(.(Z, Xs), T))
U2_ga(X, Y, Xs, T, factor_out_ga(.(Z, Xs), T)) → factor_out_ga(.(X, .(Y, Xs)), T)
PLUS_IN_GGA(s(X), Y, s(Z)) → PLUS_IN_GGA(X, Y, Z)
factor_in_ga(.(X, []), X) → factor_out_ga(.(X, []), X)
factor_in_ga(.(X, .(Y, Xs)), T) → U1_ga(X, Y, Xs, T, times_in_gga(X, Y, Z))
times_in_gga(0, X_, 0) → times_out_gga(0, X_, 0)
times_in_gga(s(X), Y, Z) → U3_gga(X, Y, Z, times_in_gga(X, Y, XY))
U3_gga(X, Y, Z, times_out_gga(X, Y, XY)) → U4_gga(X, Y, Z, plus_in_gga(XY, Y, Z))
plus_in_gga(0, X, X) → plus_out_gga(0, X, X)
plus_in_gga(s(X), Y, s(Z)) → U5_gga(X, Y, Z, plus_in_gga(X, Y, Z))
U5_gga(X, Y, Z, plus_out_gga(X, Y, Z)) → plus_out_gga(s(X), Y, s(Z))
U4_gga(X, Y, Z, plus_out_gga(XY, Y, Z)) → times_out_gga(s(X), Y, Z)
U1_ga(X, Y, Xs, T, times_out_gga(X, Y, Z)) → U2_ga(X, Y, Xs, T, factor_in_ga(.(Z, Xs), T))
U2_ga(X, Y, Xs, T, factor_out_ga(.(Z, Xs), T)) → factor_out_ga(.(X, .(Y, Xs)), T)
PLUS_IN_GGA(s(X), Y, s(Z)) → PLUS_IN_GGA(X, Y, Z)
PLUS_IN_GGA(s(X), Y) → PLUS_IN_GGA(X, Y)
From the DPs we obtained the following set of size-change graphs:
TIMES_IN_GGA(s(X), Y, Z) → TIMES_IN_GGA(X, Y, XY)
factor_in_ga(.(X, []), X) → factor_out_ga(.(X, []), X)
factor_in_ga(.(X, .(Y, Xs)), T) → U1_ga(X, Y, Xs, T, times_in_gga(X, Y, Z))
times_in_gga(0, X_, 0) → times_out_gga(0, X_, 0)
times_in_gga(s(X), Y, Z) → U3_gga(X, Y, Z, times_in_gga(X, Y, XY))
U3_gga(X, Y, Z, times_out_gga(X, Y, XY)) → U4_gga(X, Y, Z, plus_in_gga(XY, Y, Z))
plus_in_gga(0, X, X) → plus_out_gga(0, X, X)
plus_in_gga(s(X), Y, s(Z)) → U5_gga(X, Y, Z, plus_in_gga(X, Y, Z))
U5_gga(X, Y, Z, plus_out_gga(X, Y, Z)) → plus_out_gga(s(X), Y, s(Z))
U4_gga(X, Y, Z, plus_out_gga(XY, Y, Z)) → times_out_gga(s(X), Y, Z)
U1_ga(X, Y, Xs, T, times_out_gga(X, Y, Z)) → U2_ga(X, Y, Xs, T, factor_in_ga(.(Z, Xs), T))
U2_ga(X, Y, Xs, T, factor_out_ga(.(Z, Xs), T)) → factor_out_ga(.(X, .(Y, Xs)), T)
TIMES_IN_GGA(s(X), Y, Z) → TIMES_IN_GGA(X, Y, XY)
TIMES_IN_GGA(s(X), Y) → TIMES_IN_GGA(X, Y)
From the DPs we obtained the following set of size-change graphs:
U1_GA(X, Y, Xs, T, times_out_gga(X, Y, Z)) → FACTOR_IN_GA(.(Z, Xs), T)
FACTOR_IN_GA(.(X, .(Y, Xs)), T) → U1_GA(X, Y, Xs, T, times_in_gga(X, Y, Z))
factor_in_ga(.(X, []), X) → factor_out_ga(.(X, []), X)
factor_in_ga(.(X, .(Y, Xs)), T) → U1_ga(X, Y, Xs, T, times_in_gga(X, Y, Z))
times_in_gga(0, X_, 0) → times_out_gga(0, X_, 0)
times_in_gga(s(X), Y, Z) → U3_gga(X, Y, Z, times_in_gga(X, Y, XY))
U3_gga(X, Y, Z, times_out_gga(X, Y, XY)) → U4_gga(X, Y, Z, plus_in_gga(XY, Y, Z))
plus_in_gga(0, X, X) → plus_out_gga(0, X, X)
plus_in_gga(s(X), Y, s(Z)) → U5_gga(X, Y, Z, plus_in_gga(X, Y, Z))
U5_gga(X, Y, Z, plus_out_gga(X, Y, Z)) → plus_out_gga(s(X), Y, s(Z))
U4_gga(X, Y, Z, plus_out_gga(XY, Y, Z)) → times_out_gga(s(X), Y, Z)
U1_ga(X, Y, Xs, T, times_out_gga(X, Y, Z)) → U2_ga(X, Y, Xs, T, factor_in_ga(.(Z, Xs), T))
U2_ga(X, Y, Xs, T, factor_out_ga(.(Z, Xs), T)) → factor_out_ga(.(X, .(Y, Xs)), T)
U1_GA(X, Y, Xs, T, times_out_gga(X, Y, Z)) → FACTOR_IN_GA(.(Z, Xs), T)
FACTOR_IN_GA(.(X, .(Y, Xs)), T) → U1_GA(X, Y, Xs, T, times_in_gga(X, Y, Z))
times_in_gga(0, X_, 0) → times_out_gga(0, X_, 0)
times_in_gga(s(X), Y, Z) → U3_gga(X, Y, Z, times_in_gga(X, Y, XY))
U3_gga(X, Y, Z, times_out_gga(X, Y, XY)) → U4_gga(X, Y, Z, plus_in_gga(XY, Y, Z))
U4_gga(X, Y, Z, plus_out_gga(XY, Y, Z)) → times_out_gga(s(X), Y, Z)
plus_in_gga(0, X, X) → plus_out_gga(0, X, X)
plus_in_gga(s(X), Y, s(Z)) → U5_gga(X, Y, Z, plus_in_gga(X, Y, Z))
U5_gga(X, Y, Z, plus_out_gga(X, Y, Z)) → plus_out_gga(s(X), Y, s(Z))
U1_GA(Xs, times_out_gga(Z)) → FACTOR_IN_GA(.(Z, Xs))
FACTOR_IN_GA(.(X, .(Y, Xs))) → U1_GA(Xs, times_in_gga(X, Y))
times_in_gga(0, X_) → times_out_gga(0)
times_in_gga(s(X), Y) → U3_gga(Y, times_in_gga(X, Y))
U3_gga(Y, times_out_gga(XY)) → U4_gga(plus_in_gga(XY, Y))
U4_gga(plus_out_gga(Z)) → times_out_gga(Z)
plus_in_gga(0, X) → plus_out_gga(X)
plus_in_gga(s(X), Y) → U5_gga(plus_in_gga(X, Y))
U5_gga(plus_out_gga(Z)) → plus_out_gga(s(Z))
times_in_gga(x0, x1)
U3_gga(x0, x1)
U4_gga(x0)
plus_in_gga(x0, x1)
U5_gga(x0)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
FACTOR_IN_GA(.(X, .(Y, Xs))) → U1_GA(Xs, times_in_gga(X, Y))
POL(.(x1, x2)) = 1 + x2
POL(0) = 0
POL(FACTOR_IN_GA(x1)) = x1
POL(U1_GA(x1, x2)) = 1 + x1
POL(U3_gga(x1, x2)) = 0
POL(U4_gga(x1)) = 0
POL(U5_gga(x1)) = 0
POL(plus_in_gga(x1, x2)) = 0
POL(plus_out_gga(x1)) = 0
POL(s(x1)) = 0
POL(times_in_gga(x1, x2)) = 0
POL(times_out_gga(x1)) = 0
U1_GA(Xs, times_out_gga(Z)) → FACTOR_IN_GA(.(Z, Xs))
times_in_gga(0, X_) → times_out_gga(0)
times_in_gga(s(X), Y) → U3_gga(Y, times_in_gga(X, Y))
U3_gga(Y, times_out_gga(XY)) → U4_gga(plus_in_gga(XY, Y))
U4_gga(plus_out_gga(Z)) → times_out_gga(Z)
plus_in_gga(0, X) → plus_out_gga(X)
plus_in_gga(s(X), Y) → U5_gga(plus_in_gga(X, Y))
U5_gga(plus_out_gga(Z)) → plus_out_gga(s(Z))
times_in_gga(x0, x1)
U3_gga(x0, x1)
U4_gga(x0)
plus_in_gga(x0, x1)
U5_gga(x0)
factor_in_ga(.(X, []), X) → factor_out_ga(.(X, []), X)
factor_in_ga(.(X, .(Y, Xs)), T) → U1_ga(X, Y, Xs, T, times_in_gga(X, Y, Z))
times_in_gga(0, X_, 0) → times_out_gga(0, X_, 0)
times_in_gga(s(X), Y, Z) → U3_gga(X, Y, Z, times_in_gga(X, Y, XY))
U3_gga(X, Y, Z, times_out_gga(X, Y, XY)) → U4_gga(X, Y, Z, plus_in_gga(XY, Y, Z))
plus_in_gga(0, X, X) → plus_out_gga(0, X, X)
plus_in_gga(s(X), Y, s(Z)) → U5_gga(X, Y, Z, plus_in_gga(X, Y, Z))
U5_gga(X, Y, Z, plus_out_gga(X, Y, Z)) → plus_out_gga(s(X), Y, s(Z))
U4_gga(X, Y, Z, plus_out_gga(XY, Y, Z)) → times_out_gga(s(X), Y, Z)
U1_ga(X, Y, Xs, T, times_out_gga(X, Y, Z)) → U2_ga(X, Y, Xs, T, factor_in_ga(.(Z, Xs), T))
U2_ga(X, Y, Xs, T, factor_out_ga(.(Z, Xs), T)) → factor_out_ga(.(X, .(Y, Xs)), T)
Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog
factor_in_ga(.(X, []), X) → factor_out_ga(.(X, []), X)
factor_in_ga(.(X, .(Y, Xs)), T) → U1_ga(X, Y, Xs, T, times_in_gga(X, Y, Z))
times_in_gga(0, X_, 0) → times_out_gga(0, X_, 0)
times_in_gga(s(X), Y, Z) → U3_gga(X, Y, Z, times_in_gga(X, Y, XY))
U3_gga(X, Y, Z, times_out_gga(X, Y, XY)) → U4_gga(X, Y, Z, plus_in_gga(XY, Y, Z))
plus_in_gga(0, X, X) → plus_out_gga(0, X, X)
plus_in_gga(s(X), Y, s(Z)) → U5_gga(X, Y, Z, plus_in_gga(X, Y, Z))
U5_gga(X, Y, Z, plus_out_gga(X, Y, Z)) → plus_out_gga(s(X), Y, s(Z))
U4_gga(X, Y, Z, plus_out_gga(XY, Y, Z)) → times_out_gga(s(X), Y, Z)
U1_ga(X, Y, Xs, T, times_out_gga(X, Y, Z)) → U2_ga(X, Y, Xs, T, factor_in_ga(.(Z, Xs), T))
U2_ga(X, Y, Xs, T, factor_out_ga(.(Z, Xs), T)) → factor_out_ga(.(X, .(Y, Xs)), T)
FACTOR_IN_GA(.(X, .(Y, Xs)), T) → U1_GA(X, Y, Xs, T, times_in_gga(X, Y, Z))
FACTOR_IN_GA(.(X, .(Y, Xs)), T) → TIMES_IN_GGA(X, Y, Z)
TIMES_IN_GGA(s(X), Y, Z) → U3_GGA(X, Y, Z, times_in_gga(X, Y, XY))
TIMES_IN_GGA(s(X), Y, Z) → TIMES_IN_GGA(X, Y, XY)
U3_GGA(X, Y, Z, times_out_gga(X, Y, XY)) → U4_GGA(X, Y, Z, plus_in_gga(XY, Y, Z))
U3_GGA(X, Y, Z, times_out_gga(X, Y, XY)) → PLUS_IN_GGA(XY, Y, Z)
PLUS_IN_GGA(s(X), Y, s(Z)) → U5_GGA(X, Y, Z, plus_in_gga(X, Y, Z))
PLUS_IN_GGA(s(X), Y, s(Z)) → PLUS_IN_GGA(X, Y, Z)
U1_GA(X, Y, Xs, T, times_out_gga(X, Y, Z)) → U2_GA(X, Y, Xs, T, factor_in_ga(.(Z, Xs), T))
U1_GA(X, Y, Xs, T, times_out_gga(X, Y, Z)) → FACTOR_IN_GA(.(Z, Xs), T)
factor_in_ga(.(X, []), X) → factor_out_ga(.(X, []), X)
factor_in_ga(.(X, .(Y, Xs)), T) → U1_ga(X, Y, Xs, T, times_in_gga(X, Y, Z))
times_in_gga(0, X_, 0) → times_out_gga(0, X_, 0)
times_in_gga(s(X), Y, Z) → U3_gga(X, Y, Z, times_in_gga(X, Y, XY))
U3_gga(X, Y, Z, times_out_gga(X, Y, XY)) → U4_gga(X, Y, Z, plus_in_gga(XY, Y, Z))
plus_in_gga(0, X, X) → plus_out_gga(0, X, X)
plus_in_gga(s(X), Y, s(Z)) → U5_gga(X, Y, Z, plus_in_gga(X, Y, Z))
U5_gga(X, Y, Z, plus_out_gga(X, Y, Z)) → plus_out_gga(s(X), Y, s(Z))
U4_gga(X, Y, Z, plus_out_gga(XY, Y, Z)) → times_out_gga(s(X), Y, Z)
U1_ga(X, Y, Xs, T, times_out_gga(X, Y, Z)) → U2_ga(X, Y, Xs, T, factor_in_ga(.(Z, Xs), T))
U2_ga(X, Y, Xs, T, factor_out_ga(.(Z, Xs), T)) → factor_out_ga(.(X, .(Y, Xs)), T)
FACTOR_IN_GA(.(X, .(Y, Xs)), T) → U1_GA(X, Y, Xs, T, times_in_gga(X, Y, Z))
FACTOR_IN_GA(.(X, .(Y, Xs)), T) → TIMES_IN_GGA(X, Y, Z)
TIMES_IN_GGA(s(X), Y, Z) → U3_GGA(X, Y, Z, times_in_gga(X, Y, XY))
TIMES_IN_GGA(s(X), Y, Z) → TIMES_IN_GGA(X, Y, XY)
U3_GGA(X, Y, Z, times_out_gga(X, Y, XY)) → U4_GGA(X, Y, Z, plus_in_gga(XY, Y, Z))
U3_GGA(X, Y, Z, times_out_gga(X, Y, XY)) → PLUS_IN_GGA(XY, Y, Z)
PLUS_IN_GGA(s(X), Y, s(Z)) → U5_GGA(X, Y, Z, plus_in_gga(X, Y, Z))
PLUS_IN_GGA(s(X), Y, s(Z)) → PLUS_IN_GGA(X, Y, Z)
U1_GA(X, Y, Xs, T, times_out_gga(X, Y, Z)) → U2_GA(X, Y, Xs, T, factor_in_ga(.(Z, Xs), T))
U1_GA(X, Y, Xs, T, times_out_gga(X, Y, Z)) → FACTOR_IN_GA(.(Z, Xs), T)
factor_in_ga(.(X, []), X) → factor_out_ga(.(X, []), X)
factor_in_ga(.(X, .(Y, Xs)), T) → U1_ga(X, Y, Xs, T, times_in_gga(X, Y, Z))
times_in_gga(0, X_, 0) → times_out_gga(0, X_, 0)
times_in_gga(s(X), Y, Z) → U3_gga(X, Y, Z, times_in_gga(X, Y, XY))
U3_gga(X, Y, Z, times_out_gga(X, Y, XY)) → U4_gga(X, Y, Z, plus_in_gga(XY, Y, Z))
plus_in_gga(0, X, X) → plus_out_gga(0, X, X)
plus_in_gga(s(X), Y, s(Z)) → U5_gga(X, Y, Z, plus_in_gga(X, Y, Z))
U5_gga(X, Y, Z, plus_out_gga(X, Y, Z)) → plus_out_gga(s(X), Y, s(Z))
U4_gga(X, Y, Z, plus_out_gga(XY, Y, Z)) → times_out_gga(s(X), Y, Z)
U1_ga(X, Y, Xs, T, times_out_gga(X, Y, Z)) → U2_ga(X, Y, Xs, T, factor_in_ga(.(Z, Xs), T))
U2_ga(X, Y, Xs, T, factor_out_ga(.(Z, Xs), T)) → factor_out_ga(.(X, .(Y, Xs)), T)
PLUS_IN_GGA(s(X), Y, s(Z)) → PLUS_IN_GGA(X, Y, Z)
factor_in_ga(.(X, []), X) → factor_out_ga(.(X, []), X)
factor_in_ga(.(X, .(Y, Xs)), T) → U1_ga(X, Y, Xs, T, times_in_gga(X, Y, Z))
times_in_gga(0, X_, 0) → times_out_gga(0, X_, 0)
times_in_gga(s(X), Y, Z) → U3_gga(X, Y, Z, times_in_gga(X, Y, XY))
U3_gga(X, Y, Z, times_out_gga(X, Y, XY)) → U4_gga(X, Y, Z, plus_in_gga(XY, Y, Z))
plus_in_gga(0, X, X) → plus_out_gga(0, X, X)
plus_in_gga(s(X), Y, s(Z)) → U5_gga(X, Y, Z, plus_in_gga(X, Y, Z))
U5_gga(X, Y, Z, plus_out_gga(X, Y, Z)) → plus_out_gga(s(X), Y, s(Z))
U4_gga(X, Y, Z, plus_out_gga(XY, Y, Z)) → times_out_gga(s(X), Y, Z)
U1_ga(X, Y, Xs, T, times_out_gga(X, Y, Z)) → U2_ga(X, Y, Xs, T, factor_in_ga(.(Z, Xs), T))
U2_ga(X, Y, Xs, T, factor_out_ga(.(Z, Xs), T)) → factor_out_ga(.(X, .(Y, Xs)), T)
PLUS_IN_GGA(s(X), Y, s(Z)) → PLUS_IN_GGA(X, Y, Z)
PLUS_IN_GGA(s(X), Y) → PLUS_IN_GGA(X, Y)
From the DPs we obtained the following set of size-change graphs:
TIMES_IN_GGA(s(X), Y, Z) → TIMES_IN_GGA(X, Y, XY)
factor_in_ga(.(X, []), X) → factor_out_ga(.(X, []), X)
factor_in_ga(.(X, .(Y, Xs)), T) → U1_ga(X, Y, Xs, T, times_in_gga(X, Y, Z))
times_in_gga(0, X_, 0) → times_out_gga(0, X_, 0)
times_in_gga(s(X), Y, Z) → U3_gga(X, Y, Z, times_in_gga(X, Y, XY))
U3_gga(X, Y, Z, times_out_gga(X, Y, XY)) → U4_gga(X, Y, Z, plus_in_gga(XY, Y, Z))
plus_in_gga(0, X, X) → plus_out_gga(0, X, X)
plus_in_gga(s(X), Y, s(Z)) → U5_gga(X, Y, Z, plus_in_gga(X, Y, Z))
U5_gga(X, Y, Z, plus_out_gga(X, Y, Z)) → plus_out_gga(s(X), Y, s(Z))
U4_gga(X, Y, Z, plus_out_gga(XY, Y, Z)) → times_out_gga(s(X), Y, Z)
U1_ga(X, Y, Xs, T, times_out_gga(X, Y, Z)) → U2_ga(X, Y, Xs, T, factor_in_ga(.(Z, Xs), T))
U2_ga(X, Y, Xs, T, factor_out_ga(.(Z, Xs), T)) → factor_out_ga(.(X, .(Y, Xs)), T)
TIMES_IN_GGA(s(X), Y, Z) → TIMES_IN_GGA(X, Y, XY)
TIMES_IN_GGA(s(X), Y) → TIMES_IN_GGA(X, Y)
From the DPs we obtained the following set of size-change graphs:
U1_GA(X, Y, Xs, T, times_out_gga(X, Y, Z)) → FACTOR_IN_GA(.(Z, Xs), T)
FACTOR_IN_GA(.(X, .(Y, Xs)), T) → U1_GA(X, Y, Xs, T, times_in_gga(X, Y, Z))
factor_in_ga(.(X, []), X) → factor_out_ga(.(X, []), X)
factor_in_ga(.(X, .(Y, Xs)), T) → U1_ga(X, Y, Xs, T, times_in_gga(X, Y, Z))
times_in_gga(0, X_, 0) → times_out_gga(0, X_, 0)
times_in_gga(s(X), Y, Z) → U3_gga(X, Y, Z, times_in_gga(X, Y, XY))
U3_gga(X, Y, Z, times_out_gga(X, Y, XY)) → U4_gga(X, Y, Z, plus_in_gga(XY, Y, Z))
plus_in_gga(0, X, X) → plus_out_gga(0, X, X)
plus_in_gga(s(X), Y, s(Z)) → U5_gga(X, Y, Z, plus_in_gga(X, Y, Z))
U5_gga(X, Y, Z, plus_out_gga(X, Y, Z)) → plus_out_gga(s(X), Y, s(Z))
U4_gga(X, Y, Z, plus_out_gga(XY, Y, Z)) → times_out_gga(s(X), Y, Z)
U1_ga(X, Y, Xs, T, times_out_gga(X, Y, Z)) → U2_ga(X, Y, Xs, T, factor_in_ga(.(Z, Xs), T))
U2_ga(X, Y, Xs, T, factor_out_ga(.(Z, Xs), T)) → factor_out_ga(.(X, .(Y, Xs)), T)
U1_GA(X, Y, Xs, T, times_out_gga(X, Y, Z)) → FACTOR_IN_GA(.(Z, Xs), T)
FACTOR_IN_GA(.(X, .(Y, Xs)), T) → U1_GA(X, Y, Xs, T, times_in_gga(X, Y, Z))
times_in_gga(0, X_, 0) → times_out_gga(0, X_, 0)
times_in_gga(s(X), Y, Z) → U3_gga(X, Y, Z, times_in_gga(X, Y, XY))
U3_gga(X, Y, Z, times_out_gga(X, Y, XY)) → U4_gga(X, Y, Z, plus_in_gga(XY, Y, Z))
U4_gga(X, Y, Z, plus_out_gga(XY, Y, Z)) → times_out_gga(s(X), Y, Z)
plus_in_gga(0, X, X) → plus_out_gga(0, X, X)
plus_in_gga(s(X), Y, s(Z)) → U5_gga(X, Y, Z, plus_in_gga(X, Y, Z))
U5_gga(X, Y, Z, plus_out_gga(X, Y, Z)) → plus_out_gga(s(X), Y, s(Z))
U1_GA(X, Y, Xs, times_out_gga(X, Y, Z)) → FACTOR_IN_GA(.(Z, Xs))
FACTOR_IN_GA(.(X, .(Y, Xs))) → U1_GA(X, Y, Xs, times_in_gga(X, Y))
times_in_gga(0, X_) → times_out_gga(0, X_, 0)
times_in_gga(s(X), Y) → U3_gga(X, Y, times_in_gga(X, Y))
U3_gga(X, Y, times_out_gga(X, Y, XY)) → U4_gga(X, Y, plus_in_gga(XY, Y))
U4_gga(X, Y, plus_out_gga(XY, Y, Z)) → times_out_gga(s(X), Y, Z)
plus_in_gga(0, X) → plus_out_gga(0, X, X)
plus_in_gga(s(X), Y) → U5_gga(X, Y, plus_in_gga(X, Y))
U5_gga(X, Y, plus_out_gga(X, Y, Z)) → plus_out_gga(s(X), Y, s(Z))
times_in_gga(x0, x1)
U3_gga(x0, x1, x2)
U4_gga(x0, x1, x2)
plus_in_gga(x0, x1)
U5_gga(x0, x1, x2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
FACTOR_IN_GA(.(X, .(Y, Xs))) → U1_GA(X, Y, Xs, times_in_gga(X, Y))
POL(.(x1, x2)) = 1 + x2
POL(0) = 0
POL(FACTOR_IN_GA(x1)) = x1
POL(U1_GA(x1, x2, x3, x4)) = 1 + x3
POL(U3_gga(x1, x2, x3)) = 0
POL(U4_gga(x1, x2, x3)) = 0
POL(U5_gga(x1, x2, x3)) = 1 + x1
POL(plus_in_gga(x1, x2)) = 1 + x1 + x2
POL(plus_out_gga(x1, x2, x3)) = 0
POL(s(x1)) = 1 + x1
POL(times_in_gga(x1, x2)) = 0
POL(times_out_gga(x1, x2, x3)) = 0
U1_GA(X, Y, Xs, times_out_gga(X, Y, Z)) → FACTOR_IN_GA(.(Z, Xs))
times_in_gga(0, X_) → times_out_gga(0, X_, 0)
times_in_gga(s(X), Y) → U3_gga(X, Y, times_in_gga(X, Y))
U3_gga(X, Y, times_out_gga(X, Y, XY)) → U4_gga(X, Y, plus_in_gga(XY, Y))
U4_gga(X, Y, plus_out_gga(XY, Y, Z)) → times_out_gga(s(X), Y, Z)
plus_in_gga(0, X) → plus_out_gga(0, X, X)
plus_in_gga(s(X), Y) → U5_gga(X, Y, plus_in_gga(X, Y))
U5_gga(X, Y, plus_out_gga(X, Y, Z)) → plus_out_gga(s(X), Y, s(Z))
times_in_gga(x0, x1)
U3_gga(x0, x1, x2)
U4_gga(x0, x1, x2)
plus_in_gga(x0, x1)
U5_gga(x0, x1, x2)