0 QTRS
↳1 Overlay + Local Confluence (⇔)
↳2 QTRS
↳3 DependencyPairsProof (⇔)
↳4 QDP
↳5 DependencyGraphProof (⇔)
↳6 AND
↳7 QDP
↳8 QDPOrderProof (⇔)
↳9 QDP
↳10 PisEmptyProof (⇔)
↳11 TRUE
↳12 QDP
↳13 QDP
↳14 QDPOrderProof (⇔)
↳15 QDP
↳16 PisEmptyProof (⇔)
↳17 TRUE
↳18 QDP
↳19 QDPOrderProof (⇔)
↳20 QDP
↳21 PisEmptyProof (⇔)
↳22 TRUE
↳23 QDP
↳24 QDPOrderProof (⇔)
↳25 QDP
↳26 PisEmptyProof (⇔)
↳27 TRUE
↳28 QDP
↳29 QDPOrderProof (⇔)
↳30 QDP
↳31 DependencyGraphProof (⇔)
↳32 TRUE
↳33 QDP
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
bin2s(nil) → 0
bin2s(cons(x, xs)) → bin2ss(x, xs)
bin2ss(x, nil) → x
bin2ss(x, cons(0, xs)) → bin2ss(double(x), xs)
bin2ss(x, cons(1, xs)) → bin2ss(s(double(x)), xs)
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
log(0) → 0
log(s(0)) → 0
log(s(s(x))) → s(log(half(s(s(x)))))
more(nil) → nil
more(cons(xs, ys)) → cons(cons(0, xs), cons(cons(1, xs), cons(xs, ys)))
s2bin(x) → s2bin1(x, 0, cons(nil, nil))
s2bin1(x, y, lists) → if1(lt(y, log(x)), x, y, lists)
if1(true, x, y, lists) → s2bin1(x, s(y), more(lists))
if1(false, x, y, lists) → s2bin2(x, lists)
s2bin2(x, nil) → bug_list_not
s2bin2(x, cons(xs, ys)) → if2(eq(x, bin2s(xs)), x, xs, ys)
if2(true, x, xs, ys) → xs
if2(false, x, xs, ys) → s2bin2(x, ys)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
bin2s(nil) → 0
bin2s(cons(x, xs)) → bin2ss(x, xs)
bin2ss(x, nil) → x
bin2ss(x, cons(0, xs)) → bin2ss(double(x), xs)
bin2ss(x, cons(1, xs)) → bin2ss(s(double(x)), xs)
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
log(0) → 0
log(s(0)) → 0
log(s(s(x))) → s(log(half(s(s(x)))))
more(nil) → nil
more(cons(xs, ys)) → cons(cons(0, xs), cons(cons(1, xs), cons(xs, ys)))
s2bin(x) → s2bin1(x, 0, cons(nil, nil))
s2bin1(x, y, lists) → if1(lt(y, log(x)), x, y, lists)
if1(true, x, y, lists) → s2bin1(x, s(y), more(lists))
if1(false, x, y, lists) → s2bin2(x, lists)
s2bin2(x, nil) → bug_list_not
s2bin2(x, cons(xs, ys)) → if2(eq(x, bin2s(xs)), x, xs, ys)
if2(true, x, xs, ys) → xs
if2(false, x, xs, ys) → s2bin2(x, ys)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
bin2s(nil)
bin2s(cons(x0, x1))
bin2ss(x0, nil)
bin2ss(x0, cons(0, x1))
bin2ss(x0, cons(1, x1))
half(0)
half(s(0))
half(s(s(x0)))
log(0)
log(s(0))
log(s(s(x0)))
more(nil)
more(cons(x0, x1))
s2bin(x0)
s2bin1(x0, x1, x2)
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
s2bin2(x0, nil)
s2bin2(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
EQ(s(x), s(y)) → EQ(x, y)
LT(s(x), s(y)) → LT(x, y)
BIN2S(cons(x, xs)) → BIN2SS(x, xs)
BIN2SS(x, cons(0, xs)) → BIN2SS(double(x), xs)
BIN2SS(x, cons(1, xs)) → BIN2SS(s(double(x)), xs)
HALF(s(s(x))) → HALF(x)
LOG(s(s(x))) → LOG(half(s(s(x))))
LOG(s(s(x))) → HALF(s(s(x)))
S2BIN(x) → S2BIN1(x, 0, cons(nil, nil))
S2BIN1(x, y, lists) → IF1(lt(y, log(x)), x, y, lists)
S2BIN1(x, y, lists) → LT(y, log(x))
S2BIN1(x, y, lists) → LOG(x)
IF1(true, x, y, lists) → S2BIN1(x, s(y), more(lists))
IF1(true, x, y, lists) → MORE(lists)
IF1(false, x, y, lists) → S2BIN2(x, lists)
S2BIN2(x, cons(xs, ys)) → IF2(eq(x, bin2s(xs)), x, xs, ys)
S2BIN2(x, cons(xs, ys)) → EQ(x, bin2s(xs))
S2BIN2(x, cons(xs, ys)) → BIN2S(xs)
IF2(false, x, xs, ys) → S2BIN2(x, ys)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
bin2s(nil) → 0
bin2s(cons(x, xs)) → bin2ss(x, xs)
bin2ss(x, nil) → x
bin2ss(x, cons(0, xs)) → bin2ss(double(x), xs)
bin2ss(x, cons(1, xs)) → bin2ss(s(double(x)), xs)
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
log(0) → 0
log(s(0)) → 0
log(s(s(x))) → s(log(half(s(s(x)))))
more(nil) → nil
more(cons(xs, ys)) → cons(cons(0, xs), cons(cons(1, xs), cons(xs, ys)))
s2bin(x) → s2bin1(x, 0, cons(nil, nil))
s2bin1(x, y, lists) → if1(lt(y, log(x)), x, y, lists)
if1(true, x, y, lists) → s2bin1(x, s(y), more(lists))
if1(false, x, y, lists) → s2bin2(x, lists)
s2bin2(x, nil) → bug_list_not
s2bin2(x, cons(xs, ys)) → if2(eq(x, bin2s(xs)), x, xs, ys)
if2(true, x, xs, ys) → xs
if2(false, x, xs, ys) → s2bin2(x, ys)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
bin2s(nil)
bin2s(cons(x0, x1))
bin2ss(x0, nil)
bin2ss(x0, cons(0, x1))
bin2ss(x0, cons(1, x1))
half(0)
half(s(0))
half(s(s(x0)))
log(0)
log(s(0))
log(s(s(x0)))
more(nil)
more(cons(x0, x1))
s2bin(x0)
s2bin1(x0, x1, x2)
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
s2bin2(x0, nil)
s2bin2(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
HALF(s(s(x))) → HALF(x)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
bin2s(nil) → 0
bin2s(cons(x, xs)) → bin2ss(x, xs)
bin2ss(x, nil) → x
bin2ss(x, cons(0, xs)) → bin2ss(double(x), xs)
bin2ss(x, cons(1, xs)) → bin2ss(s(double(x)), xs)
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
log(0) → 0
log(s(0)) → 0
log(s(s(x))) → s(log(half(s(s(x)))))
more(nil) → nil
more(cons(xs, ys)) → cons(cons(0, xs), cons(cons(1, xs), cons(xs, ys)))
s2bin(x) → s2bin1(x, 0, cons(nil, nil))
s2bin1(x, y, lists) → if1(lt(y, log(x)), x, y, lists)
if1(true, x, y, lists) → s2bin1(x, s(y), more(lists))
if1(false, x, y, lists) → s2bin2(x, lists)
s2bin2(x, nil) → bug_list_not
s2bin2(x, cons(xs, ys)) → if2(eq(x, bin2s(xs)), x, xs, ys)
if2(true, x, xs, ys) → xs
if2(false, x, xs, ys) → s2bin2(x, ys)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
bin2s(nil)
bin2s(cons(x0, x1))
bin2ss(x0, nil)
bin2ss(x0, cons(0, x1))
bin2ss(x0, cons(1, x1))
half(0)
half(s(0))
half(s(s(x0)))
log(0)
log(s(0))
log(s(s(x0)))
more(nil)
more(cons(x0, x1))
s2bin(x0)
s2bin1(x0, x1, x2)
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
s2bin2(x0, nil)
s2bin2(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
HALF(s(s(x))) → HALF(x)
trivial
s1: [1]
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
bin2s(nil) → 0
bin2s(cons(x, xs)) → bin2ss(x, xs)
bin2ss(x, nil) → x
bin2ss(x, cons(0, xs)) → bin2ss(double(x), xs)
bin2ss(x, cons(1, xs)) → bin2ss(s(double(x)), xs)
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
log(0) → 0
log(s(0)) → 0
log(s(s(x))) → s(log(half(s(s(x)))))
more(nil) → nil
more(cons(xs, ys)) → cons(cons(0, xs), cons(cons(1, xs), cons(xs, ys)))
s2bin(x) → s2bin1(x, 0, cons(nil, nil))
s2bin1(x, y, lists) → if1(lt(y, log(x)), x, y, lists)
if1(true, x, y, lists) → s2bin1(x, s(y), more(lists))
if1(false, x, y, lists) → s2bin2(x, lists)
s2bin2(x, nil) → bug_list_not
s2bin2(x, cons(xs, ys)) → if2(eq(x, bin2s(xs)), x, xs, ys)
if2(true, x, xs, ys) → xs
if2(false, x, xs, ys) → s2bin2(x, ys)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
bin2s(nil)
bin2s(cons(x0, x1))
bin2ss(x0, nil)
bin2ss(x0, cons(0, x1))
bin2ss(x0, cons(1, x1))
half(0)
half(s(0))
half(s(s(x0)))
log(0)
log(s(0))
log(s(s(x0)))
more(nil)
more(cons(x0, x1))
s2bin(x0)
s2bin1(x0, x1, x2)
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
s2bin2(x0, nil)
s2bin2(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
LOG(s(s(x))) → LOG(half(s(s(x))))
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
bin2s(nil) → 0
bin2s(cons(x, xs)) → bin2ss(x, xs)
bin2ss(x, nil) → x
bin2ss(x, cons(0, xs)) → bin2ss(double(x), xs)
bin2ss(x, cons(1, xs)) → bin2ss(s(double(x)), xs)
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
log(0) → 0
log(s(0)) → 0
log(s(s(x))) → s(log(half(s(s(x)))))
more(nil) → nil
more(cons(xs, ys)) → cons(cons(0, xs), cons(cons(1, xs), cons(xs, ys)))
s2bin(x) → s2bin1(x, 0, cons(nil, nil))
s2bin1(x, y, lists) → if1(lt(y, log(x)), x, y, lists)
if1(true, x, y, lists) → s2bin1(x, s(y), more(lists))
if1(false, x, y, lists) → s2bin2(x, lists)
s2bin2(x, nil) → bug_list_not
s2bin2(x, cons(xs, ys)) → if2(eq(x, bin2s(xs)), x, xs, ys)
if2(true, x, xs, ys) → xs
if2(false, x, xs, ys) → s2bin2(x, ys)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
bin2s(nil)
bin2s(cons(x0, x1))
bin2ss(x0, nil)
bin2ss(x0, cons(0, x1))
bin2ss(x0, cons(1, x1))
half(0)
half(s(0))
half(s(s(x0)))
log(0)
log(s(0))
log(s(s(x0)))
more(nil)
more(cons(x0, x1))
s2bin(x0)
s2bin1(x0, x1, x2)
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
s2bin2(x0, nil)
s2bin2(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
BIN2SS(x, cons(1, xs)) → BIN2SS(s(double(x)), xs)
BIN2SS(x, cons(0, xs)) → BIN2SS(double(x), xs)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
bin2s(nil) → 0
bin2s(cons(x, xs)) → bin2ss(x, xs)
bin2ss(x, nil) → x
bin2ss(x, cons(0, xs)) → bin2ss(double(x), xs)
bin2ss(x, cons(1, xs)) → bin2ss(s(double(x)), xs)
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
log(0) → 0
log(s(0)) → 0
log(s(s(x))) → s(log(half(s(s(x)))))
more(nil) → nil
more(cons(xs, ys)) → cons(cons(0, xs), cons(cons(1, xs), cons(xs, ys)))
s2bin(x) → s2bin1(x, 0, cons(nil, nil))
s2bin1(x, y, lists) → if1(lt(y, log(x)), x, y, lists)
if1(true, x, y, lists) → s2bin1(x, s(y), more(lists))
if1(false, x, y, lists) → s2bin2(x, lists)
s2bin2(x, nil) → bug_list_not
s2bin2(x, cons(xs, ys)) → if2(eq(x, bin2s(xs)), x, xs, ys)
if2(true, x, xs, ys) → xs
if2(false, x, xs, ys) → s2bin2(x, ys)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
bin2s(nil)
bin2s(cons(x0, x1))
bin2ss(x0, nil)
bin2ss(x0, cons(0, x1))
bin2ss(x0, cons(1, x1))
half(0)
half(s(0))
half(s(s(x0)))
log(0)
log(s(0))
log(s(s(x0)))
more(nil)
more(cons(x0, x1))
s2bin(x0)
s2bin1(x0, x1, x2)
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
s2bin2(x0, nil)
s2bin2(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
BIN2SS(x, cons(1, xs)) → BIN2SS(s(double(x)), xs)
BIN2SS(x, cons(0, xs)) → BIN2SS(double(x), xs)
cons2 > [BIN2SS1, double]
1 > [BIN2SS1, double]
0 > [BIN2SS1, double]
BIN2SS1: [1]
cons2: [2,1]
1: []
double: []
0: []
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
bin2s(nil) → 0
bin2s(cons(x, xs)) → bin2ss(x, xs)
bin2ss(x, nil) → x
bin2ss(x, cons(0, xs)) → bin2ss(double(x), xs)
bin2ss(x, cons(1, xs)) → bin2ss(s(double(x)), xs)
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
log(0) → 0
log(s(0)) → 0
log(s(s(x))) → s(log(half(s(s(x)))))
more(nil) → nil
more(cons(xs, ys)) → cons(cons(0, xs), cons(cons(1, xs), cons(xs, ys)))
s2bin(x) → s2bin1(x, 0, cons(nil, nil))
s2bin1(x, y, lists) → if1(lt(y, log(x)), x, y, lists)
if1(true, x, y, lists) → s2bin1(x, s(y), more(lists))
if1(false, x, y, lists) → s2bin2(x, lists)
s2bin2(x, nil) → bug_list_not
s2bin2(x, cons(xs, ys)) → if2(eq(x, bin2s(xs)), x, xs, ys)
if2(true, x, xs, ys) → xs
if2(false, x, xs, ys) → s2bin2(x, ys)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
bin2s(nil)
bin2s(cons(x0, x1))
bin2ss(x0, nil)
bin2ss(x0, cons(0, x1))
bin2ss(x0, cons(1, x1))
half(0)
half(s(0))
half(s(s(x0)))
log(0)
log(s(0))
log(s(s(x0)))
more(nil)
more(cons(x0, x1))
s2bin(x0)
s2bin1(x0, x1, x2)
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
s2bin2(x0, nil)
s2bin2(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
LT(s(x), s(y)) → LT(x, y)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
bin2s(nil) → 0
bin2s(cons(x, xs)) → bin2ss(x, xs)
bin2ss(x, nil) → x
bin2ss(x, cons(0, xs)) → bin2ss(double(x), xs)
bin2ss(x, cons(1, xs)) → bin2ss(s(double(x)), xs)
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
log(0) → 0
log(s(0)) → 0
log(s(s(x))) → s(log(half(s(s(x)))))
more(nil) → nil
more(cons(xs, ys)) → cons(cons(0, xs), cons(cons(1, xs), cons(xs, ys)))
s2bin(x) → s2bin1(x, 0, cons(nil, nil))
s2bin1(x, y, lists) → if1(lt(y, log(x)), x, y, lists)
if1(true, x, y, lists) → s2bin1(x, s(y), more(lists))
if1(false, x, y, lists) → s2bin2(x, lists)
s2bin2(x, nil) → bug_list_not
s2bin2(x, cons(xs, ys)) → if2(eq(x, bin2s(xs)), x, xs, ys)
if2(true, x, xs, ys) → xs
if2(false, x, xs, ys) → s2bin2(x, ys)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
bin2s(nil)
bin2s(cons(x0, x1))
bin2ss(x0, nil)
bin2ss(x0, cons(0, x1))
bin2ss(x0, cons(1, x1))
half(0)
half(s(0))
half(s(s(x0)))
log(0)
log(s(0))
log(s(s(x0)))
more(nil)
more(cons(x0, x1))
s2bin(x0)
s2bin1(x0, x1, x2)
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
s2bin2(x0, nil)
s2bin2(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
LT(s(x), s(y)) → LT(x, y)
s1 > LT1
LT1: [1]
s1: [1]
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
bin2s(nil) → 0
bin2s(cons(x, xs)) → bin2ss(x, xs)
bin2ss(x, nil) → x
bin2ss(x, cons(0, xs)) → bin2ss(double(x), xs)
bin2ss(x, cons(1, xs)) → bin2ss(s(double(x)), xs)
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
log(0) → 0
log(s(0)) → 0
log(s(s(x))) → s(log(half(s(s(x)))))
more(nil) → nil
more(cons(xs, ys)) → cons(cons(0, xs), cons(cons(1, xs), cons(xs, ys)))
s2bin(x) → s2bin1(x, 0, cons(nil, nil))
s2bin1(x, y, lists) → if1(lt(y, log(x)), x, y, lists)
if1(true, x, y, lists) → s2bin1(x, s(y), more(lists))
if1(false, x, y, lists) → s2bin2(x, lists)
s2bin2(x, nil) → bug_list_not
s2bin2(x, cons(xs, ys)) → if2(eq(x, bin2s(xs)), x, xs, ys)
if2(true, x, xs, ys) → xs
if2(false, x, xs, ys) → s2bin2(x, ys)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
bin2s(nil)
bin2s(cons(x0, x1))
bin2ss(x0, nil)
bin2ss(x0, cons(0, x1))
bin2ss(x0, cons(1, x1))
half(0)
half(s(0))
half(s(s(x0)))
log(0)
log(s(0))
log(s(s(x0)))
more(nil)
more(cons(x0, x1))
s2bin(x0)
s2bin1(x0, x1, x2)
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
s2bin2(x0, nil)
s2bin2(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
EQ(s(x), s(y)) → EQ(x, y)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
bin2s(nil) → 0
bin2s(cons(x, xs)) → bin2ss(x, xs)
bin2ss(x, nil) → x
bin2ss(x, cons(0, xs)) → bin2ss(double(x), xs)
bin2ss(x, cons(1, xs)) → bin2ss(s(double(x)), xs)
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
log(0) → 0
log(s(0)) → 0
log(s(s(x))) → s(log(half(s(s(x)))))
more(nil) → nil
more(cons(xs, ys)) → cons(cons(0, xs), cons(cons(1, xs), cons(xs, ys)))
s2bin(x) → s2bin1(x, 0, cons(nil, nil))
s2bin1(x, y, lists) → if1(lt(y, log(x)), x, y, lists)
if1(true, x, y, lists) → s2bin1(x, s(y), more(lists))
if1(false, x, y, lists) → s2bin2(x, lists)
s2bin2(x, nil) → bug_list_not
s2bin2(x, cons(xs, ys)) → if2(eq(x, bin2s(xs)), x, xs, ys)
if2(true, x, xs, ys) → xs
if2(false, x, xs, ys) → s2bin2(x, ys)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
bin2s(nil)
bin2s(cons(x0, x1))
bin2ss(x0, nil)
bin2ss(x0, cons(0, x1))
bin2ss(x0, cons(1, x1))
half(0)
half(s(0))
half(s(s(x0)))
log(0)
log(s(0))
log(s(s(x0)))
more(nil)
more(cons(x0, x1))
s2bin(x0)
s2bin1(x0, x1, x2)
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
s2bin2(x0, nil)
s2bin2(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
EQ(s(x), s(y)) → EQ(x, y)
s1 > EQ1
EQ1: [1]
s1: [1]
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
bin2s(nil) → 0
bin2s(cons(x, xs)) → bin2ss(x, xs)
bin2ss(x, nil) → x
bin2ss(x, cons(0, xs)) → bin2ss(double(x), xs)
bin2ss(x, cons(1, xs)) → bin2ss(s(double(x)), xs)
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
log(0) → 0
log(s(0)) → 0
log(s(s(x))) → s(log(half(s(s(x)))))
more(nil) → nil
more(cons(xs, ys)) → cons(cons(0, xs), cons(cons(1, xs), cons(xs, ys)))
s2bin(x) → s2bin1(x, 0, cons(nil, nil))
s2bin1(x, y, lists) → if1(lt(y, log(x)), x, y, lists)
if1(true, x, y, lists) → s2bin1(x, s(y), more(lists))
if1(false, x, y, lists) → s2bin2(x, lists)
s2bin2(x, nil) → bug_list_not
s2bin2(x, cons(xs, ys)) → if2(eq(x, bin2s(xs)), x, xs, ys)
if2(true, x, xs, ys) → xs
if2(false, x, xs, ys) → s2bin2(x, ys)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
bin2s(nil)
bin2s(cons(x0, x1))
bin2ss(x0, nil)
bin2ss(x0, cons(0, x1))
bin2ss(x0, cons(1, x1))
half(0)
half(s(0))
half(s(s(x0)))
log(0)
log(s(0))
log(s(s(x0)))
more(nil)
more(cons(x0, x1))
s2bin(x0)
s2bin1(x0, x1, x2)
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
s2bin2(x0, nil)
s2bin2(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
S2BIN2(x, cons(xs, ys)) → IF2(eq(x, bin2s(xs)), x, xs, ys)
IF2(false, x, xs, ys) → S2BIN2(x, ys)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
bin2s(nil) → 0
bin2s(cons(x, xs)) → bin2ss(x, xs)
bin2ss(x, nil) → x
bin2ss(x, cons(0, xs)) → bin2ss(double(x), xs)
bin2ss(x, cons(1, xs)) → bin2ss(s(double(x)), xs)
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
log(0) → 0
log(s(0)) → 0
log(s(s(x))) → s(log(half(s(s(x)))))
more(nil) → nil
more(cons(xs, ys)) → cons(cons(0, xs), cons(cons(1, xs), cons(xs, ys)))
s2bin(x) → s2bin1(x, 0, cons(nil, nil))
s2bin1(x, y, lists) → if1(lt(y, log(x)), x, y, lists)
if1(true, x, y, lists) → s2bin1(x, s(y), more(lists))
if1(false, x, y, lists) → s2bin2(x, lists)
s2bin2(x, nil) → bug_list_not
s2bin2(x, cons(xs, ys)) → if2(eq(x, bin2s(xs)), x, xs, ys)
if2(true, x, xs, ys) → xs
if2(false, x, xs, ys) → s2bin2(x, ys)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
bin2s(nil)
bin2s(cons(x0, x1))
bin2ss(x0, nil)
bin2ss(x0, cons(0, x1))
bin2ss(x0, cons(1, x1))
half(0)
half(s(0))
half(s(s(x0)))
log(0)
log(s(0))
log(s(s(x0)))
more(nil)
more(cons(x0, x1))
s2bin(x0)
s2bin1(x0, x1, x2)
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
s2bin2(x0, nil)
s2bin2(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
The following pairs can be oriented strictly and are deleted.
The remaining pairs can at least be oriented weakly.
S2BIN2(x, cons(xs, ys)) → IF2(eq(x, bin2s(xs)), x, xs, ys)
cons2 > [eq, bin2s1, false, bin2ss2, true, s1, double]
nil > [eq, bin2s1, false, bin2ss2, true, s1, double]
0 > [eq, bin2s1, false, bin2ss2, true, s1, double]
1 > [eq, bin2s1, false, bin2ss2, true, s1, double]
cons2: [2,1]
eq: []
bin2s1: [1]
false: []
nil: []
0: []
bin2ss2: [2,1]
true: []
s1: [1]
1: []
double: []
IF2(false, x, xs, ys) → S2BIN2(x, ys)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
bin2s(nil) → 0
bin2s(cons(x, xs)) → bin2ss(x, xs)
bin2ss(x, nil) → x
bin2ss(x, cons(0, xs)) → bin2ss(double(x), xs)
bin2ss(x, cons(1, xs)) → bin2ss(s(double(x)), xs)
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
log(0) → 0
log(s(0)) → 0
log(s(s(x))) → s(log(half(s(s(x)))))
more(nil) → nil
more(cons(xs, ys)) → cons(cons(0, xs), cons(cons(1, xs), cons(xs, ys)))
s2bin(x) → s2bin1(x, 0, cons(nil, nil))
s2bin1(x, y, lists) → if1(lt(y, log(x)), x, y, lists)
if1(true, x, y, lists) → s2bin1(x, s(y), more(lists))
if1(false, x, y, lists) → s2bin2(x, lists)
s2bin2(x, nil) → bug_list_not
s2bin2(x, cons(xs, ys)) → if2(eq(x, bin2s(xs)), x, xs, ys)
if2(true, x, xs, ys) → xs
if2(false, x, xs, ys) → s2bin2(x, ys)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
bin2s(nil)
bin2s(cons(x0, x1))
bin2ss(x0, nil)
bin2ss(x0, cons(0, x1))
bin2ss(x0, cons(1, x1))
half(0)
half(s(0))
half(s(s(x0)))
log(0)
log(s(0))
log(s(s(x0)))
more(nil)
more(cons(x0, x1))
s2bin(x0)
s2bin1(x0, x1, x2)
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
s2bin2(x0, nil)
s2bin2(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)
IF1(true, x, y, lists) → S2BIN1(x, s(y), more(lists))
S2BIN1(x, y, lists) → IF1(lt(y, log(x)), x, y, lists)
eq(0, 0) → true
eq(0, s(y)) → false
eq(s(x), 0) → false
eq(s(x), s(y)) → eq(x, y)
lt(0, s(y)) → true
lt(x, 0) → false
lt(s(x), s(y)) → lt(x, y)
bin2s(nil) → 0
bin2s(cons(x, xs)) → bin2ss(x, xs)
bin2ss(x, nil) → x
bin2ss(x, cons(0, xs)) → bin2ss(double(x), xs)
bin2ss(x, cons(1, xs)) → bin2ss(s(double(x)), xs)
half(0) → 0
half(s(0)) → 0
half(s(s(x))) → s(half(x))
log(0) → 0
log(s(0)) → 0
log(s(s(x))) → s(log(half(s(s(x)))))
more(nil) → nil
more(cons(xs, ys)) → cons(cons(0, xs), cons(cons(1, xs), cons(xs, ys)))
s2bin(x) → s2bin1(x, 0, cons(nil, nil))
s2bin1(x, y, lists) → if1(lt(y, log(x)), x, y, lists)
if1(true, x, y, lists) → s2bin1(x, s(y), more(lists))
if1(false, x, y, lists) → s2bin2(x, lists)
s2bin2(x, nil) → bug_list_not
s2bin2(x, cons(xs, ys)) → if2(eq(x, bin2s(xs)), x, xs, ys)
if2(true, x, xs, ys) → xs
if2(false, x, xs, ys) → s2bin2(x, ys)
eq(0, 0)
eq(0, s(x0))
eq(s(x0), 0)
eq(s(x0), s(x1))
lt(0, s(x0))
lt(x0, 0)
lt(s(x0), s(x1))
bin2s(nil)
bin2s(cons(x0, x1))
bin2ss(x0, nil)
bin2ss(x0, cons(0, x1))
bin2ss(x0, cons(1, x1))
half(0)
half(s(0))
half(s(s(x0)))
log(0)
log(s(0))
log(s(s(x0)))
more(nil)
more(cons(x0, x1))
s2bin(x0)
s2bin1(x0, x1, x2)
if1(true, x0, x1, x2)
if1(false, x0, x1, x2)
s2bin2(x0, nil)
s2bin2(x0, cons(x1, x2))
if2(true, x0, x1, x2)
if2(false, x0, x1, x2)