LLM-Based Formalized Programming