(~ (endp x))
^
(rev1 (rest x) a) = (app (rev (rest x)) a)
-->
(rev1 x a) = (app (rev x) a)
Is this correct? I can't seem to get anywhere after about two steps,
any help / hints would be appreciated.
Thanks.
{x <-- (rest x), a <-- (cons (first x) a) } is the right substitution
for this induction.
Remember from the book that to write down the induction step, you
should replace the induction variable, here x, with (rest x). However,
the other variables, here a, can be replaced by anything! So yes, a
can be replaced by (cons (first x) a).
Thanks,
Behnam
> To unsubscribe from this group, send email to utexas-cs313k-
> spring2010+unsubscribegooglegroups.com or reply to this email with
> the words "REMOVE ME" as the subject.