Skip to content

Commit 102e3b4

Browse files
author
Release Manager
committed
gh-40246: Make the completion of Sym be its formal series ring. <!-- ^ Please provide a concise and informative title. --> <!-- ^ Don't put issue numbers in the title, do this in the PR description below. --> <!-- ^ For example, instead of "Fixes #12345" use "Introduce new method to calculate 1 + 2". --> <!-- v Describe your changes below in detail. --> <!-- v Why is this change required? What problem does it solve? --> <!-- v If this PR resolves an open issue, please link to it here. For example, "Fixes #12345". --> ``` sage: s = SymmetricFunctions(ZZ).s() sage: s.completion() is s.formal_series_ring() False ``` since we forgot to override the alias. ### 📝 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. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on. For example, --> <!-- - #12345: short description why this is a dependency --> <!-- - #34567: ... --> URL: #40246 Reported by: Travis Scrimshaw Reviewer(s): Frédéric Chapoton
2 parents 394200a + b0f5ab2 commit 102e3b4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sage/combinat/sf/sfa.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,10 +1672,14 @@ def formal_series_ring(self):
16721672
16731673
sage: type(L)
16741674
<class 'sage.rings.lazy_series_ring.LazySymmetricFunctions_with_category'>
1675+
sage: s.completion() is s.formal_series_ring()
1676+
True
16751677
"""
16761678
from sage.rings.lazy_series_ring import LazySymmetricFunctions
16771679
return LazySymmetricFunctions(self)
16781680

1681+
completion = formal_series_ring
1682+
16791683

16801684
class FilteredSymmetricFunctionsBases(Category_realization_of_parent):
16811685
r"""

0 commit comments

Comments
 (0)