LLM-Powered Automatic Theorem Proving and Synthesis for Hybrid Systems and Game

Aditi Kabra, Jonathan Laurent, Ruben Martins, Stefan Mitsch, André Platzer

TL;DR

This paper introduces an LLM-powered framework to automate the verification and synthesis of hybrid systems—complex models where discrete software logic meets continuous physical dynamics (like a self-driving car’s braking system). By combining the high-level expressivity of Differential Game Logic (dGL) with a "summarize-and-reflect" LLM pipeline, the researchers successfully automated proofs for five challenging benchmarks that were previously beyond the reach of existing automatic tools.

What Problem Does This Paper Address?

Verifying the safety of Cyber-Physical Systems (CPS)—such as trains, planes, and medical devices—is notoriously difficult. These systems are "hybrid" because they involve both digital "jumps" (code) and analog "flows" (physics).

Currently, researchers face a frustrating tradeoff:

  1. Automatic tools (like SMT solvers) are fast but struggle with nonlinear physics or infinite time horizons.
  2. Deductive theorem provers (like KeYmaera X) are incredibly expressive and precise but require human experts to manually write "tactics" (proof scripts), which is slow and expensive.

The authors aim to break this bottleneck by using Large Language Models (LLMs) to act as the "expert," driving the interactive theorem-proving process without human intervention.

Methods

The authors developed two primary pipelines:

1. The Verification Pipeline (ATP)

Instead of asking an LLM to write a proof in one shot, they created a conversational loop:

  • Analyze Game: The LLM first identifies the players (Angel vs. Demon), control modes, and physical invariants.
  • Propose Tactic: The LLM suggests a command in Bellerophon (KeYmaera X’s tactic language).
  • KeYmaera X Check: The formal tool executes the tactic. If it fails or leaves open subgoals, it returns the raw mathematical state.
  • Summarize: This is the "secret sauce." Because raw proof states are too long for LLM contexts, the LLM generates a high-level summary of what has been tried, what failed, and the current "plan." This summary is fed back into the next "Propose" step.

2. The Synthesis Pipeline

To create a safe controller (synthesis), the system works backward from the safety goal using a precondition calculus. The LLM guesses "subvalue maps"—symbolic functions that define the space of safe control choices—and the verification pipeline then proves these guesses are correct.

Datasets (Case Studies)

The paper does not use a traditional large-scale dataset. Instead, it evaluates the system on five challenging case studies designed to push the limits of formal methods:

  • Lotka-Volterra: Managing predator-prey populations with nonlinear dynamics.
  • Train Control: Stopping a train safely using nonlinear "Davis resistance" and airbrakes.
  • Chemical Reaction: Maintaining safe temperatures in an exothermic reaction.
  • Coolant System: A reach-avoid problem in a nuclear power plant.
  • Van der Pol Oscillator: Choosing initial conditions for a chaotic oscillator.

These benchmarks were adapted from the ARCH-COMP competition but modified to include adversarial "games" and unbounded time horizons, making them significantly harder.

Key Insights and Ideas

  • Logic as the Interface: The authors argue that dGL is the perfect "middle ground" for LLMs. It is high-level enough for the LLM to reason about physical intuition (e.g., "the train should brake now") while being mathematically rigorous.
  • The Power of Summarization: Ablation studies showed that providing the LLM with a full history of failed tactics actually hurt performance. The LLM performed best when it had a concise, self-generated summary of the proof's progress.
  • Generality: Unlike previous automation attempts that required custom "heuristics" for every new physics problem, this LLM pipeline used the same generic prompts to solve five entirely different physical domains.

Key Results

  • Verification: The system achieved a 100% success rate (5/5) on the case studies. Traditional automatic tools solved 0/5.
  • Synthesis: The system successfully synthesized safe control envelopes for 4/5 cases.
  • Ablation Success: Without the "Summarization" step, the agent only solved 2/5 verification cases, proving that reflection is critical for complex mathematical reasoning.
  • Efficiency: Proofs were found within a budget of roughly $24 in LLM API calls per case study, a fraction of the cost of a human expert's time.

Limitations and Future Work

  • Synthesis Failure: The system failed to synthesize the "Train Control" case because the required loop invariants were too structurally complex for the current iteration of the pipeline.
  • LLM Hallucinations: While KeYmaera X acts as a "filter" that prevents the LLM from ever producing an incorrect proof, the LLM can still get stuck in loops of proposing useless tactics.
  • Scaling: Future work will look at even larger systems with more moving parts, where the state space might overwhelm the LLM’s ability to summarize effectively.
  • Cost: While cheaper than an expert, $24 per proof is still high for routine use; the authors suggest fine-tuning smaller, open-source models on the data generated by this study.

Summary updated

Abstract

Hybrid games model cyber-physical systems (CPS), like cars, trains, and airplanes, where discrete control decisions interact with continuous physical dynamics. We use Large Language Models (LLMs) to scale formal verification and synthesis for hybrid systems and games for a high-level hybrid games symbolic logic, differential game logic (dGL). This combination of a logic with the right expressivity and automation of the interactive theorem proving process using LLMs brings within reach a challenging class of CPS verification/synthesis problems, that were previously well out of range of automatic theorem proving. We demonstrate it on five challenging case studies, all beyond the reach of existing automatic techniques. Verification succeeds for all five, and the synthesis of control solutions succeeds for four of the five.
BibTeX
@misc{kabra2026llm,
  author = {Aditi Kabra and Jonathan Laurent and Ruben Martins and Stefan Mitsch and André Platzer},
  title = {{LLM-Powered Automatic Theorem Proving and Synthesis for Hybrid Systems and Game}},
  year = {2026},
  eprint = {2603.00737},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.00737},
}
Figure