(0) Obligation:
Q restricted rewrite system:
The TRS R consists of the following rules:
is_empty(nil) → true
is_empty(cons(x, l)) → false
hd(cons(x, l)) → x
tl(cons(x, l)) → l
append(l1, l2) → ifappend(l1, l2, l1)
ifappend(l1, l2, nil) → l2
ifappend(l1, l2, cons(x, l)) → cons(x, append(l, l2))
Q is empty.
(1) AAECC Innermost (EQUIVALENT transformation)
We have applied [NOC,AAECCNOC] to switch to innermost. The TRS R 1 is
hd(cons(x, l)) → x
tl(cons(x, l)) → l
ifappend(l1, l2, nil) → l2
ifappend(l1, l2, cons(x, l)) → cons(x, append(l, l2))
append(l1, l2) → ifappend(l1, l2, l1)
The TRS R 2 is
is_empty(nil) → true
is_empty(cons(x, l)) → false
The signature Sigma is {
is_empty,
true,
false}
(2) Obligation:
Q restricted rewrite system:
The TRS R consists of the following rules:
is_empty(nil) → true
is_empty(cons(x, l)) → false
hd(cons(x, l)) → x
tl(cons(x, l)) → l
append(l1, l2) → ifappend(l1, l2, l1)
ifappend(l1, l2, nil) → l2
ifappend(l1, l2, cons(x, l)) → cons(x, append(l, l2))
The set Q consists of the following terms:
is_empty(nil)
is_empty(cons(x0, x1))
hd(cons(x0, x1))
tl(cons(x0, x1))
append(x0, x1)
ifappend(x0, x1, nil)
ifappend(x0, x1, cons(x2, x3))
(3) DependencyPairsProof (EQUIVALENT transformation)
Using Dependency Pairs [AG00,LPAR04] we result in the following initial DP problem.
(4) Obligation:
Q DP problem:
The TRS P consists of the following rules:
APPEND(l1, l2) → IFAPPEND(l1, l2, l1)
IFAPPEND(l1, l2, cons(x, l)) → APPEND(l, l2)
The TRS R consists of the following rules:
is_empty(nil) → true
is_empty(cons(x, l)) → false
hd(cons(x, l)) → x
tl(cons(x, l)) → l
append(l1, l2) → ifappend(l1, l2, l1)
ifappend(l1, l2, nil) → l2
ifappend(l1, l2, cons(x, l)) → cons(x, append(l, l2))
The set Q consists of the following terms:
is_empty(nil)
is_empty(cons(x0, x1))
hd(cons(x0, x1))
tl(cons(x0, x1))
append(x0, x1)
ifappend(x0, x1, nil)
ifappend(x0, x1, cons(x2, x3))
We have to consider all minimal (P,Q,R)-chains.