@@ -177,15 +177,15 @@ class FreeNilpotentLieAlgebra(NilpotentLieAlgebra_dense):
177177 - ``naming`` -- (optional) a string; the naming scheme to use for
178178 the basis; valid values are:
179179
180- * ``'index'`` - (default for `r \leq 10`) the basis elements are
180+ * ``'index'`` - (default for `r < 10`) the basis elements are
181181 ``names_w``, where ``w`` are Lyndon words indexing the basis
182- * ``'linear'`` - (default for `r > 10`) the basis is indexed
182+ * ``'linear'`` - (default for `r \geq 10`) the basis is indexed
183183 ``names_1``, ..., ``names_n`` in the ordering of the Lyndon basis
184184
185185 .. NOTE::
186186
187- The ``'index'`` naming scheme is not supported if `r > 10` since
188- it leads to ambiguous names.
187+ The ``'index'`` naming scheme is not supported if `r \geq 10`
188+ since it leads to ambiguous names.
189189
190190 EXAMPLES:
191191
@@ -218,7 +218,7 @@ class FreeNilpotentLieAlgebra(NilpotentLieAlgebra_dense):
218218
219219 A fully custom naming scheme on the Heisenberg algebra::
220220
221- sage: L = LieAlgebra(ZZ, 2, step=2, names = ('X', 'Y', 'Z'))
221+ sage: L = LieAlgebra(ZZ, 2, step=2, names= ('X', 'Y', 'Z'))
222222 sage: a, b, c = L.basis()
223223 sage: L.basis().list()
224224 [X, Y, Z]
@@ -364,17 +364,17 @@ def __init__(self, R, r, s, names, naming, category, **kwds):
364364
365365 if len (names ) == 1 and len (index_set ) > 1 :
366366 if not naming :
367- if r > 10 :
367+ if r >= 10 :
368368 naming = 'linear'
369369 else :
370370 naming = 'index'
371371 if naming == 'linear' :
372372 names = ['%s_%d' % (names [0 ], k + 1 )
373373 for k in range (len (index_set ))]
374374 elif naming == 'index' :
375- if r > 10 :
375+ if r >= 10 :
376376 raise ValueError ("'index' naming scheme not supported for "
377- "over 10 generators" )
377+ "10 or more generators" )
378378 names = ['%s_%s' % (names [0 ], "" .join (str (s ) for s in w ))
379379 for w in index_set ]
380380 else :
0 commit comments