StepFun Formalizer 7B
50
5
7.0B
1 language
license:apache-2.0
by
stepfun-ai
Language Model
OTHER
7B params
New
50 downloads
Early-stage
Edge AI:
Mobile
Laptop
Server
16GB+ RAM
Mobile
Laptop
Server
Quick Summary
AI model with specialized capabilities.
Device Compatibility
Mobile
4-6GB RAM
Laptop
16GB RAM
Server
GPU
Minimum Recommended
7GB+ RAM
Code Examples
Usagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nUsagepythontransformers
from vllm import LLM, SamplingParams
from transformers import AutoTokenizer
def get_formal_statement_prompt(informal_problem: str, header: str = "import Mathlib\n") -> str:
prompt = "Please autoformalize the following problem in Lean 4 with a header. Use the following theorem names: my_favorite_theorem.\n\n"
prompt += informal_problem
prompt += f"\n\nYour code should start with:\nDeploy This Model
Production-ready deployment in minutes
Together.ai
Instant API access to this model
Production-ready inference API. Start free, scale to millions.
Try Free APIReplicate
One-click model deployment
Run models in the cloud with simple API. No DevOps required.
Deploy NowDisclosure: We may earn a commission from these partners. This helps keep LLMYourWay free.