Learning to Prove Theorems via Interacting with Proof Assistants