Go backward to Example (Continued) Go up to Top Go forward to Example (Continued) |
We assume (induction hypothesis)
and have to show
forall y in List(T): length(append(l, y)) = length(l)+length(y)
forall y in List(T): length(append(cons(e, l), y)) = length(cons(e, l)) +length(y).