← All papers
First page of Formalizing Geometric Algebra in Lean

Formalizing Geometric Algebra in Lean

Eric Wieser, Utensil Song

cs.LO Oct 7, 2021 · v2
Formalizes Clifford/Geometric algebras in Lean 3 using a basis-free universal property approach.
This paper explores formalizing Geometric (or Clifford) algebras into the Lean 3 theorem prover, building upon mathlib. We formalize the multivectors as the quotient of the tensor algebra by a suitable relation, which provides the ring structure automatically, then establish the universal property of the Clifford algebra. Our approach does not require a choice of basis, distinguishing it from existing formalizations in other theorem provers. We show how operations and structure such as involutions, versors, and the Z_2-grading can be defined using the universal property alone, and how to recover an induction principle for proving statements about these definitions.

Geometric (Clifford) algebras are important in physics and geometry but had not been formalized in a basis-free manner in a theorem prover.

The authors formalize Geometric algebras in Lean 3 building on mathlib. Multivectors are defined as the quotient of the tensor algebra by a suitable relation, giving the ring structure automatically. The universal property is established and used to define operations such as involutions, versors, and the Z_2-grading without choosing a basis.

A basis-free formalization of Clifford algebras in Lean is achieved, distinguishing it from prior formalizations in other provers. An induction principle for proving statements about definitions via the universal property is recovered.