YES Termination w.r.t. Q proof of Secret_06_TRS_10.ari

(0) Obligation:

Q restricted rewrite system:
The TRS R consists of the following rules:

c(c(c(y))) → c(c(a(y, 0)))
c(a(a(0, x), y)) → a(c(c(c(0))), y)
c(y) → y

Q is empty.

(1) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LPAR04] we result in the following initial DP problem.

(2) Obligation:

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

C(c(c(y))) → C(c(a(y, 0)))
C(c(c(y))) → C(a(y, 0))
C(a(a(0, x), y)) → C(c(c(0)))
C(a(a(0, x), y)) → C(c(0))
C(a(a(0, x), y)) → C(0)

The TRS R consists of the following rules:

c(c(c(y))) → c(c(a(y, 0)))
c(a(a(0, x), y)) → a(c(c(c(0))), y)
c(y) → y

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

(3) DependencyGraphProof (EQUIVALENT transformation)

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

(4) Obligation:

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

C(c(c(y))) → C(a(y, 0))
C(a(a(0, x), y)) → C(c(c(0)))
C(c(c(y))) → C(c(a(y, 0)))
C(a(a(0, x), y)) → C(c(0))

The TRS R consists of the following rules:

c(c(c(y))) → c(c(a(y, 0)))
c(a(a(0, x), y)) → a(c(c(c(0))), y)
c(y) → y

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

(5) TransformationProof (EQUIVALENT transformation)

By narrowing [LPAR04] the rule C(a(a(0, x), y)) → C(c(0)) at position [0] we obtained the following new rules [LPAR04]:

C(a(a(0, y0), y1)) → C(0) → C(a(a(0, y0), y1)) → C(0)

(6) Obligation:

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

C(c(c(y))) → C(a(y, 0))
C(a(a(0, x), y)) → C(c(c(0)))
C(c(c(y))) → C(c(a(y, 0)))
C(a(a(0, y0), y1)) → C(0)

The TRS R consists of the following rules:

c(c(c(y))) → c(c(a(y, 0)))
c(a(a(0, x), y)) → a(c(c(c(0))), y)
c(y) → y

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

(7) DependencyGraphProof (EQUIVALENT transformation)

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

(8) Obligation:

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

C(a(a(0, x), y)) → C(c(c(0)))
C(c(c(y))) → C(c(a(y, 0)))
C(c(c(y))) → C(a(y, 0))

The TRS R consists of the following rules:

c(c(c(y))) → c(c(a(y, 0)))
c(a(a(0, x), y)) → a(c(c(c(0))), y)
c(y) → y

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

(9) TransformationProof (EQUIVALENT transformation)

By narrowing [LPAR04] the rule C(c(c(y))) → C(c(a(y, 0))) at position [0] we obtained the following new rules [LPAR04]:

C(c(c(a(0, x0)))) → C(a(c(c(c(0))), 0)) → C(c(c(a(0, x0)))) → C(a(c(c(c(0))), 0))
C(c(c(y0))) → C(a(y0, 0)) → C(c(c(y))) → C(a(y, 0))

(10) Obligation:

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

C(a(a(0, x), y)) → C(c(c(0)))
C(c(c(y))) → C(a(y, 0))
C(c(c(a(0, x0)))) → C(a(c(c(c(0))), 0))

The TRS R consists of the following rules:

c(c(c(y))) → c(c(a(y, 0)))
c(a(a(0, x), y)) → a(c(c(c(0))), y)
c(y) → y

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

(11) QDPOrderProof (EQUIVALENT transformation)

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


The following pairs can be oriented strictly and are deleted.


C(c(c(a(0, x0)))) → C(a(c(c(c(0))), 0))
The remaining pairs can at least be oriented weakly.
Used ordering: Polynomial Order [NEGPOLO,POLO] with Interpretation:
POL( C(x1) ) = max{0, x1 - 2}

POL( c(x1) ) = x1 + 1

POL( a(x1, x2) ) = 1

POL( 0 ) = 0


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

c(y) → y
c(c(c(y))) → c(c(a(y, 0)))
c(a(a(0, x), y)) → a(c(c(c(0))), y)

(12) Obligation:

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

C(a(a(0, x), y)) → C(c(c(0)))
C(c(c(y))) → C(a(y, 0))

The TRS R consists of the following rules:

c(c(c(y))) → c(c(a(y, 0)))
c(a(a(0, x), y)) → a(c(c(c(0))), y)
c(y) → y

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

(13) QDPOrderProof (EQUIVALENT transformation)

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


The following pairs can be oriented strictly and are deleted.


C(a(a(0, x), y)) → C(c(c(0)))
The remaining pairs can at least be oriented weakly.
Used ordering: Matrix interpretation [MATRO] with arctic natural numbers [ARCTIC]:

POL(C(x1)) = 0A +
[-I,0A,0A]
·x1

POL(a(x1, x2)) =
/-I\
|-I|
\0A/
+
/-I0A1A\
|-I0A-I|
\0A0A1A/
·x1 +
/0A3A-I\
|-I-I-I|
\-I2A-I/
·x2

POL(0) =
/0A\
|-I|
\-I/

POL(c(x1)) =
/-I\
|-I|
\0A/
+
/0A0A0A\
|-I1A0A|
\0A0A0A/
·x1

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

c(y) → y
c(c(c(y))) → c(c(a(y, 0)))
c(a(a(0, x), y)) → a(c(c(c(0))), y)

(14) Obligation:

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

C(c(c(y))) → C(a(y, 0))

The TRS R consists of the following rules:

c(c(c(y))) → c(c(a(y, 0)))
c(a(a(0, x), y)) → a(c(c(c(0))), y)
c(y) → y

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

(15) DependencyGraphProof (EQUIVALENT transformation)

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

(16) TRUE