Arnav Mehta

EECS Department, University of California, Berkeley

Technical Report No. UCB/EECS-2026-193

May 15, 2026

http://www2.eecs.berkeley.edu/Pubs/TechRpts/2026/EECS-2026-193.pdf

Proof assistants such as Lean4 offer machine-checkable verification of mathematical reasoning, but their adoption is limited by the syntactic and detail burden of formal languages. Large language models suggest a path forward through \emph{formal co-reasoning systems}: AI agents that help users construct and refine proofs in a formal language, even when the user cannot read the formal language directly. At the core of such systems is an \emph{auto-formalizer} that translates the user's natural-language reasoning into formal proofs. For feedback to be meaningful, this translation must faithfully preserve structure and content of a natural-language argument.

This thesis makes three contributions. First, we present an \textbf{agentic auto-formalization harness} comprising three modules—a proof scaffolder, a lemma prover, and a proof assembler—that accepts proofs as users naturally write them, including incomplete and incorrect ones. Second, we introduce an \textbf{evaluation framework} decomposing faithfulness into two measurable properties: \textbf{information preservation}, the degree to which the formalization captures the content of the natural-language argument; and \textbf{non-dilution}, the degree to which it avoids silently strengthening or completing the argument. We additionally introduce rubric-based scoring as a downstream measure of formalization granularity: by formalizing student responses to 65 linear algebra exam problems and scoring them against the course's grading rubric, we treat agreement with human graders as a proxy for whether the formalization is sufficiently fine-grained to detect substantive gaps in student reasoning. Third, we describe the \textbf{real-world deployment} of the auto-formalizer in LeanTutor, a co-reasoning tutor used to provide verified proof feedback to students in a linear algebra class at UC Berkeley (Spring 2026). As an additional contribution, we formalize singular values for finite-rank operators in Mathlib (PR #33731)


BibTeX citation:

@mastersthesis{Mehta:EECS-2026-193,
    Author= {Mehta, Arnav},
    Editor= {Ranade, Gireeja and Guruswami, Venkatesan},
    Title= {Faithful Auto-formalization for Education},
    School= {EECS Department, University of California, Berkeley},
    Year= {2026},
    Month= {May},
    Url= {http://www2.eecs.berkeley.edu/Pubs/TechRpts/2026/EECS-2026-193.html},
    Number= {UCB/EECS-2026-193},
    Abstract= {Proof assistants such as Lean4 offer machine-checkable verification of mathematical reasoning, but their adoption is limited by the syntactic and detail burden of formal languages. Large language models suggest a path forward through \emph{formal co-reasoning systems}: AI agents that help users construct and refine proofs in a formal language, even when the user cannot read the formal language directly. At the core of such systems is an \emph{auto-formalizer} that translates the user's natural-language reasoning into formal proofs. For feedback to be meaningful, this translation must faithfully preserve structure and content of a natural-language argument.

This thesis makes three contributions. First, we present an \textbf{agentic auto-formalization harness} comprising three modules—a proof scaffolder, a lemma prover, and a proof assembler—that accepts proofs as users naturally write them, including incomplete and incorrect ones. Second, we introduce an \textbf{evaluation framework} decomposing faithfulness into two measurable properties: \textbf{information preservation}, the degree to which the formalization captures the content of the natural-language argument; and \textbf{non-dilution}, the degree to which it avoids silently strengthening or completing the argument. We additionally introduce rubric-based scoring as a downstream measure of formalization granularity: by formalizing student responses to 65 linear algebra exam problems and scoring them against the course's grading rubric, we treat agreement with human graders as a proxy for whether the formalization is sufficiently fine-grained to detect substantive gaps in student reasoning. Third, we describe the \textbf{real-world deployment} of the auto-formalizer in LeanTutor, a co-reasoning tutor used to provide verified proof feedback to students in a linear algebra class at UC Berkeley (Spring 2026). As an additional contribution, we formalize singular values for finite-rank operators in Mathlib (PR \#33731)},
}

EndNote citation:

%0 Thesis
%A Mehta, Arnav 
%E Ranade, Gireeja 
%E Guruswami, Venkatesan 
%T Faithful Auto-formalization for Education
%I EECS Department, University of California, Berkeley
%D 2026
%8 May 15
%@ UCB/EECS-2026-193
%U http://www2.eecs.berkeley.edu/Pubs/TechRpts/2026/EECS-2026-193.html
%F Mehta:EECS-2026-193