Skip to main content
QUICK REVIEW

[논문 리뷰] M2F: Automated Formalization of Mathematical Literature at Scale

Zichen Wang, Wanli Ma|arXiv (Cornell University)|2026. 02. 19.
Mathematics, Computing, and Information ProcessingComputer Science인용 수 0
한 줄 요약

M2F는 두 단계 VeriRefine 파이프라인을 사용하여 긴 형식의 수학 텍스트를 Lean으로 엔드-투-엔드 형식화하고, 프로젝트 규모의 높은 구축 가능성과 강한 증명 수리 성능을 달성합니다.

ABSTRACT

Automated formalization of mathematics enables mechanical verification but remains limited to isolated theorems and short snippets. Scaling to textbooks and research papers is largely unaddressed, as it requires managing cross-file dependencies, resolving imports, and ensuring that entire projects compile end-to-end. We present M2F (Math-to-Formal), the first agentic framework for end-to-end, project-scale autoformalization in Lean. The framework operates in two stages. The statement compilation stage splits the document into atomic blocks, orders them via inferred dependencies, and repairs declaration skeletons until the project compiles, allowing placeholders in proofs. The proof repair stage closes these holes under fixed signatures using goal-conditioned local edits. Throughout both stages, M2F keeps the verifier in the loop, committing edits only when toolchain feedback confirms improvement. In approximately three weeks, M2F converts long-form mathematical sources into a project-scale Lean library of 153,853 lines from 479 pages textbooks on real analysis and convex analysis, fully formalized as Lean declarations with accompanying proofs. This represents textbook-scale formalization at a pace that would typically require months or years of expert effort. On FATE-H, we achieve $96\%$ proof success (vs.\ $80\%$ for a strong baseline). Together, these results demonstrate that practical, large-scale automated formalization of mathematical literature is within reach. The full generated Lean code from our runs is available at https://github.com/optsuite/ReasBook.git.

연구 동기 및 목표

  • 고정된 환경에서 교과서 또는 논문 규모의 수학 콘텐츠를 Lean 프로젝트로 구축 가능하도록 변환한다.
  • DECLARATIONS에서 소스 범위까지 출처 연결을 포함한 엔드-투-엔드 형식화를 가능하게 한다.
  • 진전만을 목표로 하는 도구 체인 개선 시에만 커밋하는 VeriRefine(검증자 인증 수식 정제 루프)을 개발한다.
  • 수백 페이지 및 대형 Lean 라이브러리에서의 확장성과 증명의 무결성을 유지하면서 확장성을 Demonstrate한다.
  • 실제 및 벤치마크 데이터셋에서 기준선 및 외부 자동 정리기와의 정량 평가를 제공한다.

제안 방법

  • Stage 1 (statement compilation) 은 내용을 Lean 골격으로 변환하고 가능한 자리 표시자를 두며, 프로젝트가 해석될 때까지 이를 수정한다.
  • Stage 2 (proof repair) 은 여전히 남아 있는 구멍을 목표 조건부 로컬 편집으로 수정하되 선언 서명을 고정한다.
  • VeriRefine: Lean 도구 체인 피드백이 목표 개선을 보여줄 때에만 편집을 커밋하는 Accept/Revert 원시적 방법이다.
  • Pinned Lean 환경은 재현 가능한 빌드와 진단 기반의 수용을 보장한다.
  • Patch에 대한 제안은 LLMs 또는 다른 에이전트로부터 올 수 있지만 확인은 strictly 도구 체인 주도이다.
Figure 1 : The M2F pipeline for project-scale automated formalization.
Figure 1 : The M2F pipeline for project-scale automated formalization.

실험 결과

연구 질문

  • RQ1고정된 환경에서 긴 형식의 수학 소스가 일관된 엔드-투-엔드 Lean 프로젝트로 변환될 수 있는가?
  • RQ2검증자 구동의 정제 루프가 프로젝트 규모에서 회귀 없이 모든 증명 구멍을 닫을 수 있는가?
  • RQ3일치된 진술 평가가 기준선 프로버 대비 증명 성공에 미치는 영향은 무엇인가?
  • RQ4Stage 2의 성능이 FATE-H와 같은 표준 벤치마크에서 최신 증명 시스템과 어떻게 비교되는가?

주요 결과

  • M2F는 479 페이지의 교과서에서 총 241 파일, 4,116 선언, 그리고 153,853 줄의 Lean 코드로 구축 가능한 Lean 라이브러리를 산출한다.
  • Stage 1은 Real Analysis, Convex Analysis, 및 Paper에서 100% statement-compile coverage (SCC)를 달성하고, 평균 수리 라운드 ARR ~0.08–0.42로 낮다.
  • Stage 2는 긴 형식 코퍼스에 대해 매칭된 진술에서 100% 증명 성공(PSR = 100%)을 달성한다.
  • 외부 FATE-H 벤치마크에서 Stage 2는 매칭된 진술 하에서 96% PSR에 도달하며 Seed-Prover 1.5(80%)를 능가한다.
  • 가벼운 감독 조건(+31 decl lemma map)에서 Stage 2는 FATE-H에서 97% PSR을 달성한다.
Figure 3 : FATE-H per-problem code length (non-empty lines) and outcome category. Colors indicate outcome: green = solved automatically, yellow = solved with lemma-map supervision, red = unsolved; the single wrong-statement instance is shown with a distinct style (see § 6.4 ).
Figure 3 : FATE-H per-problem code length (non-empty lines) and outcome category. Colors indicate outcome: green = solved automatically, yellow = solved with lemma-map supervision, red = unsolved; the single wrong-statement instance is shown with a distinct style (see § 6.4 ).

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.