An Inductive Proof of the Correctness of foo