semantic_lean_errors Schema
This file documents the schema of the exported semantic_lean_errors.jsonl and semantic_lean_errors.json files.
Both files contain the same records.
semantic_lean_errors.jsonlstores one record per line.semantic_lean_errors.jsonstores the same records as a pretty-printed JSON array.
Record Format
Each record is one labeled NL/Lean pair.
Fields:
id(string)- Stable example identifier.
source(string)- Source benchmark: one of
FormalMath,ProofNet,ProverBench,CombiBench.
- Source benchmark: one of
problem_nl(string)- Natural-language problem statement.
lean_code(string)- Canonical Lean statement being judged.
expected_verdict(string)- Row-level binary label.
YESmeans the row contains a semantic error.NOmeans the row is a clean example.
error_primary(string or null)- Primary semantic error category.
- Null for clean examples.
error_secondary(array[string])- Optional secondary semantic categories.
error_tags(array[string])- Detail tags refining the error type.
meta_tags(array[string])- Optional non-prompt metadata tags.
gold_explanation(string)- Human-written explanation of the label.
Primary Categories
The dataset uses six primary semantic-error categories:
problem_statement_errorspecification_errorformalization_errordomain_mismatchdefinition_mismatchquantifier_indexing_mismatch
See error_tags.md for category definitions, boundaries, and detail-tag guidance.
Label Semantics
Two label views are represented in the export:
- Binary row-level view
- Use
expected_verdict. YES= some semantic error is present.NO= clean example.
- Category-specific view
- Use
error_primary. - In the current 6-category evaluation, a category prompt expects
YESifferror_primaryequals the queried category; otherwiseNO.
Normalization Policy
This exported release is intentionally normalized:
lean_codeis the single canonical code field.- ProofNet examples are normalized from
original_lean_codetolean_code. fixed_lean_codeandlean_code_fixedare not included in this release bundle.error_secondary,error_tags, andmeta_tagsare always lists.
Example
{
"id": "example_id",
"source": "FormalMath",
"problem_nl": "...",
"lean_code": "theorem ... := by",
"expected_verdict": "YES",
"error_primary": "definition_mismatch",
"error_secondary": [],
"error_tags": ["wrong_operator"],
"meta_tags": [],
"gold_explanation": "The Lean operator does not match the intended informal notion."
}