- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comparison of morphisms assumes that a Morphism is determined by its action on gens() #15381
Comments
comment:1
Thinking about it, I'm not sure if |
comment:2
Battle plan:
What do you think? |
Dependencies: #10963 |
comment:5
From emails between Nicolas and me: [Nicolas] [Darij] [Nicolas] Actually, for hom, you need not only a category argument but also an
[Darij]
Yeah, but some constructors decide on the category of the object they |
comment:6
Replying to @darijgr:
For the record: we already have
A weaker step would be to just define By the way: it's best if all the '*_generators' methods would return Cheers, |
comment:9
Related (duplicate?): #17768 |
comment:10
Replying to @mezzarobba:
Strongly related, but not a duplicate as this could potentially be an issue in other parts of Sage. |
Stopgaps: wrongAnswerMarker |
Counterexamples:
and
Of course,
g
is not the identity. The culprit is here:This is part of the
is_identity
method insage/categories/morphism.pyx
. The assumption is that thegens
method and the morphism refer to the same category, but here they don't: the morphism is a module morphism, whileD3.gens()
refers to the generators as algebra.Note that the equality check takes the other extreme and seems to only return
True
if theon_basis
lambda functions of both morphisms are identical (i. e., I can add zero to each image and it doesn't returnTrue
anymore, even if they are identical).Depends on #10963
CC: @tscrim @xcaruso @simon-king-jena @nthiery @mezzarobba
Component: categories
Keywords: gens, morphisms, modules
Stopgaps: wrongAnswerMarker
Issue created by migration from https://trac.sagemath.org/ticket/15381
The text was updated successfully, but these errors were encountered: