3.1. Clifford algebras
To construct a Clifford algebra we must first give ourselves a quadratic form:
variable (R M : Type*)
[CommRing R] [AddCommGroup M] [Module R M]
(Q : QuadraticForm R M)
Given this data we may construct the associated Clifford algebra Cl(Q) as follows:
#check CliffordAlgebra Q
We can witness that this has the structure of an R-algebra as follows:
#synth Algebra R (CliffordAlgebra Q)
The natural map from the module M into the Clifford algebra ι : M → Cl(Q) is
written in Mathlib as CliffordAlgebra.ι Q. We may witness that this obeys
the defining equation as follows:
open CliffordAlgebra in
example (m : M) :
(ι Q m) ^ 2 = Q m • 1 := R:Type u_1M:Type u_2inst✝²:CommRing Rinst✝¹:AddCommGroup Minst✝:Module R MQ:QuadraticForm R Mm:M⊢ (ι Q) m ^ 2 = Q m • 1
All goals completed! 🐙
This also shows that Mathlib's Clifford algebras adopt the positive sign convention.