← Latest papers
💻 computer science

PROVE-RT: Generating Mechanized Theorem Prover Scripts for Real-Time Systems using LLMs

This paper introduces PROVE-RT, an LLM-assisted framework that utilizes dependency-aware sketches, document retrieval, and staged generation to successfully automate the creation of mechanized PROSA/ROCQ scripts for real-time schedulability analysis, achieving a 44.7% success rate where direct prompting fails.

Original authors: Sadat Shahriyar, Shareef Ahmed, Abdullah Al Arafat

Published 2026-08-14
📖 6 min read🧠 Deep dive

Original authors: Sadat Shahriyar, Shareef Ahmed, Abdullah Al Arafat

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 building a massive, intricate clockwork machine where every single gear must turn at the exact right moment. If one tiny gear slips, the whole machine stops, and in the real world, this could mean a self-driving car misses a stop sign or a pacemaker fails to pulse. This is the world of real-time systems: computers that have to do things not just correctly, but on time. For decades, engineers have checked if these machines would work by writing out long, complex math proofs on paper, like a detective solving a mystery with a notebook and a pencil. But as these machines get more complicated, those paper proofs become messy, hard to check, and easy to get wrong. To fix this, scientists invented a "digital proof-checker" (a tool called PROSA/ROCQ) that acts like a super-strict robot judge. This robot can read the math and say, "Yes, this is 100% true," or "No, you made a mistake here." The problem? Teaching a human to write the instructions for this robot is incredibly hard, slow, and requires a PhD-level understanding of both math and computer code.

Enter PROVE-RT, a new tool that tries to teach a "smart AI assistant" (a Large Language Model) how to write these robot instructions for us. Think of it like hiring a brilliant but slightly confused intern who knows a lot of math but has never seen the specific rulebook for this clockwork machine. If you just ask the intern to "write the proof," they might make up rules that sound good but are actually wrong. PROVE-RT is the clever manager who doesn't just give the intern a blank page. Instead, the manager gives them a step-by-step sketch of the plan, a stack of the exact rulebook pages they need to look at, and a system to check their work before they hand it in. The paper shows that while the AI alone is terrible at this specific job (getting it right less than 1% of the time), with the help of this "manager" system, the AI can successfully write the correct instructions for about 45% of the tasks. It's not a magic wand that solves everything yet, but it's a giant leap forward in getting computers to help us build safer, more reliable machines.

The Problem: The "Paper Proof" Bottleneck

For a long time, engineers have used "pen-and-paper" proofs to prove that their real-time systems are safe. It's a bit like trying to build a skyscraper by drawing the blueprints on a napkin. It works for small buildings, but when you get to a skyscraper, the napkin gets messy, and it's hard to find the tiny mistake that will make the whole thing collapse.

To fix this, researchers created PROSA, a digital library of rules and proofs that a computer can check. It's like upgrading from a napkin to a 3D simulation where the computer tells you immediately if a beam is too weak. But here's the catch: writing the code for this 3D simulation is incredibly difficult. It requires a human expert to translate their messy napkin drawings into a rigid, computer-readable language. It's so hard that even simple changes to the design can break the code, requiring hours of tedious re-writing.

The Solution: PROVE-RT (The "Smart Manager")

The authors of this paper realized that while AI (Large Language Models) is great at writing code and solving math problems, it gets confused when asked to write code for this specific "robot judge" (PROSA) without help. The AI doesn't know the specific vocabulary or the strict order of rules required.

So, they built PROVE-RT, a framework that acts as a bridge between the messy human ideas and the strict computer code. They didn't just ask the AI to "do it." Instead, they broke the job down into four distinct steps, like a factory assembly line:

  1. The Sketch: First, the system takes the original paper proof and uses an AI to turn it into a clear, step-by-step "informal sketch." It's like turning a complex legal contract into a simple bulleted list of what needs to happen.
  2. The Library Search: Next, the system looks through a massive library of PROSA documentation to find the exact rules and examples the AI needs for that specific step. It's like the manager handing the intern the specific page of the rulebook they need, rather than letting them guess.
  3. The Skeleton: The AI then builds the "skeleton" of the code. This is the structure: the names of the variables, the types of data, and the statement of the problem. Crucially, the AI leaves the actual "proof" part blank (marked as "Admitted," meaning "trust me, I'll fill this in later"). This ensures the structure is correct before the AI tries to do the hard math.
  4. The Finish: Finally, the AI fills in the blank proof parts. If the computer judge says, "This doesn't compile," the system uses that error message to tell the AI, "Try again, but fix this specific mistake."

What They Found (The Results)

The team tested this system on a huge collection of 1,191 real-time systems papers, creating a dataset of over 13,000 "sketches" to train and test their tool. They compared PROVE-RT against just asking the best AI models to write the code directly.

The results were stark. When they just asked the AI to write the code (the "direct prompting" method), it failed almost completely. It got 0% of the tasks right with one model and only 0.33% with another. The AI was making up rules and writing code that looked like PROSA but didn't actually work within the system.

However, when they used the PROVE-RT "manager" system, the success rate jumped to 44.7%. This means the AI successfully generated a working, computer-checked proof for nearly half of the complex scheduling problems it was tested on.

Why This Matters

The paper suggests that we can't just rely on AI to "know" everything about a niche field like real-time systems. The AI needs guidance. By breaking the problem down, giving the AI the right context (retrieval), and checking its work in stages (skeleton first, proof second), we can turn a confused AI into a helpful assistant.

The authors note that while 44.7% is a great start, it's not perfect yet. The system still struggles with the most complex problems that have long chains of dependencies (like a skyscraper with 100 floors where every floor depends on the one below it). But this work proves that with the right tools, we can start automating the creation of these safety-critical proofs, making our real-time systems safer and easier to certify. It's a step toward a future where computers help us prove that our machines won't fail, rather than us struggling to prove it on our own.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →