Autonomous formalisation of finite-dimensional quantum mechanics grounded in axiomatic foundations
Autonomous formalisation of finite-dimensional quantum mechanics grounded in axiomatic foundations
Weichen Winston Yin, Jacob M. Taylor, Dirk R. Englund, Frank H. L. Koppens
AbstractFormalisation in a proof assistant gives mathematics machine-checked rigour, and artificial intelligence (AI) now performs this autoformalisation at scale. Physics has seen far less of this progress, although it arguably has more to gain. A formal physics library would trace every result back to its foundations, expose the assumptions and approximations that informal derivations leave implicit, catch errors reliably, and give AI-generated physics a verifier that checks not only its mathematics but its consistency with physical principles. Autoformalising a physics library requires more than certifying the mathematical correctness of individual results, as in the recent autoformalisation of new proofs of mathematical conjectures. It must also ensure that the mathematics captures the physical meaning of the source text, distinguish between a physical concept and its mathematical representation, and support practical use cases. We present an agentic AI system that, given only the source text, a mathematical foundation and the postulates of quantum mechanics, autonomously plans, writes, reviews and repairs a Lean 4 library of finite-dimensional quantum mechanics, coordinating its agents through live knowledge graphs. As a proof of concept, we applied the system to the textbook of Nielsen & Chuang. Without human intervention in the content of any item, it formalised 505 of the 509 items within its scope and corrected 24 errors in the book. The same library then served as the foundation for formalising research results beyond the book, including three research papers and 28 landmark theorems. To our knowledge, this is the first fully autonomous, textbook-scale autoformalisation of a field of physics, and the first physics library with a formally enforced postulate layer separating physics from mathematics. The system could be applied to any field of physics with a core of formal postulates.