working on automatically typesetting proofs