Dataset Viewer
The dataset viewer is not available for this dataset.
Unexpected token '<', "<html> <h"... is not valid JSON

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.

Lean4-ProofWidgets

Structured dataset from ProofWidgets4 — Interactive proof widgets.

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: 306
  • With proof: 244 (79.7%)
  • With docstring: 92 (30.1%)
  • Libraries: 9

By type

Type Count
def 206
structure 59
inductive 17
abbrev 8
elab 5
opaque 4
class 3
axiom 2
macro 1
theorem 1

Example

mkCancellable [RpcEncodable β] (handler : α → RequestM (RequestTask β)) :
    α → RequestM (RequestTask RequestId)
fun a => do
  RequestM.asTask do
    let t ← handler a
    let t' := t.mapCheap (·.map rpcEncode)
    runningRequests.modifyGet fun (id, m) =>
      (id, (id+1, m.insert id ⟨t'.task, t.cancel⟩))
  • type: def | symbolic_name: ProofWidgets.mkCancellable | ProofWidgets/Cancellable.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_proofwidgets_dataset,
  title  = {Lean4-ProofWidgets},
  author = {Norton, Charles},
  year   = {2026},
  note   = {Extracted from https://github.com/leanprover-community/ProofWidgets4, commit 85bb7e7637e8},
  url    = {https://huggingface.co/datasets/phanerozoic/Lean4-ProofWidgets}
}
Downloads last month
19

Collection including phanerozoic/Lean4-ProofWidgets