Towards Formalizing Reinforcement Learning Theory
Shangtong Zhang

TL;DR
This paper uses the Lean 4 theorem prover to formally verify the almost sure convergence of key reinforcement learning algorithms, advancing the formalization of RL theoretical results.
Contribution
It provides a formal proof framework for RL convergence using Lean 4, enabling future extensions to convergence rates and other convergence modes.
Findings
Formal verification of Q-learning convergence
Formal verification of linear TD convergence
Unified framework based on Robbins-Siegmund theorem
Abstract
In this paper, we formalize the almost sure convergence of -learning and linear temporal difference (TD) learning with Markovian samples using the Lean 4 theorem prover based on the Mathlib library. -learning and linear TD are among the earliest and most influential reinforcement learning (RL) algorithms. The investigation of their convergence properties is not only a major research topic during the early development of the RL field but also receives increasing attention nowadays. This paper formally verifies their almost sure convergence in a unified framework based on the Robbins-Siegmund theorem. The framework developed in this work can be easily extended to convergence rates and other modes of convergence. This work thus makes an important step towards fully formalizing convergent RL results. The code is available at https://github.com/ShangtongZhang/rl-theory-in-lean.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsReinforcement Learning in Robotics · Adversarial Robustness in Machine Learning · Machine Learning and Algorithms
