Formalizing Geometric Algebra in Lean
Open Access
- 18 April 2022
- journal article
- research article
- Published by Springer Nature in Advances in Applied Clifford Algebras
- Vol. 32 (3) , 1-26
Abstract
This paper explores formalizing Geometric (or Clifford) algebras into the Lean 3 theorem prover, building upon the substantial body of work that is the Lean mathematics library, . As we use Lean source code to demonstrate many of our ideas, we include a brief introduction to the Lean language targeted at a reader with no prior experience with Lean or theorem provers in general. We formalize the multivectors as the quotient of the tensor algebra by a suitable relation, which provides the ring structure automatically, then go on to establish the universal property of the Clifford algebra. We show that this is quite different to the approach taken by existing formalizations of Geometric algebra in other theorem provers; most notably, our approach does not require a choice of basis. We go on to show how operations and structure such as involutions, versors, and the $$\mathbb {Z}_2$$ -grading can be defined using the universal property alone, and how to recover an induction principle from the universal property suitable for proving statements about these definitions. We outline the steps needed to formalize the wedge product and $$\mathbb {N}$$ -grading, and some of the gaps in that currently make this challenging.
Keywords
All Related Versions
Funding Information
- Cambridge Commonwealth, European and International Trust
This publication has 10 references indexed in Scilit:
- Maintaining a Library of Formal Mathematics2020
- The lean mathematical library2020
- Garamon: A Geometric Algebra Library GeneratorAdvances in Applied Clifford Algebras, 2019
- Formalization of Geometric Algebra in HOL LightJournal of Automated Reasoning, 2018
- Three Years of Experience with Sledgehammer, a Practical Link between Automatic and Interactive Theorem ProversEPiC Series in Computing, 2018
- The Lean Theorem Prover (System Description)2015
- Implementing Geometric Algebra Products with Binary TreesAdvances in Applied Clifford Algebras, 2014
- A Formalization of Grassmann-Cayley Algebra in COQ and Its Application to Theorem Proving in Projective Geometry2011
- Clifford and Graßmann Hopf algebras via the BIGEBRA package for MapleComputer Physics Communications, 2005
- Clifford Algebra to Geometric Calculus1984