[Paper Review] Algebraic Foundations of Proof Refinement
This paper introduces Dependent LCF, a novel framework for tactic-based proof refinement in dependent type theory that supports subgoals with dependencies on prior proof evidence. By formalizing refinement rules using natural transformations and extending LCF with sequenced multitactics, the system enables breadth-first repetition and eliminates the need for non-local variable instantiation, successfully resolving the dependency problem in proof refinement.
We contribute a general apparatus for dependent tactic-based proof refinement in the LCF tradition, in which the statements of subgoals may express a dependency on the proofs of other subgoals; this form of dependency is extremely useful and can serve as an algorithmic alternative to extensions of LCF based on non-local instantiation of schematic variables. Additionally, we introduce a novel behavioral distinction between refinement rules and tactics based on naturality. Our framework, called Dependent LCF, is already deployed in the nascent RedPRL proof assistant for computational cubical type theory.
Motivation & Objective
- To address the dependency problem in LCF-style proof refinement, where subgoals in dependent type theory depend on evidence from prior subgoals.
- To eliminate the need for non-local instantiation of schematic variables by enabling subgoals to express dependencies on proof evidence.
- To formalize a distinction between refinement rules and tactics based on naturality, enhancing modularity and correctness.
- To provide a practical implementation in Standard ML that supports bidirectional type checking and complex type synthesis in computational cubical type theory.
Proposed method
- Introduces a category-theoretic foundation using natural transformations to model the behavioral distinction between refinement rules and tactics.
- Defines a refinement logic where subgoals may depend on evidence from earlier subgoals, using a sequent-style judgment system with input (blue) and output (maroon) modes.
- Develops a generic sequencing tactical 'seq' that composes tactics via a composite of functors and natural transformations.
- Employs Capretta’s delay monad to construct fixed-point combinators for recursive tacticals, enabling breadth-first repetition via multitactics.
- Implements the framework in Standard ML, using a multitactic-based repeat strategy to propagate substitutions across subgoals more effectively.
- Applies the framework to RedPRL, enabling correct and modular proof refinement in computational cubical type theory.
Experimental results
Research questions
- RQ1How can proof refinement be extended to support subgoals that depend on evidence from other subgoals in dependent type theory?
- RQ2What is the role of naturality in distinguishing refinement rules from tactics, and how does it improve modularity and correctness?
- RQ3Can recursive tacticals be constructed in a way that supports breadth-first, rather than depth-first, subgoal processing?
- RQ4How can the dependency problem in LCF-style proof assistants be resolved without relying on non-local variable instantiation?
- RQ5Can a unified framework for refinement and evidence semantics be built that supports bidirectional type checking and complex type synthesis?
Key findings
- The framework successfully resolves the dependency problem in proof refinement by allowing subgoals to depend on evidence from prior subgoals, eliminating the need for non-local instantiation.
- The use of naturality in the distinction between refinement rules and tactics enables a clean separation of concerns and improves compositional reasoning.
- Breadth-first repetition via multitactics ensures that substitutions propagate across subgoals more effectively than depth-first repetition.
- The implementation in RedPRL demonstrates that practical, usable extensional type theory systems are feasible with a sufficiently powerful refinement apparatus.
- The framework supports sophisticated type synthesis rules `a la bidirectional typing without requiring brittle or complex tactics.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.