cs.CLNov 23, 2026

LeanReviewBench: Semantic Alignment Review in Mathematical Lean Projects

Authors: Ruichen Qiu, Hao Shen, Lihong Zhi, Xiao-Shan Gao

Organizations: State Key Laboratory of Mathematical Sciences, Academy of Mathematics and Systems Science, Chinese Academy of Sciences, and University of Chinese Academy of Sciences.

Abstract

Lean verifies that a proof establishes its formal proposition, but whether that proposition preserves the mathematical content of an informal source requires separate review. In project-scale formalizations, this correspondence can depend on definitions and constraints distributed across many declarations. We introduce LeanReviewBench, a benchmark for project-level semantic alignment review containing 197 versioned inputs collected from 18 real Lean projects, with 87 aligned and 110 misaligned reference judgments. Each input binds an informal mathematical target to selected formal declarations and an extracted dependency context. Construction combines development-history discovery, independent target binding, reconstruction under a common Lean environment, and Astra annotation with human review of uncertain cases. The collection spans diverse mathematical domains and includes 69 historical pairs. We evaluate six language models with Direct and ReForm prompts on all 197 inputs against final human-reviewed reference labels. GPT-6.1 Sol with Direct prompting achieves the highest reported accuracy of 0.827 and misalignment-detection F1 of 0.844; the effects of prompting vary across models. LeanReviewBench provides a testbed for reviewing semantic correspondence in existing mathematical formalization projects. LeanReviewBench is available at https://github.com/MechMath/LeanReviewBench.

Figures & tables

Appendix figures & tables3 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. MechAlign: Evaluating Semantic Alignment at the Project Level in Mathematical Formalization

    Oct 26, 2026Hao Shen, Ruichen Qiu, Lihong Zhi +1Semantic AlignmentAutomated Evaluation

  2. Improving semantic equivalence in research-level math formalization

    Nov 21, 2026Ayush Khaitan, Liam Fowl, Tomàs Ortega +2AutoformalizationLean Theorem Proving

  3. Lean Atlas: An Integrated Proof Environment for Scalable Human-AI Collaborative Formalization

    Mar 16, 2026Banri Yanahama, Akiyoshi SannaiFormal VerificationLean Theorem Proving