-
-
Notifications
You must be signed in to change notification settings - Fork 491
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trac #33321: Implement GradedModulesWithBasis(R).Subobjects() and Fil…
…teredModulesWithBasis(R).Subobjects() Currently, graded submodules do not inherit grading from its ambient: {{{ sage: M = ModulesWithBasis(QQ).Graded().example() sage: M(Partition((4,2,1,1,1,1))).degree() 10 sage: N = M.submodule([M(Partition((4,2,1,1,1,1)))], category=GradedModulesWithBasis(QQ).Subobjects()) sage: n = N.basis() sage: n[0].degree() ------------------------------------------------------------------------ --- AttributeError Traceback (most recent call last) ... AttributeError: 'SubmoduleWithBasis_with_category' object has no attribute 'degree_on_basis' }}} We implement this by fulfilling the regressive category construction requirement for the `GradedModules().Subobjects()` category. We also do this for filtered modules (every submodule of a filtered module has a natural filtration inherited from the ambient module). Want: In the case where the generators are not from homogeneous but can made homogeneous by row reducing, it inherits its degrees. If the basis elements cannot be made homogeneous by row reduction, raise an error when trying to use `graded_submodule`. For example, {{{ sage: M = ModulesWithBasis(QQ).Graded().example() sage: N = M.graded_submodule([M(Partition((4,2,1,1,1,1))) - M(Partition((5,3))), M(Partition((5,3)))]) sage: n = N.basis() sage: (n[0].lift(), n[1].lift()) (P[4, 2, 1, 1, 1, 1], P[5,3]) sage: (n[0].degree(), n[1].degree()) (10, 8) sage: K = M.graded_submodule([M(Partition((4,2,1,1,1,1))) - M(Partition((5,3))), M(Partition((5,3)) - M(Partition((4,3)))]) Traceback (most recent call last): ... ValueError: element is not homogeneous }}} URL: https://trac.sagemath.org/33321 Reported by: gh-louisng114 Ticket author(s): Louis Ng, Travis Scrimshaw Reviewer(s): Matthias Koeppe
- Loading branch information
Showing
8 changed files
with
341 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.