jgalego/hilbert-prover-8b
Text Generation β’ 8B β’ Updated β’ 268
library stringclasses 2
values | module stringclasses 712
values | name stringlengths 1 79 | split stringclasses 1
value | prompt listlengths 1 1 | completion listlengths 1 1 |
|---|---|---|---|---|---|
physlib | Physlib.ClassicalFieldTheory.Local.Variation | hasCompactSupport | train | [
{
"role": "user",
"content": "Complete the following Lean 4 code:\n\n```lean4\n/-\nCopyright (c) 2026 Juan Jose Fernandez Morales. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Juan Jose Fernandez Morales\n-/\nmodule\n\npublic import Physlib.Mathematics.... | [
{
"role": "assistant",
"content": "```lean4\nlemma hasCompactSupport (Ξ· : AdmissibleVariation d U) : HasCompactSupport (Ξ·.toFun) := by\n exact Ξ·.isTestFunction.supp\n```"
}
] |
physlib | Physlib.ClassicalFieldTheory.Local.Variation | zero_apply | train | [
{
"role": "user",
"content": "Complete the following Lean 4 code:\n\n```lean4\n/-\nCopyright (c) 2026 Juan Jose Fernandez Morales. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Juan Jose Fernandez Morales\n-/\nmodule\n\npublic import Physlib.Mathematics.... | [
{
"role": "assistant",
"content": "```lean4\nlemma zero_apply (x : Space d) : (0 : AdmissibleVariation d U) x = 0 := by\n exact rfl\n```"
}
] |
physlib | Physlib.ClassicalFieldTheory.Local.Variation | neg_apply | train | [
{
"role": "user",
"content": "Complete the following Lean 4 code:\n\n```lean4\n/-\nCopyright (c) 2026 Juan Jose Fernandez Morales. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Juan Jose Fernandez Morales\n-/\nmodule\n\npublic import Physlib.Mathematics.... | [
{
"role": "assistant",
"content": "```lean4\nlemma neg_apply (Ξ· : AdmissibleVariation d U) (x : Space d) : (-Ξ·) x = -Ξ· x := by\n exact rfl\n```"
}
] |
physlib | Physlib.ClassicalFieldTheory.Local.Variation | add_apply | train | [
{
"role": "user",
"content": "Complete the following Lean 4 code:\n\n```lean4\n/-\nCopyright (c) 2026 Juan Jose Fernandez Morales. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Juan Jose Fernandez Morales\n-/\nmodule\n\npublic import Physlib.Mathematics.... | [
{
"role": "assistant",
"content": "```lean4\nlemma add_apply (Ξ· ΞΎ : AdmissibleVariation d U) (x : Space d) : (Ξ· + ΞΎ) x = Ξ· x + ΞΎ x := by\n exact rfl\n```"
}
] |
physlib | Physlib.ClassicalFieldTheory.Local.Variation | sub_apply | train | [
{
"role": "user",
"content": "Complete the following Lean 4 code:\n\n```lean4\n/-\nCopyright (c) 2026 Juan Jose Fernandez Morales. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Juan Jose Fernandez Morales\n-/\nmodule\n\npublic import Physlib.Mathematics.... | [
{
"role": "assistant",
"content": "```lean4\nlemma sub_apply (Ξ· ΞΎ : AdmissibleVariation d U) (x : Space d) : (Ξ· - ΞΎ) x = Ξ· x - ΞΎ x := by\n exact rfl\n```"
}
] |
physlib | Physlib.ClassicalFieldTheory.Local.Variation | smul_apply | train | [
{
"role": "user",
"content": "Complete the following Lean 4 code:\n\n```lean4\n/-\nCopyright (c) 2026 Juan Jose Fernandez Morales. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Juan Jose Fernandez Morales\n-/\nmodule\n\npublic import Physlib.Mathematics.... | [
{
"role": "assistant",
"content": "```lean4\nlemma smul_apply (c : β) (Ξ· : AdmissibleVariation d U) (x : Space d) :\n (c β’ Ξ·) x = c β’ Ξ· x := by\n exact rfl\n```"
}
] |
physlib | Physlib.ClassicalFieldTheory.Local.Variation | coord | train | [
{
"role": "user",
"content": "Complete the following Lean 4 code:\n\n```lean4\n/-\nCopyright (c) 2026 Juan Jose Fernandez Morales. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Juan Jose Fernandez Morales\n-/\nmodule\n\npublic import Physlib.Mathematics.... | [
{
"role": "assistant",
"content": "```lean4\nlemma coord {m : β} (Ξ· : AdmissibleVariation d (Space m)) (a : Fin m) :\n IsTestFunction (fun x => (Ξ·.toFun x).coord a) := by\n simpa [Space.coord] using IsTestFunction.coord Ξ·.isTestFunction a\n```"
}
] |
physlib | Physlib.ClassicalMechanics.DampedHarmonicOscillator.Basic | acceleration_eq_of_equationOfMotion | train | [
{
"role": "user",
"content": "Complete the following Lean 4 code:\n\n```lean4\n/-\nCopyright (c) 2026 Nicola Bernini. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Nicola Bernini, Florian Wiesner\n-/\nmodule\n\npublic import Physlib.ClassicalMechanics.Ha... | [
{
"role": "assistant",
"content": "```lean4\nlemma acceleration_eq_of_equationOfMotion (z : Time β EuclideanSpace β (Fin 1))\n (hEOM : S.EquationOfMotion z) (t : Time) :\n ββ (ββ z) t = (-(S.mβ»ΒΉ * S.k)) β’ z t + (-(S.mβ»ΒΉ * S.Ξ³)) β’ ββ z t := by\n have hm : S.m β 0 := S.m_ne_zero\n have hsum : S.m β’ ββ... |
physlib | Physlib.ClassicalMechanics.DampedHarmonicOscillator.Basic | energy_dissipation_rate | train | [
{
"role": "user",
"content": "Complete the following Lean 4 code:\n\n```lean4\n/-\nCopyright (c) 2026 Nicola Bernini. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Nicola Bernini, Florian Wiesner\n-/\nmodule\n\npublic import Physlib.ClassicalMechanics.Ha... | [
{
"role": "assistant",
"content": "```lean4\nlemma energy_dissipation_rate (xβ : Time β EuclideanSpace β (Fin 1)) (t : Time)\n (h1 : S.EquationOfMotion xβ)\n (hx : ContDiff β β xβ) :\n ββ (S.energy xβ) t = - S.Ξ³ * βͺββ xβ t, ββ xβ tβ«_β := by\n rw [S.energy_deriv xβ hx]\n have hforce : S.m β’ ββ (ββ... |
physlib | Physlib.ClassicalMechanics.DampedHarmonicOscillator.Basic | energy_not_conserved | train | [
{
"role": "user",
"content": "Complete the following Lean 4 code:\n\n```lean4\n/-\nCopyright (c) 2026 Nicola Bernini. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Nicola Bernini, Florian Wiesner\n-/\nmodule\n\npublic import Physlib.ClassicalMechanics.Ha... | [
{
"role": "assistant",
"content": "```lean4\nlemma energy_not_conserved (xβ : Time β EuclideanSpace β (Fin 1)) (t : Time)\n (h1 : S.EquationOfMotion xβ) (hx : ContDiff β β xβ) (hdx : ββ xβ t β 0) (hΞ³ : 0 < S.Ξ³) :\n ββ (S.energy xβ) t < 0 := by\n rw [energy_dissipation_rate S xβ t h1 hx, neg_mul]\n e... |
physlib | Physlib.ClassicalMechanics.DampedHarmonicOscillator.Basic | equationOfMotion_iff_newtons_2nd_law | train | [
{
"role": "user",
"content": "Complete the following Lean 4 code:\n\n```lean4\n/-\nCopyright (c) 2026 Nicola Bernini. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Nicola Bernini, Florian Wiesner\n-/\nmodule\n\npublic import Physlib.ClassicalMechanics.Ha... | [
{
"role": "assistant",
"content": "```lean4\nlemma equationOfMotion_iff_newtons_2nd_law (xβ : Time β EuclideanSpace β (Fin 1)) :\n S.EquationOfMotion xβ β\n (β t : Time, S.m β’ ββ (ββ xβ) t = force S xβ t) := by\n simp only [EquationOfMotion, force]\n constructor\n Β· intro h t\n linear_combinatio... |
physlib | Physlib.ClassicalMechanics.DampedHarmonicOscillator.Basic | isUnderdamped_or_isCriticallyDamped_or_isOverdamped | train | [
{
"role": "user",
"content": "Complete the following Lean 4 code:\n\n```lean4\n/-\nCopyright (c) 2026 Nicola Bernini. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Nicola Bernini, Florian Wiesner\n-/\nmodule\n\npublic import Physlib.ClassicalMechanics.Ha... | [
{
"role": "assistant",
"content": "```lean4\nlemma isUnderdamped_or_isCriticallyDamped_or_isOverdamped :\n S.IsUnderdamped β¨ S.IsCriticallyDamped β¨ S.IsOverdamped := by\n exact lt_trichotomy S.discriminant 0\n```"
}
] |
physlib | Physlib.ClassicalMechanics.DampedHarmonicOscillator.Basic | discriminant_eq_four_mul_m_sq_mul_decayRate_sq_sub_Ο_sq | train | [
{
"role": "user",
"content": "Complete the following Lean 4 code:\n\n```lean4\n/-\nCopyright (c) 2026 Nicola Bernini. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Nicola Bernini, Florian Wiesner\n-/\nmodule\n\npublic import Physlib.ClassicalMechanics.Ha... | [
{
"role": "assistant",
"content": "```lean4\nlemma discriminant_eq_four_mul_m_sq_mul_decayRate_sq_sub_Ο_sq :\n S.discriminant = 4 * S.m^2 * (S.decayRate^2 - S.Ο^2) := by\n rw [discriminant, decayRate, S.Ο_sq]\n field_simp [S.m_ne_zero]\n ring\n```"
}
] |
physlib | Physlib.ClassicalMechanics.DampedHarmonicOscillator.Basic | decayRate_nonneg | train | [
{
"role": "user",
"content": "Complete the following Lean 4 code:\n\n```lean4\n/-\nCopyright (c) 2026 Nicola Bernini. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Nicola Bernini, Florian Wiesner\n-/\nmodule\n\npublic import Physlib.ClassicalMechanics.Ha... | [
{
"role": "assistant",
"content": "```lean4\nlemma decayRate_nonneg : 0 β€ S.decayRate := by\n exact div_nonneg S.Ξ³_nonneg (by nlinarith [S.m_pos])\n```"
}
] |
physlib | Physlib.ClassicalMechanics.DampedHarmonicOscillator.Basic | decayRate_pos | train | [
{
"role": "user",
"content": "Complete the following Lean 4 code:\n\n```lean4\n/-\nCopyright (c) 2026 Nicola Bernini. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Nicola Bernini, Florian Wiesner\n-/\nmodule\n\npublic import Physlib.ClassicalMechanics.Ha... | [
{
"role": "assistant",
"content": "```lean4\nlemma decayRate_pos (hΞ³ : 0 < S.Ξ³) : 0 < S.decayRate := by\n exact div_pos hΞ³ (by linarith [S.m_pos])\n```"
}
] |
physlib | Physlib.ClassicalMechanics.DampedHarmonicOscillator.Basic | isUnderdamped_of_gamma_eq_zero | train | [
{
"role": "user",
"content": "Complete the following Lean 4 code:\n\n```lean4\n/-\nCopyright (c) 2026 Nicola Bernini. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Nicola Bernini, Florian Wiesner\n-/\nmodule\n\npublic import Physlib.ClassicalMechanics.Ha... | [
{
"role": "assistant",
"content": "```lean4\nlemma isUnderdamped_of_gamma_eq_zero (hΞ³ : S.Ξ³ = 0) : S.IsUnderdamped := by\n rw [IsUnderdamped, discriminant, hΞ³]\n nlinarith [mul_pos S.m_pos S.k_pos]\n```"
}
] |
physlib | Physlib.ClassicalMechanics.DampedHarmonicOscillator.Basic | isUnderdamped_decayRate | train | [
{
"role": "user",
"content": "Complete the following Lean 4 code:\n\n```lean4\n/-\nCopyright (c) 2026 Nicola Bernini. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Nicola Bernini, Florian Wiesner\n-/\nmodule\n\npublic import Physlib.ClassicalMechanics.Ha... | [
{
"role": "assistant",
"content": "```lean4\nlemma isUnderdamped_decayRate (hS : S.IsUnderdamped) : S.decayRate < S.Ο := by\n rw [IsUnderdamped, discriminant_eq_four_mul_m_sq_mul_decayRate_sq_sub_Ο_sq] at hS\n have hsq : S.decayRate ^ 2 < S.Ο ^ 2 := by nlinarith [sq_pos_of_pos S.m_pos]\n nlinarith [S.dec... |
physlib | Physlib.ClassicalMechanics.DampedHarmonicOscillator.Basic | isCriticallyDamped_decayRate | train | [
{
"role": "user",
"content": "Complete the following Lean 4 code:\n\n```lean4\n/-\nCopyright (c) 2026 Nicola Bernini. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Nicola Bernini, Florian Wiesner\n-/\nmodule\n\npublic import Physlib.ClassicalMechanics.Ha... | [
{
"role": "assistant",
"content": "```lean4\nlemma isCriticallyDamped_decayRate (hS : S.IsCriticallyDamped) : S.Ο = S.decayRate := by\n rw [IsCriticallyDamped, discriminant_eq_four_mul_m_sq_mul_decayRate_sq_sub_Ο_sq] at hS\n have hsq : S.decayRate ^ 2 = S.Ο ^ 2 := by nlinarith [sq_pos_of_pos S.m_pos]\n n... |
physlib | Physlib.ClassicalMechanics.DampedHarmonicOscillator.Basic | gamma_eq_two_mul_m_mul_decayRate | train | [
{
"role": "user",
"content": "Complete the following Lean 4 code:\n\n```lean4\n/-\nCopyright (c) 2026 Nicola Bernini. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Nicola Bernini, Florian Wiesner\n-/\nmodule\n\npublic import Physlib.ClassicalMechanics.Ha... | [
{
"role": "assistant",
"content": "```lean4\nlemma gamma_eq_two_mul_m_mul_decayRate : S.Ξ³ = 2 * S.m * S.decayRate := by\n rw [decayRate]\n field_simp [S.m_ne_zero]\n```"
}
] |
physlib | Physlib.ClassicalMechanics.DampedHarmonicOscillator.Basic | k_eq_m_mul_Ο_sq | train | [
{
"role": "user",
"content": "Complete the following Lean 4 code:\n\n```lean4\n/-\nCopyright (c) 2026 Nicola Bernini. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Nicola Bernini, Florian Wiesner\n-/\nmodule\n\npublic import Physlib.ClassicalMechanics.Ha... | [
{
"role": "assistant",
"content": "```lean4\nlemma k_eq_m_mul_Ο_sq : S.k = S.m * S.Ο^2 := by\n rw [S.Ο_sq]\n field_simp [S.m_ne_zero]\n```"
}
] |
physlib | Physlib.ClassicalMechanics.DampedHarmonicOscillator.Basic | k_eq_m_mul_decayRate_sq_of_criticallyDamped | train | [
{
"role": "user",
"content": "Complete the following Lean 4 code:\n\n```lean4\n/-\nCopyright (c) 2026 Nicola Bernini. All rights reserved.\nReleased under Apache 2.0 license as described in the file LICENSE.\nAuthors: Nicola Bernini, Florian Wiesner\n-/\nmodule\n\npublic import Physlib.ClassicalMechanics.Ha... | [
{
"role": "assistant",
"content": "```lean4\nlemma k_eq_m_mul_decayRate_sq_of_criticallyDamped (hS : S.IsCriticallyDamped) :\n S.k = S.m * S.decayRate^2 := by\n rw [S.k_eq_m_mul_Ο_sq, S.isCriticallyDamped_decayRate hS]\n```"
}
] |
Theorems from Physlib and CSLib as prompt/completion pairs, for training Hilbert, a Lean 4 prover. Each prompt is the source file up to a theorem, with the proof replaced by sorry, in the prompt format of Goedel-LM/Goedel-Prover-V2-8B. The completion is the theorem with the library's own proof.
| Library | Commit | Lean | Folders | Train | Test |
|---|---|---|---|---|---|
| physlib | d630c36 |
v4.34.1 |
Physlib/, QuantumInfo/ |
8,162 | 1,005 |
| cslib | cd62719 |
v4.35.0-rc3 |
Cslib/ |
2,227 | 283 |
| Field | Content |
|---|---|
library |
physlib or cslib |
module |
Source file as a module name, such as Physlib.ClassicalMechanics.EulerLagrange |
name |
Theorem or lemma name |
split |
train, or test for held-out modules |
prompt |
One user message: the file up to the theorem, ending in := by sorry |
completion |
One assistant message: a lean4 block with the statement and its proof |
from datasets import load_dataset
data = load_dataset("jgalego/hilbert-libraries")
prompt and completion follow the conversational prompt/completion format of TRL's SFTTrainer.
theorem and lemma declarations in the folders above: 11,677 kept of 11,915. A theorem is skipped if its proof uses sorry or admit, works by pattern matching or recursion, or has no top-level :=.exact tactics, so every completion continues the prompt's := by.namespace, section, open, variable, notation) are kept, so names still resolve. Prompts run to 7,031 characters at the median and 23,307 at most.Apache 2.0, the license of both libraries. The theorems and proofs are the work of their contributors.