Riemann Tensor Polynomial Canonicalization by Graph Algebra Extension
Hongbo Li, Zhang Li, Yang Li

TL;DR
This paper introduces a novel graph algebra extension theory to develop a canonicalization algorithm for Riemann tensor polynomials, addressing the longstanding challenge of multiterm tensor expression simplification.
Contribution
It presents the first extension theory of graph algebra specifically designed for multiterm Riemann tensor polynomial canonicalization.
Findings
Developed a new canonicalization algorithm based on graph algebra extension
Achieved improved efficiency in tensor polynomial simplification
Provided theoretical foundations for multiterm tensor canonicalization
Abstract
Tensor expression simplification is an "ancient" topic in computer algebra, a representative of which is the canonicalization of Riemann tensor polynomials. Practically fast algorithms exist for monoterm canonicalization, but not for multiterm canonicalization. Targeting the multiterm difficulty, in this paper we establish the extension theory of graph algebra, and propose a canonicalization algorithm for Riemann tensor polynomials based on this theory.
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
TopicsParallel Computing and Optimization Techniques · Tensor decomposition and applications · Distributed and Parallel Computing Systems
11institutetext: Key Laboratory of Mathematics Mechanization, AMSS, UCAS, NCMIS, Chinese Academy of Sciences, Beijing 100190, China
Riemann Tensor Polynomial Canonicalization by Graph Algebra Extension
Hongbo Li
Zhang Li
Yang Li
Abstract
Tensor expression simplification is an “ancient” topic in computer algebra, a representative of which is the canonicalization of Riemann tensor polynomials. Practically fast algorithms exist for monoterm canonicalization, but not for multiterm canonicalization. Targeting the multiterm difficulty, in this paper we establish the extension theory of graph algebra, and propose a canonicalization algorithm for Riemann tensor polynomials based on this theory.
Key words: Tensor expression simplification; Riemann tensor polynomial; Multiterm canonicalization; Graph algebra; Multigraph extension.
1 Introduction
Tensor canonicalization is a classical topic in computer algebra. There is a myriad of softwares including this function, some of which are updating it consistently. An extensive collection of the softwares and related literature can be found in [13].
The symmetries of the Riemann tensor on a Riemannian manifold of unknown dimension are one of the most complex that occur in practice, making it a challenging task to normalize general Riemann tensor polynomials. We adopt the following terminology in this paper:
R-factor:
indicial form of the Riemann tensor. It is of the form , where are indices.
R-monomial:
scaled contraction of copies of the Riemann tensor; is called the degree of the R-monomial.
Ricci R-factor:
an R-factor with loop (two dummy indices of the same name).
R-polynomial:
a tensor whose indicial form is the sum of R-monomials.
Row character:
the 4 indices of an R-factor can be written in two rows: the upper and lower ones.
The following are the symmetries within an R-monomial of degree :
- •
-symmetry: the group upon an R-factor; it has two generators: and .
- •
Commutativity: an R-monomial of degree has permutation symmetry among its R-factors.
- •
Renaming: an R-monomial is invariant under renaming of dummy indices; it has permutation symmetry , where is the number of different dummy indices.
- •
Cyclic symmetry: Bianchi identity
“” and “Commutativity” form a group of size , while “Renaming” forms another group of size . The two groups are called the monoterm symmetry, while the cyclic symmetry is called the multiterm symmetry.
There is a symmetry on row character. Two indices of the same name can always invert their row characters. This row symmetry is generally not taken into account, because a free index in any term of an R-polynomial must have the same row character, a property determined by the tensor nature.
Suppose an order is given among the indices. Given an R-monomial , in the equivalence class defined by the monoterm symmetry, an R-monomial whose sequence of indices has the minimal lexicographic order is called the pre-normal form of , also known as the canonical form of under the monoterm symmetry. The canonical form of under all the symmetries of is called its normal form [2].
We first introduce several methods in the literature devoted solely to computing the pre-normal form.
- Renaming preference:
When all the permutations of dummy indices inside an R-monomial are listed, then sorting the R-factors has logarithm complexity for any of the permutations. Any method of this class has factorial complexity [8].
- Double coset representative:
In [9], [10], a method based on strong generating set representation of the permutation group is proposed, which has exponential complexity in the worst case [9]. The softwares xPerm and Canon based on this algorithm turn out to be the fastest in practice [12].
- Graph-theoretic method based on directed graph labeling:
A pair of dummy indices of a same name can be naturally taken as an edge connecting two vertices. To use the canonical form in graph theory, a formulation of tensor algebra as an algebra of graphs is proposed in [15]. In this thesis for Master’s Degree, the first canonicalization algorithm based on graph theory is proposed, where a tensor is formulated as a graph by representing (1) its name as a vertex, (2) the indices as edges, (3) the row character of an index as direction of the edge, (4) the position of an index by showing it on the edge. In canonical relabeling, the adjacency matrix is used to find the best permutation for identical vertices in a graph. The algorithm should have factorial complexity.
- Graph-theoretic method based on undirected graph labeling:
A different graph representation of tensors is proposed in [6], where (1) each index is a vertex, (2) each pair of identical dummy indices is an edge, (3) an extra vertex is constructed to connect with every free index, (4) labels are used to describe the row character and position of an index. A fast algorithm for graph isomorphism problem is used to find the canonical graph having the smallest sorted labeled edge set. The algorithm has factorial complexity in the worst case.
The following methods are oriented to computing the normal form instead of the pre-normal form only.
- Group algebra and group representation theory:
In [3], [4], the group algebra of is used to reduce computing the normal form to computing the orthogonal rejection from a linear subspace in an surrounding space of dimension . In [2], Young diagram and Schur program are used in normalization, and are later implemented in Cadabra [17]. These methods all have factorial complexity. In [5], a nondeterministic method based on genetic algorithms is proposed.
- Gröbner basis:
In [18], it is proposed that computing the normal form of an R-monomial can be separated into two stages: first, computing the pre-normal form; second, using the Gröbner basis method to deal with multiterm symmetry. To use the Gröbner basis method, all the permutations of dummy indices inside an R-monomial must be considered. As the tensor contraction is highly restricted when compared with polynomial multiplication, a Gröbner basis theory need be established properly for tensor contraction [8]. The methods have factorial complexity.
- Linear equation solving among pre-normal forms related to cyclic symmetry.
[11] introduces a method of normalization by solving large systems of linear equations derived by alternatively replacing every R-factor in the pre-normal form of an R-monomial with its 3-index antisymmetrization in all possible inequivalent ways. The method has exponential complexity.
- Term rewriting by graph structure analysis:
In [7], a term rewriting method is proposed to normalize a special class of R-monomials of degree 3 by analyzing the structure of the graph associated with each R-monomial.
As summarized in [13], there are fast monoterm canonicalization algorithms, while efficient multiterm canonicalization algorithms are still missing. In some softwares a database storing the hard-to-compute normal forms of a large number of R-monomials is set up for fast visit. For example, MathTensor [16] has an ever-growing list of RiemannRule’s; Invar stores one million random Riemann monomial scalars and their normal forms of degree ranging from 2 up to 100 [11], [12], [14].
Targeting the difficulty in manipulating multiterm symmetry, in this paper:
i. We establish the extension theory of graph algebra.
The graph algebra proposed in [15] cannot handle multiterm symmetry. We first propose a new graph algebra by representing (1) an index as a vertex, with the position in the inclusive R-factor as an intrinsic property of the vertex, (2) a pair of identical indices as an edge. Then we extend Grassmann’s extension theory to the graph algebra, where in an extension graph a vertex is a high-dimensional vector space spanned by several vertices of the original graph. This framework makes it natural to handle cyclic symmetry and more general multiterm symmetry, where algebraic manipulations are used in stead of graph-theoretic algorithms.
ii. We propose a easy-to-understand algorithm for pre-normal form computing, which has the same worst-case complexity with the fastest algorithm [12] in the literature.
The following observation is fundamental: when a configuration of R-factors is fixed, then to get the minimal index sequence one only need fill in new dummy indices by the occurrence order of the positions held by old dummy indices. It is called the “positional order” in [1], and has been implemented in software TTC.
Our algorithm has no prerequisite of group theory. Based on the above observation, to fix a configuration our algorithm does not need run through the whole permutation group . It has worst-case complexity .
iii. We propose a complete algorithm for normal form computing based on graph algebra extension and linear equation solving in rational functions field.
There are two steps. First the pre-normal form of the extension graph is computed. Then the normal form is computed by computing the rational numbers valued RREF (reduced row echelon form) of a linear system with rational functions coefficient. The complexity of the algorithm is by Gauss-Jordan elimination. In contrast, the “brute-force” linear equation solving method [11] has complexity if by Gauss-Jordan elimination.
Throughout this paper we set the base numbers field to be the rational numbers , and set the order among monomials/sequences to be the lexicographic order. This paper is organized as follows. Sections 2 and 3 are on graph algebra extension theory; Sections 4 and 5 are on algorithms for pre-normal form and normal form respectively; Experiments and more examples will be reported elsewhere.
2 Connection multigraph and detailed graph
A connection multigraph is an undirected multigraph where the degree of any vertex . Obviously if the multigraph has more than one vertex, then any vertex has at most one loop. A vertex of degree is called a free vertex, while a vertex of degree 4 is called a dummy vertex. A dummy vertex with loop is called a Ricci vertex, while a dummy vertex without loop is called a complete vertex.
For any vertex of a connection graph , associate with it two twin-seats: and . Now together with the two twin-seats associated with it is called a detailed vertex, denoted by .
For any edge of connecting two vertices , assign in each a seat so that connects the two seats and , one from each detailed vertex. If an assignment of all the edges to the seats changes into a graph with the seats as vertices such that the degree of any seat , then the new graph is called a detailed graph of , and is called the detail-free multigraph of the detailed graph.
A detailed graph can be formally multiplied with a scalar , denoted by , called a multiple detailed graph. Two multiple detailed graphs can be formally added, and if they are equal up to coefficient, they can be combined by adding up their coefficients. The -space spanned by finitely many detailed graphs is called the detailed graph -space they generate.
Given a detailed graph , the set of graphs with maximal vertex degree and containing as a subgraph span a -space, called the ideal generated by . For two detailed graphs , a third detailed graph is said to be a join of , if both are subgraphs of . Two detailed graphs can have more than one join.
We use “” to denote a fixed join of , and use “” to denote a fixed join among . This formal product is commutative and associative. For detailed graphs , we define the following join of and , called the multilinear join:
[TABLE]
The multilinear join can be extended by associativity and commutativity to the general case.
Given finitely many detailed vertices, the formal scalar multiplication, addition and multilinear join among them generate a finite dimensional -space of detailed graphs, called the detailed graph -algebra they generate. A general element of the algebra is called a combined detailed graph.
Given a detailed graph whose seats not connected by edges are said to be free and are labeled by free indices one by one, if an order among its detailed vertices is given, then following the order all the seats of the detailed vertices can be lined up. Along the sequence of seats , if we remove all the free seats, and then preserve for each edge only the first seat it connects, we get a sequence of seats where the serial number of each seat is called the dummy index of the edge connecting it. Now label each seat of connected by an edge with the dummy index of the edge. The resulting labeled sequence of is called the serial index representation of associated with the order , also called the positional order in [1].
In the serial index representation, the order among the free indices can be prescribed arbitrarily, while the order among the dummy indices follow their natural order as integers. It is always assumed that all free indices all dummy indices. For a detailed graph of detailed vertices, there are different orders among the detailed vertices, and consequently there are at most different serial index representations of . The minimal serial index representation in the lexicographic order is called the minimal index representation of , denoted by .
Given detailed graphs , their various serial index representations span a -linear space, called the serial index -space they generate. For combined detailed graph , its minimal index representation refers to .
Given a detailed vertex , the following 24 detailed vertices
[TABLE]
span a -space, called the detail-free extension of the detailed vertex. It can be represented by the Grassmann exterior product of 24 detailed vertices taken as vectors, if the vectors are linearly independent. No matter how linearly dependent the 24 detailed vertices are, their common detail-free extension can be represented unanimously in parametric form as follows:
[TABLE]
where the ’s are free parameters. This form of representation is called the detailed extension of the detailed vertex.
Given a detailed graph with detailed vertices , or equivalently in the notation of detailed graph -algebra,
[TABLE]
the corresponding detail-free multigraph among the detail-free extensions of the detailed vertices can be represented as the following “detailed graph” among the detailed extensions of the detailed vertices:
[TABLE]
called the detailed extension of . Two detailed graphs are said to be multigraph-like, if they have the same connection multigraph.
So when viewed from the -space spanned by detailed vertices, the detail-free multigraph of a detailed graph with detailed vertices each having -dimensional detailed extension for , is a multigraph whose vertices are -dimensional linear subspaces for ; when viewed from the -space spanned by detailed graphs, the detail-free multigraph is a -dimensional linear subspace spanned by all the detailed graphs whose detailed vertices each have the same set of seats with the corresponding detailed vertex of .
In an R-monomial, if an R-factor has all its dummy indices removed, and all its free indices viewed as a set, then when the remainder is taken as a vertex, and every pair of identical dummy indices is taken as an edge, a multigraph is obtained, called the multigraph of the R-monomial.
An R-monomial is said to be connected if so is its multigraph. The multigraph of a connected R-monomial is a connection multigraph. For an R-monomial , a connected R-submonomial is said to be maximal if there is no connected R-submonomial of containing properly. The multigraph of an R-monomial is the disjoint union of the connection multigraphs of all the maximal connected R-submonomials.
For example, the connection multigraph of is , where each arc denotes an edge. The connection multigraph of is , while the connection multigraph of is .
In a connected R-monomial, every R-factor is a 4-tuple of seats, each seat being occupied by an index. When every seat is taken as a vertex, and every pair of identical dummy indices is taken as an edge, a detailed graph is obtained with every R-factor as a detailed vertex, called the detailed graph of the R-monomial. The detailed graph of an R-monomial is the disjoint union of the detailed graphs of all the maximal connected R-submonomials.
For example, the detailed graph of is , while the detailed graph of is . Each edge is denoted by a line with two asterisk ends denoting the seats it connects. The serial index representations of the two detailed graphs are respectively, which are also the minimal index representations of them.
3 Detailed Pre-R-graph and Detailed R-graph
Let be a connection multigraph. Denote by the -space of detailed graphs having the same detail-free expansion .
Define the following equivalence relation in : two multiple detailed graphs and are equivalent if one of the following is satisfied:
Sym:
, and and have only one different detailed vertex: if the detailed vertex of takes the form , then the other in is .
Sym+:
, and and have only one different detailed vertex: if the detailed vertex in takes the form , then the other in is .
Two combined detailed graphs and are equivalent if for , and are equivalent. This equivalence relation is called the pre-R-equivalence. The pre-R-equivalence class of a detailed vertex , detailed graph , respectively, is called a detailed pre-R-vertex, detailed pre-R-graph, and denoted by , , respectively.
Sym generate the symmetry group . From the viewpoint of graph algebra extension, depending on whether a detailed vertex has two loops or not, the corresponding detailed pre-R-vertex is a 4-D space or 8-D space spanned by the trajectory of group upon , called the -subextension of the detailed vertex. A detailed pre-R-graph is thus a detailed graph whose detailed vertices are -subextensions of the corresponding detailed vertices of any detailed graph in the pre-R-equivalence class.
Now that the coset has 3 elements, the detailed extension of a loop-free detailed pre-R-vertex is a 3-space spanned by the following basis:
[TABLE]
The detailed extension of a detailed pre-R-vertex with loop is a 1-space spanned by itself.
For a detailed pre-R-graph
[TABLE]
the detailed extension is a -dimensional -space with the following parametric representation:
[TABLE]
where is the set of bipartitions of 2,3,4 into two subsequences of length 1,2 respectively. The basis in (3.8) is the set of all detailed pre-R-graphs having the same connection multigraph with .
For a detailed graph , the minimum in the lexicographic order of all the minimal serial representations of elements in is called the pre-normal form of , denoted by . For combined detailed graph in the detailed graph -space, its pre-normal form is . The pre-normal form provides a unique 1-D representation of the detailed pre-R-graph.
Define the following equivalence relation in : let be detailed graphs, and let , then and are equivalent if one of the following is satisfied:
Pre-R:
and are pre-R-equivalent.
Bianchi:
, and have only one different detailed vertex: if the detailed vertex in takes the form , then the other two in separately are , respectively.
Two combined detailed graphs and of are equivalent if for , and are equivalent. This equivalence relation is called the R-equivalence.
The R-equivalence class of a detailed vertex , detailed graph , respectively, is called a detailed R-vertex, detailed R-graph, respectively, and denoted by , , respectively. The R-equivalence relation naturally induces an equivalence relation among the detailed pre-R-graphs, also called the R-equivalence: two detailed pre-R-graphs are equivalent if as detailed graphs they are R-equivalent.
Bianchi defines only one linear relation among the basis elements of (3.6). The reason is as follows. If the 4 seats of a vertex are permuted, then there are as many as 24 Bianchi relations:
[TABLE]
for all . It is easy to see that all of them are pre-R-equivalent.
So the detailed extension of a loop-free detailed R-vertex is a 2-space spanned by the following basis: , . For detailed R-graph (3.7), is a -dimensional -space with the following basis:
[TABLE]
(3.10) is the set of all detailed R-graphs having the same connection multigraph with .
For , the minimum in the lexicographic order of all the pre-normal forms of elements in is called the R-normal form of , denoted by -. For combined detailed graph , its R-normal form is . The R-normal form provides a unique 1-D representation of the detailed R-graph , or equivalently the common multigraph .
For detailed graph in (3.7), as a detailed pre-R-graph it has a detailed extension of dimensions, while as a detailed R-graph its detailed extension has dimension . So the basis elements in (3.8) when taken as detailed R-graphs satisfy linear constraints. These constraints can be selected as the following equations: for all , all acting upon 2,3, and all acting upon 2,3,4,
[TABLE]
(3.11) can also be obtained from the pre-normal form of the detailed extension (3.8) by special evaluations of the ’s.
(3.11) is a linear homogeneous system of equations in unknowns, where each unknown is a pre-normal R-monomial. Denote the unknowns by following the lexicographic order. Let be the RREF (reduced row echelon form) of the coefficient matrix. If is up to coefficient a leading variable of an equality in , then the normal form of is obtained by substituting the equality into , else is the normal form of .
4 Algorithm for Pre-normal Form
For an R-monomial , its pre-normal form is an R-monomial whose index sequence is the pre-normal form of the detailed graph of . For an R-polynomial, its pre-normal form is the linear combination of the pre-normal forms of its terms. An R-polynomial is said to be pre-normal if it is its own pre-normal form. For example, the pre-normal form of an R-factor can be obtained in three steps: (1) sort non-decreasingly, (2) sort non-decreasingly, (3) sort the two sorted pairs non-decreasingly.
We assume that the input R-polynomial does not contain indices named after integers, so that we can introduce integers as new dummy indices. We always assume
[TABLE]
Before introducing the pre-normal form computing algorithm, let us check three typical examples.
Example 1. Let , where .
First, change each R-factor into its pre-normal form. The result is , , , .
Second, the R-factors are classified into two groups: the first group consists of R-factors having free indices, the second group consists of the rest. Obviously all elements of all elements of .
Third, is sorted by free indices: , making a sequence. The serial index representation of is then obtained by the following assignment:
[TABLE]
The assignment naturally branches into two options: (1) ; (2) . Within sequence , option (1) gives index sequence while option (2) gives index sequence . As option (2) gives lower order, it becomes the single option.
Fourth, the corresponding old dummy indices in group are also renamed by the new ones. While is updated to , is updated to . Obviously . Now that all elements of and are ordered, they can merge to form a single sequence. In other words, the order among the 4 input R-monomials have been fixed.
Finally, the remaining old dummy indices are assigned to new ones . No matter whether is renamed to 6 or 7, the resulting R-monomial is the same: . It is the pre-normal form of .
Example 1 shows that if has free indices, then its pre-normal form can be computed by the loop procedure of first sorting the R-factors having fixed indices, then renaming the old dummy indices in the sorted R-factor sequence by the serial index representation. The same idea applies to the case when there is no free index.
Lemma 1
If connected R-monomial has no free index but has at least one Ricci R-factor, then the pre-normal form of must be led by a Ricci R-factor.
Proof. Any Ricci R-factor in the first position can be renamed as or , while a non-Ricci R-factor has the minimal index form , which is higher in order.
Example 2. .
The R-factors in pre-normal form are . By Lemma 1, one of the two Ricci R-factors is the first in the pre-normal form of . For example, if is the first, then and . So 4 branches are generated in assigning new indices 1,2,3:
[TABLE]
In each branch, the sequence of R-monomials containing fixed indices is denoted by , and the other R-monomials are in the set :
[TABLE]
In branch (1), assignment generates one more branch: while option leads to , option leads to . Since the two differ by coefficient, .
Example 2 shows that depth-first strategy is preferred in generating branches.
Example 3. Set in Example 1.
The R-factors of are , , , . Any of them may be the first in the pre-normal form of . For example, if is the first, then assignment has 24 options. All together the assignment of new indices 1,2,3,4 generates branches.
Once the first new indices are assigned, then similar to Example 1, more new indices can be assigned in each branch, and new branches may be generated by different options in the new assignment. Each branch finally generates a serial index representation of , and the minimum of them gives the pre-normal form of . By the algorithm below, the pre-normal form is .
An R-factor is said to be free if it contains any free index, otherwise it is said to be dummy. A dummy R-factor is said to be complete if it is not Ricci.
In the following,
- •
records the number of branches generated,
- •
records the serial number of the current branch in process,
- •
records the number of different new indices introduced in the -th branch,
- •
records the sequence of R-factors having fixed indices in the -th branch,
- •
records the set of R-factors not in ,
- •
records the set of fixed indices in the -th branch.
Complexity analysis:
Lemma 2
Let be the total number of branches generated in pnom, where is a connected R-monomial of degree . then .
Proof. Let the number of free, dummy Ricci, complete, R-factors in be , respectively. Then . The following are trivial facts:
- •
If is a free R-factor, then it generates at most two branches in both pnom and SerIdx; for example, this can happen when or , where the are fixed indices and the are old dummy indices.
- •
If has no free R-factor but has Ricci ones, then in pnom, the leading Ricci R-factor has options, while in SerIdx a Ricci R-factor never generates any new branch.
- •
If has only complete R-factors, then in pnom, the leading complete R-factor has options, while in SerIdx a complete R-factor generates at most one more branch, just as a free R-factor does.
When , then . When but , then ; when , then .
In pnom, generating a complete branch takes operations. By Lemma 2, the complexity of pnom is .
5 Algorithm for Normal Form
The normal form of an R-monomial is an R-polynomial whose index sequence is the R-normal form of the detailed graph of . For an R-polynomial, its normal form is the linear combination of the normal forms of its terms.
The extension of , denoted by , is an R-polynomial whose detailed graph is the detailed extension of the detailed graph of . All the R-monomials having the same connection multigraph with are terms of up to coefficient.
To see how can help computing , let us check a well-known example [2].
Example 4. Let ; it is already in pre-normal form.
First, in (3.8) where , , and . So
[TABLE]
Let and . Then in lexicographic order. Setting in (5.12), we get the following Bianchi relation on the first R-factor of :
[TABLE]
Setting in (5.12), we get the following Bianchi relation on the second R-factor of :
[TABLE]
Solving the two equations in variables , we get the solution . So is the normal form of .
Example 4 suggests the following procedure of normal form computing: Let connected R-monomial take the form (3.7) where every represents , then the pre-normal form of its extension (3.8) is evaluated to zero times under special evaluations of the parameters ’s: for , the -th evaluation is by setting . Denote by the set of parameters ’s in other than . Then . Let there be different pre-normal R-monomials in . Denote them by following the lexicographic order. That under the above special evaluations gives linear equations
[TABLE]
where , and is a matrix whose entries are in . Solving the linear system by Gauss-Jordan elimination, one gets the RREF : for , where .
In each equation of , divide the expression on the left side into two sub-expressions: sub-expression 1 contains the terms with coefficient in , and sub-expression 2 contains the rest. Denote by the union of the sub-expression 1’s from the equations of , and denote by the union of the sub-expression 2’s. Then each element of must be equal to zero, and we get a set of at most linear equations in the variables where is in a subset of . Computing the RREF of this linear system, we get . Continuing the selection of terms with coefficient in and the computing of an RREF of the selected new linear system, we finally get a complete RREF with coefficient in , which is composed of the ’s in the ’s.
Proposition 1
The complete RREF obtained by the above procedure is the RREF of linear system (3.11).
Proof. Let be the complete RREF obtained from . Then any equation in has all the coefficients in , i.e., . Since is obtained from by elementary row transformations with coefficients in , every equation of is a -linear combination of the equations in . We use to denote this relation.
Similarly, also has all its coefficients in , and
[TABLE]
Continuing this argument, we get
[TABLE]
Let be a linear system obtained from by different generic -specifications of the parameters in . Then has rows. Let be the linear system (3.11) of rows. Denote by the row space of a matrix .
Then . By (5.13), . So .
Conversely, let be the RREF of , let the equations in be for , where . Then for all , and the linear dependency is represented explicitly by a row of .
Let there be an equation in which . Then is of the form where
(1) and is linear in the for ;
(2) and are both linear in the for ;
(3) ;
(4) either or has no term in ;
(5) either or no term of can be divided by ;
(6) .
Using the rows of to make elementary row transformations to , it is easy to see that is changed into
[TABLE]
where
(1) , , ;
(2) ;
(3) either or every term of has degree ;
(4) either or no term of can be divided by .
We prove that for all , .
When is replaced by the corresponding equations for , we get equations
[TABLE]
where by generic specification , and so for the . These equations can all be obtained from by -coefficient elementary row transformations.
If for some , , then in the -dimensional vector space with coordinates , hyperplane generically does not meet hypersurface . This means we can choose a generic specification such that . Under this generic specification, (5.14) is a nontrivial linear relation among the where . This violates the RREF property of that the are -linearly independent.
So is identical to zero for all , hence is identical to zero. This means is obtained from by applying some -coefficient elementary row transformations induced by .
Applying this argument to all equations of , we get that all elements of and can be obtained from by -coefficient elementary row transformations.
Continue this argument to , then inductively to all for , till . In the end, can be obtained from by -coefficient elementary row transformations.
Now make generic specifications of to turn the -coefficient elementary row transformations into -coefficient ones. We finally get .
As a corollary, if is up to coefficient a leading variable in an equation of the complete RREF, say , then the normal form of is , else is the normal form of .
Complexity analysis:
Proposition 2
Let be a connected R-monomial of degree . Then normal takes operations.
Proof. Let be in the form of (3.7), then has terms. Computing the pre-normal form of takes operations.
Let be the number of R-monomials in after like term combination. Then . In Rebe, computing the RREF with coefficient field takes arithmetic operations upon multivariate rational functions.
Let , then when written as a matrix has the size of at most, so computing takes operations, which is when . Going this way, computing takes operations, till . Since
[TABLE]
computing the complete RREF takes operations, which is when . The overall complexity is thus .
Function Rebe in pnom can be replaced by other methods for computing the RREF of (3.11). Direct solving of (3.11) by Gauss-Jordan elimination has complexity . Although it is not fair to take the complexity of an arithmetic operation on rational functions as the same with that on rational numbers, function Rebe reduces the equation-solving complexity to , which is polynomial in the case when is the size of a polynomial in .
Notice that every row of (3.11) has at most three nonzero entries. It may be possible that the iterative methods for sparse -linear systems be applied to the sparse -linear system (3.11) for infinitely many accurate -valued solutions by solving the corresponding normal equations [19], so that the sparse solving has complexity . Even so, Rebe is valuable in the case when .
6 Conclusion
In this paper we establish the graph algebra extension theory and develop an algorithm of normalizing Riemann tensor polynomials based on this theory. The theory can be extended to the case involving covariant derivatives of the Riemann tensor, and other types of tensor in a straightforward way. Future work includes such extensions, and application to theorem proving in Riemannian geometry.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Balfagon A, and Jaen X. TTC: Symbolic tensor calculus with indices Comput. Phys. , 1998, 12 (3): 286-289.
- 2[2] Fulling SA, King RC, Wybourne BG, and Cummins CJ. Normal forms for tensor polynomials: I. The Riemann tensor, Class. Quantum. Grav. , 1992, 9 : 1151-1197.
- 3[3] Ilyin VA, and Kryukov AP. Symbolic simplification of tensor expressions using symmetries, dummy indices and identities, Proc. ISSAC’91 : 224-228.
- 4[4] Ilyin VA, and Kryukov AP. ATENSOR-REDUCE program for tensor simplification, Comput. Phys. Commun. , 1996, 96 : 36-52.
- 5[5] Kavian M, Mc Lenaghan RG, and Geddes KO. Application of genetic algorithms to the algebraic simplification of tensor polynomials, Proc. ISSAC’97 , Maui, Hawaii, USA, pp. 93-100.
- 6[6] Li Z, Shao S, and Liu W. Classifications and canonical forms of tensor product expressions in the presence of permutation symmetries. ar Xiv:1604.06156 v 1 [physics.chem-ph] Apr. 2016.
- 7[7] Liu J, Li H, and Zhang L. A complete classification of canonical forms of a class of Riemann tensor indexed expressions and its applications in differential geometry (in Chinese), Sci. Sin. Math. , 2013, 43 : 399-408.
- 8[8] Liu J. Normalization in Riemann tensor polynomial ring. In: China Computer Algebra Conference 2016 , Shenzhen, Nov. 10-11, 2016.
