Don't Sweat Interaction Trees: Proof-Guided Local Variable Lifting for Interaction Trees
Abstract
Verifying existing software is hard: Programs are developed in languages not amenable to verification, involve complicated optimizations that obscure the underlying logic, and are gigantic in size. In this paper, we propose a way to ease this pain via a simplification framework that employs interaction trees as a language-agnostic interface. We show that local variable lifting, the technique underlying AutoCorres for the Simpl language, can be generalized to interaction trees via an implementation in Rocq. A key challenge with simplifying interaction trees is that they are highly dynamic structures and we would like our approach to work with mostly uninterpreted trees. We address this challenge via metaprogramming. Our metaprogramming framework is semi-automatic and proof-guided, i.e.ie we obtain the simplified code via a constructive proof of equivalence that can be automated via proof tactics, by utilizing Rocq’s Derive extension. This approach gives us simplified code and the equivalence theorem in one step. We demonstrate that our approach is practical using examples inspired by real-world applications.
BibTeX
@inproceedings{lin2026don,
author = {Yiming Lin and Ian Kariniemi and Yao Li},
title = {{Don't Sweat Interaction Trees: Proof-Guided Local Variable Lifting for Interaction Trees}},
booktitle = {Open MIND},
year = {2026},
doi = {10.5281/zenodo.20337843},
}Ask Althea to put this paper to the test.
Loading related content...