Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Could not squash the history of the commits (after 6 attempts).
Error code:   CreateCommitError

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

theorem_id
int64
title
string
source
string
tier
string
prover
string
content
string
1
circle_average
babel-formal
a
hol-light
let is_add_monoid = new_definition `is_add_monoid (zero:A) (add:A->A->A) <=> (!x. add x zero = x) /\ (!x y. add x y = add y x) /\ (!x y z. add (add x y) z = add x (add y z))`;; let is_integral = new_definition `is_integral (integral:(A->A)->A) (add:A->A->A) (zero:A) <=> (!g h. (!t. g t = h ...
1
circle_average
babel-formal
a
isabelle
theory circle_average imports Main begin section "CircleAverage" locale circle_average_setup = fixes zero :: "'r" and add :: "'r \<Rightarrow> 'r \<Rightarrow> 'r" (infixl "+C" 65) and integral :: "('r \<Rightarrow> 'r) \<Rightarrow> 'r" assumes add_zero : "\<And>x. x +C zero = x" ...
1
circle_average
babel-formal
a
lean4
class AddMonoid (R : Type) where zero : R add : R β†’ R β†’ R add_zero : βˆ€ x, add x zero = x add_comm : βˆ€ x y, add x y = add y x add_assoc : βˆ€ x y z, add (add x y) z = add x (add y z) namespace CircleAverage variable {R : Type} [AddMonoid R] axiom integral : (R β†’ R) β†’ R axiom integral_ext :...
1
circle_average
babel-formal
a
rocq
Class AddMonoid (R : Type) := { zero : R; add : R -> R -> R; add_zero : forall x, add x zero = x; add_comm : forall x y, add x y = add y x; add_assoc : forall x y z, add (add x y) z = add x (add y z) }. Section CircleAverage. Context {R : Type} {M : AddMonoid R}. Axiom integral : (R -...
2
comp_commute
babel-formal
a
hol-light
let myComp = new_definition `myComp (g:B->C) (f:A->B) = (\x:A. g (f x))`;; let myId = new_definition `myId = (\x:A. x)`;; let comp_assoc = prove (`!h g f. myComp h (myComp g f) = myComp (myComp h g) f`, REWRITE_TAC[myComp]);; let comp_id_l = prove (`!f:A->B. myComp myId f = f`, REWRITE_TAC[myComp; myId...
2
comp_commute
babel-formal
a
isabelle
theory comp_commute imports Main begin section "CompCommute" definition myComp :: "('b \<Rightarrow> 'c) \<Rightarrow> ('a \<Rightarrow> 'b) \<Rightarrow> ('a \<Rightarrow> 'c)" where "myComp g f \<equiv> \<lambda>x. g (f x)" definition myId :: "'a \<Rightarrow> 'a" where "myId \<equiv> \<lambda>x. x" lemma c...
2
comp_commute
babel-formal
a
lean4
universe u v w namespace CompCommute variable {Ξ± : Type u} {Ξ² : Type v} {Ξ³ : Type w} def comp {Ξ± Ξ² Ξ³} (g : Ξ² β†’ Ξ³) (f : Ξ± β†’ Ξ²) : Ξ± β†’ Ξ³ := fun x => g (f x) def id {Ξ±} : Ξ± β†’ Ξ± := fun x => x axiom comp_assoc : βˆ€ {Ξ± Ξ² Ξ³ Ξ΄} (h : Ξ³ β†’ Ξ΄) (g : Ξ² β†’ Ξ³) (f : Ξ± β†’ Ξ²), comp h (comp g f) = comp (comp h g) f axiom comp_id_l : βˆ€ {Ξ±...
2
comp_commute
babel-formal
a
rocq
Section CompCommute. Universes u v w. Definition comp {Ξ± Ξ² Ξ³ : Type} (g : Ξ² -> Ξ³) (f : Ξ± -> Ξ²) : Ξ± -> Ξ³ := fun x => g (f x). Definition id {Ξ± : Type} : Ξ± -> Ξ± := fun x => x. Class FunProps := { comp_assoc : forall {Ξ± Ξ² Ξ³ Ξ΄} (h : Ξ³ -> Ξ΄) (g : Ξ² -> Ξ³) (f : Ξ± -> Ξ²), comp h (comp g f) = comp (comp h g) f; ...
3
galois
babel-formal
a
hol-light
let field_like = new_definition `field_like (zero_F:'a) (one_F:'a) (add_F:'a->'a->'a) (mul_F:'a->'a->'a) (opp_F:'a->'a) (inv_F:'a->'a) <=> (!x:'a y:'a. add_F x y = add_F y x) /\ (!x:'a y:'a z:'a. add_F (add_F x y) z = add_F x (add_F y z)) /\ (!x:'a. add_F x zero_F = x) /\ (!x:'a. add...
3
galois
babel-formal
a
isabelle
theory galois imports Main begin section "Galois" locale field_like = fixes zero_F one_F :: "'f" and add_F :: "'f \<Rightarrow> 'f \<Rightarrow> 'f" (infixl "+F" 65) and mul_F :: "'f \<Rightarrow> 'f \<Rightarrow> 'f" (infixl "*F" 70) and opp_F :: "'f \<Rightarrow> 'f" and inv_F :: "'f \<Rightar...
3
galois
babel-formal
a
lean4
class Field (F : Type) where zero_F : F one_F : F add_F : F β†’ F β†’ F mul_F : F β†’ F β†’ F opp_F : F β†’ F inv_F : F β†’ F add_comm : βˆ€ x y, add_F x y = add_F y x add_assoc : βˆ€ x y z, add_F (add_F x y) z = add_F x (add_F y z) add_zero : βˆ€ x, add_F x zero_F = x add_inv_l : βˆ€ ...
3
galois
babel-formal
a
rocq
Class Field (F : Type) := { zero_F : F; one_F : F; add_F : F -> F -> F; mul_F : F -> F -> F; opp_F : F -> F; inv_F : F -> F; add_comm : forall x y, add_F x y = add_F y x; add_assoc : forall x y z, add_F (add_F x y) z = add_F x (add_F y z); add_zero : forall x, add_F x z...
4
graph_paths
babel-formal
a
hol-light
needs "Library/rstc.ml";; let path = new_definition `path (E:A->A->bool) u v <=> RTC E u v`;; let undirected = new_definition `undirected (E:A->A->bool) <=> !x y. E x y ==> E y x`;; let erev = new_definition `erev (E:A->A->bool) x y <=> E y x`;; let path_refl = prove (`!E:A->A->bool v. path E v v`, REWRI...
4
graph_paths
babel-formal
a
isabelle
theory graph_paths imports Main begin section "GraphPaths" inductive Path :: "('a \<Rightarrow> 'a \<Rightarrow> bool) \<Rightarrow> 'a \<Rightarrow> 'a \<Rightarrow> bool" for E :: "'a \<Rightarrow> 'a \<Rightarrow> bool" where Pnil: "Path E v v" | Pstep: "Path E u v \<Longrightarrow> E v w \<Longrightarrow> ...
4
graph_paths
babel-formal
a
lean4
universe u namespace GraphPath variable {V : Type u} def Edge (V : Type u) := V β†’ V β†’ Prop inductive Path (E : Edge V) : V β†’ V β†’ Prop | nil : βˆ€ v, Path E v v | step : βˆ€ {u v w}, Path E u v β†’ E v w β†’ Path E u w variable {E : Edge V} theorem refl (v : V) : Path (E:=E) v v := Path.nil v theorem trans {u v w : V} ...
4
graph_paths
babel-formal
a
rocq
Section Graph. Variable V : Type. Definition Edge := V -> V -> Prop. Inductive Path (E : Edge) : V -> V -> Prop := | Pnil : forall v, Path E v v | Pstep : forall u v w, Path E u v -> E v w -> Path E u w. Lemma path_refl (E : Edge) (v : V) : Path E v v. Proof. apply Pnil. Qed. Fixpoint append_rig...
5
group
babel-formal
a
hol-light
needs "Library/grouptheory.ml";; let is_group = new_definition `is_group (mul:A->A->A) (e:A) (ginv:A->A) <=> (!a b c. mul a (mul b c) = mul (mul a b) c) /\ (!a. mul a e = a) /\ (!a. mul e a = a) /\ (!a. mul (ginv a) a = e) /\ (!a. mul a (ginv a) = e)`;; let INTRO_GROUP_HYPS = REWRITE_TAC[...
5
group
babel-formal
a
isabelle
theory group imports Main begin locale group = fixes mul :: "'a => 'a => 'a" (infixl "**" 70) and one :: "'a" and inv :: "'a => 'a" assumes mul_assoc : "a ** (b ** c) = (a ** b) ** c" and mul_one : "a ** one = a" and one_mul : "one ** a = a" and mul_inv_l : "inv a ** a = one" a...
5
group
babel-formal
a
lean4
class Group (G : Type) where inv : G β†’ G one : G mul : G β†’ G β†’ G mul_assoc : βˆ€ a b c : G, mul a (mul b c) = mul (mul a b) c mul_one : βˆ€ a : G, mul a one = a one_mul : βˆ€ a : G, mul one a = a mul_inv_l : βˆ€ a : G, mul (inv a) a = one mul_inv_r : βˆ€ a : G, mul a (inv a) = one namespace Group infixl:70 ...
5
group
babel-formal
a
rocq
Class Group (G : Type) := { inv : G -> G; one : G; mul : G -> G -> G; mul_assoc : forall a b c, mul a (mul b c) = mul (mul a b) c; mul_one : forall a, mul a one = a; one_mul : forall a, mul one a = a; mul_inv_l : forall a, mul (inv a) a = one; mul_inv_r : forall a, mul a (inv a) = one }. Infix "*"...
6
ideals
babel-formal
a
hol-light
let cring = new_definition `cring (zero:'r) (oneR:'r) (add:'r->'r->'r) (mul:'r->'r->'r) (opp:'r->'r) <=> (!x y. add x y = add y x) /\ (!x y z. add (add x y) z = add x (add y z)) /\ (!x. add x zero = x) /\ (!x. add x (opp x) = zero) /\ (!x y. mul x y = mul y x) /\ (!x y z. mul (mul x y) z...
6
ideals
babel-formal
a
isabelle
theory ideals imports Main begin section "Ideals" locale cring = fixes zero :: "'r" and one :: "'r" and add :: "'r \<Rightarrow> 'r \<Rightarrow> 'r" (infixl "+R" 65) and mul :: "'r \<Rightarrow> 'r \<Rightarrow> 'r" (infixl "*R" 70) and opp :: "'r \<Rightarrow> 'r" assumes add_comm : "\<...
6
ideals
babel-formal
a
lean4
class CRing (R : Type) where zero : R one : R add : R β†’ R β†’ R mul : R β†’ R β†’ R opp : R β†’ R add_comm : βˆ€ x y, add x y = add y x add_assoc : βˆ€ x y z, add (add x y) z = add x (add y z) add_zero : βˆ€ x, add x zero = x add_opp : βˆ€ x, add x (opp x) = zero mul_comm : βˆ€ x y, mul x y = mul y x ...
6
ideals
babel-formal
a
rocq
Require Import Coq.Init.Logic. Class CRing := { R : Type; zero : R; one : R; add : R -> R -> R; mul : R -> R -> R; opp : R -> R; add_comm : forall x y, add x y = add y x; add_assoc : forall x y z, add (add x y) z = add x (add y z); add_zero : forall x, add x zero = x; zero_add : fo...
7
inner_product
babel-formal
a
hol-light
let is_inner_context = new_definition `is_inner_context (zeroR:R) (oneR:R) (add:R->R->R) (mul:R->R->R) (opp:R->R) (addV:V->V->V) (oppV:V->V) (smul:R->V->V) (ip:V->V->R) <=> (!x y. add x y = add y x) /\ (!x y z. add (add x y) z = add x (add y z)) /\...
7
inner_product
babel-formal
a
isabelle
theory inner_product imports Main begin section "InnerProduct" locale inner_product = fixes zero_R one_R :: "'r" and add_R :: "'r \<Rightarrow> 'r \<Rightarrow> 'r" (infixl "+R" 65) and mul_R :: "'r \<Rightarrow> 'r \<Rightarrow> 'r" (infixl "*R" 70) and opp_R :: "'r \<Rightarrow> 'r" and zeroV ...
7
inner_product
babel-formal
a
lean4
namespace Linear class Field (R : Type) where zero : R one : R add : R β†’ R β†’ R mul : R β†’ R β†’ R opp : R β†’ R add_comm : βˆ€ x y, add x y = add y x add_assoc : βˆ€ x y z, add (add x y) z = add x (add y z) add_zero : βˆ€ x, add x zero = x zero_add : βˆ€ x, add zero x = x add_opp ...
7
inner_product
babel-formal
a
rocq
Class Field := { R0 : Type; zeroR : R0; oneR : R0; addR : R0 -> R0 -> R0; mulR : R0 -> R0 -> R0; oppR : R0 -> R0; addR_comm : forall x y, addR x y = addR y x; addR_assoc : forall x y z, addR (addR x y) z = addR x (addR y z); addR_zero : forall x, addR x zeroR = x; zeroR_add : forall x, ad...
8
integral_comp_neg_Iic
babel-formal
a
hol-light
new_type ("R",0);; let is_integral_context = new_definition `is_integral_context (zero:R) (oneR:R) (add:R->R->R) (opp:R->R) (mul:R->R->R) (le:R->R->bool) (lt:R->R->bool) (absR:R->R) (sigma:(R->bool)->(R->R)->R) <=> (!x y. add x y = add y x) /\...
8
integral_comp_neg_Iic
babel-formal
a
isabelle
theory integral_comp_neg_Iic imports Main begin section "Integrals" locale integrals_setup = fixes zero one :: "'r" and add :: "'r \<Rightarrow> 'r \<Rightarrow> 'r" (infixl "+R" 65) and opp :: "'r \<Rightarrow> 'r" and mul :: "'r \<Rightarrow> 'r \<Rightarrow> 'r" (infixl "*R" ...
8
integral_comp_neg_Iic
babel-formal
a
lean4
class RField (R : Type) where zero : R one : R add : R β†’ R β†’ R opp : R β†’ R mul : R β†’ R β†’ R le : R β†’ R β†’ Prop lt : R β†’ R β†’ Prop abs : R β†’ R add_comm : βˆ€ x y, add x y = add y x add_assoc : βˆ€ x y z, add (add x y) z = add x (add y z) add_zero : βˆ€ x, add x zero =...
8
integral_comp_neg_Iic
babel-formal
a
rocq
Class RField (R : Type) := { zero : R; one : R; add : R -> R -> R; opp : R -> R; mul : R -> R -> R; le : R -> R -> Prop; lt : R -> R -> Prop; abs : R -> R; add_comm : forall x y, add x y = add y x; add_assoc : forall x y z, add (add x y) z = add x (add y z); add...
9
lattice_like
babel-formal
a
hol-light
let is_lattice_like = new_definition `is_lattice_like (le_rel:A->A->bool) (inf_op:A->A->A) (sup_op:A->A->A) <=> (!x. le_rel x x) /\ (!x y z. le_rel x y /\ le_rel y z ==> le_rel x z) /\ (!x y. le_rel x y /\ le_rel y x ==> x = y) /\ (!a b. le_rel (inf_op a b) a) /\ (!a b. le_rel (inf_op a b) b)...
9
lattice_like
babel-formal
a
isabelle
theory lattice_like imports Main begin section "LatticeLike" locale lattice_like = fixes le :: "'a \<Rightarrow> 'a \<Rightarrow> bool" (infix "\<preceq>" 50) and inf :: "'a \<Rightarrow> 'a \<Rightarrow> 'a" (infixl "\<sqinter>" 60) and sup :: "'a \<Rightarrow> 'a \<Rightarrow> 'a" (infixl "\<squni...
End of preview.

ITPEval: Benchmarking Formal Translation Across Interactive Theorem Provers

ITPEval is a benchmark for evaluating automated formal proof translation across four major interactive theorem provers (ITPs) spanning two logical foundations. It accompanies the paper ITPEval: Benchmarking Formal Translation Across Interactive Theorem Provers.

Dataset Summary

The benchmark comprises 390 aligned files spanning over 1,700 theorems and lemmas, each formalized in all four ITPs:

ITP Foundation File Extension
Lean 4 Calculus of Inductive Constructions .lean
Rocq (Coq) Calculus of Inductive Constructions .v
Isabelle/HOL Higher-order logic .thy
HOL Light Higher-order logic .ml

Every theorem is present in all four ITPs (4-way intersection), yielding 12 balanced directed translation pairs per file.

Data Files

File Records Description
stmts.json 1,560 Sorry-stripped theorem statements (390 theorems Γ— 4 ITPs)
proofs.json 296 Full proof files (74 theorems Γ— 4 ITPs)

Record Schema

Each record is a JSON object with the following fields:

Field Type Description
theorem_id int Globally unique theorem identifier (1–390)
title string Theorem name (e.g., "circle_average", "aime_1983_p1")
source string Benchmark source: "babel-formal", "hundred-theorems", or "minif2f"
tier string "a" (controlled/axiomatized) or "b" (ecosystem/library-dependent)
prover string ITP system: "lean4", "rocq", "isabelle", or "hol-light"
content string Full file text (statement-only for stmts.json, complete proof for proofs.json)
split string (miniF2F only) "test" or "valid"

Benchmark Structure

The benchmark is organized into two tiers:

Tier Source Files Lemmas Description
A (Controlled) Babel-formal 16 165 Self-contained, axiomatized theorems. Isolates foundational translation difficulty.
B (Ecosystem) Hundred Theorems 58 1,231 Classical theorems from real ITP libraries. Tests library API and tactic translation.
B (Ecosystem) miniF2F 316 316 Competition math statements. Tests pure statement translation.

Translation modes:

  • Statement translation (stmts.json): All 390 files. Source file has proof bodies replaced by placeholders (sorry, Admitted, etc.). Yields 4,680 directed pairs per model (390 Γ— 12 directions).
  • Proof translation (proofs.json): Babel-formal + Hundred Theorems (74 files). Source file contains the complete proof. Yields 888 directed pairs per model (74 Γ— 12 directions).

Usage

import json

# Load data
stmts  = json.load(open("stmts.json"))   # 1,560 records
proofs = json.load(open("proofs.json"))   # 296 records

# All Lean 4 statements
lean4_stmts = [r for r in stmts if r["prover"] == "lean4"]

# All 4 ITP variants of one theorem
theorem_1 = [r for r in stmts if r["theorem_id"] == 1]

# Generate all directed translation pairs for a theorem
def translation_pairs(records, theorem_id):
    variants = [r for r in records if r["theorem_id"] == theorem_id]
    pairs = []
    for src in variants:
        for tgt in variants:
            if src["prover"] != tgt["prover"]:
                pairs.append({"src": src, "tgt_prover": tgt["prover"]})
    return pairs

# Tier A only (controlled)
tier_a = [r for r in stmts if r["tier"] == "a"]

# miniF2F test split
minif2f_test = [r for r in stmts if r["source"] == "minif2f" and r.get("split") == "test"]

Evaluation Protocol

For each (source file, target ITP) pair:

  1. Prompt an LLM with the source file and the target ITP name
  2. The LLM generates a complete file in the target ITP
  3. Run the generated file through the target ITP binary
  4. Mark as verified if and only if the ITP exits with code 0 (no errors, no partial credit)

Per-prover timeouts: Lean 4 and Rocq at 60s, Isabelle at 120s, HOL Light at 300s.

Key Results

With five LLMs (GPT-5.5, Claude Sonnet 4.6, Gemini 3.1 Pro, DeepSeek-V4-Pro, Qwen3-235B), evaluated zero-shot at temperature 0:

  • Statement translation peaks at 29.1% pass@1; proof translation peaks at 10.5%
  • Tier A (controlled) reaches 29.7% proof pass@1 vs. 5.2% for Tier B (ecosystem)
  • Translation direction matters sharply: e.g., Lean 4 β†’ Isabelle (19.8%) vs. Isabelle β†’ Lean 4 (1.9%)

License

This dataset is released under CC BY 4.0. Individual formalizations may inherit licenses from their upstream sources (Mathlib, Archive of Formal Proofs, HOL Light core, MathComp, miniF2F).

Downloads last month
9