[Paper Review] Theorem Proving in Dependently-Typed Higher-Order Logic -- Extended Preprint
This paper introduces DHOL, a dependently-typed extension of higher-order logic (HOL) that retains HOL's intuitive syntax and classical logic while supporting term-dependent types. It achieves this by extending HOL with dependent function types, dependent implications, and a single undecidable equality, and implements it via a preprocessor translating DHOL to HOL, enabling theorem proving in a familiar framework with advanced type dependency.
Higher-order logic HOL offers a very simple syntax and semantics for representing and reasoning about typed data structures. But its type system lacks advanced features where types may depend on terms. Dependent type theory offers such a rich type system, but has rather substantial conceptual differences to HOL, as well as comparatively poor proof automation support. We introduce a dependently-typed extension DHOL of HOL that retains the style and conceptual framework of HOL. Moreover, we build a translation from DHOL to HOL and implement it as a preprocessor to a HOL theorem prover, thereby obtaining a theorem prover for DHOL.
Motivation & Objective
- To bridge the gap between HOL’s usability and DTT’s expressiveness by extending HOL with dependent types while preserving classical logic and intuitive syntax.
- To address the challenge of integrating dependent types into HOL without sacrificing the simplicity and automation support of HOL.
- To enable theorem proving in a dependently-typed system by translating DHOL to an existing HOL theorem prover via a preprocessor.
- To explore the practical feasibility of undecidable type-checking in a theorem proving context, arguing it is acceptable given the high cost of proof search.
- To formalize dependent connectives such as dependent implication and conjunction, which are not definable from equality alone.
Proposed method
- Extends HOL with dependent function types (Π x:A. B(x)) and a single, undecidable equality relation =A, replacing the need for separate definitional and propositional equalities.
- Introduces dependent implication (F ⇒ G) where G is checked under the assumption that F holds, requiring a context that alternates between variable declarations and assumptions.
- Defines dependent conjunction and disjunction as non-commutative connectives, modeling short-circuit evaluation, and treats them as primitives rather than definable from equality.
- Designs DHOL contexts as alternating lists of variable declarations and logical assumptions to resolve interdependencies between type well-formedness and logical assumptions.
- Develops a preprocessor that translates DHOL expressions into equivalent HOL expressions, enabling integration with existing HOL theorem provers.
- Uses a normalization-based type system with validity assumptions to ensure well-typedness and support proof reconstruction in the target HOL system.
Experimental results
Research questions
- RQ1Can a dependently-typed logic be built on top of HOL while preserving its intuitive syntax and classical logic?
- RQ2Is undecidable type-checking a practical barrier when the primary goal is theorem proving, given the high cost of proof search?
- RQ3Can dependent connectives like implication and conjunction be meaningfully integrated into HOL without breaking its foundational structure?
- RQ4How can type dependencies be encoded in a way that maintains compatibility with existing HOL provers?
- RQ5Can a preprocessor translation from a dependently-typed logic to HOL preserve both expressiveness and proof soundness?
Key findings
- The paper successfully defines DHOL as a conservative extension of HOL that supports dependent types while retaining classical Booleans and a single equality relation.
- It demonstrates that undecidable type-checking is acceptable in practice, as the cost of type-checking is negligible compared to the cost of proof search in ATPs.
- The authors show that dependent implication and conjunction cannot be defined from equality alone and must be taken as primitives in DHOL.
- The preprocessor translation from DHOL to HOL is sound and enables the use of existing HOL theorem provers for proving theorems in the extended logic.
- The paper formalizes a context system that alternates between variable declarations and assumptions, resolving type dependency issues arising from term-dependent types.
- The implementation shows that integrating dependent types into HOL is feasible and practical, especially as ATP support for HOL continues to improve.
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.