# HG changeset patch
# User Martin Albrecht <malb@informatik.uni-bremen.de>
# Date 1200681496 0
# Node ID 454ecace6c8e8c7088f92b153da0b21c87f3affd
# Parent  b5ddb4a2710377b3d160b9a8f56e970eadf42782
some touch ups for the basis_is_groebner documentation

diff -r b5ddb4a27103 -r 454ecace6c8e sage/rings/polynomial/multi_polynomial_ideal.py
--- a/sage/rings/polynomial/multi_polynomial_ideal.py	Fri Jan 18 18:18:45 2008 +0000
+++ b/sage/rings/polynomial/multi_polynomial_ideal.py	Fri Jan 18 18:38:16 2008 +0000
@@ -849,10 +849,12 @@ class MPolynomialIdeal_singular_repr:
         return ret
 
     def basis_is_groebner(self):
-        """
-        Returns true if self.gens() form a Groebner Basis. This is done by
-        trying to lift Syz(LM(self)) to Syz(self) as self is a Groebner
-        Basis if and only if for every element S in Syz(LM(self)):
+        r"""
+        Returns true if the generators of self (\code{self.gens()})
+        form a Groebner basis. Let $I$ be the set of generators of
+        this ideal. The check is performed by trying to lift
+        $Syz(LM(I))$ to $Syz(I)$ as $I$ forms a Groebner basis if and
+        only if for every element $S$ in $Syz(LM(I)):
         $$S \cdot G = \sum_{i=0}^{m} h_ig_i \rightarrow_G 0.$$.
 
         ALGORITHM: Uses Singular
@@ -866,13 +868,13 @@ class MPolynomialIdeal_singular_repr:
             sage: I2.basis_is_groebner()
             True
 
-        \note{From the Singular Manualf for the reduce function we use in
+        \note{From the Singular Manual for the reduce function we use in
         this method: 'The result may have no meaning if the second
         argument (self, malb) is not a standard basis'. I (malb) believe
         this refers to the mathematical fact that the results may have no
         meaning if self is no standard basis, i.e., Singular doesn't 'add'
         any additional 'nonsense' to the result. So we may acutally use
-        reduce to determine if self is a Groebner Basis.}
+        reduce to determine if self is a Groebner basis.}
         """
         from sage.matrix.constructor import matrix
         singular = self._singular_().parent()
@@ -1264,7 +1266,6 @@ class MPolynomialIdeal( MPolynomialIdeal
             sage: I.groebner_basis()
             [84*c^4 - 40*c^3 + c^2 + c, 7*b + 210*c^3 - 79*c^2 + 3*c, 7*a - 420*c^3 + 158*c^2 + 8*c - 7]
 
-
             sage: I = sage.rings.ideal.Katsura(P,3) # regenerate to prevent caching
             sage: I.groebner_basis('singular:groebner')
             [84*c^4 - 40*c^3 + c^2 + c, 7*b + 210*c^3 - 79*c^2 + 3*c, 7*a - 420*c^3 + 158*c^2 + 8*c - 7]
