Learning Program Invariants from Proof Corpora