PROMISE: Proof Automation as Structural Imitation of Human Reasoning
The paper introduces PROMISE, a structure-aware framework that improves automated proof generation for formal verification by reframing the task as a stateful search over proof-state transitions and mining structural patterns for iterative adaptation, achieving significant performance gains over existing methods on the seL4 benchmark.
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 Big Problem: Building a Castle Brick by Brick
Imagine you are trying to build a massive, impenetrable castle (a piece of critical software like an operating system) where every single brick must be mathematically proven to be perfect. If even one brick is weak, the whole castle could collapse, causing disasters in the real world.
This process is called Formal Verification. It's incredibly safe, but it's also incredibly hard and slow.
- The Old Way: Human experts have to manually write a "proof script" for every single brick, explaining exactly why it fits. For a project like the seL4 microkernel (a tiny but super-secure operating system), this took human experts decades of work. It's like trying to build a skyscraper by hand, one brick at a time, without any blueprints.
The Failed Shortcut: The "Google Search" Approach
Recently, we got powerful AI (Large Language Models or LLMs) that are great at writing code and solving math problems. Researchers hoped these AIs could act as super-fast proof writers.
However, early attempts failed when the projects got big. Why?
- The Analogy: Imagine you are trying to fix a leak in a giant, complex plumbing system. The old AI approach was like Googling "leak" and getting back a list of articles about leaks.
- The Problem: The AI found articles that looked similar (same keywords), but they were about fixing a kitchen sink, not a high-pressure industrial pipe. The AI got confused because it was looking at the words, not the structure of the problem. It tried to copy-paste solutions that didn't fit the specific shape of the leak.
The Solution: PROMISE (The "Master Architect" Approach)
The authors created a new system called PROMISE. Instead of just searching for similar words, PROMISE looks at how the proof evolves step-by-step.
Here is how it works, using a Detective Mystery analogy:
1. The Old Way: "Keyword Matching"
If a detective is trying to solve a murder, the old AI would look at the crime scene and say, "I found a case where the victim was stabbed!" It would then try to apply the solution from that case, even if the current murder happened in a different city with different suspects. It's too shallow.
2. The PROMISE Way: "Structural Imitation"
PROMISE acts like a Master Detective who studies the pattern of solving crimes, not just the crime itself.
- The "State Transition": Instead of looking at the final answer, PROMISE looks at the journey. It asks: "How did the detective in the past case move from 'Suspect A' to 'Suspect B'?"
- The Analogy: Imagine you are climbing a mountain.
- Old AI: Looks at a photo of someone who climbed a mountain and says, "They wore red boots, so I need red boots." (Wrong! The terrain is different).
- PROMISE: Looks at the path the climber took. "Ah, they had to cross a slippery ice patch, then climb a steep rock face. I see I have a slippery ice patch right here too. I will use the same technique they used to cross the ice."
How PROMISE Actually Works (The 3-Step Engine)
Step 1: The "Blueprint" Search (Structural Retrieval)
When PROMISE gets stuck on a difficult proof step, it doesn't just search for the same words. It searches for proofs that had the same "shape" of problem.
- Example: If the current problem is "I need to prove that a door is locked," PROMISE looks for past proofs where the detective had to "prove a door was locked" at the exact same stage of the investigation. It finds the tactic (the move) used there, not just the text.
Step 2: The "Toolbox" Check (Name Retrieval)
Once it knows what move to make (e.g., "apply the lock"), it checks the local toolbox to make sure the specific tool exists in this specific room.
- Analogy: It knows you need a "hammer," but it checks if you have a "sledgehammer" or a "tiny tack hammer" available in this specific room before telling you to swing.
Step 3: The "Safety Inspector" (Machine Checking)
PROMISE doesn't just guess. Every time it suggests a step, it runs it through a strict Safety Inspector (the Isabelle proof assistant).
- If the step works, it moves forward.
- If it fails, it immediately knows, "That didn't work," and tries a different path. It keeps a "beam" of the top 6 best paths open at all times, like a hiker keeping multiple routes in mind in case one path is blocked.
The Results: Why It Matters
The researchers tested PROMISE on the seL4 operating system (the "Mount Everest" of software verification).
- The Competition: Other AI systems (like Selene and Rango) were like hikers trying to climb the mountain by guessing. They got stuck often.
- PROMISE: By following the structural "footprints" of past successful climbs, PROMISE reached the summit much more often.
- It improved success rates by up to 186% compared to older methods.
- It worked well even with smaller, cheaper AI models, proving that the strategy (the map) is more important than just having a super-powerful brain.
The Takeaway
PROMISE changes the game. It stops treating AI proof generation like a "text completion" task and starts treating it like a guided journey.
Instead of asking the AI, "Write me a proof," it asks, "Here is where we are in the journey. Look at how other successful journeys handled this exact same terrain. Let's use that same strategy to get to the next step."
It turns the AI from a parrot (repeating words it heard) into a navigator (understanding the map and the terrain). This makes it possible to verify massive, life-critical software systems without needing decades of human effort.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.