@@ -307,11 +307,13 @@ def create_key_and_extra_args_from_valuation(self, domain, valuation):
307
307
308
308
sage: K.<x> = FunctionField(QQ)
309
309
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)]
315
317
316
318
"""
317
319
# this should have been handled by create_key already
@@ -510,14 +512,15 @@ def extensions(self, L):
510
512
511
513
Iterated extensions over the infinite place::
512
514
515
+ sage: # needs sage.rings.function_field
513
516
sage: K.<x> = FunctionField(GF(2))
514
517
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)
516
519
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
521
524
Traceback (most recent call last):
522
525
...
523
526
NotImplementedError
@@ -537,13 +540,14 @@ def extensions(self, L):
537
540
538
541
Test that this works in towers::
539
542
543
+ sage: # needs sage.rings.function_field
540
544
sage: K.<x> = FunctionField(GF(2))
541
545
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)
547
551
[(x)-adic valuation]
548
552
"""
549
553
K = self .domain ()
@@ -1283,12 +1287,13 @@ def is_discrete_valuation(self):
1283
1287
1284
1288
EXAMPLES::
1285
1289
1290
+ sage: # needs sage.rings.function_field
1286
1291
sage: K.<x> = FunctionField(QQ)
1287
1292
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()
1292
1297
True
1293
1298
1294
1299
"""
0 commit comments