Skip to content

Commit 4e02c24

Browse files
author
Matthias Koeppe
committed
src/sage/rings/function_field: Use more block # needs
1 parent d0cafb4 commit 4e02c24

File tree

1 file changed

+24
-19
lines changed

1 file changed

+24
-19
lines changed

src/sage/rings/function_field/valuation.py

Lines changed: 24 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,13 @@ def create_key_and_extra_args_from_valuation(self, domain, valuation):
307307
308308
sage: K.<x> = FunctionField(QQ)
309309
sage: R.<y> = K[]
310-
sage: L.<y> = K.extension(y^3 + 1/x^3*y + 2/x^4) # needs sage.rings.function_field
311-
sage: v = K.valuation(x) # needs sage.rings.function_field
312-
sage: v.extensions(L) # needs sage.rings.function_field
313-
[[ (x)-adic valuation, v(y) = 1 ]-adic valuation (in Function field in y defined by y^3 + x*y + 2*x^2 after y |--> 1/x^2*y),
314-
[ (x)-adic valuation, v(y) = 1/2 ]-adic valuation (in Function field in y defined by y^3 + x*y + 2*x^2 after y |--> 1/x^2*y)]
310+
sage: L.<y> = K.extension(y^3 + 1/x^3*y + 2/x^4) # needs sage.rings.function_field
311+
sage: v = K.valuation(x) # needs sage.rings.function_field
312+
sage: v.extensions(L) # needs sage.rings.function_field
313+
[[ (x)-adic valuation, v(y) = 1 ]-adic valuation
314+
(in Function field in y defined by y^3 + x*y + 2*x^2 after y |--> 1/x^2*y),
315+
[ (x)-adic valuation, v(y) = 1/2 ]-adic valuation
316+
(in Function field in y defined by y^3 + x*y + 2*x^2 after y |--> 1/x^2*y)]
315317
316318
"""
317319
# this should have been handled by create_key already
@@ -510,14 +512,15 @@ def extensions(self, L):
510512
511513
Iterated extensions over the infinite place::
512514
515+
sage: # needs sage.rings.function_field
513516
sage: K.<x> = FunctionField(GF(2))
514517
sage: R.<y> = K[]
515-
sage: L.<y> = K.extension(y^2 + y + x^3) # needs sage.rings.function_field
518+
sage: L.<y> = K.extension(y^2 + y + x^3)
516519
sage: v = K.valuation(1/x)
517-
sage: w = v.extension(L) # needs sage.rings.function_field
518-
sage: R.<z> = L[] # needs sage.rings.function_field
519-
sage: M.<z> = L.extension(z^2 - y) # needs sage.rings.function_field
520-
sage: w.extension(M) # not implemented # needs sage.rings.function_field
520+
sage: w = v.extension(L)
521+
sage: R.<z> = L[]
522+
sage: M.<z> = L.extension(z^2 - y)
523+
sage: w.extension(M) # not implemented
521524
Traceback (most recent call last):
522525
...
523526
NotImplementedError
@@ -537,13 +540,14 @@ def extensions(self, L):
537540
538541
Test that this works in towers::
539542
543+
sage: # needs sage.rings.function_field
540544
sage: K.<x> = FunctionField(GF(2))
541545
sage: R.<y> = K[]
542-
sage: L.<y> = K.extension(y - x) # needs sage.rings.function_field
543-
sage: R.<z> = L[] # needs sage.rings.function_field
544-
sage: L.<z> = L.extension(z - y) # needs sage.rings.function_field
545-
sage: v = K.valuation(x) # needs sage.rings.function_field
546-
sage: v.extensions(L) # needs sage.rings.function_field
546+
sage: L.<y> = K.extension(y - x)
547+
sage: R.<z> = L[]
548+
sage: L.<z> = L.extension(z - y)
549+
sage: v = K.valuation(x)
550+
sage: v.extensions(L)
547551
[(x)-adic valuation]
548552
"""
549553
K = self.domain()
@@ -1283,12 +1287,13 @@ def is_discrete_valuation(self):
12831287
12841288
EXAMPLES::
12851289
1290+
sage: # needs sage.rings.function_field
12861291
sage: K.<x> = FunctionField(QQ)
12871292
sage: R.<y> = K[]
1288-
sage: L.<y> = K.extension(y^2 - x^4 - 1) # needs sage.rings.function_field
1289-
sage: v = K.valuation(1/x) # needs sage.rings.function_field
1290-
sage: w0,w1 = v.extensions(L) # needs sage.rings.function_field
1291-
sage: w0.is_discrete_valuation() # needs sage.rings.function_field
1293+
sage: L.<y> = K.extension(y^2 - x^4 - 1)
1294+
sage: v = K.valuation(1/x)
1295+
sage: w0,w1 = v.extensions(L)
1296+
sage: w0.is_discrete_valuation()
12921297
True
12931298
12941299
"""

0 commit comments

Comments
 (0)