HOL in HOL over a set-theoretic universe: consistency of NK with infinity and choice

Christoph Benzmüller 📧 and Daniel Kirchner 📧

September 10, 2026

This is a development version of this entry. It might change over time and is not stable. Please refer to release versions for citations.

Abstract

This companion to the entry A deep embedding of HOL in HOL certifies the natural-deduction calculus NK of that entry consistent with a genuine Dedekind-style axiom of infinity — an injective, non-surjective self-map of the individuals — and, because its standard model has full function spaces, with the relational axiom of choice as well. Such an axiom has no finite models, so the compactness argument of the main entry — which lifts arbitrarily large finite models to an infinity scheme — does not apply: a genuinely infinite model is required. We construct one over Paulson's ZFC_in_HOL: the individuals are interpreted as the finite ordinals ω, with full function spaces at every type, yielding a standard Σ-model of NK over the set-theoretic universe V. As this meta-theory is stronger and non-conservative, the guarantee is relative consistency at ZF strength; the machine-checked formalisation lives in Isabelle/HOL with Paulson's ZFC_in_HOL (the ZF reading is metatheoretic, made precise in the introduction). Because NK already provides extensionality and typed description (after Andrews), this certifies the consistency of full classical higher-order logic in Church's sense, choice included as a separate relational scheme.

The infinity axiom and the weaker infinity scheme of the main entry turn out to be logically independent. That the scheme does not entail the axiom is shown in the main entry; the present entry settles the other direction, since the axiom does not entail any of the scheme's individual inequalities: its set-theoretic model interprets all individual constants alike, so those inequalities fail while the axiom holds. Neither sentence, then, implies the other.

The plain-HOL results — soundness, Henkin completeness, and finite-model consistency, including the compactness route to the infinity scheme — are proved in the main entry and imported here unchanged. What the present entry adds is the set-theoretic route to axioms that plain HOL alone cannot model.

This contribution is part of the LogiKEy project.

License

BSD License

Note

Parts of this formalisation and its documentation were drafted interactively with a generative AI assistant (Anthropic's Claude), used under continuous human direction. All proofs are machine-checked by Isabelle; the entire development, including all comments and references, was subsequently reviewed, revised and simplified by the authors, who take full responsibility for its content.

Topics

Related publications

  • Benzmüller, C., Brown, C. E., & Kohlhase, M. (2004). Higher-order semantics and extensionality. Journal of Symbolic Logic, 69(4), 1027–1088. https://doi.org/10.2178/jsl/1102022211
  • https://isa-afp.org/entries/HOL_in_HOL_Deep.html

Session HOL_in_HOL_Deep_Infinity_ZFC