arXiv:2610.08214cs.AIOct 2026

Manuscript Offprint

arXiv:2610.08214

Mathematical Proof Assistants for Teaching Logic: The LogiKEy Methodology

Christoph Benzmüller, David Fuenmayor, Luca Pasetto

Abstract

We report on an approach to teaching logic to mixed groups of computer science, mathematics, and philosophy students, based on the logico-pluralistic LogiKEy methodology, used for more than a decade in courses, summer schools, and tutorials. LogiKEy uses classical higher-order logic (HOL) as a universal meta-logic in which object logics, classical and non-classical alike, are encoded by defining their semantics; through these semantical embeddings a single proof assistant (e.g. Isabelle/HOL), with its automated theorem provers and (counter-)model finders, becomes one environment in which students learn, experiment with, and compare logics. After making the pedagogical case for proof assistants in the logic classroom, we present a graded sequence of classroom examples, each transition motivated by a limitation of the preceding representation, by a need for more explicit modelling resources, or by a new application. A liars-and-truth-tellers puzzle leads from propositional to modal logic; the Wise Men puzzle leads on to dynamic epistemic logic; Boolos's curious inference illustrates what a higher-order meta-logic buys, even for automated proof search; Chisholm's paradox takes the sequence into deontic logic, and from standard to dyadic deontic logic; and Gödel's ontological argument brings it to a research-level metaphysical argument. We then rebut the objection that embedding everything in classical HOL is monism rather than pluralism, reflect on three years of teaching such a course, and sketch the portability of the approach beyond Isabelle.

Christoph Benzmüller

Otto-Friedrich-Universität Bamberg, Germany, and Freie Universität Berlin, Germany, e-mail: christoph.benzmueller@uni-bamberg.de

David Fuenmayor

Otto-Friedrich-Universität Bamberg, Germany, e-mail: david.fuenmayor@uni-bamberg.de

Luca Pasetto

University of Luxembourg, Luxembourg, e-mail: luca.pasetto@uni.lu

C. Benzmüller, D. Fuenmayor, L. Pasetto

1 The Logic Pluralism Challenge in Logic Education

Logic is a mandatory, and notoriously demanding, subject in the curricula of several disciplines at once. In computer science it underpins verification, knowledge representation, and the theory of computation; in mathematics it supplies the language of proof; in linguistics it underpins the formal semantics of natural language; and in philosophy it is at once a tool and an object of study. Yet these audiences arrive with very different backgrounds, motivations, and tolerances for formalism. Teaching logic well is therefore, first of all, an interdisciplinary challenge: the same room may hold a student who programs fluently but has never written a proof, one who writes rigorous proofs but has never seen them checked by a machine, and one who argues subtly in natural language but freezes at a quantifier [72, 14].

A second challenge concerns content. The applications that make logic attractive today (artificial intelligence, natural-language semantics, the formal analysis of law and ethics) routinely require reasoning beyond classical first-order logic: modal, deontic, epistemic, temporal, and many further non-classical logics, often in combination. The traditional response is to teach each such logic with its own syntax, its own proof calculus, and, where tool support exists at all, its own software. For a mixed and time-limited student audience this fragmentation is costly: every new logic looks like a fresh start, and the conceptual thread (what all these logics have in common, and how they differ) is easily lost.

This chapter reports on an approach that addresses both challenges together. Its guiding idea is to fix a single, sufficiently expressive meta-logic, classical higher-order logic (HOL), and to obtain the many object logics of interest inside it, by means of semantical embeddings: encodings that define, within HOL, the semantics of each object logic. 1^{1} A single proof assistant, in our courses Isabelle/HOL, then provides one uniform working environment, complete with automated theorem provers and (counter-)model finders, in which a heterogeneous student group can learn, experiment with, and, crucially, compare logics. This is the pedagogical face of the LogiKEy methodology for logic and knowledge engineering [20, 15, 6, 14].

Our thesis is that such a platform lets a mixed cohort learn many logics uniformly, with immediate machine-checked feedback, along a single path that runs from elementary logic puzzles up to research-grade arguments in ethics and metaphysics. In the vocabulary of this volume, the approach answers its three organising questions at once. How to teach logic: by machine-supported, exploratory practice. What tools to use: a general-purpose proof assistant repurposed for teaching. What to teach: a plurality of logics, presented uniformly rather than in isolation. The last point connects our proposal to the broader case, made elsewhere in this volume,

1^{1} “Semantical embedding” is the term established in the LogiKEy literature; what is embedded into HOL is the semantics of the object logic. Despite the surface similarity, the term is unrelated to the vector “embeddings” of machine learning. Sect. 2.2 explains the technique by example.

for teaching logic in a pluralistic and application-aware spirit; 2^{2} what we add is a concrete, executable way to realise it in the classroom.

In sum, this chapter contributes (i) a pedagogical case for teaching many logics uniformly within a proof assistant; (ii) a graded sequence of classroom examples, from a liars-and-truth-tellers puzzle to Gödel's ontological argument, in which each transition is motivated by a limitation exposed in the preceding representation, by a need for more explicit modelling resources, or by a new application, so that students examine different reasons for changing a logic or its formalisation. It further contributes (iii) an account of the supporting tools, including automated assessment and a Kripke-model visualiser, and (iv) a reflection on three years of teaching such a course to a mixed audience.

A word on what is, and is not, new. LogiKEy itself is an established research programme, and a two-page abstract under the same title [14] already sketched the idea of teaching with it. What is new here is the worked course and its rationale (Sect. 4), the tools that make it usable by non-specialists (Sect. 5), the positioning of the meta-logical stance against the charge of monism (Sect. 2.4), and a sketch of portability to other proof assistants (Sect. 7). Underlying all of these is one thread we ask the reader to follow: what is gained is not simply that a proof assistant is used, but that a single expressive meta-logic is. Its expressiveness buys an economy of formalisation, since each further object logic is a set of definitions rather than a new system; that economy in turn buys automation, since every embedded logic inherits the same provers and model finders; and only on top of these does the teaching application rest. Boolos's inference (Sect. 4.3) shows that the first of these steps can pay off even where one would least expect it. The chapter belongs to the Programmes part of this volume: it describes a methodological infrastructure and a concrete teaching application, not an empirical study of learning.

We write for logic educators and for readers from philosophy, mathematics, and computer science who have not necessarily used a proof assistant. A basic acquaintance with propositional and modal logic suffices. The Isabelle/HOL listings are illustrative and can be read as annotated pseudo-code; no knowledge of Isabelle, type theory, or programming is assumed, and the same holds for the students in the course described below. Adopting the infrastructure is a different matter: instructors will find the complete, machine-checked sources openly available (Sect. 7), but putting them to work does require an initial investment in the tools.

References (69)