Skip to main content
QUICK REVIEW

[Paper Review] Hybrid: A Definitional Two-Level Approach to Reasoning with Higher-Order Abstract Syntax

Amy Felty, Alberto Momigliano|arXiv (Cornell University)|Nov 26, 2008
Logic, programming, and type systemsComputer Science72 references13 citations
TL;DR

This paper presents Hybrid, a definitional two-level framework that combines higher-order abstract syntax (HOAS) with (co)inductive reasoning in Isabelle/HOL and Coq. By using a de Bruijn-based definitional layer to encode HOAS terms, Hybrid enables consistent, modular reasoning with object logic inference rules through a specification logic layer, eliminating the need for ad hoc axioms and supporting elegant, automation-friendly proofs of properties like type soundness.

ABSTRACT

Combining higher-order abstract syntax and (co)induction in a logical framework is well known to be problematic. Previous work described the implementation of a tool called Hybrid, within Isabelle HOL, which aims to address many of these difficulties. It allows object logics to be represented using higher-order abstract syntax, and reasoned about using tactical theorem proving and principles of (co)induction. In this paper we describe how to use it in a multi-level reasoning fashion, similar in spirit to other meta-logics such as Twelf. By explicitly referencing provability in a middle layer called a specification logic, we solve the problem of reasoning by (co)induction in the presence of non-stratifiable hypothetical judgments, which allow very elegant and succinct specifications of object logic inference rules.

Motivation & Objective

  • To address the challenge of combining higher-order abstract syntax (HOAS) with (co)inductive reasoning in logical frameworks.
  • To provide a consistent, definitional framework that avoids ad hoc axioms such as extensionality and freeness of HOAS constructors.
  • To support elegant, modular proofs of object logic properties—such as subject reduction—using tactical theorem proving and (co)induction.
  • To enable the use of multiple specification logics (e.g., intuitionistic and linear logic) without changing the underlying infrastructure.
  • To facilitate fast prototyping of new object logics by building on standard proof assistants with minimal modifications.

Proposed method

  • Represent object logics using higher-order abstract syntax (HOAS) within a meta-language based on a lambda-calculus.
  • Introduce a definitional layer using de Bruijn indices to encode lambda-terms, ensuring consistency via type theory.
  • Use a specification logic (e.g., intuitionistic or linear logic) to express hypothetical and parametric judgments for (co)inductive reasoning.
  • Encode inference rules of object logics as higher-order predicates in the specification logic, enabling reasoning over open terms.
  • Leverage the automation and tactical reasoning features of Isabelle/HOL and Coq to support proof development.
  • Prove that key properties—such as cut elimination and consistency—hold at the specification logic level, reusable across different object logics.

Experimental results

Research questions

  • RQ1How can higher-order abstract syntax (HOAS) be combined with (co)inductive reasoning in a logically consistent and modular way?
  • RQ2Can a definitional two-level architecture eliminate the need for ad hoc axioms like extensionality and constructor freeness in HOAS?
  • RQ3To what extent can multiple specification logics be supported within a single framework without modifying the core infrastructure?
  • RQ4Can the framework support elegant, modular proofs of complex properties like type soundness without technical lemmas?
  • RQ5How can the integration with standard proof assistants like Isabelle/HOL and Coq be leveraged to improve automation and usability?

Key findings

  • The Hybrid framework successfully supports reasoning with higher-order abstract syntax using (co)induction without relying on ad hoc axioms, as freeness and extensionality of HOAS constructors are derived as theorems.
  • The two-level architecture allows the same object logic to be reasoned about using different specification logics, such as intuitionistic and ordered linear logic, with minimal changes to the encoding.
  • Proofs of key properties like subject reduction can be constructed directly and elegantly, avoiding technical lemmas foreign to the mathematical content of the problem.
  • The framework benefits from the automation and interactive theorem proving features of Isabelle/HOL and Coq, significantly improving mechanizability and maintainability of proofs.
  • The approach enables fast prototyping of new object logics by reusing the definitional layer and specification logic infrastructure, reducing the need to build systems from scratch.
  • The framework supports the integration of advanced features such as lightweight tactics and code generation via tools like OTT, enhancing scalability for large formalizations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.