The relative rewrite relation R/S is considered where R is the following TRS
lte(Cons(x',xs'),Cons(x,xs)) | → | lte(xs',xs) | (1) |
lte(Cons(x,xs),Nil) | → | False | (2) |
even(Cons(x,Nil)) | → | False | (3) |
even(Cons(x',Cons(x,xs))) | → | even(xs) | (4) |
notEmpty(Cons(x,xs)) | → | True | (5) |
notEmpty(Nil) | → | False | (6) |
lte(Nil,y) | → | True | (7) |
even(Nil) | → | True | (8) |
goal(x,y) | → | and(lte(x,y),even(x)) | (9) |
and S is the following TRS.
and(False,False) | → | False | (10) |
and(True,False) | → | False | (11) |
and(False,True) | → | False | (12) |
and(True,True) | → | True | (13) |
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
||||||||
|
originates from |
|
and#(False,False) |
and#(True,False) |
and#(False,True) |
and#(True,True) |
lte#(Cons(z0,z1),Cons(z2,z3)) |
lte#(Cons(z0,z1),Nil) |
lte#(Nil,z0) |
even#(Cons(z0,Nil)) |
even#(Cons(z0,Cons(z1,z2))) |
even#(Nil) |
notEmpty#(Cons(z0,z1)) |
notEmpty#(Nil) |
goal#(z0,z1) |
and(False,False) | → | False | (10) |
and(True,False) | → | False | (11) |
and(False,True) | → | False | (12) |
and(True,True) | → | True | (13) |
notEmpty(Cons(z0,z1)) | → | True | (25) |
notEmpty(Nil) | → | False | (6) |
goal(z0,z1) | → | and(lte(z0,z1),even(z0)) | (28) |
lte#(Cons(z0,z1),Cons(z2,z3)) | → | c4(lte#(z1,z3)) | (15) |
lte#(Cons(z0,z1),Nil) | → | c5 | (17) |
even#(Cons(z0,Nil)) | → | c7 | (21) |
even#(Cons(z0,Cons(z1,z2))) | → | c8(even#(z2)) | (23) |
even#(Nil) | → | c9 | (24) |
notEmpty#(Cons(z0,z1)) | → | c10 | (26) |
notEmpty#(Nil) | → | c11 | (27) |
goal#(z0,z1) | → | c12(and#(lte(z0,z1),even(z0)),lte#(z0,z1),even#(z0)) | (29) |
[c] | = | 0 |
[c1] | = | 0 |
[c2] | = | 0 |
[c3] | = | 0 |
[c4(x1)] | = | 1 · x1 + 0 |
[c5] | = | 0 |
[c6] | = | 0 |
[c7] | = | 0 |
[c8(x1)] | = | 1 · x1 + 0 |
[c9] | = | 0 |
[c10] | = | 0 |
[c11] | = | 0 |
[c12(x1, x2, x3)] | = | 1 · x1 + 0 + 1 · x2 + 1 · x3 |
[lte(x1, x2)] | = | 1 + 1 · x1 + 1 · x2 |
[even(x1)] | = | 1 + 1 · x1 |
[and#(x1, x2)] | = | 0 |
[lte#(x1, x2)] | = | 1 · x2 + 0 |
[even#(x1)] | = | 1 · x1 + 0 |
[notEmpty#(x1)] | = | 1 · x1 + 0 |
[goal#(x1, x2)] | = | 1 + 1 · x1 + 1 · x2 |
[Cons(x1, x2)] | = | 1 + 1 · x2 |
[Nil] | = | 1 |
[False] | = | 1 |
[True] | = | 1 |
and#(False,False) | → | c | (30) |
and#(True,False) | → | c1 | (31) |
and#(False,True) | → | c2 | (32) |
and#(True,True) | → | c3 | (33) |
lte#(Cons(z0,z1),Cons(z2,z3)) | → | c4(lte#(z1,z3)) | (15) |
lte#(Cons(z0,z1),Nil) | → | c5 | (17) |
lte#(Nil,z0) | → | c6 | (19) |
even#(Cons(z0,Nil)) | → | c7 | (21) |
even#(Cons(z0,Cons(z1,z2))) | → | c8(even#(z2)) | (23) |
even#(Nil) | → | c9 | (24) |
notEmpty#(Cons(z0,z1)) | → | c10 | (26) |
notEmpty#(Nil) | → | c11 | (27) |
goal#(z0,z1) | → | c12(and#(lte(z0,z1),even(z0)),lte#(z0,z1),even#(z0)) | (29) |
lte#(Nil,z0) | → | c6 | (19) |
[c] | = | 0 |
[c1] | = | 0 |
[c2] | = | 0 |
[c3] | = | 0 |
[c4(x1)] | = | 1 · x1 + 0 |
[c5] | = | 0 |
[c6] | = | 0 |
[c7] | = | 0 |
[c8(x1)] | = | 1 · x1 + 0 |
[c9] | = | 0 |
[c10] | = | 0 |
[c11] | = | 0 |
[c12(x1, x2, x3)] | = | 1 · x1 + 0 + 1 · x2 + 1 · x3 |
[lte(x1, x2)] | = | 1 · x1 + 0 |
[even(x1)] | = | 1 + 1 · x1 |
[and#(x1, x2)] | = | 0 |
[lte#(x1, x2)] | = | 1 · x1 + 0 + 1 · x2 |
[even#(x1)] | = | 1 |
[notEmpty#(x1)] | = | 0 |
[goal#(x1, x2)] | = | 1 + 1 · x1 + 1 · x2 |
[Cons(x1, x2)] | = | 1 + 1 · x2 |
[Nil] | = | 1 |
[False] | = | 1 |
[True] | = | 1 |
and#(False,False) | → | c | (30) |
and#(True,False) | → | c1 | (31) |
and#(False,True) | → | c2 | (32) |
and#(True,True) | → | c3 | (33) |
lte#(Cons(z0,z1),Cons(z2,z3)) | → | c4(lte#(z1,z3)) | (15) |
lte#(Cons(z0,z1),Nil) | → | c5 | (17) |
lte#(Nil,z0) | → | c6 | (19) |
even#(Cons(z0,Nil)) | → | c7 | (21) |
even#(Cons(z0,Cons(z1,z2))) | → | c8(even#(z2)) | (23) |
even#(Nil) | → | c9 | (24) |
notEmpty#(Cons(z0,z1)) | → | c10 | (26) |
notEmpty#(Nil) | → | c11 | (27) |
goal#(z0,z1) | → | c12(and#(lte(z0,z1),even(z0)),lte#(z0,z1),even#(z0)) | (29) |
There are no rules in the TRS R. Hence, R/S has complexity O(1).