A Symbolic Algorithm for Computation of Non-degenerate Clifford Algebra Matrix Representations
Dimiter Prodanov

TL;DR
This paper presents an algorithmic method to construct matrix representations of non-degenerate Clifford algebras, facilitating automated proof checking and inverse computation of multivectors.
Contribution
It introduces a transparent, algorithmic approach for representing Clifford algebras as matrices, enabling automated calculations and proof verification.
Findings
Provides a systematic construction of matrix representations for Clifford algebras.
Develops an algorithm for computing multivector inverses using matrix representations.
Demonstrates the application of the Faddeev-LeVerrier-Souriau algorithm in this context.
Abstract
Modern advances in general-purpose computer algebra systems offer solutions to a variety of problems, which in the past required substantial time investments by trained mathematicians. An excellent example of such development are the Clifford algebras. The main objective of the paper is to demonstrate an utterly algorithmic construction of a Clifford algebra matrix algebra representation of a non-degenerate signature (p, q). While this is not the most economical way of implementation, it offers a transparent mechanism of translation between a Clifford algebra and its faithful real-valued matrix representation and can be used for automated proof checking. This representation is used to derive an algorithm for the computation of an arbitrary multivector inverse as a proof certificate. The proposed algorithm is a mapping of the Faddeev--LeVerrier--Souriau algorithm for computation of the…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAlgebraic and Geometric Analysis · Mathematical Analysis and Transform Methods · Advanced Algebra and Geometry
A Symbolic Algorithm for Computation of Non-degenerate Clifford Algebra Matrix Representations
Dimiter Prodanov
Neuroelectronics Research Flanders, IMEC, Leuven, Belgium
ITSDP, IICT, Bulgarian Academy of Science, Sofia, Bulgaria
[email protected]; [email protected]
Abstract.
Modern advances in general-purpose computer algebra systems offer solutions to a variety of problems, which in the past required substantial time investments by trained mathematicians. An excellent example of such development are the Clifford algebras. The main objective of the paper is to demonstrate an utterly algorithmic construction of a Clifford algebra matrix algebra representation of a non-degenerate signature (p, q). While this is not the most economical way of implementation, it offers a transparent mechanism of translation between a Clifford algebra and its faithful real-valued matrix representation and can be used for automated proof checking. This representation is used to derive an algorithm for the computation of an arbitrary multivector inverse as a proof certificate. The proposed algorithm is a mapping of the Faddeev–LeVerrier–Souriau algorithm for computation of the characteristic polynomial of matrices.
Key words and phrases:
Clifford algebra; matrix representation; computer algebra
1991 Mathematics Subject Classification:
Primary 15A66, 11E88; Secondary 15B10, 15-04, 15A24, 15A69
The present work is funded in part by the European Union’s Horizon Europe program under grant agreement VIBraTE, grant agreement 101086815.
1. Introduction
Modern advances of general-purpose computer algebra systems offer solutions to a variety of problems, which in the past required substantial time investments by trained mathematicians. A good example for such development are the Clifford algebras. Recent years have seen renewed interest in Clifford algebra platforms. Some of these packages have been featured in peer-reviewed publications, notably, for Maple [1], Matlab [19], Mathematica [3] and Maxima [18]. There is also an inflow of new packages, such as Ganja.js for JavaScript [6], GaLua for Lua Galgebra for Python Grassmann for Julia.
The development of Clifford algebras is based on the insights of Grasssman, Hamilton and Clifford from the 19th century, yet at present these algebras are still an active area of mathematical research. Clifford algebras provide the natural generalizations of complex, dual and split complex (or hyperbolic) numbers into the concept of Clifford numbers. Since Clifford algebras are associative, they can be represented by matrices. Examples can be given by the Dirac’s matrices, representing Space Time Algebra, and Pauli’s matrices representing the three-dimensional (3D) algebra of the Euclidean space, that is the Geometric algebra of Clifford. In many applications, the Geometric algebra is referred to as the Algebra of Physical Space. The matrix representations have been studied before, resulting in somewhat complicated algorithmic constructions [4, 9, 13, 14, 15]. Recently, the question has been also addressed in [5, 11, 21].
The demonstrated application of the presented matrix representation algorithm is the computation of an inverse of a general multivector expression. This was achieved in two ways – either by going through an intermediate matrix representation and translating back the obtained result into a Clifford symbolical form or by mapping the Faddeev–LeVerrier–Souriau algorithm directly in the algebra itself. The paper was presented in preliminary form at the ICCA12 Conference, hosted virtually between 3–7 Aug 2020, at Hefei, China.
Results presented in the paper are derived using an elementary construction of Clifford algebra [12], which is suitable for direct implementation in a computer algebra system supporting symbolical transformations of expressions. From design perspective it was the preferred choice in the clifford package for the computer algebra system Maxima [16, 17, 18].
The paper is organized as follows. Sec. 2 introduces the notations and conventions. Sec. 3 presents a construction of the Clifford algebra, based on [12]. Sec. 4 introduces the sparse representation of the Clifford algebra. Sec. 5 studies the structure of the multiplication table of the algebra. Sec. 6 demonstrates the canonical matrix algebra representation theorem. Sec. 7 provides examples of low-dimensional matrix algebra representations. Sec. 9 demonstrates the Faddeev–LeVerrier–Souriau algorithm. The Appendices demonstrate supporting results.
2. Notation and Preliminaries
will mean a Clifford algebra of order n but with unspecified signature. Algebra generators will be indexed by Latin letters. Multi-indices will be denoted with capital letters. The operation of taking k-grade part of an expression will be denoted by . The notation is interpreted as ”if the predicate pred is true then a else b”.
Matrices will be indicated with bold capital letters, while matrix entries will be indicated by lowercase letters.
Definition 1**.**
The extended basis set of the algebra will be defined as the ordered power set
[TABLE]
of all generators and their irreducible products.
Definition 2**.**
A multivector of the Clifford algebra is a linear combination of elements over the -dimensional vector space spanned by .
Definition 3** (Scalar product).**
The scalar product of the blades and is defined as
[TABLE]
and extended by linearity to the entire algebra.
Definition 4** (Scalar product table).**
Define the scalar product table
[TABLE]
Definition 5** (Set difference).**
For the sets and define the symmetric difference as the operation
[TABLE]
3. Elementary construction of the algebra
Clifford algebras can be defined in several mathematically equivalent ways. However, from computer science perspective the preferred definition should be easy to implement with the tools of the computer algebra system of choice. This section gives a concise self-contained construction of the Clifford algebra based on Macdonald [12, 17]. The construction is repeated here for consistency of the presentation. The algebra is constructed by a set of generators, which can be identified with orthonormal vectors.
In order to construct the algebra we need some preliminary conventions. We assume that there are
- •
a fixed atomic generator symbol
- •
a set of abstract generators of the algebra produced by the action of the indicial map for .
- •
a total order over .
Definition 6** (Clifford algebra).**
The construction of the algebra proceeds in the following steps:
- (1)
Define a vector space over the set of generators serving as basis with axioms
- •
Commutativity of vector addition: .
- •
Associativity of vector addition:
- •
Existence of additive unity [math]: .
- •
For every vector, there exists an additive inverse: .
- •
Associativity of scalar multiplication:
- •
Compatibility with scalar multiplication: .
- •
Distributivity of scalar addition: .
- •
Distributivity of vector addition: .
- •
Scalar multiplication identity: .
for vectors and scalars . 2. (2)
Adjoin an associative algebra over using the Clifford product or geometric multiplication operation with axioms
- •
Existence of an algebra unity: for a non-scalar .
- •
Left distributivity: for arbitrary elements .
- •
Right distributivity: for arbitrary elements .
- •
Associativity: for arbitrary elements .
- •
Compatibility with scalars: for scalars and non-scalar elements . 3. (3)
Finally, assert
**Closure Axiom: **
For generators and scalars , the multivector belongs to the algebra:
[TABLE]
**Reduction Axiom: **
For all generators
[TABLE]
where are real or complex scalars. The signature set is .
**Anti-Commutativity Axiom: **
For every two basis vectors, such that
[TABLE]
We denote the algebra satisfying axioms 1-3 as Clifford algebra , where elements of the orthonormal basis square to , elements square to and (degenerate) elements square to [math].
It should be remarked that the closure and compatibility Axioms are not included in the original construction of Macdonald. The algebra construction can be extended to other fields with characteristic zero. So-presented construction can be carried out without modifications in Computer Algebra systems like Maxima by defining proper simplification rules for the geometric product operation [16, 18].
The definition does not specify a particular ordering but merely asserts that an ordering must be used.
3.1. Consistency of the extension
Here we present results demonstrating the consistency of the Clifford algebra definition.
Proposition 1**.**
The scalar and algebra units coincide:
[TABLE]
Proof.
Suppose that is the unit of the algebra. Then by the anti-commutativity: which is a contradiction. Therefore, by the uniqueness property. ∎
Theorem 1**.**
* extends over the (ordered) power set of .*
[TABLE]
That is is a vector space and we have the inclusion
[TABLE]
Proof.
The proof follows from the Closure Axiom.
Multiplicative properties:
- (1)
Scalar commutativity 2. (2)
In particular . 3. (3)
. 4. (4)
Scalar compatibility:
And we extend by linearity and the closure over the whole algebra.
Additive properties:
- (1)
Universality of zero: Let . Right-multiply by . If then the results follows trivially.
So let . Then . Right-multiply by . Then . 2. (2)
Scalar distributivity: . 3. (3)
In particular, there is an additive inverse element . 4. (4)
Commutativity of addition: Let . Then for all possible orders of evaluation . Therefore, by linearity . 5. (5)
Associativity of addition: Let . By commutativity of addition and closure . Then for all possible orders of evaluation of the first two summands . Therefore, by linearity . 6. (6)
Distributivity of addition follows directly from the distributivity axioms and the closure axioms
[TABLE]
And we extend by linearity and the closure over the entire algebra. ∎
Based on this extension principle we can promote the indical map to a full index set isomorphism
[TABLE]
and use multi-index notation implicitly wherever appropriate. For consistency, we also extend the ordering to the power set , however no distinct symbol will be used for this.
Theorem 2** (Well-posedness).**
The Clifford algebra construction specified in Def. 6 is well-defined.
Proof.
is well-defined. Moreover, the vector space extension is also well-defined. The compatibility Axioms imply the inclusion .
Therefore, we only need to check the additional Algebra axioms. The Reduction Axiom agrees with the Closure Axiom trivially. The Anti-commutativity Axiom agrees with the Closure Axiom trivially. Further, by restriction to ordered pairs the Anti-commutativity Axiom does not apply when the Reduction Axiom applies. Therefore, these two axioms are logically independent. Therefore, restricted algebra construction over is well-defined. The algebra has a maximal element by Prop. 6. The algebra extension is well-defined since the existence of implies the existence of by the Closure Axiom. By reduction, for the three possible cases for the sign of the represent the double, complex or dual numbers, respectively. Therefore, by induction exists. ∎
Theorem 3** (Algebra equivalence).**
Two algebras with the same numbers of , and generators are order-isomorphic.
Proof.
If the elements are ordered identically then the statement is trivial. Let’s assume that the elements are ordered differently. But then there is a permutation putting them into canonical order. Therefore, the algebras are isomorphic. Therefore, we can identify an order with the second permutation. ∎
Corollary 1** (S-Law of inertia).**
Denote by S the signature set of the algebra . For two isomorphic algebras and ( ) there is an invertible map
[TABLE]
Conversely, if there is permutation
[TABLE]
then .
Proof.
The forward statement follows from Th. 3. Converse case: If the dimensions of and are equal and the numbers of , and generators are equal then there is a permutation
[TABLE]
However, it can be noted that this is the same permutation which gives
[TABLE]
and hence by Th. 3 . ∎
Definition 7** (Canonical real algebra).**
Define the canonical ordering as the nested lexicographical order , such that and extend it over as:
[TABLE]
In addition assume that the first elements square to 1, the next elements square to -1 and the last elements square to 0. Then the algebra specified by the structure is the canonical Clifford algebra.
Corollary 2**.**
The canonical algebra defines an equivalence class with regard to permutations.
From computational perspective, last two corollaries are important because they indicate that an algorithm cane be implemented only for one Clifford algebra of a certain grade. They also imply that the order in which operations are composed can substantially simplify computations.
4. Indicial or sparse representation
Definition 8** (Indicial map).**
Define the indicial map , acting on symbols by concatenation (i.e. of a set), such that
[TABLE]
where g is set-valued and assert the convention .
Definition 9**.**
Define the argument map acting on symbol compositions as
[TABLE]
Assert for the atomic symbol .
These definitions allow for stating a very general result about Clifford algebra representations.
Theorem 4** (Indicial representation).**
For generators , such that , the following diagram commutes
{e_{s}}$${\{s\}}$${e_{s}e_{t}\equiv e_{st}}$${\{s,t\}}$$\mathrm{arg}$$\iota_{e}$$e_{t}$$\triangle\{t\}* *\mathrm{arg}$$\iota_{e}
Proof.
The right-left action follows from the construction of . The left-right argument action is trivial. We observe that . Trivially, . Let’s suppose that . We notice that . Let’s suppose that . We notice that and . ∎
This theorem can be used for the reduction of Clifford products.
4.1. Simplification of Clifford products
This section presents how to compute the canonical simplified form of blades. The non-simplified arbitrary Clifford product of multivectors will be referred to simply as a Clifford multinomial. The main lemma is demonstrated in [12] and is repeated here for convenience:
Lemma 1** (Permutation equivalence).**
Let be a Clifford multinomial, where the indices are not necessarily different. Then
[TABLE]
where is the sign of permutation of and is the product permutation according to the canonical ordering.
Proof.
The proof follows directly from the anti-commutativity of Clifford multiplication for any two generator elements A-C, observing that the sign of a permutation of can be defined from its decomposition into the product of transpositions as , where is the number of transpositions in the decomposition. ∎
Further, we can define a simplified form according to the action of the Reduction Axiom.
Theorem 5** (Reduced blade form).**
*Let be an arbitrary Clifford multinomial, where the generators in are not necessarily different. Let be the sign of the permutation . We say that simplification induces a reduced or simplified form with regard to permutations and product evaluations such that *
[TABLE]
Let generators square as . Then its simplified form is
[TABLE]
with all -indices different. Let generators square as . Then its simplified form is
[TABLE]
with all -indices different. Let at lest generators square as . Then its simplified form is
[TABLE]
Proof.
The product is transformed according to Lemma 1. Then we use Th 4 to compute the indices. By the Reduction axiom (R) the elements of equal indices are removed from the final index list. This process induces a factor of in the final result. Hence, for elements of index . Further . The final list can be translated back into a blade form by the map by Th. 4. The associativity of follows from the associativity of the Clifford product. ∎
The form equivalence is used for simplification of expressions in the Clifford Maxima package.
5. Multiplication tables of Clifford algebras
Definition 10** (Full Matrix multiplication table).**
Consider the extended basis . Define the multiplication table matrix as the mapping of the basis into the set of square matrices valued in :
[TABLE]
with matrix consisting of the ordered ans simplified (i.e. form) product entries using the multi-index notation
[TABLE]
Since is a square matrix we will not make a distinction for its dimensions, so will mean or depending on the context.
Example 1**.**
Consider . The full matrix multiplication table is
[TABLE]
The lines are drawn for clarity.
Proposition 2**.**
Consider the multiplication table . All elements are different for a fixed row . All elements are different for a fixed column .
Proof.
The results follow from the simplification Th. 5. Fix . Then for
[TABLE]
which is a different way of writing the simplification Lemma. Suppose that we have equality for 2 indices . Then
[TABLE]
and let . Then
[TABLE]
Therefore, . By symmetry, the same reasoning applies to a fixed column . ∎
Lemma 2** (Multiplication Matrix Structure).**
For the multi-indices , such that , the following implications for the elements of hold:
{m_{\mu\lambda}\,e_{s}}$${m_{\mu\lambda^{\prime}}e_{t}}$${m_{\lambda\mu}e_{s}}$${m_{\lambda\mu}m_{\mu\lambda^{\prime}}e_{st}}$${m_{\lambda\lambda^{\prime\prime}}e_{st}}$$\exists$$\exists\lambda^{\prime}>\lambda$$\exists$$\exists\lambda^{\prime\prime}=\lambda^{\prime}
so that
[TABLE]
for some index .
Proof.
By the properties of there exists , such that for . Choose , s.d. . Then for and
[TABLE]
Suppose that . Multiply together the diagonal nodes in the matrix
[TABLE]
Therefore, and . We observe that there is at least one element (the algebra unity) with the desired property .
Further, we observe that there exists unique such that . Since is fixed by Th. 5 this implies that . Therefore,
[TABLE]
which implies the identity
[TABLE]
∎
6. Clifford algebra real matrix representation theorem
In the present article we will focus on non-degenerate Clifford algebras. Therefore, we assume that the product set
[TABLE]
is valued in the set if not stated otherwise.
In order to state the main result we need the following definitions:
Definition 11** (Coefficient map).**
Define the linear map acting element-wise
[TABLE]
by the action
[TABLE]
Define the coefficient map indexed by the multi-index as
[TABLE]
Definition 12** (Canonical matrix map).**
For the multi-index define the map
[TABLE]
where s is the ordinal of in the multivector basis and is computed as in Def. 11. Further, denote the set of all maps as and let .
Proposition 3**.**
The -map is linear.
The proof follows from the linearity of the coefficient map and matrix multiplication.
Theorem 6** (Semigroup property).**
Let and are basis elements. Then the map acts on according to the following diagram
{e_{s}}$${\mathbf{E}_{s}}$${e_{s}e_{t}\equiv e_{st}}$${\mathbf{E}_{st}\equiv\mathbf{E}_{s}\mathbf{E}_{t}}$$e_{t}* \pi$$\mathbf{E}_{t} *
The map distributes over the Clifford product:
[TABLE]
The set of all matrices forms a semigroup.
Proof.
Let
[TABLE]
We specialize the result of Lemma 2 for and and observe that
[TABLE]
for
[TABLE]
Therefore,
[TABLE]
Moreover, we observe that
[TABLE]
For the semi-group property, consider that since is linear it is invertible. Since distributes over Clifford product its inverse distributes over matrix multiplication:
[TABLE]
However, is closed by construction, therefore, the set is closed under matrix multiplication. ∎
Corollary 3**.**
For the set of all matrices forms a group, which is a representation of the Pin group .
Proof.
We observe that for non degenerate algebras every generator has an inverse element by Props. 8; therefore for non-degenerate algebras
[TABLE]
However, is valued in . ∎
Proposition 4**.**
Let and is the first row of . Then .
Proof.
We observe that by the Prop. 9 the only non-zero element in the first row of is . Therefore, . ∎
The main result of the section is stated in the theorem below.
Theorem 7** (Canonical Real Matrix Representation).**
Define the map . Then
[TABLE]
so that the diagram commutes
{\mathbf{M}}$${\mathbf{A}_{s}}$${\mathbf{G}\mathbf{M}}$${\mathbf{E}_{s}=\mathbf{G}\mathbf{A}_{s}}$$g* C_{s}$$g *C_{s}$$\pi_{s}
Further, is an isomorphism inducing a Clifford algebra representation in the real matrix algebra:
{C\ell_{p,q}(\mathbb{R})}$${C\ell_{p,q}\left[\mathbf{Mat}_{\mathbb{R}}({2^{n}}\times{2^{n}})\right]}$$\pi$$\pi^{-1}
The map distributes over the Clifford product (homomorphism):
[TABLE]
Proof.
The -map is a linear isomorphism. The set forms a group, which is a subset of the matrix algebra . Let and . It is claimed that
- (1)
by the Sparsity Lemma 3. 2. (2)
by Prop. 7. 3. (3)
by Prop. 8.
Therefore, the set is an image of . ∎
So-constructed canonical matrix representation has an interesting structure. This can be summarized in the following results.
Proposition 5**.**
Consider the non-degenerate algebra . Then for any element :
- •
If then is symmetric.
- •
If then is anti-symmetric.
Proof.
[TABLE]
Then for , therefore is symmetric. While for , therefore is anti-symmetric. ∎
As can be seen from the next examples the structure of the matrices is very symmetric. The diagonal holds the scalar value
[TABLE]
while the co-diagonal holds the pseudoscalar value,
7. Low-dimensional matrix representations
In this section examples are given for non-degenerate Clifford algebras.
7.1. Representations for n=2
For a general element of the form
[TABLE]
we have the following canonical matrix representations:
- •
Euclidean algebra
[TABLE]
- •
Split-quaternions
[TABLE]
- •
Quaternions
[TABLE]
7.2. Representations for n=3
For a general element of the form
[TABLE]
we have the following canonical matrix representations:
- •
Geometric algebra / Algebra of Physical Space
[TABLE]
- •
Clifford algebra
[TABLE]
- •
Clifford algebra
[TABLE]
- •
Clifford algebra
[TABLE]
7.3. Representations for n=4
For a general element of the form
[TABLE]
we have the following canonical matrix representations:
- •
Euclidean algebra
[TABLE]
- •
Clifford algebra
[TABLE]
- •
Clifford algebra
[TABLE]
- •
Space-time algebra
[TABLE]
- •
Clifford algebra
[TABLE]
Computations have been carried out using the computer code included in the Appendix.
8. Complex matrix representation of central algebras
In the present section we exhibit an algorithm for the construction of the complex matrix representation of central Clifford algebras. As an example, consider the dual representation of the , where . The matrix multiplication table can be represented as
[TABLE]
where we have substituted the pseudoscalar for the imaginary scalar unit . The main diagonal blocks do not contain i, while the co-diagoanl ones do. can be further transformed into
[TABLE]
where this structure is not obvious, but we are left only with the generators. Therefore, the same representation algorithm can be applied. We use the complexified set of generators
[TABLE]
and compute the reduced multiplication tables and . The general algebra element can be represented as
[TABLE]
Therefore, by linearity . Therefore, we can make a substitution and proceed as before. In such way, the complex matrix representation will be given by
[TABLE]
Therefore, one can arrive at the following representation:
[TABLE]
The advantage of this representation is that the trace produces the pseudoscalar plus the scalar components in an obvious manner .
9. Computation of multivector inverses
Computation of Clifford inverse has drawn attention in the literature [2, 10, 20]. Multivector inverses can be computed using the matrix representation and the characteristic polynomial. The matrix inverse is
[TABLE]
where denotes the matrix adjunct operation and denotes the matrix determinant. The formula is not practical, because it requires the computation of determinants. With the help of the Cayley-Hamilton Theorem, the inverse of A can be expressed as a polynomial in A. The inverse can be computed as the last step of the Faddeev–LeVerrier–Souriau (FVS) algorithm [22, 7]. The algorithm computes the coefficients of the characteristic polynomial
[TABLE]
in n steps:
[TABLE]
with . The matrix inverse can be computed from the last step of the algorithm as
[TABLE]
under the obvious restriction .
Example 2**.**
In the general multivector inverse representation is
[TABLE]
The corresponding characteristic polynomial is
[TABLE]
Example 3**.**
In the split quaternions the general inverse representation is
[TABLE]
The corresponding characteristic polynomial is
[TABLE]
Example 4**.**
In the quaternions the general multivector inverse representation is
[TABLE]
corresponding to the characteristic polynomial
[TABLE]
The FVS algorithm has a direct representation in terms of Clifford multiplications as demonstrated by the next result.
Theorem 8** (Multivector inversion algorithm).**
Suppose that is a multivector of maximal grade . The Clifford inverse, if it exists, can be computed by the algorithm in steps as
[TABLE]
until the step where so that
[TABLE]
The inverse does not exist if . The characteristic polynomial is
[TABLE]
Proof.
The proof follows from the distributivity of the map over the matrix and Clifford products. Furthermore, . Moreover, the FVS algorithm terminates with , which corresponds to .
Suppose that is of maximal grade . Let be the set of all blades of grade less or equal to . We compute the restricted multiplication tables and respectively and form the restricted map . Then
[TABLE]
Therefore, the FVS algorithm will terminate in steps. Now, suppose that , then
[TABLE]
∎
9.1. Low-dimensional inverses
While inverses can be computed for an arbitrary dimensions the expressions quickly become extremely cumbersome. We will consider . Up to sign permutations the results are expected to hold also for , , and . Let
[TABLE]
Then the application of the LVS algorithm yields
[TABLE]
where the determinant is given by
[TABLE]
and
[TABLE]
While the vector part is given by
[TABLE]
the bi-vector part by
[TABLE]
and the pseudoscalar part by
[TABLE]
The inverse exists if the determinant . The characteristic polynomial is
[TABLE]
9.2. Numerical examples
Example 5**.**
Let us compute an example in , having rational coefficients. Let
[TABLE]
The computed inverse is
[TABLE]
The intermediate steps of the computations are available for inspection by setting the appropriate flags in the code. However, the rational numbers involved quickly become very long.
Let us compute several examples in .
Example 6**.**
Let
[TABLE]
Then
[TABLE]
Example 7**.**
Let
[TABLE]
Then
[TABLE]
Let
[TABLE]
Then
[TABLE]
Example 8**.**
In let
[TABLE]
[TABLE]
so that
[TABLE]
On the other hand, for certain low-dimensional cases – n=2 and n=4, the FLV algorithm can be simplified as follows.
[TABLE]
leading to the same result for .
10. Discussion
The main theoretical objective of the present paper was to demonstrate a universal construction of a matrix algebra representation of Clifford algebra of non-degenerate arbitrary signature (p, q). This is achieved by exhibiting an explicit isomorphism between a given Clifford algebra and its faithful matrix representation. Instrumental for the presented approach is the Clifford algebra matrix multiplication table . The structure of this table is constrained by the structure of the Clifford algebra itself, which allows for deriving useful relations between the matrix entries thus reducing the computational complexity of the matrix construction. As demonstrated further in the paper, the matrix multiplication table encodes all properties of the algebra It should be noted that such a representation is not optimal from data compression perspective. On the other hand, it can be used for automatic computer code generation for the lower-dimensional algebras. Target applications of such an approach can be computational environments, such as Matlab, or computer code preprocessors, such as Gaalop for C++ [8].
It should be noted that the FLV algorithm can result easily in float precision issues. On the other hand, the FLV algorithm is in fact a proof certificate, that is it terminates in a finite number of steps and if an inverse exits it provides it.
Funding
Funding for the initial clifford development was provided by a grant from Research Fund – Flanders (FWO), contract numbers G.0C75.13N, VS.097.16N.
Conflicts of interest
The author declares no competing intesrests.
Availability of data and material
Data are available in a Zenodo repository [16].
Code availability
Maxima code is available in a Zenodo repository [16].
Appendix A Auxiliary results
Proposition 6** (Maximal element).**
The algebra has a maximal element called pseudoscalar.
Proof.
Suppose that . Then if a product contains more than one nilpotent generators of the same index the simplified form is 0 by Lemma 1. If a product contains exactly one nilpotent generator per index the maximal element is the product of all generators by Th. 5.
[TABLE]
Suppose that . Then by Th. 5 the maximal element is the product of all generators
[TABLE]
This element is referred to as the pseudoscalar of the algebra. ∎
Proposition 7**.**
For generator elements and
[TABLE]
Proof.
Consider the basis elements and . By linearity and Clifford-product distributivity of the map
[TABLE]
Therefore, for vector elements
[TABLE]
∎
Proposition 8**.**
* *
Proof.
Consider the matrix . Then element-wise . By Lemma 3 is sparse so that .
From the structure of for the entries containing the element we have the equivalence
[TABLE]
After multiplication of the equations we get
[TABLE]
which simplifies to the First fundamental identity:
[TABLE]
We observe that if or the result follows trivially. In this case also .
Therefore, let’s suppose that . We multiply both sides by
[TABLE]
However, the RHS is a diagonal element of , therefore by the sparsity it is the only non-zero element for a given row/column so that
[TABLE]
∎
Appendix B Properties of the scalar product multiplication tables
Theorem 9**.**
The scalar product table is a diagonal matrix , which is invariant under orthogonal transformations.
Proof.
The proof is based on Macdonald [12]. From the definition of the scalar product it is obvious that is diagonal. Consider the orthogonal transformation with orthogonal matrix . We evaluate . Then element-wise (summation by repeated indices)
[TABLE]
Then for
[TABLE]
by the orthogonality of entries. Then , where diag denotes the diagonal elements. ∎
Definition 13** (Sparsity property).**
A matrix has the sparsity property if it has exactly one non-zero element per column and exactly one non-zero element per row. Such a matrix we call sparse.
Proposition 9**.**
For the matrix is sparse.
Proof.
Fix an element . Consider a row . By prop 2 there is a , such . Then , while for . Consider a column By prop 2 there is a , such . Then , while for . Therefore, has the sparsity property. ∎
Lemma 3** (Sparsity lemma).**
If the matrices and are sparse then so is . Moreover,
[TABLE]
(no summation!) for some index .
Proof.
Consider two sparse square matrices and of dimension . Let . Then as we vary the row index then there is only one index , such that . As we vary the column index then there is only one index , such that . Therefore, for some by the sparsity of and .
As we vary the row index then for for the column by the sparsity of . As we vary the column index then for for the row by the sparsity of . Therefore, is sparse. ∎
Corollary 4**.**
If is sparse then is diagonal.
Proof.
Let We observe that by sparsity if . ∎
B.1. Non-degenerate algebras
Proposition 10**.**
For non degenerate algebras the matrix is orthogonal and
[TABLE]
Proof.
by symmetry. Since its elements are valued then element-wise ∎
Proposition 11**.**
For non-degenerate algebras .
Theorem 10**.**
For non-degenerate algebras the matrices and are orthogonal.
Proof.
First we prove an auxiliary equation. Consider the matrix
[TABLE]
Element-wise . Suppose that . Then
[TABLE]
Therefore,
[TABLE]
Right multiply by :
[TABLE]
so that
[TABLE]
Since is orthogonal the second assertion follows as well. ∎
Corollary 5** (Second fundamental identity).**
Consider the element in a non-degenerate algebra . Then there is an index , such that
[TABLE]
Proof.
for some . for some . The final assertion follows from the first fundamental identity. ∎
B.2. Degenerate algebras
For degenerate algebras a weaker version of the result holds
Proposition 12**.**
Consider a degenerate algebra and let . Then is idempotent.
Proof.
We observe that since is diagonal and it follows that contains only 1’s and 0’s on its diagonal so and
[TABLE]
∎
Appendix C Maxima code
The code was implemented using the Maxima package clifford developed by the author [16, 18]. Examples presented above can be recomputed using the command elem2mat1 after proper initialization of the package. The key functions of the implementation are listed below.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Ablamowicz, R., Fauser, B.: Mathematics of CLIFFORD - A Maple package for Clifford and Grassmann algebras. Advances in Applied Clifford Algebras 15 (2), 157–181 (2002)
- 2[2] Acus, A., Dargys, A.: The inverse of a multivector: Beyond the threshold p + q = 5 𝑝 𝑞 5 p+q=5 . Advances in Applied Clifford Algebras 28 (3) (2018). DOI 10.1007/s 00006-018-0885-4
- 3[3] Aragon-Camarasa, G., Aragon-Gonzalez, G., Aragon, J.L., Rodriguez-Andrade, M.A.: Clifford Algebra with Mathematica. In: I. Rudas (ed.) Recent Advances in Applied Mathematics, Mathematics and Computers in Science and Engineering Series , vol. 56, pp. 64–73. Proceedings of AMATH ’15, WSEAS Press, Budapest (2015)
- 4[4] Brihaye, Y., Maslanka, P., Giler, S., Kosinski, P.: Real representations of Clifford algebras. Journal of Mathematical Physics 33 (5), 1579 (1992). DOI 10.1063/1.529682 . URL http://dx.doi.org/10.1063/1.529682
- 5[5] Calvet, R.G.: On matrix representations of Geometric (Clifford) algebras. J Geom Sym Physics 43 , 1 –36 (2017)
- 6[6] De Keninck, S.: ganja.js (2020). DOI 10.5281/ZENODO.3635774 . URL https://zenodo.org/record/3635774
- 7[7] Faddeev, D.K., Sominskij, I.S.: Sbornik Zadatch po Vyshej Algebre. Nauka, Moscow–Leningrad (1949)
- 8[8] Hildenbrand, D., Pitt, J., Koch, A.: Gaalop – High Performance Parallel Computing based on Conformal Geometric Algebra, pp. 477–494. Springer London, London (2010). DOI 10.1007/978-1-84996-108-0˙22
