First-Order Modal Logic in HOL: Deep and Shallow Embeddings with Automated Faithfulness (Extended Preprint)
This paper extends the deep-and-shallow embedding methodology from propositional to first-order modal logic within Isabelle/HOL by providing three distinct embeddings, developing necessary substitution machinery for quantifiers, and mechanizing the downward Löwenheim-Skolem theorem to automate a global faithfulness proof that reconciles deep validity with minimal-shallow interpretations over full domains.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are trying to teach a super-smart robot (let's call it "Isabelle") how to think about a universe where things can be true in some places but false in others, and where you can talk about "everyone" or "someone" in those places. This is the world of First-Order Modal Logic (FML). It's like a game of "What if?" mixed with a roll call of every possible person.
The problem is that Isabelle speaks a very precise, high-level language called Higher-Order Logic (HOL). To get Isabelle to understand our "What if?" game, the authors had to build three different bridges (embeddings) to translate our logic into Isabelle's language.
The Three Bridges
- The Deep Bridge (The Blueprint): This is like building a literal, physical model of the logic using Lego bricks. Every single rule, every "and," every "not," and every "for all" is a distinct brick in a giant structure. It's heavy and detailed, perfect for studying the shape of the logic itself, but it's hard for the robot to run fast on it.
- The Heavyweight Shallow Bridge (The Full-Service Hotel): This bridge is like a luxury hotel where every guest (every formula) gets their own room, and the room comes with its own map of the world, a list of all possible people, and a specific guide. It carries everything explicitly. It's very clear, but it's a bit bulky to carry around.
- The Lightweight Shallow Bridge (The Minimalist Tent): This is the paper's star player. It's a tiny, portable tent. Instead of carrying a full map and a list of everyone, it just carries a "world" and a "guide." It assumes the rest of the furniture is already there. It's so light that the robot can run its automatic reasoning tools (like "Sledgehammer" and "Nitpick") on it incredibly fast.
The Big Hurdle: The Surjectivity Problem
Here is where the story gets tricky. The authors wanted to prove that the Lightweight Tent and the Deep Blueprint were actually saying the exact same thing. They wanted to show that if a statement is true in the Blueprint, it's true in the Tent, and vice versa.
But there was a snag. The Lightweight Tent uses a guide (a variable assignment) that can only point to a countable number of people (like the natural numbers: 1, 2, 3...). However, the Deep Blueprint allows for a universe with an uncountable number of people (like all the real numbers on a line).
If the universe is huge and uncountable, a guide that can only point to a countable list of people can't possibly reach everyone. It's like trying to call roll for a stadium of a billion people using a list that only has room for a thousand names. The authors realized that if they tried to force the guide to reach everyone in an uncountable universe, the proof would break.
The Magic Solution: The Downward Löwenheim–Skolem Theorem
To fix this, the authors didn't try to make the guide reach the uncountable crowd. Instead, they used a mathematical magic trick called the (countable) downward Löwenheim–Skolem theorem.
Think of it like this: The authors proved that for any giant, uncountable universe, there exists a smaller, countable "shadow" universe that acts exactly the same way for the logic we care about. It's like finding a perfect, miniature model of a massive city where every street corner and building behaves exactly like the real thing, but the model is small enough to fit on a desk.
They showed that even if the real world is uncountably huge, we can always shrink it down to this countable shadow. Since our Lightweight Tent's guide can reach everyone in this countable shadow, the bridge between the Tent and the Blueprint becomes solid again. The authors proved this works, meaning they didn't just guess or simulate it; they constructed a rigorous mathematical argument that holds up in Isabelle.
What They Didn't Do (The "No" List)
It's important to know what this paper doesn't do, so we don't get the wrong idea:
- No Varying Domains: They didn't solve the problem where the list of people changes from world to world (like in some sci-fi stories where people are born or die between dimensions). They stuck to a constant domain, meaning the same set of people exists in every possible world.
- No Equality: They didn't include a special "equals" sign () in their logic. They focused on relationships between things, not on whether two things are identical.
- No Infinite Worlds (Yet): To make their countable shadow work, they had to assume the number of worlds is also countable. They admitted that handling a universe with an uncountable number of worlds is a job for future work.
The Result: A Verified Connection
The authors didn't just suggest this works; they mechanized the proof inside Isabelle. They built the substitution machinery (the tools to swap variables without breaking things) and proved that:
- The Deep Blueprint and the Lightweight Tent are faithful to each other.
- You can prove things in the fast, lightweight Tent, and those proofs are guaranteed to be true in the heavy, detailed Blueprint.
- They tested this by checking famous logic rules (like the K-axiom and the Barcan formulas) and confirming they hold up.
In short, the authors built a super-efficient, lightweight way to let a computer reason about complex "what-if" scenarios with quantifiers, and they mathematically proved that this shortcut doesn't skip any important details, even when the universe of possibilities is infinitely large. They turned a potential dead-end (the uncountable domain problem) into a solved puzzle using a clever mathematical shrinking trick.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.