-
-
Notifications
You must be signed in to change notification settings - Fork 648
Rewriting Lie subalgebras and ideals to always do computations in the ambient Lie algebra #40137
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
Conversation
7daa567
to
bb79775
Compare
@fchapoton Can you review this? It is a bit subtle of an issue, but it fixes a pretty bad bug with incorrect quotients. |
there seems to be broken doctests |
Indeed, those are real failures. I will fix them tomorrow. |
Okay, I have fixed the problem. It took a bit of work to make sure all of the indices are handled correctly. As a by-product, the Lie subalgebras and ideals have their basis naturally indexed by the leading monomial of the ambient. This is a backwards incompatible change in a sense, but it was essentially necessary to fix the bug. (I could revert that portion, but it will take a bit more care.) |
9c4289b
to
9c5b277
Compare
…bras and quotient algebras.
9c5b277
to
5a0f7bd
Compare
Documentation preview for this PR (built with commit 5a0f7bd; changes) is ready! 🎉 |
Tests now seem to pass. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, sounds and looks reasonable
Merci! I appreciate it; this fixes a subtle-but-important bug. |
sagemathgh-40137: Rewriting Lie subalgebras and ideals to always do computations in the ambient Lie algebra <!-- ^ 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 sagemath#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 sagemath#12345". --> Currently, ideals $A$ of a Lie subalgebra $B$ of an ambient Lie algebra $L$ do a number of computations in $B$. However, they are more attuned to working in $L$. This causes problems for constructing quotients $B / A$ as there can be mismatches in the indices. We fix these problems by making sure that $A$ always does computations in $L$ whether it is constructed as an ideal of $B$ or of $L$. ### 📝 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, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#40137 Reported by: Travis Scrimshaw Reviewer(s): Frédéric Chapoton
sagemathgh-40137: Rewriting Lie subalgebras and ideals to always do computations in the ambient Lie algebra <!-- ^ 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 sagemath#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 sagemath#12345". --> Currently, ideals $A$ of a Lie subalgebra $B$ of an ambient Lie algebra $L$ do a number of computations in $B$. However, they are more attuned to working in $L$. This causes problems for constructing quotients $B / A$ as there can be mismatches in the indices. We fix these problems by making sure that $A$ always does computations in $L$ whether it is constructed as an ideal of $B$ or of $L$. ### 📝 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, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#40137 Reported by: Travis Scrimshaw Reviewer(s): Frédéric Chapoton
sagemathgh-40137: Rewriting Lie subalgebras and ideals to always do computations in the ambient Lie algebra <!-- ^ 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 sagemath#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 sagemath#12345". --> Currently, ideals $A$ of a Lie subalgebra $B$ of an ambient Lie algebra $L$ do a number of computations in $B$. However, they are more attuned to working in $L$. This causes problems for constructing quotients $B / A$ as there can be mismatches in the indices. We fix these problems by making sure that $A$ always does computations in $L$ whether it is constructed as an ideal of $B$ or of $L$. ### 📝 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, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#40137 Reported by: Travis Scrimshaw Reviewer(s): Frédéric Chapoton
sagemathgh-40137: Rewriting Lie subalgebras and ideals to always do computations in the ambient Lie algebra <!-- ^ 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 sagemath#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 sagemath#12345". --> Currently, ideals $A$ of a Lie subalgebra $B$ of an ambient Lie algebra $L$ do a number of computations in $B$. However, they are more attuned to working in $L$. This causes problems for constructing quotients $B / A$ as there can be mismatches in the indices. We fix these problems by making sure that $A$ always does computations in $L$ whether it is constructed as an ideal of $B$ or of $L$. ### 📝 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, --> <!-- - sagemath#12345: short description why this is a dependency --> <!-- - sagemath#34567: ... --> URL: sagemath#40137 Reported by: Travis Scrimshaw Reviewer(s): Frédéric Chapoton
Currently, ideals$A$ of a Lie subalgebra $B$ of an ambient Lie algebra $L$ do a number of computations in $B$ . However, they are more attuned to working in $L$ . This causes problems for constructing quotients $B / A$ as there can be mismatches in the indices. We fix these problems by making sure that $A$ always does computations in $L$ whether it is constructed as an ideal of $B$ or of $L$ .
📝 Checklist
⌛ Dependencies