From Pen-and-Paper to Machine-Checked Proofs: Lean for System Identification
Manas Mejari, Dario Piga, Marco Forgione
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.
Create a lesson
Related papers
Passivity Control for Synchronous Machine Systems using Battery, Field Current and Governor Actuation
Shared title terminology · Maryam Khodabakhshloo, Elizabeth L. Ratnam, Ian R. Petersen
Input-to-State Stability in Distributed Adaptive Identification of Nonlinear Systems without Input Sharing
Shared title terminology · Moh Kamalul Wafi
Universal Quantizer Design for Identification of Systems with Memory
Shared title terminology · Yibo Shi, Ying Wang, Karl H. Johansson et al.
A Reinforcement Learning Approach to Space-Filling Input Design for Nonlinear System Identification
Shared title terminology · Charly Witmeur, Gonçalo G. Cruz, Maarten Schoukens et al.
Data-Driven Sparse Identification and Robust Tube-Based Predictive Control for Multivariable Chaotic Systems
Shared title terminology · Shahin Razani
Generalized Gated Recurrent Neural Networks for Nonlinear System Identification
Shared title terminology · Stefano De Carli, Davide Previtali, Mirko Mazzoleni et al.