Mechanized Undecidability of Higher-order beta-Matching (Extended Version)
This paper presents a novel, mechanized undecidability proof for higher-order beta-matching in the Rocq Prover, which simplifies verification by encoding a certified string rewriting system and establishes a uniform construction linking the undecidability of beta-matching, lambda-definability, and intersection type inhabitation.
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
The Great Puzzle of the Infinite Machine
Imagine you are a detective trying to solve a mystery, but the crime scene is a world made entirely of logic and rules. This is the realm of computer science, specifically a branch called "computability theory," which asks a fundamental question: Can a computer solve every possible problem? In the 1930s, mathematicians discovered that the answer is a hard "no." There are certain puzzles so tricky that no computer, no matter how powerful or how much time you give it, can ever guarantee a solution. These are called "undecidable" problems.
One of the most famous tools in this logical world is the lambda calculus. Think of it not as a programming language you type into a terminal, but as a giant, abstract game of substitution. You have a set of rules for swapping pieces of a puzzle. If you have a rule that says "replace every 'A' with 'B'," and you apply it to a sentence full of 'A's, you get a new sentence. The game gets much harder when you allow "higher-order" moves. In a standard game, you swap simple items. In a higher-order game, you can swap entire rules or functions themselves. It's like being allowed to swap the rule "replace A with B" with a brand new rule "replace A with C" in the middle of the game.
The specific mystery this paper tackles is called Higher-Order Beta-Matching. Imagine you are given a "template" (a complex function) and a "target" (a specific result). The question is: Is there a specific piece you can plug into the template to make it transform exactly into the target? For a long time, mathematicians suspected the answer was "no, you can't always tell," but proving it was like trying to catch smoke with your bare hands. The proof required showing that if you could solve this matching puzzle, you could also solve the "Halting Problem"—the ultimate unsolvable puzzle of whether a computer program will ever stop running or get stuck in an infinite loop.
The Paper's Discovery: A New Map to the Impossible
This paper, written by Andrej Dudenhefner, provides a fresh, crystal-clear proof that Higher-Order Beta-Matching is indeed undecidable. In other words, there is no general method or algorithm that can look at any two complex logical expressions and tell you for sure if one can be transformed into the other.
The author didn't just repeat old proofs; they built a new bridge to the answer. Previous attempts to prove this were like trying to cross a canyon using a rickety, over-engineered bridge made of "lambda-definability" (a very complex, abstract concept). The old bridges were so intricate that even experts struggled to verify every single bolt, and it was nearly impossible to translate them into a computer program to check for errors.
Dudenhefner's approach is different. Instead of starting with the heavy, complex machinery of lambda-definability, they started with something much simpler: String Rewriting. Imagine you have a set of rules for changing words. For example, a rule might say "if you see '00', turn it into '22'." Another might say "if you see '02', turn it into '11'." The puzzle is: Can you start with a string of zeros (like '0000') and, by applying these rules over and over, eventually turn it into a string of ones (like '1111')?
The paper proves that this simple word-game is already impossible to solve in the general case. Then, the author performs a clever magic trick: they translate the rules of this word-game directly into the language of Higher-Order Beta-Matching. They show that if you could solve the matching puzzle, you could also solve the word-game. Since we already know the word-game is unsolvable, the matching puzzle must be unsolvable too.
What makes this proof special is that it is mechanized. The author didn't just write the proof on paper; they fed it into a "proof assistant" called the Rocq Prover (formerly known as Coq). This is a piece of software that acts like a hyper-strict logician. It checks every single step of the argument to ensure there are no gaps, no assumptions, and no human errors. The result is a "certified" proof, verified by a machine, which is a huge deal in mathematics because it removes all doubt about the logic.
The paper also reveals a surprising connection. The same logical structure used to prove this matching problem is unsolvable can also be used to prove that two other famous puzzles are unsolvable: Intersection Type Inhabitation (a problem about whether a specific type of code can exist) and Lambda-Definability (the original, complex problem used in older proofs). It's as if the author found a single master key that unlocks the "impossible" nature of three different doors in the computer science world.
In short, this paper doesn't just say "this problem is hard." It builds a simple, verifiable, machine-checked path showing exactly why it is impossible to solve, replacing a tangled web of old logic with a clean, straight line that anyone (or any computer) can follow. It confirms that for these specific types of logical puzzles, the universe of computation has a hard limit, and we can never write a program to cross it.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.