programmatic interaction with coq