Opened 2 years ago
Last modified 18 months ago
#15647 new defect
Make a proper distinction in the categories between dual and graded dual
Reported by: | darij | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | sage-6.4 |
Component: | categories | Keywords: | |
Cc: | nthiery, sage-combinat | Merged in: | |
Authors: | Reviewers: | ||
Report Upstream: | N/A | Work issues: | |
Branch: | Commit: | ||
Dependencies: | #10963 | Stopgaps: |
Description (last modified by nthiery)
Tangent off the #10963 discussion...
+ @cached_method + def DualObjects(self): + r""" + Return the category of duals of objects of ``self``. + + The dual of a vector space `V` is the space consisting of + all linear functionals on `V` (see :wikipedia:`Dual_space`). + Additional structure on `V` can endow its dual with + additional structure; e.g. if `V` is an algebra, then its + dual is a coalgebra. + + This returns the category of dual of spaces in ``self`` endowed + with the appropriate additional structure. + + .. SEEALSO:: + + - :class:`.dual.DualObjectsCategory` + - :class:`~.covariant_functorial_construction.CovariantFunctorialConstruction`. + + .. TODO:: add support for graded duals. + + EXAMPLES:: + + sage: VectorSpaces(QQ).DualObjects() + Category of duals of vector spaces over Rational Field + + The dual of a vector space is a vector space:: + + sage: VectorSpaces(QQ).DualObjects().super_categories() + [Category of vector spaces over Rational Field] + + The dual of an algebra is a coalgebra:: + + sage: sorted(Algebras(QQ).DualObjects().super_categories(), key=str) + [Category of coalgebras over Rational Field, + Category of duals of vector spaces over Rational Field]
I know this is not a big issue since the dual() of an algebra *is* a coalgebra in probably all cases in which dual() is implemented (not least because in the infinite-dimensional cases it usually means the graded dual). But at some point it probably *will* become an issue (maybe with the introduction of non-graded bases for graded algebras?), and I'm unhappy with the docstring lying in my face. And Nicolas suggests that "we need to clean up the distinction between dual and graded dual; this is not completely obvious to set the things up so that we can still share some code between the two".
At this occasion, DualObjectsCategory? should be made into a category
over base ring, if not just to inherit from the an_instance method.
Compare:
sage: sage: ModulesWithBasis.Graded.an_instance() Category of graded modules with basis over Rational Field sage: ModulesWithBasis.DualObjects.an_instance() Type error ...
Change History (4)
comment:1 Changed 2 years ago by nthiery
- Description modified (diff)
- Summary changed from Docstring and probably also code is dangerously naive about duality to Make a proper distinction in the categories between dual and graded dual
- Type changed from task to defect
comment:2 Changed 2 years ago by vbraun_spam
- Milestone changed from sage-6.1 to sage-6.2
comment:3 Changed 22 months ago by vbraun_spam
- Milestone changed from sage-6.2 to sage-6.3
comment:4 Changed 18 months ago by vbraun_spam
- Milestone changed from sage-6.3 to sage-6.4