(0) Obligation:

Clauses:

div(X1, 0, X2, X3) :- ','(!, failure(a)).
div(0, X4, Z, R) :- ','(!, ','(eq(Z, 0), eq(R, 0))).
div(X, Y, s(Z), R) :- ','(minus(X, Y, U), ','(!, div(U, Y, Z, R))).
div(X, X5, X6, X).
minus(X, 0, X).
minus(s(X), s(Y), Z) :- minus(X, Y, Z).
failure(b).
eq(X, X).

Query: div(g,g,a,a)

(1) PrologToPiTRSViaGraphTransformerProof (SOUND transformation)

Transformed Prolog program to (Pi-)TRS.

(2) Obligation:

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

divA_in_ggaa(0, T14, 0, 0) → divA_out_ggaa(0, T14, 0, 0)
divA_in_ggaa(s(T45), s(T46), s(T34), T35) → U1_ggaa(T45, T46, T34, T35, pB_in_ggaaa(T45, T46, X54, T34, T35))
pB_in_ggaaa(T45, T46, T49, T34, T35) → U4_ggaaa(T45, T46, T49, T34, T35, minusC_in_gga(T45, T46, T49))
minusC_in_gga(T56, 0, T56) → minusC_out_gga(T56, 0, T56)
minusC_in_gga(s(T61), s(T62), X75) → U2_gga(T61, T62, X75, minusC_in_gga(T61, T62, X75))
U2_gga(T61, T62, X75, minusC_out_gga(T61, T62, X75)) → minusC_out_gga(s(T61), s(T62), X75)
U4_ggaaa(T45, T46, T49, T34, T35, minusC_out_gga(T45, T46, T49)) → U5_ggaaa(T45, T46, T49, T34, T35, pD_in_ggaa(T49, T46, T34, T35))
pD_in_ggaa(T49, T46, T34, T35) → U3_ggaa(T49, T46, T34, T35, divA_in_ggaa(T49, s(T46), T34, T35))
divA_in_ggaa(T72, T73, T74, T72) → divA_out_ggaa(T72, T73, T74, T72)
U3_ggaa(T49, T46, T34, T35, divA_out_ggaa(T49, s(T46), T34, T35)) → pD_out_ggaa(T49, T46, T34, T35)
U5_ggaaa(T45, T46, T49, T34, T35, pD_out_ggaa(T49, T46, T34, T35)) → pB_out_ggaaa(T45, T46, T49, T34, T35)
U1_ggaa(T45, T46, T34, T35, pB_out_ggaaa(T45, T46, X54, T34, T35)) → divA_out_ggaa(s(T45), s(T46), s(T34), T35)

The argument filtering Pi contains the following mapping:
divA_in_ggaa(x1, x2, x3, x4)  =  divA_in_ggaa(x1, x2)
0  =  0
divA_out_ggaa(x1, x2, x3, x4)  =  divA_out_ggaa(x1, x2, x4)
s(x1)  =  s(x1)
U1_ggaa(x1, x2, x3, x4, x5)  =  U1_ggaa(x1, x2, x5)
pB_in_ggaaa(x1, x2, x3, x4, x5)  =  pB_in_ggaaa(x1, x2)
U4_ggaaa(x1, x2, x3, x4, x5, x6)  =  U4_ggaaa(x1, x2, x6)
minusC_in_gga(x1, x2, x3)  =  minusC_in_gga(x1, x2)
minusC_out_gga(x1, x2, x3)  =  minusC_out_gga(x1, x2, x3)
U2_gga(x1, x2, x3, x4)  =  U2_gga(x1, x2, x4)
U5_ggaaa(x1, x2, x3, x4, x5, x6)  =  U5_ggaaa(x1, x2, x3, x6)
pD_in_ggaa(x1, x2, x3, x4)  =  pD_in_ggaa(x1, x2)
U3_ggaa(x1, x2, x3, x4, x5)  =  U3_ggaa(x1, x2, x5)
pD_out_ggaa(x1, x2, x3, x4)  =  pD_out_ggaa(x1, x2, x4)
pB_out_ggaaa(x1, x2, x3, x4, x5)  =  pB_out_ggaaa(x1, x2, x3, x5)

(3) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

DIVA_IN_GGAA(s(T45), s(T46), s(T34), T35) → U1_GGAA(T45, T46, T34, T35, pB_in_ggaaa(T45, T46, X54, T34, T35))
DIVA_IN_GGAA(s(T45), s(T46), s(T34), T35) → PB_IN_GGAAA(T45, T46, X54, T34, T35)
PB_IN_GGAAA(T45, T46, T49, T34, T35) → U4_GGAAA(T45, T46, T49, T34, T35, minusC_in_gga(T45, T46, T49))
PB_IN_GGAAA(T45, T46, T49, T34, T35) → MINUSC_IN_GGA(T45, T46, T49)
MINUSC_IN_GGA(s(T61), s(T62), X75) → U2_GGA(T61, T62, X75, minusC_in_gga(T61, T62, X75))
MINUSC_IN_GGA(s(T61), s(T62), X75) → MINUSC_IN_GGA(T61, T62, X75)
U4_GGAAA(T45, T46, T49, T34, T35, minusC_out_gga(T45, T46, T49)) → U5_GGAAA(T45, T46, T49, T34, T35, pD_in_ggaa(T49, T46, T34, T35))
U4_GGAAA(T45, T46, T49, T34, T35, minusC_out_gga(T45, T46, T49)) → PD_IN_GGAA(T49, T46, T34, T35)
PD_IN_GGAA(T49, T46, T34, T35) → U3_GGAA(T49, T46, T34, T35, divA_in_ggaa(T49, s(T46), T34, T35))
PD_IN_GGAA(T49, T46, T34, T35) → DIVA_IN_GGAA(T49, s(T46), T34, T35)

The TRS R consists of the following rules:

divA_in_ggaa(0, T14, 0, 0) → divA_out_ggaa(0, T14, 0, 0)
divA_in_ggaa(s(T45), s(T46), s(T34), T35) → U1_ggaa(T45, T46, T34, T35, pB_in_ggaaa(T45, T46, X54, T34, T35))
pB_in_ggaaa(T45, T46, T49, T34, T35) → U4_ggaaa(T45, T46, T49, T34, T35, minusC_in_gga(T45, T46, T49))
minusC_in_gga(T56, 0, T56) → minusC_out_gga(T56, 0, T56)
minusC_in_gga(s(T61), s(T62), X75) → U2_gga(T61, T62, X75, minusC_in_gga(T61, T62, X75))
U2_gga(T61, T62, X75, minusC_out_gga(T61, T62, X75)) → minusC_out_gga(s(T61), s(T62), X75)
U4_ggaaa(T45, T46, T49, T34, T35, minusC_out_gga(T45, T46, T49)) → U5_ggaaa(T45, T46, T49, T34, T35, pD_in_ggaa(T49, T46, T34, T35))
pD_in_ggaa(T49, T46, T34, T35) → U3_ggaa(T49, T46, T34, T35, divA_in_ggaa(T49, s(T46), T34, T35))
divA_in_ggaa(T72, T73, T74, T72) → divA_out_ggaa(T72, T73, T74, T72)
U3_ggaa(T49, T46, T34, T35, divA_out_ggaa(T49, s(T46), T34, T35)) → pD_out_ggaa(T49, T46, T34, T35)
U5_ggaaa(T45, T46, T49, T34, T35, pD_out_ggaa(T49, T46, T34, T35)) → pB_out_ggaaa(T45, T46, T49, T34, T35)
U1_ggaa(T45, T46, T34, T35, pB_out_ggaaa(T45, T46, X54, T34, T35)) → divA_out_ggaa(s(T45), s(T46), s(T34), T35)

The argument filtering Pi contains the following mapping:
divA_in_ggaa(x1, x2, x3, x4)  =  divA_in_ggaa(x1, x2)
0  =  0
divA_out_ggaa(x1, x2, x3, x4)  =  divA_out_ggaa(x1, x2, x4)
s(x1)  =  s(x1)
U1_ggaa(x1, x2, x3, x4, x5)  =  U1_ggaa(x1, x2, x5)
pB_in_ggaaa(x1, x2, x3, x4, x5)  =  pB_in_ggaaa(x1, x2)
U4_ggaaa(x1, x2, x3, x4, x5, x6)  =  U4_ggaaa(x1, x2, x6)
minusC_in_gga(x1, x2, x3)  =  minusC_in_gga(x1, x2)
minusC_out_gga(x1, x2, x3)  =  minusC_out_gga(x1, x2, x3)
U2_gga(x1, x2, x3, x4)  =  U2_gga(x1, x2, x4)
U5_ggaaa(x1, x2, x3, x4, x5, x6)  =  U5_ggaaa(x1, x2, x3, x6)
pD_in_ggaa(x1, x2, x3, x4)  =  pD_in_ggaa(x1, x2)
U3_ggaa(x1, x2, x3, x4, x5)  =  U3_ggaa(x1, x2, x5)
pD_out_ggaa(x1, x2, x3, x4)  =  pD_out_ggaa(x1, x2, x4)
pB_out_ggaaa(x1, x2, x3, x4, x5)  =  pB_out_ggaaa(x1, x2, x3, x5)
DIVA_IN_GGAA(x1, x2, x3, x4)  =  DIVA_IN_GGAA(x1, x2)
U1_GGAA(x1, x2, x3, x4, x5)  =  U1_GGAA(x1, x2, x5)
PB_IN_GGAAA(x1, x2, x3, x4, x5)  =  PB_IN_GGAAA(x1, x2)
U4_GGAAA(x1, x2, x3, x4, x5, x6)  =  U4_GGAAA(x1, x2, x6)
MINUSC_IN_GGA(x1, x2, x3)  =  MINUSC_IN_GGA(x1, x2)
U2_GGA(x1, x2, x3, x4)  =  U2_GGA(x1, x2, x4)
U5_GGAAA(x1, x2, x3, x4, x5, x6)  =  U5_GGAAA(x1, x2, x3, x6)
PD_IN_GGAA(x1, x2, x3, x4)  =  PD_IN_GGAA(x1, x2)
U3_GGAA(x1, x2, x3, x4, x5)  =  U3_GGAA(x1, x2, x5)

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

(4) Obligation:

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

DIVA_IN_GGAA(s(T45), s(T46), s(T34), T35) → U1_GGAA(T45, T46, T34, T35, pB_in_ggaaa(T45, T46, X54, T34, T35))
DIVA_IN_GGAA(s(T45), s(T46), s(T34), T35) → PB_IN_GGAAA(T45, T46, X54, T34, T35)
PB_IN_GGAAA(T45, T46, T49, T34, T35) → U4_GGAAA(T45, T46, T49, T34, T35, minusC_in_gga(T45, T46, T49))
PB_IN_GGAAA(T45, T46, T49, T34, T35) → MINUSC_IN_GGA(T45, T46, T49)
MINUSC_IN_GGA(s(T61), s(T62), X75) → U2_GGA(T61, T62, X75, minusC_in_gga(T61, T62, X75))
MINUSC_IN_GGA(s(T61), s(T62), X75) → MINUSC_IN_GGA(T61, T62, X75)
U4_GGAAA(T45, T46, T49, T34, T35, minusC_out_gga(T45, T46, T49)) → U5_GGAAA(T45, T46, T49, T34, T35, pD_in_ggaa(T49, T46, T34, T35))
U4_GGAAA(T45, T46, T49, T34, T35, minusC_out_gga(T45, T46, T49)) → PD_IN_GGAA(T49, T46, T34, T35)
PD_IN_GGAA(T49, T46, T34, T35) → U3_GGAA(T49, T46, T34, T35, divA_in_ggaa(T49, s(T46), T34, T35))
PD_IN_GGAA(T49, T46, T34, T35) → DIVA_IN_GGAA(T49, s(T46), T34, T35)

The TRS R consists of the following rules:

divA_in_ggaa(0, T14, 0, 0) → divA_out_ggaa(0, T14, 0, 0)
divA_in_ggaa(s(T45), s(T46), s(T34), T35) → U1_ggaa(T45, T46, T34, T35, pB_in_ggaaa(T45, T46, X54, T34, T35))
pB_in_ggaaa(T45, T46, T49, T34, T35) → U4_ggaaa(T45, T46, T49, T34, T35, minusC_in_gga(T45, T46, T49))
minusC_in_gga(T56, 0, T56) → minusC_out_gga(T56, 0, T56)
minusC_in_gga(s(T61), s(T62), X75) → U2_gga(T61, T62, X75, minusC_in_gga(T61, T62, X75))
U2_gga(T61, T62, X75, minusC_out_gga(T61, T62, X75)) → minusC_out_gga(s(T61), s(T62), X75)
U4_ggaaa(T45, T46, T49, T34, T35, minusC_out_gga(T45, T46, T49)) → U5_ggaaa(T45, T46, T49, T34, T35, pD_in_ggaa(T49, T46, T34, T35))
pD_in_ggaa(T49, T46, T34, T35) → U3_ggaa(T49, T46, T34, T35, divA_in_ggaa(T49, s(T46), T34, T35))
divA_in_ggaa(T72, T73, T74, T72) → divA_out_ggaa(T72, T73, T74, T72)
U3_ggaa(T49, T46, T34, T35, divA_out_ggaa(T49, s(T46), T34, T35)) → pD_out_ggaa(T49, T46, T34, T35)
U5_ggaaa(T45, T46, T49, T34, T35, pD_out_ggaa(T49, T46, T34, T35)) → pB_out_ggaaa(T45, T46, T49, T34, T35)
U1_ggaa(T45, T46, T34, T35, pB_out_ggaaa(T45, T46, X54, T34, T35)) → divA_out_ggaa(s(T45), s(T46), s(T34), T35)

The argument filtering Pi contains the following mapping:
divA_in_ggaa(x1, x2, x3, x4)  =  divA_in_ggaa(x1, x2)
0  =  0
divA_out_ggaa(x1, x2, x3, x4)  =  divA_out_ggaa(x1, x2, x4)
s(x1)  =  s(x1)
U1_ggaa(x1, x2, x3, x4, x5)  =  U1_ggaa(x1, x2, x5)
pB_in_ggaaa(x1, x2, x3, x4, x5)  =  pB_in_ggaaa(x1, x2)
U4_ggaaa(x1, x2, x3, x4, x5, x6)  =  U4_ggaaa(x1, x2, x6)
minusC_in_gga(x1, x2, x3)  =  minusC_in_gga(x1, x2)
minusC_out_gga(x1, x2, x3)  =  minusC_out_gga(x1, x2, x3)
U2_gga(x1, x2, x3, x4)  =  U2_gga(x1, x2, x4)
U5_ggaaa(x1, x2, x3, x4, x5, x6)  =  U5_ggaaa(x1, x2, x3, x6)
pD_in_ggaa(x1, x2, x3, x4)  =  pD_in_ggaa(x1, x2)
U3_ggaa(x1, x2, x3, x4, x5)  =  U3_ggaa(x1, x2, x5)
pD_out_ggaa(x1, x2, x3, x4)  =  pD_out_ggaa(x1, x2, x4)
pB_out_ggaaa(x1, x2, x3, x4, x5)  =  pB_out_ggaaa(x1, x2, x3, x5)
DIVA_IN_GGAA(x1, x2, x3, x4)  =  DIVA_IN_GGAA(x1, x2)
U1_GGAA(x1, x2, x3, x4, x5)  =  U1_GGAA(x1, x2, x5)
PB_IN_GGAAA(x1, x2, x3, x4, x5)  =  PB_IN_GGAAA(x1, x2)
U4_GGAAA(x1, x2, x3, x4, x5, x6)  =  U4_GGAAA(x1, x2, x6)
MINUSC_IN_GGA(x1, x2, x3)  =  MINUSC_IN_GGA(x1, x2)
U2_GGA(x1, x2, x3, x4)  =  U2_GGA(x1, x2, x4)
U5_GGAAA(x1, x2, x3, x4, x5, x6)  =  U5_GGAAA(x1, x2, x3, x6)
PD_IN_GGAA(x1, x2, x3, x4)  =  PD_IN_GGAA(x1, x2)
U3_GGAA(x1, x2, x3, x4, x5)  =  U3_GGAA(x1, x2, x5)

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

(5) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 2 SCCs with 5 less nodes.

(6) Complex Obligation (AND)

(7) Obligation:

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

MINUSC_IN_GGA(s(T61), s(T62), X75) → MINUSC_IN_GGA(T61, T62, X75)

The TRS R consists of the following rules:

divA_in_ggaa(0, T14, 0, 0) → divA_out_ggaa(0, T14, 0, 0)
divA_in_ggaa(s(T45), s(T46), s(T34), T35) → U1_ggaa(T45, T46, T34, T35, pB_in_ggaaa(T45, T46, X54, T34, T35))
pB_in_ggaaa(T45, T46, T49, T34, T35) → U4_ggaaa(T45, T46, T49, T34, T35, minusC_in_gga(T45, T46, T49))
minusC_in_gga(T56, 0, T56) → minusC_out_gga(T56, 0, T56)
minusC_in_gga(s(T61), s(T62), X75) → U2_gga(T61, T62, X75, minusC_in_gga(T61, T62, X75))
U2_gga(T61, T62, X75, minusC_out_gga(T61, T62, X75)) → minusC_out_gga(s(T61), s(T62), X75)
U4_ggaaa(T45, T46, T49, T34, T35, minusC_out_gga(T45, T46, T49)) → U5_ggaaa(T45, T46, T49, T34, T35, pD_in_ggaa(T49, T46, T34, T35))
pD_in_ggaa(T49, T46, T34, T35) → U3_ggaa(T49, T46, T34, T35, divA_in_ggaa(T49, s(T46), T34, T35))
divA_in_ggaa(T72, T73, T74, T72) → divA_out_ggaa(T72, T73, T74, T72)
U3_ggaa(T49, T46, T34, T35, divA_out_ggaa(T49, s(T46), T34, T35)) → pD_out_ggaa(T49, T46, T34, T35)
U5_ggaaa(T45, T46, T49, T34, T35, pD_out_ggaa(T49, T46, T34, T35)) → pB_out_ggaaa(T45, T46, T49, T34, T35)
U1_ggaa(T45, T46, T34, T35, pB_out_ggaaa(T45, T46, X54, T34, T35)) → divA_out_ggaa(s(T45), s(T46), s(T34), T35)

The argument filtering Pi contains the following mapping:
divA_in_ggaa(x1, x2, x3, x4)  =  divA_in_ggaa(x1, x2)
0  =  0
divA_out_ggaa(x1, x2, x3, x4)  =  divA_out_ggaa(x1, x2, x4)
s(x1)  =  s(x1)
U1_ggaa(x1, x2, x3, x4, x5)  =  U1_ggaa(x1, x2, x5)
pB_in_ggaaa(x1, x2, x3, x4, x5)  =  pB_in_ggaaa(x1, x2)
U4_ggaaa(x1, x2, x3, x4, x5, x6)  =  U4_ggaaa(x1, x2, x6)
minusC_in_gga(x1, x2, x3)  =  minusC_in_gga(x1, x2)
minusC_out_gga(x1, x2, x3)  =  minusC_out_gga(x1, x2, x3)
U2_gga(x1, x2, x3, x4)  =  U2_gga(x1, x2, x4)
U5_ggaaa(x1, x2, x3, x4, x5, x6)  =  U5_ggaaa(x1, x2, x3, x6)
pD_in_ggaa(x1, x2, x3, x4)  =  pD_in_ggaa(x1, x2)
U3_ggaa(x1, x2, x3, x4, x5)  =  U3_ggaa(x1, x2, x5)
pD_out_ggaa(x1, x2, x3, x4)  =  pD_out_ggaa(x1, x2, x4)
pB_out_ggaaa(x1, x2, x3, x4, x5)  =  pB_out_ggaaa(x1, x2, x3, x5)
MINUSC_IN_GGA(x1, x2, x3)  =  MINUSC_IN_GGA(x1, x2)

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

(8) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(9) Obligation:

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

MINUSC_IN_GGA(s(T61), s(T62), X75) → MINUSC_IN_GGA(T61, T62, X75)

R is empty.
The argument filtering Pi contains the following mapping:
s(x1)  =  s(x1)
MINUSC_IN_GGA(x1, x2, x3)  =  MINUSC_IN_GGA(x1, x2)

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

(10) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(11) Obligation:

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

MINUSC_IN_GGA(s(T61), s(T62)) → MINUSC_IN_GGA(T61, T62)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(12) QDPSizeChangeProof (EQUIVALENT transformation)

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.

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

  • MINUSC_IN_GGA(s(T61), s(T62)) → MINUSC_IN_GGA(T61, T62)
    The graph contains the following edges 1 > 1, 2 > 2

(13) YES

(14) Obligation:

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

DIVA_IN_GGAA(s(T45), s(T46), s(T34), T35) → PB_IN_GGAAA(T45, T46, X54, T34, T35)
PB_IN_GGAAA(T45, T46, T49, T34, T35) → U4_GGAAA(T45, T46, T49, T34, T35, minusC_in_gga(T45, T46, T49))
U4_GGAAA(T45, T46, T49, T34, T35, minusC_out_gga(T45, T46, T49)) → PD_IN_GGAA(T49, T46, T34, T35)
PD_IN_GGAA(T49, T46, T34, T35) → DIVA_IN_GGAA(T49, s(T46), T34, T35)

The TRS R consists of the following rules:

divA_in_ggaa(0, T14, 0, 0) → divA_out_ggaa(0, T14, 0, 0)
divA_in_ggaa(s(T45), s(T46), s(T34), T35) → U1_ggaa(T45, T46, T34, T35, pB_in_ggaaa(T45, T46, X54, T34, T35))
pB_in_ggaaa(T45, T46, T49, T34, T35) → U4_ggaaa(T45, T46, T49, T34, T35, minusC_in_gga(T45, T46, T49))
minusC_in_gga(T56, 0, T56) → minusC_out_gga(T56, 0, T56)
minusC_in_gga(s(T61), s(T62), X75) → U2_gga(T61, T62, X75, minusC_in_gga(T61, T62, X75))
U2_gga(T61, T62, X75, minusC_out_gga(T61, T62, X75)) → minusC_out_gga(s(T61), s(T62), X75)
U4_ggaaa(T45, T46, T49, T34, T35, minusC_out_gga(T45, T46, T49)) → U5_ggaaa(T45, T46, T49, T34, T35, pD_in_ggaa(T49, T46, T34, T35))
pD_in_ggaa(T49, T46, T34, T35) → U3_ggaa(T49, T46, T34, T35, divA_in_ggaa(T49, s(T46), T34, T35))
divA_in_ggaa(T72, T73, T74, T72) → divA_out_ggaa(T72, T73, T74, T72)
U3_ggaa(T49, T46, T34, T35, divA_out_ggaa(T49, s(T46), T34, T35)) → pD_out_ggaa(T49, T46, T34, T35)
U5_ggaaa(T45, T46, T49, T34, T35, pD_out_ggaa(T49, T46, T34, T35)) → pB_out_ggaaa(T45, T46, T49, T34, T35)
U1_ggaa(T45, T46, T34, T35, pB_out_ggaaa(T45, T46, X54, T34, T35)) → divA_out_ggaa(s(T45), s(T46), s(T34), T35)

The argument filtering Pi contains the following mapping:
divA_in_ggaa(x1, x2, x3, x4)  =  divA_in_ggaa(x1, x2)
0  =  0
divA_out_ggaa(x1, x2, x3, x4)  =  divA_out_ggaa(x1, x2, x4)
s(x1)  =  s(x1)
U1_ggaa(x1, x2, x3, x4, x5)  =  U1_ggaa(x1, x2, x5)
pB_in_ggaaa(x1, x2, x3, x4, x5)  =  pB_in_ggaaa(x1, x2)
U4_ggaaa(x1, x2, x3, x4, x5, x6)  =  U4_ggaaa(x1, x2, x6)
minusC_in_gga(x1, x2, x3)  =  minusC_in_gga(x1, x2)
minusC_out_gga(x1, x2, x3)  =  minusC_out_gga(x1, x2, x3)
U2_gga(x1, x2, x3, x4)  =  U2_gga(x1, x2, x4)
U5_ggaaa(x1, x2, x3, x4, x5, x6)  =  U5_ggaaa(x1, x2, x3, x6)
pD_in_ggaa(x1, x2, x3, x4)  =  pD_in_ggaa(x1, x2)
U3_ggaa(x1, x2, x3, x4, x5)  =  U3_ggaa(x1, x2, x5)
pD_out_ggaa(x1, x2, x3, x4)  =  pD_out_ggaa(x1, x2, x4)
pB_out_ggaaa(x1, x2, x3, x4, x5)  =  pB_out_ggaaa(x1, x2, x3, x5)
DIVA_IN_GGAA(x1, x2, x3, x4)  =  DIVA_IN_GGAA(x1, x2)
PB_IN_GGAAA(x1, x2, x3, x4, x5)  =  PB_IN_GGAAA(x1, x2)
U4_GGAAA(x1, x2, x3, x4, x5, x6)  =  U4_GGAAA(x1, x2, x6)
PD_IN_GGAA(x1, x2, x3, x4)  =  PD_IN_GGAA(x1, x2)

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

(15) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(16) Obligation:

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

DIVA_IN_GGAA(s(T45), s(T46), s(T34), T35) → PB_IN_GGAAA(T45, T46, X54, T34, T35)
PB_IN_GGAAA(T45, T46, T49, T34, T35) → U4_GGAAA(T45, T46, T49, T34, T35, minusC_in_gga(T45, T46, T49))
U4_GGAAA(T45, T46, T49, T34, T35, minusC_out_gga(T45, T46, T49)) → PD_IN_GGAA(T49, T46, T34, T35)
PD_IN_GGAA(T49, T46, T34, T35) → DIVA_IN_GGAA(T49, s(T46), T34, T35)

The TRS R consists of the following rules:

minusC_in_gga(T56, 0, T56) → minusC_out_gga(T56, 0, T56)
minusC_in_gga(s(T61), s(T62), X75) → U2_gga(T61, T62, X75, minusC_in_gga(T61, T62, X75))
U2_gga(T61, T62, X75, minusC_out_gga(T61, T62, X75)) → minusC_out_gga(s(T61), s(T62), X75)

The argument filtering Pi contains the following mapping:
0  =  0
s(x1)  =  s(x1)
minusC_in_gga(x1, x2, x3)  =  minusC_in_gga(x1, x2)
minusC_out_gga(x1, x2, x3)  =  minusC_out_gga(x1, x2, x3)
U2_gga(x1, x2, x3, x4)  =  U2_gga(x1, x2, x4)
DIVA_IN_GGAA(x1, x2, x3, x4)  =  DIVA_IN_GGAA(x1, x2)
PB_IN_GGAAA(x1, x2, x3, x4, x5)  =  PB_IN_GGAAA(x1, x2)
U4_GGAAA(x1, x2, x3, x4, x5, x6)  =  U4_GGAAA(x1, x2, x6)
PD_IN_GGAA(x1, x2, x3, x4)  =  PD_IN_GGAA(x1, x2)

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

(17) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(18) Obligation:

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

DIVA_IN_GGAA(s(T45), s(T46)) → PB_IN_GGAAA(T45, T46)
PB_IN_GGAAA(T45, T46) → U4_GGAAA(T45, T46, minusC_in_gga(T45, T46))
U4_GGAAA(T45, T46, minusC_out_gga(T45, T46, T49)) → PD_IN_GGAA(T49, T46)
PD_IN_GGAA(T49, T46) → DIVA_IN_GGAA(T49, s(T46))

The TRS R consists of the following rules:

minusC_in_gga(T56, 0) → minusC_out_gga(T56, 0, T56)
minusC_in_gga(s(T61), s(T62)) → U2_gga(T61, T62, minusC_in_gga(T61, T62))
U2_gga(T61, T62, minusC_out_gga(T61, T62, X75)) → minusC_out_gga(s(T61), s(T62), X75)

The set Q consists of the following terms:

minusC_in_gga(x0, x1)
U2_gga(x0, x1, x2)

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

(19) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04,JAR06].


The following pairs can be oriented strictly and are deleted.


DIVA_IN_GGAA(s(T45), s(T46)) → PB_IN_GGAAA(T45, T46)
The remaining pairs can at least be oriented weakly.
Used ordering: Polynomial interpretation [POLO]:

POL(0) = 0   
POL(DIVA_IN_GGAA(x1, x2)) = 1 + x1   
POL(PB_IN_GGAAA(x1, x2)) = 1 + x1   
POL(PD_IN_GGAA(x1, x2)) = 1 + x1   
POL(U2_gga(x1, x2, x3)) = x3   
POL(U4_GGAAA(x1, x2, x3)) = x3   
POL(minusC_in_gga(x1, x2)) = 1 + x1   
POL(minusC_out_gga(x1, x2, x3)) = 1 + x3   
POL(s(x1)) = 1 + x1   

The following usable rules [FROCOS05] with respect to the argument filtering of the ordering [JAR06] were oriented:

minusC_in_gga(T56, 0) → minusC_out_gga(T56, 0, T56)
minusC_in_gga(s(T61), s(T62)) → U2_gga(T61, T62, minusC_in_gga(T61, T62))
U2_gga(T61, T62, minusC_out_gga(T61, T62, X75)) → minusC_out_gga(s(T61), s(T62), X75)

(20) Obligation:

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

PB_IN_GGAAA(T45, T46) → U4_GGAAA(T45, T46, minusC_in_gga(T45, T46))
U4_GGAAA(T45, T46, minusC_out_gga(T45, T46, T49)) → PD_IN_GGAA(T49, T46)
PD_IN_GGAA(T49, T46) → DIVA_IN_GGAA(T49, s(T46))

The TRS R consists of the following rules:

minusC_in_gga(T56, 0) → minusC_out_gga(T56, 0, T56)
minusC_in_gga(s(T61), s(T62)) → U2_gga(T61, T62, minusC_in_gga(T61, T62))
U2_gga(T61, T62, minusC_out_gga(T61, T62, X75)) → minusC_out_gga(s(T61), s(T62), X75)

The set Q consists of the following terms:

minusC_in_gga(x0, x1)
U2_gga(x0, x1, x2)

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

(21) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LPAR04,FROCOS05,EDGSTAR] contains 0 SCCs with 3 less nodes.

(22) TRUE