Formalizing Geometric Algebra in Lean

Eric Wieser, Utensil Song
10/7/2021
cs.LO

Official code: pygae/lean-ga (59 stars, Lean, MIT, last commit 2023-10-25).

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, mathlib. 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.

Show full abstract

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 mathlib that currently make this challenging.

View on arXivView PDF

Code Implementations(1)

pygae/lean-gaOfficial100%
MIT

A partial formalization of Geometric Algebra in the Lean formal proof verification system.

595LeanMay 30, 20203 years agoMIT
geometric-algebralean

Similar Papers

Cite this paper

@article{wieser2021formalizing,
  title  = {Formalizing Geometric Algebra in Lean},
  author = {Eric Wieser and Utensil Song},
  year   = {2021},
  eprint = {2110.03551},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2110.03551}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2110.03551.svg)](https://codeofpaper.com/paper/2110.03551)

Discussion