# Theory-Scale Auto-Formalization of Logics for Computer Science

*Yuming Feng, Frederick Pu, One An, Osbert Bastani, Li Zhang, Jiani Huang, Xujie Si, Ziyang Li*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/139146) · [Open on the map](../papers.html#p139146)

Category: [LLM Agents, Evals & Benchmarks](../pcat/17.md) › [Long-Horizon Coding and Proof Benchmarks](../pgroup/99.md) · Type: benchmark or dataset · Keywords: auto-formalization, formal verification, benchmark, theorem proving, Lean, dependency graphs

Areas: [Evaluation & Benchmarks](../areas/evaluation.md) › Language Model and Agent Benchmarks › Formal Verification Benchmarks; [Benchmarks for LLMs & Agents](../areas/bench-llm-agents.md) › Cross-Domain Agent Evaluation › Formal Verification Benchmarks

## Summary
LCS-Bench is a stand-alone, theory-scale benchmark for auto-formalization of logics for computer science, built via a semi-automated pipeline and covering 327 textbook items and over 85K lines of Lean code.

## Explained to a 5-year-old
We made a big book of math problems that are like puzzles for computers. The book was made by a robot that helps organize the puzzles and checks they are correct. It has many pages with little math rules and how they connect. We use the book to see if computers can solve the puzzles on their own. It helps people make safer software and computers that think better.

## Explained to a 5-year-old, longer
We wanted to help computers understand big math theories. Usually, people write math by hand, but computers need it in a special language. This paper creates a huge collection of such math problems that are linked together like a story. The collection was built by a semi-automated process that organizes the problems and checks they make sense. Human experts also looked at the collection to make sure it was accurate. The collection includes many definitions, lemmas, and theorems from textbooks. It is stored in a special code format that computers can read. The paper also introduces a new way to test computers on these problems. It splits the problems into different categories to test different skills. The results show that current computers still struggle with many of the problems. This gives researchers new ideas for how to improve computer math understanding. The work helps make software safer and more reliable.

## For a technical reader
The paper introduces LCS-Bench, a large-scale benchmark for auto-formalizing computer-science logics, covering 327 textbook items and over 85K lines of Lean code. It builds the benchmark using a semi-automated agentic pipeline that leverages dependency graphs, concept tagging, issue tracking, and iterative refinement, with extensive human review for faithfulness. A data engine automatically derives five evaluation tracks and a novel protocol that employs definitional equivalence checkers for fine-grained assessment. Empirical evaluation on 14 models shows that state-of-the-art systems achieve only about 20% on auto-formalization tasks.

## Problem
Auto-formalization of large, interdependent logical theories at scale remains challenging due to issues of consistency, faithfulness, scalability, and correctness.

## Method
The approach builds a benchmark through a semi-automated agentic pipeline that leverages dependency graphs, concept tagging, issue tracking, and iterative refinement, with extensive human review for faithfulness. It also provides a data engine that derives five evaluation tracks and a novel protocol using definitional equivalence checkers.

## Results
The benchmark is high quality and challenging, with state-of-the-art models achieving only 20.1% on auto-formalization tasks.

## Contributions
A theory-scale benchmark covering 327 textbook items and over 85K lines of Lean code, built via a semi-automated pipeline with human review, and a novel evaluation protocol using definitional equivalence checkers.

## Practical relevance
It enables scalable formal verification by providing a high-quality benchmark for evaluating auto-formalization of large logical theories.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/139146)
