Optimising Metamath Proofs for Human Working Memory
Abstract
Mathematical proofs vary in legibility. While most proof optimisation techniques seek to minimise proof size, the strategic reordering of inferences can reduce the working memory demand of proof checking without altering overall size. Metamath serves as a prime case study for this approach: its verification architecture requires proof steps to be ordered in a manner that prioritises algorithmic efficiency over readability. In this paper, we introduce algorithms to minimise both peak and cumulative memory consumption, applying the latter as a novel proxy for sustained human cognitive effort. We achieve this by representing proofs as directed acyclic graphs and modelling their execution as a pebbling game. Finding an optimal ordering via brute force is computationally infeasible, so we use heuristics to provide approximations. We apply these algorithms across Metamath's ZFC set theory library and present case studies demonstrating how automated reordering systematically improves the presentation of formal mathematics.
Create a lesson
Metadata
- Comments
- Submitted version. A revised version is to appear in CICM 2026, LNAI, Springer
Related papers
Homotopy Type Theory and Elementary ∞-Toposes: Proof of the Internal Language Conjecture
Shared title terminologycs.LOYoshihiro Maruyama
From Proof Construction to Independent Checking: Reproducing the Lean Verification of RH and Dirichlet GRH on AArch64
Shared title terminologycs.LOZoltán Gábor Molnár
ProofVMM: A Maturity Model for Auditing Lean Proofs
Shared title terminologycs.LOGustas Mickus, Linas Petkevicius
LeanSafeHRC: Verified Executable Runtime Safety Monitoring for Human-Robot Collaboration
Shared title terminologycs.LOAdnan Rashid
Does a Trivially True Predicate Invalidate a Kernel-Checked Proof? An Independent Build and Dependency Audit of the Alpöge Lean Archive for the Riemann Hypothesis
Shared title terminologycs.LOEryk Schiller
Semantic Entropy of Compressed Proofs: Sheaf Geometry and Quantum Verification of DLDS Certificates
Shared title terminologycs.LOEdward Hermann Haeusler, Lorenzo Saraiva