Enhancing Interactive Theorem Prover Error Messages with Hints

Conference Paper (2026)
Author(s)

Maria Khakimova (Student TU Delft)

Sára Juhošová (TU Delft - Electrical Engineering, Mathematics and Computer Science)

Jaro Reinders (TU Delft - Electrical Engineering, Mathematics and Computer Science)

Jesper Cockx (TU Delft - Electrical Engineering, Mathematics and Computer Science)

Research Group
Programming Languages
DOI related publication
https://doi.org/10.4230/LIPIcs.ITP.2026.5 Final published version
More Info
expand_more
Publication Year
2026
Language
English
Research Group
Programming Languages
Article number
5
Publisher
Schloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
ISBN (electronic)
9783959774369
Event
17th International Conference on Interactive Theorem Proving, ITP 2026 (2026-07-26 - 2026-07-29), Lisbon, Portugal
Downloads counter
30
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

Abstract

Interactive theorem provers (ITPs) are promising tools for ensuring program correctness, but users often complain about their poor usability and steep learning curve. A common complaint, especially among new users, are confusing error messages that expose details of the ITP’s underlying theory or implementation details. In this work, we investigate how adding hints to three types of scope and type checking error messages in the Agda ITP affects the new users’ debugging experience. We evaluate the effectiveness and perceived helpfulness of those error messages by conducting a between-subjects user study where we provide a series of Agda code snippets, each containing a single error that the participants have to fix based on the error message. We measure the success rate, time taken to fix the error, and perceived helpfulness for each code snippet with the original as well as the enhanced error message and determine the statistical significance of adding the hint. Our results show that correct hints can improve the success rate and time taken to fix the error, and that error messages with hints are rated significantly more helpful than those without. Additionally, we find that while error messages with incorrect hints are often rated as more misleading, they do not significantly impact the success rate or time taken to fix the error. These results show that adding hints to error messages is a viable step on the path towards making ITPs more widely accessible.