nielsr's picture
nielsr HF Staff
Improve dataset card: update task category, add project page, and sample usage
6bb1835 verified
|
raw
history blame
1.73 kB
metadata
license: apache-2.0
task_categories:
  - text-ranking
tags:
  - math
  - formalization
  - lean
library_name: datasets

Premise Retrieval Dataset for Mathematical Formalization

This dataset is used in the paper Learning an Effective Premise Retrieval Model for Efficient Mathematical Formalization. It contains data for training and evaluating a lightweight and effective premise retrieval model for the Lean theorem prover.

About the Dataset

The dataset consists of proof states (acting as queries) and corresponding premises extracted from the Mathlib library. It is designed to facilitate the training of models using a contrastive learning framework to embed queries and premises in a latent space. This process aims to enhance retrieval performance through fine-grained similarity calculation and a re-ranking module, ultimately assisting users in the mathematical formalization process.

Links

Dataset Access

This dataset is available for download at this link on the Hugging Face Hub.

Sample Usage

You can load the dataset using the Hugging Face datasets library:

from datasets import load_dataset

dataset = load_dataset("ruc-ai4math/mathlib_handler_benchmark_410")

# To inspect the 'train' split
print(dataset["train"][0])