Proof Repair and (Co)algebra Equivalences
E. G Plante, Eric Paul, Cosmo Viola, G. A. Kavvos, Talia Ringer
Abstract
Maintaining formal proofs in response to breaking changes in their dependencies is a major challenge of proof engineering. Proof repair is a kind of proof automation that lessens the burden of this challenge by automatically adapting proofs in response to those changes. While proof repair is well understood through an algorithmic lens, it has, until now, been poorly understood through a theoretical lens. We address this gap by giving the first foundational treatment of proof repair, focusing in particular on type-theoretic proof repair in response to changes in datatypes. Our key insight is that the core component of a proof repair algorithm---a ``configuration''---is exactly an algebra isomorphism. We formalize and prove this insight, answering open questions from prior work. We then take this one step further and show that, by taking the dual of this representation, we obtain proof repair over coinductive types. All of our results are formalized in Agda.
Create a lesson
Related papers
Curriculum proof repair with learned counterexamples
Shared title terminology · Yuechun Sun, Jun Yang, Kexin Pei
Composable Rewrites for Layouts of Algebraic Data Types
Shared title terminology · Christophe Gyurgyik, Alexander J Root, Benjamin Driscoll et al.
C-to-Rust Translation Validation at the LLVM IR Level via AI-Assisted Refinement Proof
Shared title terminology · Eunsu Kim, Sukyoung Ryu, Jaemin Hong
An Algebraic Perspective on Operational Semantics
Shared title terminology · Eric Bond, Max New
Parametric Proof-Carrying Compilation for Quantum Error-Correction
Shared title terminology · John Zhuoyang Ye, Jens Palsberg
Keel: A Verified In-Kernel Proof Checker for Proof Carrying BPF
Shared title terminology · Yalu Cai, Tung-Che Chang, Santosh Nagarakatte