Skip to content

KeYmaeraX-release

Theorem prover for verifying safety of cyber-physical systems with hybrid programs

Copyleft (OSI) · GPL-2.0

Listed by , founder & editor

27

Health

Dormant

Overview

Stars

106

Last commit

6 months ago

May 2026

Repository age

11 years

since Aug 2015

Latest version

5.1.2

Jul 2025

Contributors

–

Releases

0

last 12 months

Language

Scala

KeYmaera X is a theorem prover for hybrid systems, meaning systems that combine control software with continuous physical behavior. You write a model of a controller and the physics it acts on, then prove properties about it in differential dynamic logic. It also supports hybrid games in differential game logic.

The prover is built around a small core of about 2000 lines of code that holds all soundness-critical reasoning. Built-in and custom tactics run on top of that core to automate proof search. A web-based front end handles interactive and automated proving. It is written in Scala and runs as a single jar on Java 17 or later.

Proofs of real arithmetic need a decision procedure. You can use Wolfram Mathematica, the Wolfram Engine, or Z3, which ships with the tool and serves as the fallback. Some features work only with Mathematica. There is no specific commercial product it replaces. It suits formal verification work on self-driving, robotics and aviation models.

Who it's for

Researchers in formal verification of cyber-physical systems

The small trusted core and differential dynamic logic are built for proving safety of hybrid models.

Skip if: You need to verify ordinary software without continuous dynamics, where a general program verifier fits better.

Students working through a hybrid systems course

A tutorial and a textbook accompany the tool, and the web front end supports interactive proofs.

Skip if: You want a quick simulation of system behavior rather than a formal proof.

Control engineers checking safety of robots or vehicles

You can model the controller and the plant together and prove that safety conditions hold.

Skip if: You are not comfortable writing logic-based models and tactics.

The problem it solves

Testing and simulation cannot show that a controller is safe in every situation. When a car, robot or aircraft depends on software, you want a mathematical proof that covers the control program and the physics together.

Strengths

  • Minimal prover core of about 2000 lines isolates all soundness-critical reasoning
  • Handles both hybrid systems and hybrid games
  • Web-based front end for interactive and automated proving
  • Z3 is bundled, so proofs work without a Mathematica license
  • Runs as one jar on any system with Java 17 or later

Trade-offs

  • Some features work only with Mathematica
  • Needs knowledge of differential dynamic logic
  • Development is dormant, with no commits from contributors in the last 90 days
  • Runs locally as a desktop-style tool, not a hosted service

Frequently asked questions

Is KeYmaera X free?

Yes. It is licensed under GPL-2.0. Z3 is bundled, so you do not need a paid solver.

Do I need Mathematica?

No. Z3 is the fallback solver when nothing else is configured. Mathematica is the most tested option and some features need it, and the Wolfram Engine is a free alternative that needs an internet connection.

What do I need to run it?

Java Runtime Environment 17 or later and the keymaerax.jar file.

Which logics does it support?

Differential dynamic logic for hybrid systems and differential game logic for hybrid games.

Similar tools in Math and scientific computing software

addon-jupyterlab

Math and scientific computing software

Home Assistant app that runs JupyterLab notebooks on your home server

71 29 4 days ago Active MIT

Hand TeX

Math and scientific computing software

Draw a math symbol and get its LaTeX command, offline, for Linux and Python

69 6 37 days ago Slowing GPL-3.0

Cantor

Math and scientific computing software

63 12 today Active GPL-2.0+

Graphs

Math and scientific computing software

14 16 3 days ago Active GPL-3.0-or-later

GeoGebra Discovery

Math and scientific computing software

13 10 16 days ago Active GPL-3.0-or-later