From Pen-and-Paper to Machine-Checked Proofs: Lean for System Identification
Manas Mejari, Dario Piga, Marco Forgione
Key points
From the paper's conclusion- We then illustrate how Lean can be used to analyse results from the literature, taking as example a classic lemma on the inversion of the noise filter in prediction-error identification (Ljung, 1999, Lemma 3.1).
Abstract
Mathematical proofs in scientific papers are often long and intricate, relying on chains of references to earlier results. This makes it difficult for readers and reviewers to verify each and every step. Interactive theorem proving offers a complement: the theorem and its proof are written as code, and every inference is checked by a small, trusted piece of software called the kernel. This paper serves as an introduction to the Lean 4 proof assistant for a system identification and control audience, assuming no prior exposure to formal methods. We first show how a Lean proof is read using two elementary examples: the first on identifiability, the second on set invariance. We then illustrate how Lean can be used to analyse results from the literature, taking as example a classic lemma on the inversion of the noise filter in prediction-error identification (Ljung, 1999, Lemma 3.1). Since in Lean every step must be justified, the formalization brings to light a subtle point: the original claim of that lemma holds almost surely, although not for every realisation, as its statement may suggest. A simple counterexample makes this concrete. Finally, the paper discusses guidelines and perspectives on the use of Lean in system identification research.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- KAPPA: Checking the Proofs in Statistics Papers with Lean 4 and Language Model AgentsarXiv · 2026
- Formalizing inverse problems in the age of AI: possibilities, pitfalls, and an invitationarXiv · 2026
- PaperFormalizer: Author-in-the-Loop Autoformalization of Research Papers in LeanarXiv · 2026
- SeQLean: Verifying SQL queries using LeanarXiv · 2026
- Statopia: A Prover--Library Ecosystem for Automated Formalization and Proof Discovery in StatisticsarXiv · 2026
- ProofJudge: Tool-Grounded LLM Evaluation of Formal Proof Quality in MathlibarXiv · 2026