Commit 0b0b447
Release Manager
gh-41096: Fix bug with creation of extensions of function fields
When creating a function field extension, it is never checked that the
polynomial defining the extension is defined over that function field.
Hence, when calling `base_ring` one gets a bug because the base ring of
the polynomial ring is returned, and not the function field which we
used to create the extension.
Fixes #41095.
When working on this, I remarked that the `extension` method of
`RationalFunctionField` was just a copy paste (even for doctests) of the
one of `FunctionField`, which is its parent. So I also removed it. But I
can put it back if someone explains me why this can sometimes be useful
to do so.
### 📝 Checklist
<!-- Put an `x` in all the boxes that apply. -->
- [X] The title is concise and informative.
- [X] The description explains in detail what this PR is about.
- [X] I have linked a relevant issue or discussion.
- [X] I have created tests covering the changes.
- [X] I have updated the documentation and checked the documentation
preview.
URL: #41096
Reported by: Rubén Muñoz--Bertrand
Reviewer(s): Chenxin Zhong, Rubén Muñoz--Bertrand
File tree
2 files changed
+14
-33
lines changed- src/sage/rings/function_field
2 files changed
+14
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
470 | 483 | | |
471 | 484 | | |
472 | | - | |
| 485 | + | |
473 | 486 | | |
474 | 487 | | |
475 | 488 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | | - | |
438 | | - | |
439 | | - | |
440 | | - | |
441 | | - | |
442 | | - | |
443 | | - | |
444 | | - | |
445 | | - | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | | - | |
452 | | - | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | 433 | | |
466 | 434 | | |
467 | 435 | | |
| |||
0 commit comments