YES
0 QTRS
↳1 QTRSRRRProof (⇔, 75 ms)
↳2 QTRS
↳3 QTRSRRRProof (⇔, 0 ms)
↳4 QTRS
↳5 RisEmptyProof (⇔, 0 ms)
↳6 YES
a__eq(0, 0) → true
a__eq(s(X), s(Y)) → a__eq(X, Y)
a__eq(X, Y) → false
a__inf(X) → cons(X, inf(s(X)))
a__take(0, X) → nil
a__take(s(X), cons(Y, L)) → cons(Y, take(X, L))
a__length(nil) → 0
a__length(cons(X, L)) → s(length(L))
mark(eq(X1, X2)) → a__eq(X1, X2)
mark(inf(X)) → a__inf(mark(X))
mark(take(X1, X2)) → a__take(mark(X1), mark(X2))
mark(length(X)) → a__length(mark(X))
mark(0) → 0
mark(true) → true
mark(s(X)) → s(X)
mark(false) → false
mark(cons(X1, X2)) → cons(X1, X2)
mark(nil) → nil
a__eq(X1, X2) → eq(X1, X2)
a__inf(X) → inf(X)
a__take(X1, X2) → take(X1, X2)
a__length(X) → length(X)
mark1 > aeq2 > false
mark1 > aeq2 > eq2
mark1 > [0, atake2, nil, take2] > true
mark1 > [0, atake2, nil, take2] > cons2
mark1 > ainf1 > cons2
mark1 > ainf1 > inf1
aeq2: multiset
0: multiset
true: multiset
false: multiset
ainf1: [1]
cons2: [2,1]
inf1: [1]
atake2: multiset
nil: multiset
take2: multiset
mark1: multiset
eq2: multiset
a__eq(0, 0) → true
a__eq(X, Y) → false
a__inf(X) → cons(X, inf(s(X)))
a__take(0, X) → nil
a__take(s(X), cons(Y, L)) → cons(Y, take(X, L))
a__length(cons(X, L)) → s(length(L))
mark(eq(X1, X2)) → a__eq(X1, X2)
mark(inf(X)) → a__inf(mark(X))
mark(take(X1, X2)) → a__take(mark(X1), mark(X2))
mark(0) → 0
mark(true) → true
mark(s(X)) → s(X)
mark(false) → false
mark(cons(X1, X2)) → cons(X1, X2)
mark(nil) → nil
a__eq(X1, X2) → eq(X1, X2)
a__inf(X) → inf(X)
a__eq(s(X), s(Y)) → a__eq(X, Y)
a__length(nil) → 0
mark(length(X)) → a__length(mark(X))
a__take(X1, X2) → take(X1, X2)
a__length(X) → length(X)
s1 > mark1 > take2 > atake2 > alength1 > aeq2 > length1 > 0 > nil
nil=1
0=2
s_1=0
a__length_1=1
mark_1=2
length_1=1
a__take_2=1
take_2=0
a__eq_2=0
a__eq(s(X), s(Y)) → a__eq(X, Y)
a__length(nil) → 0
mark(length(X)) → a__length(mark(X))
a__take(X1, X2) → take(X1, X2)
a__length(X) → length(X)