first study in coq

this is a homework in software foundation