Dataset Viewer
Auto-converted to Parquet Duplicate
id
string
problem_id
string
task_id
string
teacher_model
string
lean_version
string
mathlib_commit
string
num_assistant_turns
int32
num_tool_calls
int32
theorem_statement
string
messages
list
tools
string
metadata
string
source_files
list
2c19f330d3f64902beb56c76b82df2c5
00184e2c6c985a36f92171d29c7b3622e9f9edb2861a37737d6a2c9a360177fa
midtrain_lean435_00184e2c6c985a36f92171d29c7b3622e9f9edb2861a37737d6a2c9a360177fa
deepseek-v4.1-flash
4.35.0
56a005855ea17e0b0958f73ec801ae140b0a1679
7
6
import Mathlib import Aesop set_option maxHeartbeats 0 open BigOperators Real Nat Topology Rat /-Given that $\cos x=-\frac{\sqrt{2}}{10}$, and $x\in(\frac{\pi}{2},\pi)$. (1) Find the value of $\sin x$; (2) Find the value of $\tan (2x+\frac{\pi}{4})$.-/ theorem lean_workbook_32232 (x : ℝ) (hx : x ∈ Set.Ioo (Real.pi...
[ { "role": "system", "content": "You are Davinci Prover. Prove the supplied theorem in Lean4 using the available tools.\n\nWorkspace:\n- Submission.lean: preloaded verbatim with the supplied objective\n- Submission/: writable helper modules and proof-development experiments\n- target/: read-only Lean project...
[{"type":"function","function":{"name":"file_edit","description":"Replace text or line ranges using one edit or an edits array. Write only to Submission.lean or under Submission/. Each call validates all its edits before saving. Consecutive file_edit/file_write calls in one response save in order, then automatically ch...
{"status":"passed","task_id":"midtrain_lean435_00184e2c6c985a36f92171d29c7b3622e9f9edb2861a37737d6a2c9a360177fa","trajectory_id":"2c19f330d3f64902beb56c76b82df2c5","task_metadata":{"problem_sha256":"00184e2c6c985a36f92171d29c7b3622e9f9edb2861a37737d6a2c9a360177fa","split":"train"},"teacher_model":"deepseek-v4.1-flash",...
[ { "path": "Submission.lean", "content": "import Mathlib\nimport Aesop\n\nset_option maxHeartbeats 0\n\nopen BigOperators Real Nat Topology Rat\n\n\n /-Given that $\\cos x=-\\frac{\\sqrt{2}}{10}$, and $x\\in(\\frac{\\pi}{2},\\pi)$.\n(1) Find the value of $\\sin x$;\n(2) Find the value of $\\tan (2x+\\frac{\\...
8321fb933c8e4925a19367cf11c278f5
001debb21da652ba2c64bc3c51273fc82e01372e900d82edf462dbb4741a2ad5
midtrain_lean435_001debb21da652ba2c64bc3c51273fc82e01372e900d82edf462dbb4741a2ad5
deepseek-v4.1-flash
4.35.0
56a005855ea17e0b0958f73ec801ae140b0a1679
7
8
import Mathlib theorem Nat.factorial_eq {n : ℕ} (x y z : ℕ) (hx : x = Nat.factorial n) (hy : y = Nat.factorial n - 1) (hz : z = n) : Nat.factorial x = Nat.factorial y * Nat.factorial z := by sorry
[ { "role": "system", "content": "You are Davinci Prover. Prove the supplied theorem in Lean4 using the available tools.\n\nWorkspace:\n- Submission.lean: preloaded verbatim with the supplied objective\n- Submission/: writable helper modules and proof-development experiments\n- target/: read-only Lean project...
[{"type":"function","function":{"name":"file_edit","description":"Replace text or line ranges using one edit or an edits array. Write only to Submission.lean or under Submission/. Each call validates all its edits before saving. Consecutive file_edit/file_write calls in one response save in order, then automatically ch...
{"status":"passed","task_id":"midtrain_lean435_001debb21da652ba2c64bc3c51273fc82e01372e900d82edf462dbb4741a2ad5","trajectory_id":"8321fb933c8e4925a19367cf11c278f5","task_metadata":{"problem_sha256":"001debb21da652ba2c64bc3c51273fc82e01372e900d82edf462dbb4741a2ad5","split":"train"},"teacher_model":"deepseek-v4.1-flash",...
[ { "path": "Submission.lean", "content": "import Mathlib\n\n\ntheorem Nat.factorial_eq {n : ℕ} (x y z : ℕ)\n (hx : x = Nat.factorial n) (hy : y = Nat.factorial n - 1) (hz : z = n) :\n Nat.factorial x = Nat.factorial y * Nat.factorial z := by\n subst x\n subst y\n subst z\n have h := Nat.mul_factori...
b21b6faa457849d0839204ffee2c3f04
0021171b60aa3f8fd6e0cb991be64a0fb7b2754c0fef9e147c2f2d7a63e1d600
midtrain_lean435_0021171b60aa3f8fd6e0cb991be64a0fb7b2754c0fef9e147c2f2d7a63e1d600
deepseek-v4.1-flash
4.35.0
56a005855ea17e0b0958f73ec801ae140b0a1679
6
5
import Mathlib import Aesop set_option maxHeartbeats 0 open BigOperators Real Nat Topology Rat /-Let $a$, $b$, $c$ be three lines in space. If $a \parallel b$ and $a$ intersects $c$, then the relation between $b$ and $c$ is: ( ) A. Intersecting B. Skew C. Coplanar D. Skew or Intersecting-/ theorem lean_workbook_p...
[ { "role": "system", "content": "You are Davinci Prover. Prove the supplied theorem in Lean4 using the available tools.\n\nWorkspace:\n- Submission.lean: preloaded verbatim with the supplied objective\n- Submission/: writable helper modules and proof-development experiments\n- target/: read-only Lean project...
[{"type":"function","function":{"name":"file_edit","description":"Replace text or line ranges using one edit or an edits array. Write only to Submission.lean or under Submission/. Each call validates all its edits before saving. Consecutive file_edit/file_write calls in one response save in order, then automatically ch...
{"status":"passed","task_id":"midtrain_lean435_0021171b60aa3f8fd6e0cb991be64a0fb7b2754c0fef9e147c2f2d7a63e1d600","trajectory_id":"b21b6faa457849d0839204ffee2c3f04","task_metadata":{"problem_sha256":"0021171b60aa3f8fd6e0cb991be64a0fb7b2754c0fef9e147c2f2d7a63e1d600","split":"train"},"teacher_model":"deepseek-v4.1-flash",...
[ { "path": "Submission.lean", "content": "import Mathlib\nimport Aesop\n\nset_option maxHeartbeats 0\n\nopen BigOperators Real Nat Topology Rat\n\n\n /-Let $a$, $b$, $c$ be three lines in space. If $a \\parallel b$ and $a$ intersects $c$, then the relation between $b$ and $c$ is: ( )\nA. Intersecting\nB. Ske...
561663e7719a418aaa2b15145c680663
002257c1d906bf73947805d63587cbb2ffa16d6643657d84fa259ee1a96130ab
midtrain_lean435_002257c1d906bf73947805d63587cbb2ffa16d6643657d84fa259ee1a96130ab
deepseek-v4.1-flash
4.35.0
56a005855ea17e0b0958f73ec801ae140b0a1679
5
4
import Mathlib import Aesop set_option maxHeartbeats 0 open BigOperators Real Nat Topology Rat theorem lean_workbook_63623 (a b c : ℝ) (ha : 0 < a) (hb : 0 < b) (hc : 0 < c) (hab : a + b + c = 1) : 1 / (a ^ 2 + b ^ 2 + c ^ 2) ≥ 1 * (a + b + c) ^ 2 / (a + b + c) := by sorry
[ { "role": "system", "content": "You are Davinci Prover. Prove the supplied theorem in Lean4 using the available tools.\n\nWorkspace:\n- Submission.lean: preloaded verbatim with the supplied objective\n- Submission/: writable helper modules and proof-development experiments\n- target/: read-only Lean project...
[{"type":"function","function":{"name":"file_edit","description":"Replace text or line ranges using one edit or an edits array. Write only to Submission.lean or under Submission/. Each call validates all its edits before saving. Consecutive file_edit/file_write calls in one response save in order, then automatically ch...
{"status":"passed","task_id":"midtrain_lean435_002257c1d906bf73947805d63587cbb2ffa16d6643657d84fa259ee1a96130ab","trajectory_id":"561663e7719a418aaa2b15145c680663","task_metadata":{"problem_sha256":"002257c1d906bf73947805d63587cbb2ffa16d6643657d84fa259ee1a96130ab","split":"train"},"teacher_model":"deepseek-v4.1-flash",...
[ { "path": "Submission.lean", "content": "import Mathlib\nimport Aesop\nset_option maxHeartbeats 0\nopen BigOperators Real Nat Topology Rat\n\ntheorem lean_workbook_63623 (a b c : ℝ) (ha : 0 < a) (hb : 0 < b) (hc : 0 < c) (hab : a + b + c = 1) : 1 / (a ^ 2 + b ^ 2 + c ^ 2) ≥ 1 * (a + b + c) ^ 2 / (a + b + c)...
f268ea7ce7c945c29cd83aecc5b8dacb
0029e9e7385c37df0d9de48949b5e38943950ea46fc65a06fc05ddded03d3eec
midtrain_lean435_0029e9e7385c37df0d9de48949b5e38943950ea46fc65a06fc05ddded03d3eec
deepseek-v4.1-flash
4.35.0
56a005855ea17e0b0958f73ec801ae140b0a1679
5
4
import Mathlib theorem q : ∃ (k : ℤ), 53^103 = 3 * k + 2 := by sorry
[ { "role": "system", "content": "You are Davinci Prover. Prove the supplied theorem in Lean4 using the available tools.\n\nWorkspace:\n- Submission.lean: preloaded verbatim with the supplied objective\n- Submission/: writable helper modules and proof-development experiments\n- target/: read-only Lean project...
[{"type":"function","function":{"name":"file_edit","description":"Replace text or line ranges using one edit or an edits array. Write only to Submission.lean or under Submission/. Each call validates all its edits before saving. Consecutive file_edit/file_write calls in one response save in order, then automatically ch...
{"status":"passed","task_id":"midtrain_lean435_0029e9e7385c37df0d9de48949b5e38943950ea46fc65a06fc05ddded03d3eec","trajectory_id":"f268ea7ce7c945c29cd83aecc5b8dacb","task_metadata":{"problem_sha256":"0029e9e7385c37df0d9de48949b5e38943950ea46fc65a06fc05ddded03d3eec","split":"train"},"teacher_model":"deepseek-v4.1-flash",...
[ { "path": "Submission.lean", "content": "import Mathlib\n\n\ntheorem q : ∃ (k : ℤ), 53^103 = 3 * k + 2 := by\n use (53^103 - 2) / 3\n have h : (3 : ℤ) ∣ 53^103 - 2 := by\n norm_num [Int.dvd_iff_emod_eq_zero]\n omega", "sha256": "e6c7badd204be9736d8f16ec7ded54f112901002261943178dab1e76756a53f5" }...
dc5b8849ed114b1f8a1c54d7b882e581
0035d6c1ba2ab0d6aab310536199a3801b4004ed9ef54adab45495a7ef838471
midtrain_lean435_0035d6c1ba2ab0d6aab310536199a3801b4004ed9ef54adab45495a7ef838471
deepseek-v4.1-flash
4.35.0
56a005855ea17e0b0958f73ec801ae140b0a1679
7
10
"import Mathlib\nimport Aesop\n\nset_option maxHeartbeats 0\n\nopen BigOperators Real Nat Topology R(...TRUNCATED)
[{"role":"system","content":"You are Davinci Prover. Prove the supplied theorem in Lean4 using the a(...TRUNCATED)
"[{\"type\":\"function\",\"function\":{\"name\":\"file_edit\",\"description\":\"Replace text or line(...TRUNCATED)
"{\"status\":\"passed\",\"task_id\":\"midtrain_lean435_0035d6c1ba2ab0d6aab310536199a3801b4004ed9ef54(...TRUNCATED)
[{"path":"Submission.lean","content":"import Mathlib\nimport Aesop\n\nset_option maxHeartbeats 0\n\n(...TRUNCATED)
85ace5fd654a4849b8b753710ca08d26
003e625c7d1fb32ca60ba6263424c439de505c42dcf87e4f3bf271da70a7f407
midtrain_lean435_003e625c7d1fb32ca60ba6263424c439de505c42dcf87e4f3bf271da70a7f407
deepseek-v4.1-flash
4.35.0
56a005855ea17e0b0958f73ec801ae140b0a1679
7
6
"import Mathlib\nimport Aesop\n\nset_option maxHeartbeats 0\n\nopen BigOperators Real Nat Topology R(...TRUNCATED)
[{"role":"system","content":"You are Davinci Prover. Prove the supplied theorem in Lean4 using the a(...TRUNCATED)
"[{\"type\":\"function\",\"function\":{\"name\":\"file_edit\",\"description\":\"Replace text or line(...TRUNCATED)
"{\"status\":\"passed\",\"task_id\":\"midtrain_lean435_003e625c7d1fb32ca60ba6263424c439de505c42dcf87(...TRUNCATED)
[{"path":"Submission.lean","content":"import Mathlib\nimport Aesop\n\nset_option maxHeartbeats 0\n\n(...TRUNCATED)
2d4ddbcf469f4533a615c36688058a8b
004b117fadb433a2a8e20875592f17245179ebb84dc888ca6c388dbbc92bd3e6
midtrain_lean435_004b117fadb433a2a8e20875592f17245179ebb84dc888ca6c388dbbc92bd3e6
deepseek-v4.1-flash
4.35.0
56a005855ea17e0b0958f73ec801ae140b0a1679
14
13
"import Mathlib\n\n\ntheorem Real.sinβ (α β : ℝ) (h₀ : α ∈ Set.Ioo (Real.pi / 2) Real.pi)\(...TRUNCATED)
[{"role":"system","content":"You are Davinci Prover. Prove the supplied theorem in Lean4 using the a(...TRUNCATED)
"[{\"type\":\"function\",\"function\":{\"name\":\"file_edit\",\"description\":\"Replace text or line(...TRUNCATED)
"{\"status\":\"passed\",\"task_id\":\"midtrain_lean435_004b117fadb433a2a8e20875592f17245179ebb84dc88(...TRUNCATED)
[{"path":"Submission.lean","content":"import Mathlib\n\n\ntheorem Real.sinβ (α β : ℝ) (h₀ : (...TRUNCATED)
232f0540ee1d421d955335deb7ffd873
004e52ad85fb813ae72513aca36e58cb4249589ecf681bba4091f3e3396d4bf5
midtrain_lean435_004e52ad85fb813ae72513aca36e58cb4249589ecf681bba4091f3e3396d4bf5
deepseek-v4.1-flash
4.35.0
56a005855ea17e0b0958f73ec801ae140b0a1679
6
8
"import Mathlib\n\nimport Aesop\n\nset_option maxHeartbeats 0\n\nopen BigOperators Real Nat Topology(...TRUNCATED)
[{"role":"system","content":"You are Davinci Prover. Prove the supplied theorem in Lean4 using the a(...TRUNCATED)
"[{\"type\":\"function\",\"function\":{\"name\":\"file_edit\",\"description\":\"Replace text or line(...TRUNCATED)
"{\"status\":\"passed\",\"task_id\":\"midtrain_lean435_004e52ad85fb813ae72513aca36e58cb4249589ecf681(...TRUNCATED)
[{"path":"Submission.lean","content":"import Mathlib\n\nimport Aesop\n\nset_option maxHeartbeats 0\n(...TRUNCATED)
e1d0dbd045314e89a2f0ea912e0f678e
005f2ebea50e8d0c89cd56f36f41e2377aeef60d120768d42dc1399bd4da6aa7
midtrain_lean435_005f2ebea50e8d0c89cd56f36f41e2377aeef60d120768d42dc1399bd4da6aa7
deepseek-v4.1-flash
4.35.0
56a005855ea17e0b0958f73ec801ae140b0a1679
21
30
"import Mathlib\nimport Aesop\n\nset_option maxHeartbeats 0\n\nopen BigOperators Real Nat Topology R(...TRUNCATED)
[{"role":"system","content":"You are Davinci Prover. Prove the supplied theorem in Lean4 using the a(...TRUNCATED)
"[{\"type\":\"function\",\"function\":{\"name\":\"file_edit\",\"description\":\"Replace text or line(...TRUNCATED)
"{\"status\":\"passed\",\"task_id\":\"midtrain_lean435_005f2ebea50e8d0c89cd56f36f41e2377aeef60d12076(...TRUNCATED)
[{"path":"Submission.lean","content":"import Mathlib\nimport Aesop\n\nset_option maxHeartbeats 0\n\n(...TRUNCATED)
End of preview. Expand in Data Studio

Agentic Prover SFT

35,291 successful Lean 4 proof trajectories generated with DeepSeek V4.1 Flash. Each example contains a complete conversation with reasoning, tool calls, tool responses, and verified Lean source files.

Load

from datasets import load_dataset

train = load_dataset("davinci-prover/agentic-prover-SFT", "messages", split="train")

Data format

Field Description
messages Complete conversation, including assistant reasoning_content, tool calls, and responses.
theorem_statement Lean task source.
source_files Verified Lean submission and required helper modules.
tools Tool definitions, encoded as JSON.
metadata Trajectory metadata, encoded as JSON.

Rows also include identifiers, model and proof-environment versions, and assistant-turn/tool-call counts. Tool-call function.arguments are JSON strings; decode with json.loads as needed. Preserve reasoning_content when preparing training data.

Citation

@article{zhu2026davinci,
  title={daVinci-Prover: Agent-Native Mid-Training for Formal Theorem Proving},
  author={Zhu, Wenhong and Li, Xuefeng and Zhang, Jiashuo and Chen, Yu and Mi, Tiantian and Guo, Qipeng and Liu, Pengfei},
  journal={arXiv preprint arXiv:2611.16433},
  year={2026}
}
Downloads last month
199

Paper for davinci-prover/agentic-prover-SFT