arXiv:2610.02449cs.PLOct 2026

Manuscript Offprint

arXiv:2610.02449

Proof Interfaces for Exploratory Mathematics

Nishant Kheterpal, Matthew Keenan, Cyrus Omar, Jean-Baptiste Jeannin

Abstract

This paper describes a mathematics interface intended for both educational applications and exploratory mathematics. Both learners and mathematics practitioners often use pen and paper or a whiteboard to perform equational reasoning, manipulate expressions, or construct proofs. These workflows lead to a variety of problems: transcription errors, tedious writing and notation, and/or unclear standards for proof justification. We extend the Hazel Prover, an equational-reasoning interface in the Hazel live programming environment, to add capabilities for exploratory mathematics, with varying levels of verbosity and automation aimed at both students and expert users. Students require more deliberate practice when learning mathematical concepts and correspondingly more verbose justifications, while experts may benefit from significant mathematical automation. With this in mind, our interface supports multiple levels of mathematical automation and simplification, grounded in a rewrite search architecture. For expert users, motivated by a gap in the accessibility of formal methods, we support proof export to the Rocq theorem prover, extending this rewrite search to proof tactics. This paper closes with several case studies covering elementary- to college-level mathematics.

1 Introduction

Both learners and mathematics practitioners conduct “exploratory math”: the kinds of open-ended rewriting of terms and bounding of quantities that are often done on a whiteboard. This whiteboard work, while frequently useful for creative purposes, suffers from significant friction: rewriting terms is tedious, and small errors (flipping + to -, for example) are easily made and hard to notice. Results need to be preserved or shared, by typesetting the derivation in LTEX, copying it onto paper for submission, or photographing the whiteboard.

Expert users may conduct math directly in LTEX, where copying lines is trivial but the syntax may become tedious, especially for constructs like matrices. Meanwhile, computer algebra systems such as Mathematica [19], SymPy [8], Maple [6], or MATLAB [14] work well to solve expressions or perform fixed, known transformations on expressions or equations, but do not permit the open-ended exploration needed to bound terms or prove theorems.

Students, on the other hand, require more deliberate practice when learning mathematical concepts and correspondingly more verbose justifications and less automation than experts. These students may still struggle, in particular when learning formal proof, to break down an argument into sufficiently small steps, or to apply new rules correctly [18]. An instructor might structure practice by limiting the available rules or controlling step granularity.

Nonetheless, both groups of users could benefit from a “digital whiteboard” that adds structure to their work. For experts, this interface must permit open-ended exploration while ensuring incremental correctness. Students, on the other hand, require less automation but a different sort of structure: guidance and scaffolding to help practice mathematical concepts while abstracting away others. These needs motivate varying the mathematical capabilities, automation, and simplification the interface provides.

Full-scale proof assistants offer industry-standard verification capabilities but can be difficult to use for non-experts. Rocq [15], Lean [2], and Isabelle [10] have been used in educational settings and to formalize mathematics. However, the learning curve and syntax can challenge even experts. Educational proof assistants with simplified interfaces and abstractions have been built, such as Waterproof, based on Rocq, which has been used to teach real analysis in the past [16, 17]. Similar systems have been built based on Lean [7, 9]. Graphical tools such as Edukera teach proofs visually [13]. Tools aimed beyond proofs such as GeoGebra [4], Graspable Math [12], and MathXPert [1] inspired parts of our design.

In this work, we present an extension of the Hazel Prover, an existing equational reasoning interface, to support exploratory mathematics. Past work using the Hazel Prover focused on the development and deployment of the prover in classrooms for teaching structural induction proofs [5]. The Hazel Prover is built in Hazel, a live programming environment that supports direct manipulation of program structure [11]. The existing educational uses of the Hazel Prover led to a natural second question: can a powerful exploratory interface also be used to teach more basic mathematics? Similar levels of automation in the broader Hazel Prover were found to be valuable for teaching in deployments in college-level programming languages courses [5].

For practitioners in applied fields such as aerospace engineering and physics, this work also connects to the accessibility of formal methods. These practitioners regularly engage in rigorous mathematical reasoning — deriving equations of motion, linearizing dynamics, and discretizing continuous systems — yet formal methods training is not part of their background. We aim to lower the barrier to using formal

Kheterpal et al.

methods for symbolic reasoning by developing a platform in which users can manipulate equations or expressions and emit a formal proof of their steps at the end.

Our contributions are the design and implementation of an interface for exploratory mathematics; a customizable rewrite search architecture (Section 3) supporting mathematical capabilities organized by educational level and automation ranging from single steps to simplification; formal proof export from step-by-step derivations; and case studies investigating suitability for tasks from order of operations through algebra and calculus to exploratory numerical methods (Section 4). Section 2 describes the interface's design goals.