(0) Obligation:

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

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

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__U11(tt, V1, V2) → A__U12(a__isNat(V1), V2)
A__U11(tt, V1, V2) → A__ISNAT(V1)
A__U12(tt, V2) → A__U13(a__isNat(V2))
A__U12(tt, V2) → A__ISNAT(V2)
A__U21(tt, V1) → A__U22(a__isNat(V1))
A__U21(tt, V1) → A__ISNAT(V1)
A__U31(tt, N) → MARK(N)
A__U41(tt, M, N) → A__PLUS(mark(N), mark(M))
A__U41(tt, M, N) → MARK(N)
A__U41(tt, M, N) → MARK(M)
A__AND(tt, X) → MARK(X)
A__ISNAT(plus(V1, V2)) → A__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
A__ISNAT(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
A__ISNAT(plus(V1, V2)) → A__ISNATKIND(V1)
A__ISNAT(s(V1)) → A__U21(a__isNatKind(V1), V1)
A__ISNAT(s(V1)) → A__ISNATKIND(V1)
A__ISNATKIND(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
A__ISNATKIND(plus(V1, V2)) → A__ISNATKIND(V1)
A__ISNATKIND(s(V1)) → A__ISNATKIND(V1)
A__PLUS(N, 0) → A__U31(a__and(a__isNat(N), isNatKind(N)), N)
A__PLUS(N, 0) → A__AND(a__isNat(N), isNatKind(N))
A__PLUS(N, 0) → A__ISNAT(N)
A__PLUS(N, s(M)) → A__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
A__PLUS(N, s(M)) → A__AND(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N)))
A__PLUS(N, s(M)) → A__AND(a__isNat(M), isNatKind(M))
A__PLUS(N, s(M)) → A__ISNAT(M)
MARK(U11(X1, X2, X3)) → A__U11(mark(X1), X2, X3)
MARK(U11(X1, X2, X3)) → MARK(X1)
MARK(U12(X1, X2)) → A__U12(mark(X1), X2)
MARK(U12(X1, X2)) → MARK(X1)
MARK(isNat(X)) → A__ISNAT(X)
MARK(U13(X)) → A__U13(mark(X))
MARK(U13(X)) → MARK(X)
MARK(U21(X1, X2)) → A__U21(mark(X1), X2)
MARK(U21(X1, X2)) → MARK(X1)
MARK(U22(X)) → A__U22(mark(X))
MARK(U22(X)) → MARK(X)
MARK(U31(X1, X2)) → A__U31(mark(X1), X2)
MARK(U31(X1, X2)) → MARK(X1)
MARK(U41(X1, X2, X3)) → A__U41(mark(X1), X2, X3)
MARK(U41(X1, X2, X3)) → MARK(X1)
MARK(plus(X1, X2)) → A__PLUS(mark(X1), mark(X2))
MARK(plus(X1, X2)) → MARK(X1)
MARK(plus(X1, X2)) → MARK(X2)
MARK(and(X1, X2)) → A__AND(mark(X1), X2)
MARK(and(X1, X2)) → MARK(X1)
MARK(isNatKind(X)) → A__ISNATKIND(X)
MARK(s(X)) → MARK(X)

The TRS R consists of the following rules:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

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 4 less nodes.

(4) Obligation:

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

A__U12(tt, V2) → A__ISNAT(V2)
A__ISNAT(plus(V1, V2)) → A__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
A__U11(tt, V1, V2) → A__U12(a__isNat(V1), V2)
A__U11(tt, V1, V2) → A__ISNAT(V1)
A__ISNAT(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
A__AND(tt, X) → MARK(X)
MARK(U11(X1, X2, X3)) → A__U11(mark(X1), X2, X3)
MARK(U11(X1, X2, X3)) → MARK(X1)
MARK(U12(X1, X2)) → A__U12(mark(X1), X2)
MARK(U12(X1, X2)) → MARK(X1)
MARK(isNat(X)) → A__ISNAT(X)
A__ISNAT(plus(V1, V2)) → A__ISNATKIND(V1)
A__ISNATKIND(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
A__ISNATKIND(plus(V1, V2)) → A__ISNATKIND(V1)
A__ISNATKIND(s(V1)) → A__ISNATKIND(V1)
A__ISNAT(s(V1)) → A__U21(a__isNatKind(V1), V1)
A__U21(tt, V1) → A__ISNAT(V1)
A__ISNAT(s(V1)) → A__ISNATKIND(V1)
MARK(U13(X)) → MARK(X)
MARK(U21(X1, X2)) → A__U21(mark(X1), X2)
MARK(U21(X1, X2)) → MARK(X1)
MARK(U22(X)) → MARK(X)
MARK(U31(X1, X2)) → A__U31(mark(X1), X2)
A__U31(tt, N) → MARK(N)
MARK(U31(X1, X2)) → MARK(X1)
MARK(U41(X1, X2, X3)) → A__U41(mark(X1), X2, X3)
A__U41(tt, M, N) → A__PLUS(mark(N), mark(M))
A__PLUS(N, 0) → A__U31(a__and(a__isNat(N), isNatKind(N)), N)
A__PLUS(N, 0) → A__AND(a__isNat(N), isNatKind(N))
A__PLUS(N, 0) → A__ISNAT(N)
A__PLUS(N, s(M)) → A__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
A__U41(tt, M, N) → MARK(N)
MARK(U41(X1, X2, X3)) → MARK(X1)
MARK(plus(X1, X2)) → A__PLUS(mark(X1), mark(X2))
A__PLUS(N, s(M)) → A__AND(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N)))
A__PLUS(N, s(M)) → A__AND(a__isNat(M), isNatKind(M))
A__PLUS(N, s(M)) → A__ISNAT(M)
MARK(plus(X1, X2)) → MARK(X1)
MARK(plus(X1, X2)) → MARK(X2)
MARK(and(X1, X2)) → A__AND(mark(X1), X2)
MARK(and(X1, X2)) → MARK(X1)
MARK(isNatKind(X)) → A__ISNATKIND(X)
MARK(s(X)) → MARK(X)
A__U41(tt, M, N) → MARK(M)

The TRS R consists of the following rules:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

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

(5) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


A__ISNAT(plus(V1, V2)) → A__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
A__U11(tt, V1, V2) → A__U12(a__isNat(V1), V2)
A__U11(tt, V1, V2) → A__ISNAT(V1)
A__ISNAT(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
A__AND(tt, X) → MARK(X)
MARK(U11(X1, X2, X3)) → A__U11(mark(X1), X2, X3)
MARK(U11(X1, X2, X3)) → MARK(X1)
MARK(U12(X1, X2)) → A__U12(mark(X1), X2)
MARK(U12(X1, X2)) → MARK(X1)
MARK(isNat(X)) → A__ISNAT(X)
A__ISNAT(plus(V1, V2)) → A__ISNATKIND(V1)
A__ISNATKIND(plus(V1, V2)) → A__AND(a__isNatKind(V1), isNatKind(V2))
A__ISNATKIND(plus(V1, V2)) → A__ISNATKIND(V1)
A__ISNATKIND(s(V1)) → A__ISNATKIND(V1)
A__ISNAT(s(V1)) → A__U21(a__isNatKind(V1), V1)
A__ISNAT(s(V1)) → A__ISNATKIND(V1)
MARK(U21(X1, X2)) → A__U21(mark(X1), X2)
MARK(U21(X1, X2)) → MARK(X1)
MARK(U31(X1, X2)) → A__U31(mark(X1), X2)
MARK(U31(X1, X2)) → MARK(X1)
MARK(U41(X1, X2, X3)) → A__U41(mark(X1), X2, X3)
A__PLUS(N, 0) → A__U31(a__and(a__isNat(N), isNatKind(N)), N)
A__PLUS(N, 0) → A__AND(a__isNat(N), isNatKind(N))
A__PLUS(N, 0) → A__ISNAT(N)
A__PLUS(N, s(M)) → A__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
A__U41(tt, M, N) → MARK(N)
MARK(U41(X1, X2, X3)) → MARK(X1)
MARK(plus(X1, X2)) → A__PLUS(mark(X1), mark(X2))
A__PLUS(N, s(M)) → A__AND(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N)))
A__PLUS(N, s(M)) → A__AND(a__isNat(M), isNatKind(M))
A__PLUS(N, s(M)) → A__ISNAT(M)
MARK(plus(X1, X2)) → MARK(X1)
MARK(plus(X1, X2)) → MARK(X2)
MARK(and(X1, X2)) → A__AND(mark(X1), X2)
MARK(and(X1, X2)) → MARK(X1)
MARK(s(X)) → MARK(X)
A__U41(tt, M, N) → MARK(M)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
A__U12(x1, x2)  =  A__U12(x2)
tt  =  tt
A__ISNAT(x1)  =  A__ISNAT(x1)
plus(x1, x2)  =  plus(x1, x2)
A__U11(x1, x2, x3)  =  A__U11(x1, x2, x3)
a__and(x1, x2)  =  a__and(x1, x2)
a__isNatKind(x1)  =  x1
isNatKind(x1)  =  x1
a__isNat(x1)  =  a__isNat(x1)
A__AND(x1, x2)  =  A__AND(x1, x2)
MARK(x1)  =  MARK(x1)
U11(x1, x2, x3)  =  U11(x1, x2, x3)
mark(x1)  =  x1
U12(x1, x2)  =  U12(x1, x2)
isNat(x1)  =  isNat(x1)
A__ISNATKIND(x1)  =  A__ISNATKIND(x1)
s(x1)  =  s(x1)
A__U21(x1, x2)  =  A__U21(x2)
U13(x1)  =  x1
U21(x1, x2)  =  U21(x1, x2)
U22(x1)  =  x1
U31(x1, x2)  =  U31(x1, x2)
A__U31(x1, x2)  =  A__U31(x2)
U41(x1, x2, x3)  =  U41(x1, x2, x3)
A__U41(x1, x2, x3)  =  A__U41(x2, x3)
A__PLUS(x1, x2)  =  A__PLUS(x1, x2)
0  =  0
and(x1, x2)  =  and(x1, x2)
a__U11(x1, x2, x3)  =  a__U11(x1, x2, x3)
a__U12(x1, x2)  =  a__U12(x1, x2)
a__U13(x1)  =  x1
a__U21(x1, x2)  =  a__U21(x1, x2)
a__U22(x1)  =  x1
a__U31(x1, x2)  =  a__U31(x1, x2)
a__U41(x1, x2, x3)  =  a__U41(x1, x2, x3)
a__plus(x1, x2)  =  a__plus(x1, x2)

Recursive path order with status [RPO].
Quasi-Precedence:
[plus2, U413, aU413, aplus2] > [U113, aU113] > AU113 > [AU121, AISNAT1, AU211] > [aand2, AAND2, MARK1, AISNATKIND1, AU311, and2]
[plus2, U413, aU413, aplus2] > [U113, aU113] > [U122, aU122] > [aisNat1, isNat1, 0] > [AU121, AISNAT1, AU211] > [aand2, AAND2, MARK1, AISNATKIND1, AU311, and2]
[plus2, U413, aU413, aplus2] > [U113, aU113] > [U122, aU122] > [aisNat1, isNat1, 0] > tt
[plus2, U413, aU413, aplus2] > s1 > [U212, aU212] > [aisNat1, isNat1, 0] > [AU121, AISNAT1, AU211] > [aand2, AAND2, MARK1, AISNATKIND1, AU311, and2]
[plus2, U413, aU413, aplus2] > s1 > [U212, aU212] > [aisNat1, isNat1, 0] > tt
[plus2, U413, aU413, aplus2] > s1 > [AU412, APLUS2] > [aisNat1, isNat1, 0] > [AU121, AISNAT1, AU211] > [aand2, AAND2, MARK1, AISNATKIND1, AU311, and2]
[plus2, U413, aU413, aplus2] > s1 > [AU412, APLUS2] > [aisNat1, isNat1, 0] > tt
[plus2, U413, aU413, aplus2] > [U312, aU312] > [aand2, AAND2, MARK1, AISNATKIND1, AU311, and2]

Status:
AU121: multiset
tt: multiset
AISNAT1: multiset
plus2: [1,2]
AU113: [3,2,1]
aand2: multiset
aisNat1: [1]
AAND2: multiset
MARK1: multiset
U113: [3,2,1]
U122: [2,1]
isNat1: [1]
AISNATKIND1: multiset
s1: [1]
AU211: multiset
U212: multiset
U312: multiset
AU311: multiset
U413: [3,2,1]
AU412: multiset
APLUS2: multiset
0: multiset
and2: multiset
aU113: [3,2,1]
aU122: [2,1]
aU212: multiset
aU312: multiset
aU413: [3,2,1]
aplus2: [1,2]


The following usable rules [FROCOS05] were oriented:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

(6) Obligation:

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

A__U12(tt, V2) → A__ISNAT(V2)
A__U21(tt, V1) → A__ISNAT(V1)
MARK(U13(X)) → MARK(X)
MARK(U22(X)) → MARK(X)
A__U31(tt, N) → MARK(N)
A__U41(tt, M, N) → A__PLUS(mark(N), mark(M))
MARK(isNatKind(X)) → A__ISNATKIND(X)

The TRS R consists of the following rules:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

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 5 less nodes.

(8) Obligation:

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

MARK(U22(X)) → MARK(X)
MARK(U13(X)) → MARK(X)

The TRS R consists of the following rules:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

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

(9) QDPOrderProof (EQUIVALENT transformation)

We use the reduction pair processor [LPAR04].


The following pairs can be oriented strictly and are deleted.


MARK(U13(X)) → MARK(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
MARK(x1)  =  MARK(x1)
U22(x1)  =  x1
U13(x1)  =  U13(x1)
a__U11(x1, x2, x3)  =  a__U11(x2, x3)
tt  =  tt
a__U12(x1, x2)  =  a__U12(x1, x2)
a__isNat(x1)  =  x1
a__U13(x1)  =  a__U13(x1)
a__U21(x1, x2)  =  x2
a__U22(x1)  =  x1
a__U31(x1, x2)  =  a__U31(x2)
mark(x1)  =  x1
a__U41(x1, x2, x3)  =  a__U41(x2, x3)
s(x1)  =  x1
a__plus(x1, x2)  =  a__plus(x1, x2)
a__and(x1, x2)  =  x2
0  =  0
plus(x1, x2)  =  plus(x1, x2)
a__isNatKind(x1)  =  a__isNatKind(x1)
isNatKind(x1)  =  isNatKind(x1)
and(x1, x2)  =  x2
isNat(x1)  =  x1
U11(x1, x2, x3)  =  U11(x2, x3)
U12(x1, x2)  =  U12(x1, x2)
U21(x1, x2)  =  x2
U31(x1, x2)  =  U31(x2)
U41(x1, x2, x3)  =  U41(x2, x3)

Recursive path order with status [RPO].
Quasi-Precedence:
MARK1 > [aisNatKind1, isNatKind1]
[aU112, aU412, aplus2, plus2, U112, U412] > [tt, aU122, U122] > [U131, aU131] > [aisNatKind1, isNatKind1]
[aU112, aU412, aplus2, plus2, U112, U412] > [aU311, U311] > [aisNatKind1, isNatKind1]
0 > [tt, aU122, U122] > [U131, aU131] > [aisNatKind1, isNatKind1]
0 > [aU311, U311] > [aisNatKind1, isNatKind1]

Status:
MARK1: multiset
U131: multiset
aU112: multiset
tt: multiset
aU122: multiset
aU131: multiset
aU311: [1]
aU412: multiset
aplus2: multiset
0: multiset
plus2: multiset
aisNatKind1: multiset
isNatKind1: multiset
U112: multiset
U122: multiset
U311: [1]
U412: multiset


The following usable rules [FROCOS05] were oriented:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

(10) Obligation:

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

MARK(U22(X)) → MARK(X)

The TRS R consists of the following rules:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

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.


MARK(U22(X)) → MARK(X)
The remaining pairs can at least be oriented weakly.
Used ordering: Combined order from the following AFS and order.
MARK(x1)  =  x1
U22(x1)  =  U22(x1)
a__U11(x1, x2, x3)  =  a__U11(x1, x2)
tt  =  tt
a__U12(x1, x2)  =  a__U12(x1)
a__isNat(x1)  =  x1
a__U13(x1)  =  a__U13
a__U21(x1, x2)  =  a__U21(x2)
a__U22(x1)  =  a__U22(x1)
a__U31(x1, x2)  =  a__U31(x1, x2)
mark(x1)  =  x1
a__U41(x1, x2, x3)  =  a__U41(x1, x2, x3)
s(x1)  =  s(x1)
a__plus(x1, x2)  =  a__plus(x1, x2)
a__and(x1, x2)  =  x2
0  =  0
plus(x1, x2)  =  plus(x1, x2)
a__isNatKind(x1)  =  a__isNatKind
isNatKind(x1)  =  isNatKind
and(x1, x2)  =  x2
isNat(x1)  =  x1
U11(x1, x2, x3)  =  U11(x1, x2)
U12(x1, x2)  =  U12(x1)
U13(x1)  =  U13
U21(x1, x2)  =  U21(x2)
U31(x1, x2)  =  U31(x1, x2)
U41(x1, x2, x3)  =  U41(x1, x2, x3)

Recursive path order with status [RPO].
Quasi-Precedence:
[aU413, aplus2, plus2, U413] > [aU112, U112] > [aU121, aU13, U121, U13] > [tt, aisNatKind, isNatKind]
[aU413, aplus2, plus2, U413] > [aU312, U312] > [tt, aisNatKind, isNatKind]
[aU413, aplus2, plus2, U413] > s1 > [U221, aU211, aU221, U211] > [tt, aisNatKind, isNatKind]
0 > [aU312, U312] > [tt, aisNatKind, isNatKind]

Status:
U221: multiset
aU112: multiset
tt: multiset
aU121: multiset
aU13: multiset
aU211: multiset
aU221: multiset
aU312: multiset
aU413: [3,2,1]
s1: multiset
aplus2: [1,2]
0: multiset
plus2: [1,2]
aisNatKind: multiset
isNatKind: multiset
U112: multiset
U121: multiset
U13: multiset
U211: multiset
U312: multiset
U413: [3,2,1]


The following usable rules [FROCOS05] were oriented:

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

(12) Obligation:

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

a__U11(tt, V1, V2) → a__U12(a__isNat(V1), V2)
a__U12(tt, V2) → a__U13(a__isNat(V2))
a__U13(tt) → tt
a__U21(tt, V1) → a__U22(a__isNat(V1))
a__U22(tt) → tt
a__U31(tt, N) → mark(N)
a__U41(tt, M, N) → s(a__plus(mark(N), mark(M)))
a__and(tt, X) → mark(X)
a__isNat(0) → tt
a__isNat(plus(V1, V2)) → a__U11(a__and(a__isNatKind(V1), isNatKind(V2)), V1, V2)
a__isNat(s(V1)) → a__U21(a__isNatKind(V1), V1)
a__isNatKind(0) → tt
a__isNatKind(plus(V1, V2)) → a__and(a__isNatKind(V1), isNatKind(V2))
a__isNatKind(s(V1)) → a__isNatKind(V1)
a__plus(N, 0) → a__U31(a__and(a__isNat(N), isNatKind(N)), N)
a__plus(N, s(M)) → a__U41(a__and(a__and(a__isNat(M), isNatKind(M)), and(isNat(N), isNatKind(N))), M, N)
mark(U11(X1, X2, X3)) → a__U11(mark(X1), X2, X3)
mark(U12(X1, X2)) → a__U12(mark(X1), X2)
mark(isNat(X)) → a__isNat(X)
mark(U13(X)) → a__U13(mark(X))
mark(U21(X1, X2)) → a__U21(mark(X1), X2)
mark(U22(X)) → a__U22(mark(X))
mark(U31(X1, X2)) → a__U31(mark(X1), X2)
mark(U41(X1, X2, X3)) → a__U41(mark(X1), X2, X3)
mark(plus(X1, X2)) → a__plus(mark(X1), mark(X2))
mark(and(X1, X2)) → a__and(mark(X1), X2)
mark(isNatKind(X)) → a__isNatKind(X)
mark(tt) → tt
mark(s(X)) → s(mark(X))
mark(0) → 0
a__U11(X1, X2, X3) → U11(X1, X2, X3)
a__U12(X1, X2) → U12(X1, X2)
a__isNat(X) → isNat(X)
a__U13(X) → U13(X)
a__U21(X1, X2) → U21(X1, X2)
a__U22(X) → U22(X)
a__U31(X1, X2) → U31(X1, X2)
a__U41(X1, X2, X3) → U41(X1, X2, X3)
a__plus(X1, X2) → plus(X1, X2)
a__and(X1, X2) → and(X1, X2)
a__isNatKind(X) → isNatKind(X)

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