TRANSMISSION // 2607.10880v3
How to Check That Two Logical Encodings Mean the Same Thing
Source published
An Isabelle/HOL development connects first-order modal logic to higher-order logic in three ways, with machine-checked proofs that the encodings preserve validity under constant-domain Kripke semantics.

Modal logic lets statements vary across possible worlds; first-order logic lets them quantify over individuals. Combining the two creates a challenge for automated reasoning: how can a proof assistant use a convenient encoding without changing what the logic means? This preprint presents three encodings and formal proofs linking them.
Why encode one logic in another?
First-order modal logic combines two familiar ideas. It can say that something is true at a possible world, or at every accessible world, while also quantifying over individuals. For example, a formula might assert that every individual has a property necessarily—or that someone has the property at some accessible world.
To reason about such formulas with a proof assistant, researchers can translate them into a logic the software already supports. But a translation is useful only if it preserves meaning. If the encoded formula has a different truth condition from the original, an automated proof may be mathematically correct in the host system yet irrelevant to the intended logic.
Christoph Benzmüller and Daniel Kirchner’s preprint builds and compares three translations of first-order modal logic into Isabelle/HOL, a higher-order logic supported by the Isabelle proof assistant. Their central goal is to establish faithfulness: that the encodings agree with the original logic about validity, under the semantics the authors specify.
Three ways to represent formulas
The authors use a deep embedding, where formulas are represented as pieces of syntax in an explicitly defined data structure. This makes it possible to reason about the formulas themselves—for example, how substitution works. The trade-off is that an automated prover may need extra help to reason through that syntax.
The maximal shallow embedding translates formulas into higher-order logic while keeping their semantic inputs explicit: the possible worlds, accessibility relation, interpretation of predicates, individual domain, variable assignment and current world. The minimal shallow embedding makes most of those inputs fixed parameters in an Isabelle structure called a locale, leaving the current world as the argument that varies during evaluation. This lighter representation is intended to make Isabelle’s existing proof automation easier to use.
The paper proves machine-checked results relating the deep and shallow versions. In particular, its global faithfulness theorem says that validity across all interpretations of the minimal-shallow locale corresponds exactly to validity in the deep embedding. The authors also demonstrate proofs of familiar modal principles and show that Isabelle’s countermodel tool, Nitpick, can find finite countermodels for invalid examples.
The technical obstacle: uncountable domains
The minimal embedding uses a variable assignment from a countable set of variable names—the natural numbers—to individuals. Such an assignment cannot cover an uncountable domain. At first glance, that seems to leave a gap: the deep semantics allows quantifiers to range over the full domain, while the shallow encoding’s assignment can reach only countably many individuals.
The authors address this with a mechanised version of the downward Löwenheim–Skolem theorem for their setting. In broad terms, the theorem allows them to find a countable submodel that preserves the truth of formulas while covering the individuals and worlds needed for the argument. They construct the smaller model by repeatedly adding witnesses: individuals required by existential statements and accessible worlds required by modal statements. A Tarski–Vaught-style test is used to establish that truth is preserved. This lets the faithfulness result apply even when the original individual domain or world universe is uncountable.
First-order quantification also requires machinery that propositional modal logic does not: tracking free and bound variables, renaming variables safely, and substituting without accidentally changing which variables a formula refers to. The development formalises these operations and uses them in the proofs linking the encodings.
What the result does—and does not—show
The contribution is a formal foundation for automated reasoning in a particular logic, not an experiment showing that the system solves practical AI tasks better or faster. The paper’s setting is classical first-order modal logic with constant domains: the same individuals are available at every world, and variables keep the same assignment when evaluation moves between worlds. The formal language uses binary relation symbols and omits primitive equality. The authors discuss ways to encode other predicate arities, but equality and varying-domain semantics are outside the development as presented.
The authors report that the Isabelle files load in Isabelle2025-2 and Isabelle2026 and are included as ancillary files with the preprint. That makes the formalisation available for inspection, but it does not by itself establish independent replication or wider adoption. The source is an arXiv extended preprint; this article relies on its text, not an independent review of the Isabelle files. The authors also describe varying-domain and other modal systems as future directions, so the results should not be read as covering every form of modal logic.
Within those boundaries, the work shows how a proof assistant can support both readable, automation-friendly representations and explicit reasoning about syntax—while providing formal checks that the two remain connected.
- first-order modal logic
- Isabelle/HOL
- formal verification
- Kripke semantics
- logic embeddings
- automated reasoning
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
Verifying the Verifier: Safer Neural Network Checks
Source published
Shared keywords: isabelle hol
Building Theorems from Carefully Designed Contradictions
Source published
Shared keywords: automated reasoning
What Formal Verification Can—and Cannot—Show About Cognitive Models
Source published
Shared keywords: formal verification
Teaching AI to Write Code It Can Prove
Source published
Shared keywords: formal verification
Why Passing Tests May Not Prove an AI Patch Is Correct
Source published
Shared keywords: formal verification