Views
No views yet
| Prover System | Search Method | Critic Model | Tactic Budget | Score |
|---|---|---|---|---|
| BFS-Prover | BFS | No | Accumulative | 72.95% |
| BFS-Prover | BFS | No | 2048×2×600 | 70.83% ± 0.89% |
| HunyuanProver | BFS | Yes | 600×8×400 | 68.4% |
| InternLM2.5-StepProver | BFS | Yes | 256×32×600 | 65.9% |
| DeepSeek-Prover-V1.5 | MCTS | No | 32×16×400 | 63.5% |
"{state}:::"::: serves as a special indicator to signal the model to generate a tactic for the given state.1# Example code for loading and using the tactic generator model
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4model = AutoModelForCausalLM.from_pretrained("bytedance-research/BFS-Prover")
5tokenizer = AutoTokenizer.from_pretrained("bytedance-research/BFS-Prover")
6state = "h : x = y + 2 ⊢ x - 1 = y + 1"
7sep = ":::"
8prompt = state + sep # Creates "h : x = y + 2 ⊢ x - 1 = y + 1:::"
9
10inputs = tokenizer(prompt, return_tensors="pt")
11outputs = model.generate(**inputs)
12tactic = tokenizer.decode(outputs[0], skip_special_tokens=True).split(sep)[1]
13print(tactic)
14
15# Complete example:
16# Input state: "h : x = y + 2 ⊢ x - 1 = y + 1"
17# Full prompt: "h : x = y + 2 ⊢ x - 1 = y + 1:::"
18# Model output: "h : x = y + 2 ⊢ x - 1 = y + 1:::simp [h]"
19# Final tactic: "simp [h]"1@article{xin2025bfs,
2 title={BFS-Prover: Scalable Best-First Tree Search for LLM-based Automatic Theorem Proving},
3 author={Xin, Ran and Xi, Chenguang and Yang, Jie and Chen, Feng and Wu, Hang and Xiao, Xia and Sun, Yifan and Zheng, Shen and Shen, Kai},
4 journal={arXiv preprint arXiv:2502.03438},
5 year={2025}
6}