An In-Context Learning Agent for Formal Theorem-Proving