Skip to content

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

Merged
merged 2 commits into from
Jun 14, 2025

Conversation

tscrim
Copy link
Collaborator

@tscrim tscrim commented May 21, 2025

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

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes.
  • I have updated the documentation and checked the documentation preview.

⌛ Dependencies

@tscrim
Copy link
Collaborator Author

tscrim commented May 21, 2025

@fchapoton Can you review this? It is a bit subtle of an issue, but it fixes a pretty bad bug with incorrect quotients.

@fchapoton
Copy link
Contributor

there seems to be broken doctests

@tscrim
Copy link
Collaborator Author

tscrim commented May 21, 2025

Indeed, those are real failures. I will fix them tomorrow.

@tscrim
Copy link
Collaborator Author

tscrim commented May 22, 2025

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.)

@tscrim tscrim force-pushed the lie_algebras/ideals_ambient branch from 9c4289b to 9c5b277 Compare May 27, 2025 06:46
@tscrim tscrim force-pushed the lie_algebras/ideals_ambient branch from 9c5b277 to 5a0f7bd Compare June 6, 2025 07:17
Copy link

github-actions bot commented Jun 6, 2025

Documentation preview for this PR (built with commit 5a0f7bd; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

@tscrim
Copy link
Collaborator Author

tscrim commented Jun 6, 2025

Tests now seem to pass.

Copy link
Contributor

@fchapoton fchapoton left a 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

@tscrim
Copy link
Collaborator Author

tscrim commented Jun 8, 2025

Merci! I appreciate it; this fixes a subtle-but-important bug.

vbraun pushed a commit to vbraun/sage that referenced this pull request Jun 8, 2025
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
vbraun pushed a commit to vbraun/sage that referenced this pull request Jun 9, 2025
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
vbraun pushed a commit to vbraun/sage that referenced this pull request Jun 9, 2025
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
vbraun pushed a commit to vbraun/sage that referenced this pull request Jun 9, 2025
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
@vbraun vbraun merged commit ecef2da into sagemath:develop Jun 14, 2025
23 of 25 checks passed
@tscrim tscrim deleted the lie_algebras/ideals_ambient branch June 16, 2025 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants