(0) Obligation:

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

a__minus(0, Y) → 0
a__minus(s(X), s(Y)) → a__minus(X, Y)
a__geq(X, 0) → true
a__geq(0, s(Y)) → false
a__geq(s(X), s(Y)) → a__geq(X, Y)
a__div(0, s(Y)) → 0
a__div(s(X), s(Y)) → a__if(a__geq(X, Y), s(div(minus(X, Y), s(Y))), 0)
a__if(true, X, Y) → mark(X)
a__if(false, X, Y) → mark(Y)
mark(minus(X1, X2)) → a__minus(X1, X2)
mark(geq(X1, X2)) → a__geq(X1, X2)
mark(div(X1, X2)) → a__div(mark(X1), X2)
mark(if(X1, X2, X3)) → a__if(mark(X1), X2, X3)
mark(0) → 0
mark(s(X)) → s(mark(X))
mark(true) → true
mark(false) → false
a__minus(X1, X2) → minus(X1, X2)
a__geq(X1, X2) → geq(X1, X2)
a__div(X1, X2) → div(X1, X2)
a__if(X1, X2, X3) → if(X1, X2, X3)

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:

A__MINUS(s(X), s(Y)) → A__MINUS(X, Y)
A__GEQ(s(X), s(Y)) → A__GEQ(X, Y)
A__DIV(s(X), s(Y)) → A__IF(a__geq(X, Y), s(div(minus(X, Y), s(Y))), 0)
A__DIV(s(X), s(Y)) → A__GEQ(X, Y)
A__IF(true, X, Y) → MARK(X)
A__IF(false, X, Y) → MARK(Y)
MARK(minus(X1, X2)) → A__MINUS(X1, X2)
MARK(geq(X1, X2)) → A__GEQ(X1, X2)
MARK(div(X1, X2)) → A__DIV(mark(X1), X2)
MARK(div(X1, X2)) → MARK(X1)
MARK(if(X1, X2, X3)) → A__IF(mark(X1), X2, X3)
MARK(if(X1, X2, X3)) → MARK(X1)
MARK(s(X)) → MARK(X)

The TRS R consists of the following rules:

a__minus(0, Y) → 0
a__minus(s(X), s(Y)) → a__minus(X, Y)
a__geq(X, 0) → true
a__geq(0, s(Y)) → false
a__geq(s(X), s(Y)) → a__geq(X, Y)
a__div(0, s(Y)) → 0
a__div(s(X), s(Y)) → a__if(a__geq(X, Y), s(div(minus(X, Y), s(Y))), 0)
a__if(true, X, Y) → mark(X)
a__if(false, X, Y) → mark(Y)
mark(minus(X1, X2)) → a__minus(X1, X2)
mark(geq(X1, X2)) → a__geq(X1, X2)
mark(div(X1, X2)) → a__div(mark(X1), X2)
mark(if(X1, X2, X3)) → a__if(mark(X1), X2, X3)
mark(0) → 0
mark(s(X)) → s(mark(X))
mark(true) → true
mark(false) → false
a__minus(X1, X2) → minus(X1, X2)
a__geq(X1, X2) → geq(X1, X2)
a__div(X1, X2) → div(X1, X2)
a__if(X1, X2, X3) → if(X1, X2, X3)

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 3 SCCs with 3 less nodes.

(4) Complex Obligation (AND)

(5) Obligation:

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

A__GEQ(s(X), s(Y)) → A__GEQ(X, Y)

The TRS R consists of the following rules:

a__minus(0, Y) → 0
a__minus(s(X), s(Y)) → a__minus(X, Y)
a__geq(X, 0) → true
a__geq(0, s(Y)) → false
a__geq(s(X), s(Y)) → a__geq(X, Y)
a__div(0, s(Y)) → 0
a__div(s(X), s(Y)) → a__if(a__geq(X, Y), s(div(minus(X, Y), s(Y))), 0)
a__if(true, X, Y) → mark(X)
a__if(false, X, Y) → mark(Y)
mark(minus(X1, X2)) → a__minus(X1, X2)
mark(geq(X1, X2)) → a__geq(X1, X2)
mark(div(X1, X2)) → a__div(mark(X1), X2)
mark(if(X1, X2, X3)) → a__if(mark(X1), X2, X3)
mark(0) → 0
mark(s(X)) → s(mark(X))
mark(true) → true
mark(false) → false
a__minus(X1, X2) → minus(X1, X2)
a__geq(X1, X2) → geq(X1, X2)
a__div(X1, X2) → div(X1, X2)
a__if(X1, X2, X3) → if(X1, X2, X3)

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

(6) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


A__GEQ(s(X), s(Y)) → A__GEQ(X, Y)
The remaining pairs can at least be oriented weakly.
Used ordering: SCNP Order with the following components:
Level mapping:
Top level AFS:
A__GEQ(x0, x1, x2)  =  A__GEQ(x2)

Tags:
A__GEQ has argument tags [1,0,2] and root tag 0

Comparison: MAX
Underlying order for the size change arcs and the rules of R:
Recursive path order with status [RPO].
Quasi-Precedence:
trivial

Status:
AGEQ2: multiset
s1: [1]


The following usable rules [FROCOS05] were oriented: none

(7) Obligation:

Q DP problem:
P is empty.
The TRS R consists of the following rules:

a__minus(0, Y) → 0
a__minus(s(X), s(Y)) → a__minus(X, Y)
a__geq(X, 0) → true
a__geq(0, s(Y)) → false
a__geq(s(X), s(Y)) → a__geq(X, Y)
a__div(0, s(Y)) → 0
a__div(s(X), s(Y)) → a__if(a__geq(X, Y), s(div(minus(X, Y), s(Y))), 0)
a__if(true, X, Y) → mark(X)
a__if(false, X, Y) → mark(Y)
mark(minus(X1, X2)) → a__minus(X1, X2)
mark(geq(X1, X2)) → a__geq(X1, X2)
mark(div(X1, X2)) → a__div(mark(X1), X2)
mark(if(X1, X2, X3)) → a__if(mark(X1), X2, X3)
mark(0) → 0
mark(s(X)) → s(mark(X))
mark(true) → true
mark(false) → false
a__minus(X1, X2) → minus(X1, X2)
a__geq(X1, X2) → geq(X1, X2)
a__div(X1, X2) → div(X1, X2)
a__if(X1, X2, X3) → if(X1, X2, X3)

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

(8) PisEmptyProof (EQUIVALENT transformation)

The TRS P is empty. Hence, there is no (P,Q,R) chain.

(9) TRUE

(10) Obligation:

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

A__MINUS(s(X), s(Y)) → A__MINUS(X, Y)

The TRS R consists of the following rules:

a__minus(0, Y) → 0
a__minus(s(X), s(Y)) → a__minus(X, Y)
a__geq(X, 0) → true
a__geq(0, s(Y)) → false
a__geq(s(X), s(Y)) → a__geq(X, Y)
a__div(0, s(Y)) → 0
a__div(s(X), s(Y)) → a__if(a__geq(X, Y), s(div(minus(X, Y), s(Y))), 0)
a__if(true, X, Y) → mark(X)
a__if(false, X, Y) → mark(Y)
mark(minus(X1, X2)) → a__minus(X1, X2)
mark(geq(X1, X2)) → a__geq(X1, X2)
mark(div(X1, X2)) → a__div(mark(X1), X2)
mark(if(X1, X2, X3)) → a__if(mark(X1), X2, X3)
mark(0) → 0
mark(s(X)) → s(mark(X))
mark(true) → true
mark(false) → false
a__minus(X1, X2) → minus(X1, X2)
a__geq(X1, X2) → geq(X1, X2)
a__div(X1, X2) → div(X1, X2)
a__if(X1, X2, X3) → if(X1, X2, X3)

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

(11) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


A__MINUS(s(X), s(Y)) → A__MINUS(X, Y)
The remaining pairs can at least be oriented weakly.
Used ordering: SCNP Order with the following components:
Level mapping:
Top level AFS:
A__MINUS(x0, x1, x2)  =  A__MINUS(x2)

Tags:
A__MINUS has argument tags [1,0,2] and root tag 0

Comparison: MAX
Underlying order for the size change arcs and the rules of R:
Recursive path order with status [RPO].
Quasi-Precedence:
trivial

Status:
AMINUS2: multiset
s1: [1]


The following usable rules [FROCOS05] were oriented: none

(12) Obligation:

Q DP problem:
P is empty.
The TRS R consists of the following rules:

a__minus(0, Y) → 0
a__minus(s(X), s(Y)) → a__minus(X, Y)
a__geq(X, 0) → true
a__geq(0, s(Y)) → false
a__geq(s(X), s(Y)) → a__geq(X, Y)
a__div(0, s(Y)) → 0
a__div(s(X), s(Y)) → a__if(a__geq(X, Y), s(div(minus(X, Y), s(Y))), 0)
a__if(true, X, Y) → mark(X)
a__if(false, X, Y) → mark(Y)
mark(minus(X1, X2)) → a__minus(X1, X2)
mark(geq(X1, X2)) → a__geq(X1, X2)
mark(div(X1, X2)) → a__div(mark(X1), X2)
mark(if(X1, X2, X3)) → a__if(mark(X1), X2, X3)
mark(0) → 0
mark(s(X)) → s(mark(X))
mark(true) → true
mark(false) → false
a__minus(X1, X2) → minus(X1, X2)
a__geq(X1, X2) → geq(X1, X2)
a__div(X1, X2) → div(X1, X2)
a__if(X1, X2, X3) → if(X1, X2, X3)

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

(13) PisEmptyProof (EQUIVALENT transformation)

The TRS P is empty. Hence, there is no (P,Q,R) chain.

(14) TRUE

(15) Obligation:

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

MARK(div(X1, X2)) → A__DIV(mark(X1), X2)
A__DIV(s(X), s(Y)) → A__IF(a__geq(X, Y), s(div(minus(X, Y), s(Y))), 0)
A__IF(true, X, Y) → MARK(X)
MARK(div(X1, X2)) → MARK(X1)
MARK(if(X1, X2, X3)) → A__IF(mark(X1), X2, X3)
A__IF(false, X, Y) → MARK(Y)
MARK(if(X1, X2, X3)) → MARK(X1)
MARK(s(X)) → MARK(X)

The TRS R consists of the following rules:

a__minus(0, Y) → 0
a__minus(s(X), s(Y)) → a__minus(X, Y)
a__geq(X, 0) → true
a__geq(0, s(Y)) → false
a__geq(s(X), s(Y)) → a__geq(X, Y)
a__div(0, s(Y)) → 0
a__div(s(X), s(Y)) → a__if(a__geq(X, Y), s(div(minus(X, Y), s(Y))), 0)
a__if(true, X, Y) → mark(X)
a__if(false, X, Y) → mark(Y)
mark(minus(X1, X2)) → a__minus(X1, X2)
mark(geq(X1, X2)) → a__geq(X1, X2)
mark(div(X1, X2)) → a__div(mark(X1), X2)
mark(if(X1, X2, X3)) → a__if(mark(X1), X2, X3)
mark(0) → 0
mark(s(X)) → s(mark(X))
mark(true) → true
mark(false) → false
a__minus(X1, X2) → minus(X1, X2)
a__geq(X1, X2) → geq(X1, X2)
a__div(X1, X2) → div(X1, X2)
a__if(X1, X2, X3) → if(X1, X2, X3)

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

(16) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


A__DIV(s(X), s(Y)) → A__IF(a__geq(X, Y), s(div(minus(X, Y), s(Y))), 0)
A__IF(true, X, Y) → MARK(X)
MARK(div(X1, X2)) → MARK(X1)
MARK(if(X1, X2, X3)) → A__IF(mark(X1), X2, X3)
A__IF(false, X, Y) → MARK(Y)
The remaining pairs can at least be oriented weakly.
Used ordering: SCNP Order with the following components:
Level mapping:
Top level AFS:
MARK(x0, x1)  =  MARK(x0, x1)
A__DIV(x0, x1, x2)  =  A__DIV(x0, x1)
A__IF(x0, x1, x2, x3)  =  A__IF(x1, x2, x3)

Tags:
MARK has argument tags [0,7] and root tag 0
A__DIV has argument tags [7,0,8] and root tag 0
A__IF has argument tags [15,0,8,7] and root tag 1

Comparison: MAX
Underlying order for the size change arcs and the rules of R:
Combined order from the following AFS and order.
MARK(x1)  =  MARK
div(x1, x2)  =  div(x1, x2)
A__DIV(x1, x2)  =  A__DIV(x1, x2)
mark(x1)  =  x1
s(x1)  =  s(x1)
A__IF(x1, x2, x3)  =  A__IF(x2, x3)
a__geq(x1, x2)  =  a__geq
minus(x1, x2)  =  minus(x1)
0  =  0
true  =  true
if(x1, x2, x3)  =  if(x1, x2, x3)
false  =  false
a__minus(x1, x2)  =  a__minus(x1)
geq(x1, x2)  =  geq
a__div(x1, x2)  =  a__div(x1, x2)
a__if(x1, x2, x3)  =  a__if(x1, x2, x3)

Recursive path order with status [RPO].
Quasi-Precedence:
[div2, ADIV2, adiv2] > [MARK, ageq, 0, true, false, geq] > [AIF2, if3, aif3] > [minus1, aminus1]
[div2, ADIV2, adiv2] > s1 > [minus1, aminus1]

Status:
MARK: multiset
div2: multiset
ADIV2: multiset
s1: [1]
AIF2: multiset
ageq: multiset
minus1: multiset
0: multiset
true: multiset
if3: multiset
false: multiset
aminus1: multiset
geq: multiset
adiv2: multiset
aif3: multiset


The following usable rules [FROCOS05] were oriented:

mark(minus(X1, X2)) → a__minus(X1, X2)
mark(geq(X1, X2)) → a__geq(X1, X2)
mark(div(X1, X2)) → a__div(mark(X1), X2)
a__div(s(X), s(Y)) → a__if(a__geq(X, Y), s(div(minus(X, Y), s(Y))), 0)
a__if(true, X, Y) → mark(X)
mark(if(X1, X2, X3)) → a__if(mark(X1), X2, X3)
a__if(false, X, Y) → mark(Y)
mark(0) → 0
mark(s(X)) → s(mark(X))
mark(true) → true
mark(false) → false
a__geq(X, 0) → true
a__geq(0, s(Y)) → false
a__geq(s(X), s(Y)) → a__geq(X, Y)
a__geq(X1, X2) → geq(X1, X2)
a__div(0, s(Y)) → 0
a__div(X1, X2) → div(X1, X2)
a__if(X1, X2, X3) → if(X1, X2, X3)
a__minus(0, Y) → 0
a__minus(s(X), s(Y)) → a__minus(X, Y)
a__minus(X1, X2) → minus(X1, X2)

(17) Obligation:

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

MARK(div(X1, X2)) → A__DIV(mark(X1), X2)
MARK(if(X1, X2, X3)) → MARK(X1)
MARK(s(X)) → MARK(X)

The TRS R consists of the following rules:

a__minus(0, Y) → 0
a__minus(s(X), s(Y)) → a__minus(X, Y)
a__geq(X, 0) → true
a__geq(0, s(Y)) → false
a__geq(s(X), s(Y)) → a__geq(X, Y)
a__div(0, s(Y)) → 0
a__div(s(X), s(Y)) → a__if(a__geq(X, Y), s(div(minus(X, Y), s(Y))), 0)
a__if(true, X, Y) → mark(X)
a__if(false, X, Y) → mark(Y)
mark(minus(X1, X2)) → a__minus(X1, X2)
mark(geq(X1, X2)) → a__geq(X1, X2)
mark(div(X1, X2)) → a__div(mark(X1), X2)
mark(if(X1, X2, X3)) → a__if(mark(X1), X2, X3)
mark(0) → 0
mark(s(X)) → s(mark(X))
mark(true) → true
mark(false) → false
a__minus(X1, X2) → minus(X1, X2)
a__geq(X1, X2) → geq(X1, X2)
a__div(X1, X2) → div(X1, X2)
a__if(X1, X2, X3) → if(X1, X2, X3)

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

(18) DependencyGraphProof (EQUIVALENT transformation)

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

(19) Obligation:

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

MARK(s(X)) → MARK(X)
MARK(if(X1, X2, X3)) → MARK(X1)

The TRS R consists of the following rules:

a__minus(0, Y) → 0
a__minus(s(X), s(Y)) → a__minus(X, Y)
a__geq(X, 0) → true
a__geq(0, s(Y)) → false
a__geq(s(X), s(Y)) → a__geq(X, Y)
a__div(0, s(Y)) → 0
a__div(s(X), s(Y)) → a__if(a__geq(X, Y), s(div(minus(X, Y), s(Y))), 0)
a__if(true, X, Y) → mark(X)
a__if(false, X, Y) → mark(Y)
mark(minus(X1, X2)) → a__minus(X1, X2)
mark(geq(X1, X2)) → a__geq(X1, X2)
mark(div(X1, X2)) → a__div(mark(X1), X2)
mark(if(X1, X2, X3)) → a__if(mark(X1), X2, X3)
mark(0) → 0
mark(s(X)) → s(mark(X))
mark(true) → true
mark(false) → false
a__minus(X1, X2) → minus(X1, X2)
a__geq(X1, X2) → geq(X1, X2)
a__div(X1, X2) → div(X1, X2)
a__if(X1, X2, X3) → if(X1, X2, X3)

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

(20) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


MARK(s(X)) → MARK(X)
The remaining pairs can at least be oriented weakly.
Used ordering: SCNP Order with the following components:
Level mapping:
Top level AFS:
MARK(x0, x1)  =  MARK(x1)

Tags:
MARK has argument tags [1,0] and root tag 0

Comparison: MAX
Underlying order for the size change arcs and the rules of R:
Combined order from the following AFS and order.
MARK(x1)  =  MARK
s(x1)  =  s(x1)
if(x1, x2, x3)  =  x1

Recursive path order with status [RPO].
Quasi-Precedence:
[MARK, s1]

Status:
MARK: multiset
s1: multiset


The following usable rules [FROCOS05] were oriented: none

(21) Obligation:

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

MARK(if(X1, X2, X3)) → MARK(X1)

The TRS R consists of the following rules:

a__minus(0, Y) → 0
a__minus(s(X), s(Y)) → a__minus(X, Y)
a__geq(X, 0) → true
a__geq(0, s(Y)) → false
a__geq(s(X), s(Y)) → a__geq(X, Y)
a__div(0, s(Y)) → 0
a__div(s(X), s(Y)) → a__if(a__geq(X, Y), s(div(minus(X, Y), s(Y))), 0)
a__if(true, X, Y) → mark(X)
a__if(false, X, Y) → mark(Y)
mark(minus(X1, X2)) → a__minus(X1, X2)
mark(geq(X1, X2)) → a__geq(X1, X2)
mark(div(X1, X2)) → a__div(mark(X1), X2)
mark(if(X1, X2, X3)) → a__if(mark(X1), X2, X3)
mark(0) → 0
mark(s(X)) → s(mark(X))
mark(true) → true
mark(false) → false
a__minus(X1, X2) → minus(X1, X2)
a__geq(X1, X2) → geq(X1, X2)
a__div(X1, X2) → div(X1, X2)
a__if(X1, X2, X3) → if(X1, X2, X3)

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

(22) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


MARK(if(X1, X2, X3)) → MARK(X1)
The remaining pairs can at least be oriented weakly.
Used ordering: SCNP Order with the following components:
Level mapping:
Top level AFS:
MARK(x0, x1)  =  MARK(x1)

Tags:
MARK has argument tags [1,1] and root tag 0

Comparison: MAX
Underlying order for the size change arcs and the rules of R:
Recursive path order with status [RPO].
Quasi-Precedence:
[MARK1, if3]

Status:
MARK1: multiset
if3: multiset


The following usable rules [FROCOS05] were oriented: none

(23) Obligation:

Q DP problem:
P is empty.
The TRS R consists of the following rules:

a__minus(0, Y) → 0
a__minus(s(X), s(Y)) → a__minus(X, Y)
a__geq(X, 0) → true
a__geq(0, s(Y)) → false
a__geq(s(X), s(Y)) → a__geq(X, Y)
a__div(0, s(Y)) → 0
a__div(s(X), s(Y)) → a__if(a__geq(X, Y), s(div(minus(X, Y), s(Y))), 0)
a__if(true, X, Y) → mark(X)
a__if(false, X, Y) → mark(Y)
mark(minus(X1, X2)) → a__minus(X1, X2)
mark(geq(X1, X2)) → a__geq(X1, X2)
mark(div(X1, X2)) → a__div(mark(X1), X2)
mark(if(X1, X2, X3)) → a__if(mark(X1), X2, X3)
mark(0) → 0
mark(s(X)) → s(mark(X))
mark(true) → true
mark(false) → false
a__minus(X1, X2) → minus(X1, X2)
a__geq(X1, X2) → geq(X1, X2)
a__div(X1, X2) → div(X1, X2)
a__if(X1, X2, X3) → if(X1, X2, X3)

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

(24) PisEmptyProof (EQUIVALENT transformation)

The TRS P is empty. Hence, there is no (P,Q,R) chain.

(25) TRUE