xideal.tex 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  1. \chapter{XIDEAL: Gr\"obner for exterior algebra}
  2. \label{XIDEAL}
  3. \typeout{{XIDEAL: Gr\"obner Bases for exterior algebra}}
  4. {\footnotesize
  5. \begin{center}
  6. David Hartley \\
  7. GMD, Institute I1, Schloss Birlinghoven \\
  8. D--53757 St. Augustin, Germany \\[0.05in]
  9. e--mail: David.Hartley@gmd.de \\[0.1in]
  10. and \\
  11. Philip A.~Tuckey \\
  12. Max Planck Institute for Physics \\
  13. Foehringer Ring 6 \\
  14. D--80805 Munich, Germany \\[0.05in]
  15. e--mail: pht@iws170.mppmu.mpg.de
  16. \end{center}
  17. }
  18. \ttindex{XIDEAL}
  19. XIDEAL extends the Gr\"obner base method to exterior algebras.
  20. XIDEAL constructs Gr\"obner bases for solving the left ideal membership
  21. problem: Gr\"obner left ideal bases or GLIBs. For graded ideals, where each
  22. form is homogeneous in degree, the distinction between left and right
  23. ideals vanishes. Furthermore, if the generating forms are all homogeneous,
  24. then the Gr\"obner bases for the non-graded and graded ideals are
  25. identical. In this case, XIDEAL is able to save time by truncating the
  26. Gr\"obner basis at some maximum degree if desired.
  27. XIDEAL uses the EXCALC package (chapter~\ref{EXCALC}).
  28. \section{Operators}
  29. \subsubsection*{XIDEAL}
  30. \f{XIDEAL} calculates a Gr\"obner left ideal basis in
  31. an exterior algebra. The syntax is\ttindex{XIDEAL}
  32. \begin{verbatim}
  33. XIDEAL(S:list of forms[,R:integer]):list of forms.
  34. \end{verbatim}
  35. \f{XIDEAL} calculates the Gr\"obner left ideal basis for the left ideal
  36. generated by \f{S} using graded lexicographical ordering based on the
  37. current kernel ordering. The resulting list can be used for subsequent
  38. reductions with \f{XMODULOP} as long as the kernel ordering is not
  39. changed. If the set of generators \f{S} is graded, an optional parameter
  40. \f{R} can be given, and \f{XIDEAL} produces a truncated basis suitable for
  41. reducing exterior forms of degree less than or equal to \f{R} in the left
  42. ideal. This can save time and space with large expressions, but the result
  43. cannot be used for exterior forms of degree greater than \f{R}. See also
  44. the switches \f{XSTATS} and \f{XFULLREDUCTION}.
  45. \subsubsection*{XMODULO}
  46. \f{XMODULO} reduces exterior forms to their (unique) normal forms modulo a
  47. left ideal. The syntax is\ttindex{XMODULO}
  48. \begin{verbatim}
  49. XMODULO(F:form, S:list of forms):form
  50. \end{verbatim}
  51. or
  52. \begin{verbatim}
  53. XMODULO(F:list of forms, S:list of forms):list of forms.
  54. \end{verbatim}
  55. An alternative infix syntax is also available:
  56. \begin{verbatim}
  57. F XMODULO S.
  58. \end{verbatim}
  59. \f{XMODULO(F,S)} first calculates a Gr\"obner basis for the left ideal
  60. generated by \f{S}, and then reduces \f{F}. \f{F} may be either a single
  61. exterior form, or a list of forms, and \f{S} is a list of forms. If \f{F}
  62. is a list of forms, each element is reduced, and any which vanish are
  63. deleted from the result. If this operator is used more than once, and
  64. \f{S} does not change between calls, then the Gr\"obner basis is not
  65. recalculated. If the set of generators \f{S} is graded, then a truncated
  66. Gr\"obner basis is calculated using the degree of \f{F} (or the maximal
  67. degree in \f{F}).
  68. \subsubsection*{XMODULOP}
  69. \f{XMODULOP} reduces exterior forms to their (not necessarily unique)
  70. normal forms modulo a set of exterior polynomials. The syntax
  71. is\ttindex{XMODULOP}
  72. \begin{verbatim}
  73. XMODULOP(F:form, S:list of forms):form
  74. \end{verbatim}
  75. or
  76. \begin{verbatim}
  77. XMODULOP(F:list of forms, S:list of forms):list of forms.
  78. \end{verbatim}
  79. An alternative infix syntax is also available:
  80. \begin{verbatim}
  81. F XMODULOP S.
  82. \end{verbatim}
  83. \f{XMODULOP(F,S)} reduces \f{F} with respect to the set of exterior
  84. polynomials \f{S}, which is not necessarily a Gr\"obner basis. \f{F} may be
  85. either a single exterior form, or a list of forms, and \f{S} is a list of
  86. forms. This operator can be used in conjunction with \f{XIDEAL} to produce
  87. the same effect as \f{XMODULO}: for a single form \f{F} in an ideal
  88. generated by the graded set \f{S}, \f{F XMODULO S} is equivalent to \f{F
  89. XMODULOP XIDEAL(S,EXDEGREE F)}.
  90. \section{Switches}
  91. \subsubsection*{XFULLREDUCE}
  92. \f{ON XFULLREDUCE}\ttindex{XFULLREDUCE} allows \f{XIDEAL} and
  93. \f{XMODULO} to calculate reduced (but not necessarily normed)
  94. Gr\"obner bases, which speeds up subsequent reductions, and guarantees
  95. a unique form (up to scaling) for the Gr\"obner basis. \f{OFF
  96. XFULLREDUCE} turns of this feature, which may speed up calculation of
  97. the Gr\"obner basis. \f{XFULLREDUCE} is \f{ON} by default.
  98. \subsubsection*{XSTATS}
  99. \f{ON XSTATS}\ttindex{XSTATS} produces counting and timing
  100. information. As \f{XIDEAL} is running, a hash mark (\verb.#.) is
  101. printed for each form taken from the input list, followed by a
  102. sequences of carets (\verb.^.) and dollar signs (\verb.$.). Each caret
  103. represents a new basis element obtained by a simple wedge product, and
  104. each dollar sign represents a new basis element obtained from an
  105. S-polynomial. At the end, a table is printed summarising the
  106. calculation. \f{XSTATS} is \f{OFF} by default.
  107. \section{Examples}
  108. Suppose EXCALC and XIDEAL have been loaded, the switches are at their
  109. default settings, and the following exterior variables have been declared:
  110. \begin{verbatim}
  111. pform x=0,y=0,z=0,t=0,f(i)=1,h=0,hx=0,ht=0;
  112. \end{verbatim}
  113. In a commutative polynomial ring, a single polynomial is its own Gr\"obner
  114. basis. This is no longer true for exterior algebras because of the presence
  115. of zero divisors, and can lead to some surprising reductions:
  116. \begin{verbatim}
  117. xideal {d x^d y - d z^d t};
  118. {d T^d Z + d X^d Y,
  119. d X^d Y^d Z,
  120. d T^d X^d Y}
  121. f(3)^f(4)^f(5)^f(6)
  122. xmodulo {f(1)^f(2) + f(3)^f(4) + f(5)^f(6)};
  123. 0
  124. \end{verbatim}
  125. The heat equation, $h_{xx}=h_t$ can be represented by the following
  126. exterior differential system.
  127. \begin{verbatim}
  128. S := {d h - ht*d t - hx*d x,
  129. d ht^d t + d hx^d x,
  130. d hx^d t - ht*d x^d t};
  131. \end{verbatim}
  132. \f{XMODULO} can be used to check that the exterior differential system is
  133. closed under exterior differentiation.
  134. \begin{verbatim}
  135. d S xmodulo S;
  136. {}
  137. \end{verbatim}
  138. Non-graded left and right ideals are no longer the same:
  139. \begin{verbatim}
  140. d t^(d z+d x^d y) xmodulo {d z+d x^d y};
  141. 0
  142. (d z+d x^d y)^d t xmodulo {d z+d x^d y};
  143. - 2*d t^d z
  144. \end{verbatim}
  145. Higher order forms can now reduce lower order ones:
  146. \begin{verbatim}
  147. d x xmodulo {d y^d z + d x,d x^d y + d z};
  148. 0
  149. \end{verbatim}
  150. Any form containing a 0-form term generates the whole ideal:
  151. \begin{verbatim}
  152. xideal {1 + f(1) + f(1)^f(2) + f(2)^f(3)^f(4)};
  153. {1}
  154. \end{verbatim}