(0) Obligation:

Clauses:

normal(F, N) :- ','(rewrite(F, F1), normal(F1, N)).
normal(F, F).
rewrite(op(op(A, B), C), op(A, op(B, C))).
rewrite(op(A, op(B, C)), op(A, L)) :- rewrite(op(B, C), L).

Query: normal(g,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:

normalA_in_ga(op(op(T20, T21), T22), T7) → U1_ga(T20, T21, T22, T7, normalA_in_ga(op(T20, op(T21, T22)), T7))
normalA_in_ga(op(T39, op(T40, T41)), T7) → U2_ga(T39, T40, T41, T7, pB_in_ggaga(T40, T41, X48, T39, T7))
pB_in_ggaga(T40, T41, T48, T39, T7) → U4_ggaga(T40, T41, T48, T39, T7, rewriteC_in_gga(T40, T41, T48))
rewriteC_in_gga(op(T67, T68), T69, op(T67, op(T68, T69))) → rewriteC_out_gga(op(T67, T68), T69, op(T67, op(T68, T69)))
rewriteC_in_gga(T76, op(T77, T78), op(T76, X90)) → U3_gga(T76, T77, T78, X90, rewriteC_in_gga(T77, T78, X90))
U3_gga(T76, T77, T78, X90, rewriteC_out_gga(T77, T78, X90)) → rewriteC_out_gga(T76, op(T77, T78), op(T76, X90))
U4_ggaga(T40, T41, T48, T39, T7, rewriteC_out_gga(T40, T41, T48)) → U5_ggaga(T40, T41, T48, T39, T7, normalA_in_ga(op(T39, T48), T7))
normalA_in_ga(T90, T90) → normalA_out_ga(T90, T90)
U5_ggaga(T40, T41, T48, T39, T7, normalA_out_ga(op(T39, T48), T7)) → pB_out_ggaga(T40, T41, T48, T39, T7)
U2_ga(T39, T40, T41, T7, pB_out_ggaga(T40, T41, X48, T39, T7)) → normalA_out_ga(op(T39, op(T40, T41)), T7)
U1_ga(T20, T21, T22, T7, normalA_out_ga(op(T20, op(T21, T22)), T7)) → normalA_out_ga(op(op(T20, T21), T22), T7)

The argument filtering Pi contains the following mapping:
normalA_in_ga(x1, x2)  =  normalA_in_ga(x1)
op(x1, x2)  =  op(x1, x2)
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x1, x2, x3, x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x1, x2, x3, x5)
pB_in_ggaga(x1, x2, x3, x4, x5)  =  pB_in_ggaga(x1, x2, x4)
U4_ggaga(x1, x2, x3, x4, x5, x6)  =  U4_ggaga(x1, x2, x4, x6)
rewriteC_in_gga(x1, x2, x3)  =  rewriteC_in_gga(x1, x2)
rewriteC_out_gga(x1, x2, x3)  =  rewriteC_out_gga(x1, x2, x3)
U3_gga(x1, x2, x3, x4, x5)  =  U3_gga(x1, x2, x3, x5)
U5_ggaga(x1, x2, x3, x4, x5, x6)  =  U5_ggaga(x1, x2, x3, x4, x6)
normalA_out_ga(x1, x2)  =  normalA_out_ga(x1, x2)
pB_out_ggaga(x1, x2, x3, x4, x5)  =  pB_out_ggaga(x1, x2, x3, x4, 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:

NORMALA_IN_GA(op(op(T20, T21), T22), T7) → U1_GA(T20, T21, T22, T7, normalA_in_ga(op(T20, op(T21, T22)), T7))
NORMALA_IN_GA(op(op(T20, T21), T22), T7) → NORMALA_IN_GA(op(T20, op(T21, T22)), T7)
NORMALA_IN_GA(op(T39, op(T40, T41)), T7) → U2_GA(T39, T40, T41, T7, pB_in_ggaga(T40, T41, X48, T39, T7))
NORMALA_IN_GA(op(T39, op(T40, T41)), T7) → PB_IN_GGAGA(T40, T41, X48, T39, T7)
PB_IN_GGAGA(T40, T41, T48, T39, T7) → U4_GGAGA(T40, T41, T48, T39, T7, rewriteC_in_gga(T40, T41, T48))
PB_IN_GGAGA(T40, T41, T48, T39, T7) → REWRITEC_IN_GGA(T40, T41, T48)
REWRITEC_IN_GGA(T76, op(T77, T78), op(T76, X90)) → U3_GGA(T76, T77, T78, X90, rewriteC_in_gga(T77, T78, X90))
REWRITEC_IN_GGA(T76, op(T77, T78), op(T76, X90)) → REWRITEC_IN_GGA(T77, T78, X90)
U4_GGAGA(T40, T41, T48, T39, T7, rewriteC_out_gga(T40, T41, T48)) → U5_GGAGA(T40, T41, T48, T39, T7, normalA_in_ga(op(T39, T48), T7))
U4_GGAGA(T40, T41, T48, T39, T7, rewriteC_out_gga(T40, T41, T48)) → NORMALA_IN_GA(op(T39, T48), T7)

The TRS R consists of the following rules:

normalA_in_ga(op(op(T20, T21), T22), T7) → U1_ga(T20, T21, T22, T7, normalA_in_ga(op(T20, op(T21, T22)), T7))
normalA_in_ga(op(T39, op(T40, T41)), T7) → U2_ga(T39, T40, T41, T7, pB_in_ggaga(T40, T41, X48, T39, T7))
pB_in_ggaga(T40, T41, T48, T39, T7) → U4_ggaga(T40, T41, T48, T39, T7, rewriteC_in_gga(T40, T41, T48))
rewriteC_in_gga(op(T67, T68), T69, op(T67, op(T68, T69))) → rewriteC_out_gga(op(T67, T68), T69, op(T67, op(T68, T69)))
rewriteC_in_gga(T76, op(T77, T78), op(T76, X90)) → U3_gga(T76, T77, T78, X90, rewriteC_in_gga(T77, T78, X90))
U3_gga(T76, T77, T78, X90, rewriteC_out_gga(T77, T78, X90)) → rewriteC_out_gga(T76, op(T77, T78), op(T76, X90))
U4_ggaga(T40, T41, T48, T39, T7, rewriteC_out_gga(T40, T41, T48)) → U5_ggaga(T40, T41, T48, T39, T7, normalA_in_ga(op(T39, T48), T7))
normalA_in_ga(T90, T90) → normalA_out_ga(T90, T90)
U5_ggaga(T40, T41, T48, T39, T7, normalA_out_ga(op(T39, T48), T7)) → pB_out_ggaga(T40, T41, T48, T39, T7)
U2_ga(T39, T40, T41, T7, pB_out_ggaga(T40, T41, X48, T39, T7)) → normalA_out_ga(op(T39, op(T40, T41)), T7)
U1_ga(T20, T21, T22, T7, normalA_out_ga(op(T20, op(T21, T22)), T7)) → normalA_out_ga(op(op(T20, T21), T22), T7)

The argument filtering Pi contains the following mapping:
normalA_in_ga(x1, x2)  =  normalA_in_ga(x1)
op(x1, x2)  =  op(x1, x2)
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x1, x2, x3, x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x1, x2, x3, x5)
pB_in_ggaga(x1, x2, x3, x4, x5)  =  pB_in_ggaga(x1, x2, x4)
U4_ggaga(x1, x2, x3, x4, x5, x6)  =  U4_ggaga(x1, x2, x4, x6)
rewriteC_in_gga(x1, x2, x3)  =  rewriteC_in_gga(x1, x2)
rewriteC_out_gga(x1, x2, x3)  =  rewriteC_out_gga(x1, x2, x3)
U3_gga(x1, x2, x3, x4, x5)  =  U3_gga(x1, x2, x3, x5)
U5_ggaga(x1, x2, x3, x4, x5, x6)  =  U5_ggaga(x1, x2, x3, x4, x6)
normalA_out_ga(x1, x2)  =  normalA_out_ga(x1, x2)
pB_out_ggaga(x1, x2, x3, x4, x5)  =  pB_out_ggaga(x1, x2, x3, x4, x5)
NORMALA_IN_GA(x1, x2)  =  NORMALA_IN_GA(x1)
U1_GA(x1, x2, x3, x4, x5)  =  U1_GA(x1, x2, x3, x5)
U2_GA(x1, x2, x3, x4, x5)  =  U2_GA(x1, x2, x3, x5)
PB_IN_GGAGA(x1, x2, x3, x4, x5)  =  PB_IN_GGAGA(x1, x2, x4)
U4_GGAGA(x1, x2, x3, x4, x5, x6)  =  U4_GGAGA(x1, x2, x4, x6)
REWRITEC_IN_GGA(x1, x2, x3)  =  REWRITEC_IN_GGA(x1, x2)
U3_GGA(x1, x2, x3, x4, x5)  =  U3_GGA(x1, x2, x3, x5)
U5_GGAGA(x1, x2, x3, x4, x5, x6)  =  U5_GGAGA(x1, x2, x3, x4, x6)

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

(4) Obligation:

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

NORMALA_IN_GA(op(op(T20, T21), T22), T7) → U1_GA(T20, T21, T22, T7, normalA_in_ga(op(T20, op(T21, T22)), T7))
NORMALA_IN_GA(op(op(T20, T21), T22), T7) → NORMALA_IN_GA(op(T20, op(T21, T22)), T7)
NORMALA_IN_GA(op(T39, op(T40, T41)), T7) → U2_GA(T39, T40, T41, T7, pB_in_ggaga(T40, T41, X48, T39, T7))
NORMALA_IN_GA(op(T39, op(T40, T41)), T7) → PB_IN_GGAGA(T40, T41, X48, T39, T7)
PB_IN_GGAGA(T40, T41, T48, T39, T7) → U4_GGAGA(T40, T41, T48, T39, T7, rewriteC_in_gga(T40, T41, T48))
PB_IN_GGAGA(T40, T41, T48, T39, T7) → REWRITEC_IN_GGA(T40, T41, T48)
REWRITEC_IN_GGA(T76, op(T77, T78), op(T76, X90)) → U3_GGA(T76, T77, T78, X90, rewriteC_in_gga(T77, T78, X90))
REWRITEC_IN_GGA(T76, op(T77, T78), op(T76, X90)) → REWRITEC_IN_GGA(T77, T78, X90)
U4_GGAGA(T40, T41, T48, T39, T7, rewriteC_out_gga(T40, T41, T48)) → U5_GGAGA(T40, T41, T48, T39, T7, normalA_in_ga(op(T39, T48), T7))
U4_GGAGA(T40, T41, T48, T39, T7, rewriteC_out_gga(T40, T41, T48)) → NORMALA_IN_GA(op(T39, T48), T7)

The TRS R consists of the following rules:

normalA_in_ga(op(op(T20, T21), T22), T7) → U1_ga(T20, T21, T22, T7, normalA_in_ga(op(T20, op(T21, T22)), T7))
normalA_in_ga(op(T39, op(T40, T41)), T7) → U2_ga(T39, T40, T41, T7, pB_in_ggaga(T40, T41, X48, T39, T7))
pB_in_ggaga(T40, T41, T48, T39, T7) → U4_ggaga(T40, T41, T48, T39, T7, rewriteC_in_gga(T40, T41, T48))
rewriteC_in_gga(op(T67, T68), T69, op(T67, op(T68, T69))) → rewriteC_out_gga(op(T67, T68), T69, op(T67, op(T68, T69)))
rewriteC_in_gga(T76, op(T77, T78), op(T76, X90)) → U3_gga(T76, T77, T78, X90, rewriteC_in_gga(T77, T78, X90))
U3_gga(T76, T77, T78, X90, rewriteC_out_gga(T77, T78, X90)) → rewriteC_out_gga(T76, op(T77, T78), op(T76, X90))
U4_ggaga(T40, T41, T48, T39, T7, rewriteC_out_gga(T40, T41, T48)) → U5_ggaga(T40, T41, T48, T39, T7, normalA_in_ga(op(T39, T48), T7))
normalA_in_ga(T90, T90) → normalA_out_ga(T90, T90)
U5_ggaga(T40, T41, T48, T39, T7, normalA_out_ga(op(T39, T48), T7)) → pB_out_ggaga(T40, T41, T48, T39, T7)
U2_ga(T39, T40, T41, T7, pB_out_ggaga(T40, T41, X48, T39, T7)) → normalA_out_ga(op(T39, op(T40, T41)), T7)
U1_ga(T20, T21, T22, T7, normalA_out_ga(op(T20, op(T21, T22)), T7)) → normalA_out_ga(op(op(T20, T21), T22), T7)

The argument filtering Pi contains the following mapping:
normalA_in_ga(x1, x2)  =  normalA_in_ga(x1)
op(x1, x2)  =  op(x1, x2)
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x1, x2, x3, x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x1, x2, x3, x5)
pB_in_ggaga(x1, x2, x3, x4, x5)  =  pB_in_ggaga(x1, x2, x4)
U4_ggaga(x1, x2, x3, x4, x5, x6)  =  U4_ggaga(x1, x2, x4, x6)
rewriteC_in_gga(x1, x2, x3)  =  rewriteC_in_gga(x1, x2)
rewriteC_out_gga(x1, x2, x3)  =  rewriteC_out_gga(x1, x2, x3)
U3_gga(x1, x2, x3, x4, x5)  =  U3_gga(x1, x2, x3, x5)
U5_ggaga(x1, x2, x3, x4, x5, x6)  =  U5_ggaga(x1, x2, x3, x4, x6)
normalA_out_ga(x1, x2)  =  normalA_out_ga(x1, x2)
pB_out_ggaga(x1, x2, x3, x4, x5)  =  pB_out_ggaga(x1, x2, x3, x4, x5)
NORMALA_IN_GA(x1, x2)  =  NORMALA_IN_GA(x1)
U1_GA(x1, x2, x3, x4, x5)  =  U1_GA(x1, x2, x3, x5)
U2_GA(x1, x2, x3, x4, x5)  =  U2_GA(x1, x2, x3, x5)
PB_IN_GGAGA(x1, x2, x3, x4, x5)  =  PB_IN_GGAGA(x1, x2, x4)
U4_GGAGA(x1, x2, x3, x4, x5, x6)  =  U4_GGAGA(x1, x2, x4, x6)
REWRITEC_IN_GGA(x1, x2, x3)  =  REWRITEC_IN_GGA(x1, x2)
U3_GGA(x1, x2, x3, x4, x5)  =  U3_GGA(x1, x2, x3, x5)
U5_GGAGA(x1, x2, x3, x4, x5, x6)  =  U5_GGAGA(x1, x2, x3, x4, x6)

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:

REWRITEC_IN_GGA(T76, op(T77, T78), op(T76, X90)) → REWRITEC_IN_GGA(T77, T78, X90)

The TRS R consists of the following rules:

normalA_in_ga(op(op(T20, T21), T22), T7) → U1_ga(T20, T21, T22, T7, normalA_in_ga(op(T20, op(T21, T22)), T7))
normalA_in_ga(op(T39, op(T40, T41)), T7) → U2_ga(T39, T40, T41, T7, pB_in_ggaga(T40, T41, X48, T39, T7))
pB_in_ggaga(T40, T41, T48, T39, T7) → U4_ggaga(T40, T41, T48, T39, T7, rewriteC_in_gga(T40, T41, T48))
rewriteC_in_gga(op(T67, T68), T69, op(T67, op(T68, T69))) → rewriteC_out_gga(op(T67, T68), T69, op(T67, op(T68, T69)))
rewriteC_in_gga(T76, op(T77, T78), op(T76, X90)) → U3_gga(T76, T77, T78, X90, rewriteC_in_gga(T77, T78, X90))
U3_gga(T76, T77, T78, X90, rewriteC_out_gga(T77, T78, X90)) → rewriteC_out_gga(T76, op(T77, T78), op(T76, X90))
U4_ggaga(T40, T41, T48, T39, T7, rewriteC_out_gga(T40, T41, T48)) → U5_ggaga(T40, T41, T48, T39, T7, normalA_in_ga(op(T39, T48), T7))
normalA_in_ga(T90, T90) → normalA_out_ga(T90, T90)
U5_ggaga(T40, T41, T48, T39, T7, normalA_out_ga(op(T39, T48), T7)) → pB_out_ggaga(T40, T41, T48, T39, T7)
U2_ga(T39, T40, T41, T7, pB_out_ggaga(T40, T41, X48, T39, T7)) → normalA_out_ga(op(T39, op(T40, T41)), T7)
U1_ga(T20, T21, T22, T7, normalA_out_ga(op(T20, op(T21, T22)), T7)) → normalA_out_ga(op(op(T20, T21), T22), T7)

The argument filtering Pi contains the following mapping:
normalA_in_ga(x1, x2)  =  normalA_in_ga(x1)
op(x1, x2)  =  op(x1, x2)
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x1, x2, x3, x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x1, x2, x3, x5)
pB_in_ggaga(x1, x2, x3, x4, x5)  =  pB_in_ggaga(x1, x2, x4)
U4_ggaga(x1, x2, x3, x4, x5, x6)  =  U4_ggaga(x1, x2, x4, x6)
rewriteC_in_gga(x1, x2, x3)  =  rewriteC_in_gga(x1, x2)
rewriteC_out_gga(x1, x2, x3)  =  rewriteC_out_gga(x1, x2, x3)
U3_gga(x1, x2, x3, x4, x5)  =  U3_gga(x1, x2, x3, x5)
U5_ggaga(x1, x2, x3, x4, x5, x6)  =  U5_ggaga(x1, x2, x3, x4, x6)
normalA_out_ga(x1, x2)  =  normalA_out_ga(x1, x2)
pB_out_ggaga(x1, x2, x3, x4, x5)  =  pB_out_ggaga(x1, x2, x3, x4, x5)
REWRITEC_IN_GGA(x1, x2, x3)  =  REWRITEC_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:

REWRITEC_IN_GGA(T76, op(T77, T78), op(T76, X90)) → REWRITEC_IN_GGA(T77, T78, X90)

R is empty.
The argument filtering Pi contains the following mapping:
op(x1, x2)  =  op(x1, x2)
REWRITEC_IN_GGA(x1, x2, x3)  =  REWRITEC_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:

REWRITEC_IN_GGA(T76, op(T77, T78)) → REWRITEC_IN_GGA(T77, T78)

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:

  • REWRITEC_IN_GGA(T76, op(T77, T78)) → REWRITEC_IN_GGA(T77, T78)
    The graph contains the following edges 2 > 1, 2 > 2

(13) YES

(14) Obligation:

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

NORMALA_IN_GA(op(T39, op(T40, T41)), T7) → PB_IN_GGAGA(T40, T41, X48, T39, T7)
PB_IN_GGAGA(T40, T41, T48, T39, T7) → U4_GGAGA(T40, T41, T48, T39, T7, rewriteC_in_gga(T40, T41, T48))
U4_GGAGA(T40, T41, T48, T39, T7, rewriteC_out_gga(T40, T41, T48)) → NORMALA_IN_GA(op(T39, T48), T7)
NORMALA_IN_GA(op(op(T20, T21), T22), T7) → NORMALA_IN_GA(op(T20, op(T21, T22)), T7)

The TRS R consists of the following rules:

normalA_in_ga(op(op(T20, T21), T22), T7) → U1_ga(T20, T21, T22, T7, normalA_in_ga(op(T20, op(T21, T22)), T7))
normalA_in_ga(op(T39, op(T40, T41)), T7) → U2_ga(T39, T40, T41, T7, pB_in_ggaga(T40, T41, X48, T39, T7))
pB_in_ggaga(T40, T41, T48, T39, T7) → U4_ggaga(T40, T41, T48, T39, T7, rewriteC_in_gga(T40, T41, T48))
rewriteC_in_gga(op(T67, T68), T69, op(T67, op(T68, T69))) → rewriteC_out_gga(op(T67, T68), T69, op(T67, op(T68, T69)))
rewriteC_in_gga(T76, op(T77, T78), op(T76, X90)) → U3_gga(T76, T77, T78, X90, rewriteC_in_gga(T77, T78, X90))
U3_gga(T76, T77, T78, X90, rewriteC_out_gga(T77, T78, X90)) → rewriteC_out_gga(T76, op(T77, T78), op(T76, X90))
U4_ggaga(T40, T41, T48, T39, T7, rewriteC_out_gga(T40, T41, T48)) → U5_ggaga(T40, T41, T48, T39, T7, normalA_in_ga(op(T39, T48), T7))
normalA_in_ga(T90, T90) → normalA_out_ga(T90, T90)
U5_ggaga(T40, T41, T48, T39, T7, normalA_out_ga(op(T39, T48), T7)) → pB_out_ggaga(T40, T41, T48, T39, T7)
U2_ga(T39, T40, T41, T7, pB_out_ggaga(T40, T41, X48, T39, T7)) → normalA_out_ga(op(T39, op(T40, T41)), T7)
U1_ga(T20, T21, T22, T7, normalA_out_ga(op(T20, op(T21, T22)), T7)) → normalA_out_ga(op(op(T20, T21), T22), T7)

The argument filtering Pi contains the following mapping:
normalA_in_ga(x1, x2)  =  normalA_in_ga(x1)
op(x1, x2)  =  op(x1, x2)
U1_ga(x1, x2, x3, x4, x5)  =  U1_ga(x1, x2, x3, x5)
U2_ga(x1, x2, x3, x4, x5)  =  U2_ga(x1, x2, x3, x5)
pB_in_ggaga(x1, x2, x3, x4, x5)  =  pB_in_ggaga(x1, x2, x4)
U4_ggaga(x1, x2, x3, x4, x5, x6)  =  U4_ggaga(x1, x2, x4, x6)
rewriteC_in_gga(x1, x2, x3)  =  rewriteC_in_gga(x1, x2)
rewriteC_out_gga(x1, x2, x3)  =  rewriteC_out_gga(x1, x2, x3)
U3_gga(x1, x2, x3, x4, x5)  =  U3_gga(x1, x2, x3, x5)
U5_ggaga(x1, x2, x3, x4, x5, x6)  =  U5_ggaga(x1, x2, x3, x4, x6)
normalA_out_ga(x1, x2)  =  normalA_out_ga(x1, x2)
pB_out_ggaga(x1, x2, x3, x4, x5)  =  pB_out_ggaga(x1, x2, x3, x4, x5)
NORMALA_IN_GA(x1, x2)  =  NORMALA_IN_GA(x1)
PB_IN_GGAGA(x1, x2, x3, x4, x5)  =  PB_IN_GGAGA(x1, x2, x4)
U4_GGAGA(x1, x2, x3, x4, x5, x6)  =  U4_GGAGA(x1, x2, x4, x6)

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:

NORMALA_IN_GA(op(T39, op(T40, T41)), T7) → PB_IN_GGAGA(T40, T41, X48, T39, T7)
PB_IN_GGAGA(T40, T41, T48, T39, T7) → U4_GGAGA(T40, T41, T48, T39, T7, rewriteC_in_gga(T40, T41, T48))
U4_GGAGA(T40, T41, T48, T39, T7, rewriteC_out_gga(T40, T41, T48)) → NORMALA_IN_GA(op(T39, T48), T7)
NORMALA_IN_GA(op(op(T20, T21), T22), T7) → NORMALA_IN_GA(op(T20, op(T21, T22)), T7)

The TRS R consists of the following rules:

rewriteC_in_gga(op(T67, T68), T69, op(T67, op(T68, T69))) → rewriteC_out_gga(op(T67, T68), T69, op(T67, op(T68, T69)))
rewriteC_in_gga(T76, op(T77, T78), op(T76, X90)) → U3_gga(T76, T77, T78, X90, rewriteC_in_gga(T77, T78, X90))
U3_gga(T76, T77, T78, X90, rewriteC_out_gga(T77, T78, X90)) → rewriteC_out_gga(T76, op(T77, T78), op(T76, X90))

The argument filtering Pi contains the following mapping:
op(x1, x2)  =  op(x1, x2)
rewriteC_in_gga(x1, x2, x3)  =  rewriteC_in_gga(x1, x2)
rewriteC_out_gga(x1, x2, x3)  =  rewriteC_out_gga(x1, x2, x3)
U3_gga(x1, x2, x3, x4, x5)  =  U3_gga(x1, x2, x3, x5)
NORMALA_IN_GA(x1, x2)  =  NORMALA_IN_GA(x1)
PB_IN_GGAGA(x1, x2, x3, x4, x5)  =  PB_IN_GGAGA(x1, x2, x4)
U4_GGAGA(x1, x2, x3, x4, x5, x6)  =  U4_GGAGA(x1, x2, x4, x6)

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:

NORMALA_IN_GA(op(T39, op(T40, T41))) → PB_IN_GGAGA(T40, T41, T39)
PB_IN_GGAGA(T40, T41, T39) → U4_GGAGA(T40, T41, T39, rewriteC_in_gga(T40, T41))
U4_GGAGA(T40, T41, T39, rewriteC_out_gga(T40, T41, T48)) → NORMALA_IN_GA(op(T39, T48))
NORMALA_IN_GA(op(op(T20, T21), T22)) → NORMALA_IN_GA(op(T20, op(T21, T22)))

The TRS R consists of the following rules:

rewriteC_in_gga(op(T67, T68), T69) → rewriteC_out_gga(op(T67, T68), T69, op(T67, op(T68, T69)))
rewriteC_in_gga(T76, op(T77, T78)) → U3_gga(T76, T77, T78, rewriteC_in_gga(T77, T78))
U3_gga(T76, T77, T78, rewriteC_out_gga(T77, T78, X90)) → rewriteC_out_gga(T76, op(T77, T78), op(T76, X90))

The set Q consists of the following terms:

rewriteC_in_gga(x0, x1)
U3_gga(x0, x1, x2, x3)

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.


NORMALA_IN_GA(op(op(T20, T21), T22)) → NORMALA_IN_GA(op(T20, op(T21, T22)))
The remaining pairs can at least be oriented weakly.
Used ordering: Polynomial interpretation [POLO]:

POL(NORMALA_IN_GA(x1)) = x1   
POL(PB_IN_GGAGA(x1, x2, x3)) = 1 + x3   
POL(U3_gga(x1, x2, x3, x4)) = 0   
POL(U4_GGAGA(x1, x2, x3, x4)) = 1 + x3   
POL(op(x1, x2)) = 1 + x1   
POL(rewriteC_in_gga(x1, x2)) = 0   
POL(rewriteC_out_gga(x1, x2, x3)) = 0   

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

(20) Obligation:

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

NORMALA_IN_GA(op(T39, op(T40, T41))) → PB_IN_GGAGA(T40, T41, T39)
PB_IN_GGAGA(T40, T41, T39) → U4_GGAGA(T40, T41, T39, rewriteC_in_gga(T40, T41))
U4_GGAGA(T40, T41, T39, rewriteC_out_gga(T40, T41, T48)) → NORMALA_IN_GA(op(T39, T48))

The TRS R consists of the following rules:

rewriteC_in_gga(op(T67, T68), T69) → rewriteC_out_gga(op(T67, T68), T69, op(T67, op(T68, T69)))
rewriteC_in_gga(T76, op(T77, T78)) → U3_gga(T76, T77, T78, rewriteC_in_gga(T77, T78))
U3_gga(T76, T77, T78, rewriteC_out_gga(T77, T78, X90)) → rewriteC_out_gga(T76, op(T77, T78), op(T76, X90))

The set Q consists of the following terms:

rewriteC_in_gga(x0, x1)
U3_gga(x0, x1, x2, x3)

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

(21) QDPOrderProof (EQUIVALENT transformation)

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


The following pairs can be oriented strictly and are deleted.


PB_IN_GGAGA(T40, T41, T39) → U4_GGAGA(T40, T41, T39, rewriteC_in_gga(T40, T41))
U4_GGAGA(T40, T41, T39, rewriteC_out_gga(T40, T41, T48)) → NORMALA_IN_GA(op(T39, T48))
The remaining pairs can at least be oriented weakly.
Used ordering: Polynomial Order [NEGPOLO,POLO] with Interpretation:

POL( U4_GGAGA(x1, ..., x4) ) = max{0, 2x3 + x4 - 1}


POL( rewriteC_in_gga(x1, x2) ) = 2x1 + x2 + 2


POL( op(x1, x2) ) = 2x1 + x2 + 2


POL( rewriteC_out_gga(x1, ..., x3) ) = x3 + 2


POL( U3_gga(x1, ..., x4) ) = 2x1 + x4 + 2


POL( NORMALA_IN_GA(x1) ) = max{0, x1 - 2}


POL( PB_IN_GGAGA(x1, ..., x3) ) = 2x1 + x2 + 2x3 + 2



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

rewriteC_in_gga(op(T67, T68), T69) → rewriteC_out_gga(op(T67, T68), T69, op(T67, op(T68, T69)))
rewriteC_in_gga(T76, op(T77, T78)) → U3_gga(T76, T77, T78, rewriteC_in_gga(T77, T78))
U3_gga(T76, T77, T78, rewriteC_out_gga(T77, T78, X90)) → rewriteC_out_gga(T76, op(T77, T78), op(T76, X90))

(22) Obligation:

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

NORMALA_IN_GA(op(T39, op(T40, T41))) → PB_IN_GGAGA(T40, T41, T39)

The TRS R consists of the following rules:

rewriteC_in_gga(op(T67, T68), T69) → rewriteC_out_gga(op(T67, T68), T69, op(T67, op(T68, T69)))
rewriteC_in_gga(T76, op(T77, T78)) → U3_gga(T76, T77, T78, rewriteC_in_gga(T77, T78))
U3_gga(T76, T77, T78, rewriteC_out_gga(T77, T78, X90)) → rewriteC_out_gga(T76, op(T77, T78), op(T76, X90))

The set Q consists of the following terms:

rewriteC_in_gga(x0, x1)
U3_gga(x0, x1, x2, x3)

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

(23) DependencyGraphProof (EQUIVALENT transformation)

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

(24) TRUE