Lean4-PhysLean / README.md
phanerozoic's picture
Re-extract: full statement+proof, normalized schema, provenance
bdc13b4 verified
|
Raw
History Blame Contribute Delete
3.11 kB
metadata
license: apache-2.0
task_categories:
  - text-generation
  - feature-extraction
language:
  - en
tags:
  - theorem-proving
  - formal-methods
  - lean4
size_categories:
  - 1K<n<10K
dataset_info:
  features:
    - name: statement
      dtype: string
    - name: proof
      dtype: string
    - name: type
      dtype: string
    - name: symbolic_name
      dtype: string
    - name: library
      dtype: string
    - name: filename
      dtype: string
    - name: imports
      list: string
    - name: deps
      list: string
    - name: docstring
      dtype: string
    - name: source_url
      dtype: string
    - name: commit
      dtype: string
  splits:
    - name: train
      num_examples: 10342
  config_name: default
configs:
  - config_name: default
    data_files:
      - split: train
        path: data/train-*

Lean4-PhysLean

Structured dataset from PhysLean — Formalization of physics.

Source

Schema

Column Type Description
statement string Declaration signature/claim with the leading keyword removed (verbatim slice); the full declaration minus its proof
proof string Verbatim proof/body, empty if the declaration has none
type string Declaration keyword
symbolic_name string Declaration identifier
library string Sub-library
filename string Repository-relative source path
imports list[string] File-level Require/Import modules
deps list[string] Intra-corpus identifiers referenced
docstring string Preceding documentation comment, empty if absent
source_url string Upstream repository
commit string Upstream commit extracted

Statistics

  • Entries: 10,342
  • With proof: 10,170 (98.3%)
  • With docstring: 3,665 (35.4%)
  • Libraries: 156

By type

Type Count
lemma 6,273
def 2,097
theorem 1,513
instance 142
abbrev 139
structure 122
inductive 22
class 22
macro 11
class abbrev 1

Example

toCompactlySupportedContinuousMap (η : AdmissibleVariation d U) :
    CompactlySupportedContinuousMap (Space d) U
η.isTestFunction.toCompactlySupportedContinuousMap
  • type: def | symbolic_name: ClassicalFieldTheory.Local.AdmissibleVariation.toCompactlySupportedContinuousMap | Physlib/ClassicalFieldTheory/Local/Variation.lean

Use

Each declaration is split into a statement (signature/claim) and a proof (body) that are disjoint and together form the complete declaration, for proof modeling, autoformalization, retrieval, and dependency analysis via deps.

Citation

@misc{lean4_physlean_dataset,
  title  = {Lean4-PhysLean},
  author = {Norton, Charles},
  year   = {2026},
  note   = {Extracted from https://github.com/HEPLean/PhysLean, commit 01143d7c9702},
  url    = {https://huggingface.co/datasets/phanerozoic/Lean4-PhysLean}
}