Stream: Mirror: Isabelle Users Mailing List

Topic: [isabelle] New in the AFP: A deep embedding of HOL in HOL...


view this post on Zulip Email Gateway (Aug 07 2026 at 14:37):

From: Lawrence Paulson <lp15@cam.ac.uk>
Subject: [isabelle] New in the AFP: A deep embedding of HOL in HOL: soundness, completeness, consistency

You wait forever for a treatment of higher-order logic and suddenly two come along. But this entry exhibits quite different techniques compared with the completeness proof for Q0 that was announced yesterday.

Larry

A deep embedding of HOL in HOL: soundness, completeness, consistency
by Christoph Benzmüller and Daniel Kirchner

This entry presents a minimal, machine-checked deep embedding of classical higher-order logic (HOL) in Isabelle/HOL, following the article Higher-Order Semantics and Extensionality by Benzmüller, Brown and Kohlhase (Journal of Symbolic Logic 69(4), 2004; henceforth BKK). Throughout, HOL means Church's simple theory of types: it is the embedded object logic, while Isabelle/HOL serves as the ambient meta-logic. The language is formalised in a locally nameless representation, which makes BKK's convention of identifying α-equivalent terms literally true and eliminates capture-avoiding substitution and renaming machinery altogether. The semantics is rendered abstractly, following BKK: applicative structures, Σ-evaluations (D, @, E) subject to BKK's four conditions on the evaluation function, Σ-models (D, @, E, υ), and the class Mβfb of Σ-Henkin models (BKK's property q is automatic here, since primitive equality is part of the signature). Standard models arise as the full special case, and the familiar recursive denotation over frames enters only as the canonical way of constructing concrete models.

On this basis we prove the natural-deduction calculus NK of BKK sound (including BKK's evaluation-variant argument) and complete in the sense of Henkin, via BKK's abstract-consistency and model-existence method, with the term model realised as a term evaluation. Completeness is established in a form stronger than BKK's: it holds at every infinite value carrier, for every signature with infinitely many parameters, and for open formulas. Consistency follows by exhibiting a concrete Σ-standard model over finite domains. The signature includes BKK's optional primitive equality and — going beyond BKK, following Andrews' General Models, Descriptions, and Choice in Type Theory (1972) — typed description operators. As an illustration, Cantor's theorem is derived inside NK, in surjective and injective form and at every type. To the best of our knowledge, this is the first machine-checked completeness proof for a deep embedding of HOL in HOL. This contribution is part of the LogiKEy project.

https://isa-afp.org/entries/HOL_in_HOL_Deep.html


Last updated: Aug 12 2026 at 20:47 UTC