Value Functions as Supermartingale Certificates

Alessandro Abate, Daniel Contro, Mirco Giacobbe, Agustín Martínez-Suñé, Diptarko RoyarXiv 2026

TL;DR

This paper establishes a groundbreaking theoretical link between Reinforcement Learning (RL) and formal verification: by carefully designing reward functions, the resulting RL value function becomes a mathematical proof (a "supermartingale certificate") that a policy will satisfy complex temporal logic rules with probability one. This discovery provides a principled path toward "Certified RL" in large-scale and continuous environments.

What Problem Does This Paper Address?

In the world of autonomous systems, we often want a robot or software agent to follow complex rules, such as "always avoid the hazard, eventually reach the goal, and visit the charging station infinitely often." These are known as $\omega$-regular properties (often expressed in Linear Temporal Logic, or LTL).

Currently, we have two main ways to handle this:

  1. Reinforcement Learning (RL): Great at finding policies in complex, continuous environments, but it offers no formal guarantees. You might train a policy that works 99% of the time, but you can't prove it will never fail.
  2. Formal Verification: Uses "supermartingale certificates"—mathematical functions that act like a downhill slope toward a goal—to prove a system satisfies a rule with probability 1. However, finding these functions usually involves solving nasty constrained optimization problems that don't scale to large or continuous spaces.

The authors tackle the gap between these two: How can we use the scalability of RL to automatically generate the rigorous proof certificates required by formal verification?

Methods

The researchers bridge these fields by proving that an RL value function ($V^\pi$) can be transformed into a Streett supermartingale certificate ($W$). They propose two novel reward designs:

  • Reward Design 1: This design assigns a positive reward when the agent reaches a target or enters an "absorbing set" (a region it will never leave) that satisfies the goal. The authors prove that the value function under this reward encodes a certificate, provided we have some knowledge of the system's absorbing sets.
  • Reward Design 2: This is more flexible and requires only knowledge of the specification, not the absorbing sets. It uses a state-dependent discount factor—where the future is discounted only in specific regions—and a specific ratio between rewards for "good" events and penalties for "bad" events.

By solving the Bellman equation (a standard RL task) under these rewards, the resulting value function $V^\pi$ can be converted into a certificate $W = C - V^\pi$ that satisfies formal proof rules.

Datasets

The paper evaluates its theory on a stochastic grid-world MDP (a "slippery maze").

  • Environment: A $20 \times 20$ grid with walls, "holes" (unsafe states), and various zones of interest.
  • Dynamics: Actions are stochastic; if an agent tries to move up, it might end up moving sideways with a certain probability, simulating real-world uncertainty.
  • Benchmarks: They tested 8 different LTL specifications spanning the full Manna-Pnueli hierarchy (a classification of temporal properties ranging from simple "eventually" to complex "infinitely often" conditions).

Key Insights and Ideas

  • Value Functions as Progress Measures: The core "aha!" moment is realizing that a value function, which measures expected future rewards, naturally acts like a supermartingale. If the reward is tied to satisfying a goal, the value function increases as you get closer to success, meaning its inverse "decreases" toward the goal—exactly what a proof certificate needs to do.
  • From Optimization to Evaluation: This work shifts the difficulty of verification. Instead of searching for a certificate through complex optimization, we can now use policy evaluation (a core, well-studied RL primitive) to "discover" the certificate.
  • Generality: Unlike many verification methods that only work for finite grids, this theoretical connection holds for countably infinite and continuous state spaces, making it applicable to deep RL.

Key Results

  • Theoretical Proof: The authors provide rigorous proofs (Theorems 1 and 2) showing that their reward designs correctly produce Streett supermartingales.
  • Experimental Validation: In the slippery maze, they synthesized certificates for all 8 LTL tasks.
  • Consistency with Model Checkers: They cross-verified their results with PRISM, a gold-standard probabilistic model checker. In every case, when the policy satisfied the task (probability 1.0), their RL-based method produced a valid certificate. When the policy was flawed, the certificate rules correctly failed, providing a "negative witness."

Limitations and Future Work

  • Exact vs. Approximate: The experiments were conducted on finite MDPs where the value function could be calculated exactly. In continuous spaces, we must use neural networks to approximate the value function. The authors note that approximation errors could lead to "invalid" certificates, and how to handle these errors is an open question.
  • Supporting Invariants: The proof rules require a "supporting invariant" (a set of reachable states). Synthesizing these invariants remains a separate, difficult challenge in the verification community.
  • Data-Driven Scaling: The next logical step is applying this to Deep RL in high-dimensional environments, where the value function is learned from raw pixels or complex sensors rather than a pre-defined grid.

Summary updated

BibTeX
@misc{abate2026value,
  author = {Alessandro Abate and Daniel Contro and Mirco Giacobbe and Agustín Martínez-Suñé and Diptarko Roy},
  title = {{Value Functions as Supermartingale Certificates}},
  year = {2026},
  eprint = {2605.31524},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.31524},
}
Figure