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
ElementWrapperCheckWrappedClass does not implement comparison properly #26890
Comments
This comment has been minimized.
This comment has been minimized.
Dependencies: #26586 |
Commit: |
Author: Jeroen Demeyer |
comment:5
You are changing the comparison logic a bit, in particular, comparisons between two wrapped classes no longer takes into account the parents. Since this is an extension class, it will not get subclassed when constructing elements; you've added an For a more concrete example, consider My recollection of why this was done this way was because we did not want the wrapped objects to have an ordering on them. However, I do not think there is any harm in inducing an ordering from the underlying objects. So the rest of your changes are fine with me. |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:10
There is one failure because of the fact that coercion is now taken into account. So we also need this change in Note that for untwisted affine type the dual form of the classical Weyl group
is isomorphic to the usual one, but acts on a different lattice and is therefore different to sage::
sage: W0v = E.dual_classical_weyl(); W0v
Weyl Group of type ['A', 2] (as a matrix group acting on the weight lattice)
sage: v = W0v.from_reduced_word([1,2])
sage: x = PvW0(v); x
s1*s2
sage: y = PW0(v); y
s1*s2
- sage: x == y
- False
sage: x.parent() == y.parent()
False
+
+ However, because there is a coercion from ``PvW0`` to ``PW0``,
+ the elements ``x`` and ``y`` compare as equal::
+
+ sage: x == y
+ True
+ Once changed, you can set a positive review on my behalf. |
Reviewer: Travis Scrimshaw |
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
Changed dependencies from #26586 to none |
This comment has been minimized.
This comment has been minimized.
Changed branch from u/jdemeyer/elementwrappercheckwrappedclass_does_not_implement_comparison_properly to |
comment:15
This tickets were closed as fixed after the Sage 8.5 release. |
Comparisons with the wrapped class should just delegate to the wrapped class, handling also inequalities instead of only
==
and!=
.Component: categories
Author: Jeroen Demeyer
Branch/Commit:
8418f8e
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/26890
The text was updated successfully, but these errors were encountered: