Proxy-based small inversions and their automation: Submitted to the TYPES 2025 post-proceedings
Year: 2026
Type: preprint
Abstract: Inversion reasoning is a frequently used proof-pattern when using proof assistants. It derives premises allowing the construction of an inductive object, by enhancing its elimination principle. Several implementations of inversion already exist in Rocq, such as the inversion tactic or the Equations library's dependent elimination tactic. They rely heavily on the use of equality to perform replacement in the proof. In contrast, small inversion uses core mechanisms of type theory such as dependent pattern matching and large elimination in order to perform direct substitutions whenever possible rather than relying on intermediate equalities. We present a variant of small inversion called proxy-based small inversion. We show that it is suitable for both proofs and dependent programming as it generates explicit terms that are intended to be more readable and explainable than those produced by Rocq's inversion or Equations' dependent elimination. This method consists in mapping an indexed inductive type into simpler inductive types, built in such a manner that the case analysis on objects of these simpler types performs inversion on the corresponding objects of the original inductive type. The creation of the simpler types can be described as a series of transformations on inductive types that are iterated until a suitable form is obtained. The first contribution in this article is a general presentation of proxy-based small inversions. The second contribution is a definition and illustration of the different transformation steps. The third contribution describes the implementation of those transformations for Rocq inductive types using MetaRocq as a metaprogrammation framework.
Source: HAL
Language: English
Subfield: Software
Field: Computer Science
Domain: Physical Sciences
Keywords: inductive types, Coq, proof automation, case analysis
Open Access status: green
OpenAlex ID: W7126904450
