Skip to content
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 by Bors] - feat(algebra/direct_sum/decomposition): add decompositions into a direct sum #14626

Closed
wants to merge 13 commits into from

Conversation

eric-wieser
Copy link
Member

@eric-wieser eric-wieser commented Jun 8, 2022

This is a constructive version of direct_sum.is_internal, and generalizes the existing graded_algebra.

The main user-facing changes are:

  • graded_algebra.decompose is now spelt direct_sum.decompose_alg_hom
  • The simp normal form of decomposition is now direct_sum.decompose.
  • graded_algebra.support 𝒜 x is now spelt (decompose 𝒜 x).support
  • left_inv and right_inv has swapped, now with meaning "the decomposition is the (left|right) inverse of the canonical map" rather than the other way around

To keep this from growing even larger, I've left graded_algebra.proj alone for a future refactor.


This replaces

Open in Gitpod

…ect sum

This is a constructive version of `direct_sum.is_internal`, and generalizes the existing `graded_algebra`.
@eric-wieser eric-wieser added awaiting-review The author would like community review of the PR awaiting-CI The author would like to see what CI has to say before doing more work. labels Jun 8, 2022
@eric-wieser eric-wieser added this to In progress in Graded modules, rings, and algebras via automation Jun 8, 2022
@eric-wieser eric-wieser force-pushed the eric-wieser/direct_sum.decomposition branch from 99a374c to ba0c574 Compare June 8, 2022 17:27
@github-actions github-actions bot removed the awaiting-CI The author would like to see what CI has to say before doing more work. label Jun 8, 2022
@jjaassoonn
Copy link
Collaborator

jjaassoonn commented Jun 9, 2022

May be we should also define direct_sum.decomposition.support so that we don't need to write support twice for graded algebra and graded module

@eric-wieser
Copy link
Member Author

eric-wieser commented Jun 9, 2022

I don't think there's much point in having direct_sum.decomposition.support x given it's longer than (direct_sum.decompose x).support which we already have. If we're going to have it, it needs a shorter name

@jjaassoonn
Copy link
Collaborator

I don't think there's much point in having direct_sum.decomposition.support x given it's longer than (direct_sum.decompose x).support which we already have. If we're going to have it, it needs a shorter name

In graded algebra, there are several lemmas about writing an element as sum of its projections. Same lemma applies to graded modules as well. So I think it makes sense to move these lemmas to direct_sum.decomposition where possible.

@eric-wieser
Copy link
Member Author

given it's longer than (direct_sum.decompose x).support which we already have.

Hmm, this doesn't actually elaborate though.

@eric-wieser
Copy link
Member Author

I've ended up just removing graded_algebra.support, and added an instance to resolve the elaboration issue.

@eric-wieser eric-wieser force-pushed the eric-wieser/direct_sum.decomposition branch from 3379dee to 82f500a Compare June 9, 2022 22:03
src/algebra/direct_sum/decomposition.lean Outdated Show resolved Hide resolved
src/algebra/direct_sum/decomposition.lean Outdated Show resolved Hide resolved
src/algebra/direct_sum/decomposition.lean Show resolved Hide resolved
src/algebra/monoid_algebra/grading.lean Show resolved Hide resolved
@Vierkantor Vierkantor added awaiting-author A reviewer has asked the author a question or requested changes and removed awaiting-review The author would like community review of the PR labels Jun 15, 2022
@eric-wieser eric-wieser force-pushed the eric-wieser/direct_sum.decomposition branch from 310cf6e to 7016b08 Compare June 15, 2022 13:05
@eric-wieser eric-wieser added awaiting-review The author would like community review of the PR and removed awaiting-author A reviewer has asked the author a question or requested changes labels Jun 15, 2022
Copy link
Collaborator

@Vierkantor Vierkantor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The technical aspects look good, any mathematical objections?

bors d=@jjaassoonn

@bors
Copy link

bors bot commented Jun 16, 2022

✌️ jjaassoonn can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@leanprover-community-bot-assistant leanprover-community-bot-assistant added delegated The PR author may merge after reviewing final suggestions. and removed awaiting-review The author would like community review of the PR labels Jun 16, 2022
@jjaassoonn
Copy link
Collaborator

bors r+

@jjaassoonn
Copy link
Collaborator

✌️ jjaassoonn can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

bors r+

@bors
Copy link

bors bot commented Jun 16, 2022

Already running a review

bors bot pushed a commit that referenced this pull request Jun 16, 2022
…ect sum (#14626)

This is a constructive version of `direct_sum.is_internal`, and generalizes the existing `graded_algebra`.

The main user-facing changes are:
* `graded_algebra.decompose` is now spelt `direct_sum.decompose_alg_hom`
* The simp normal form of decomposition is now `direct_sum.decompose`.
* `graded_algebra.support 𝒜 x` is now spelt `(decompose 𝒜 x).support`
* `left_inv` and `right_inv` has swapped, now with meaning "the decomposition is the (left|right) inverse of the canonical map" rather than the other way around

To keep this from growing even larger, I've left `graded_algebra.proj` alone for a future refactor.



Co-authored-by: Jujian Zhang <jujian.zhang1998@outlook.com>
@bors
Copy link

bors bot commented Jun 16, 2022

Build failed (retrying...):

@bors
Copy link

bors bot commented Jun 16, 2022

Canceled.

@Vierkantor
Copy link
Collaborator

I don't think the failing test is your fault so:

bors r+

bors d+

@bors
Copy link

bors bot commented Jun 16, 2022

✌️ eric-wieser can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@github-actions github-actions bot added the ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) label Jun 16, 2022
bors bot pushed a commit that referenced this pull request Jun 16, 2022
…ect sum (#14626)

This is a constructive version of `direct_sum.is_internal`, and generalizes the existing `graded_algebra`.

The main user-facing changes are:
* `graded_algebra.decompose` is now spelt `direct_sum.decompose_alg_hom`
* The simp normal form of decomposition is now `direct_sum.decompose`.
* `graded_algebra.support 𝒜 x` is now spelt `(decompose 𝒜 x).support`
* `left_inv` and `right_inv` has swapped, now with meaning "the decomposition is the (left|right) inverse of the canonical map" rather than the other way around

To keep this from growing even larger, I've left `graded_algebra.proj` alone for a future refactor.



Co-authored-by: Jujian Zhang <jujian.zhang1998@outlook.com>
@bors
Copy link

bors bot commented Jun 16, 2022

Canceled.

@eric-wieser
Copy link
Member Author

Oh damn, I assumed the failing test was my fault so pushed a commit to speed up the slow proof

@eric-wieser
Copy link
Member Author

bors r+

(since the test passes)

bors bot pushed a commit that referenced this pull request Jun 16, 2022
…ect sum (#14626)

This is a constructive version of `direct_sum.is_internal`, and generalizes the existing `graded_algebra`.

The main user-facing changes are:
* `graded_algebra.decompose` is now spelt `direct_sum.decompose_alg_hom`
* The simp normal form of decomposition is now `direct_sum.decompose`.
* `graded_algebra.support 𝒜 x` is now spelt `(decompose 𝒜 x).support`
* `left_inv` and `right_inv` has swapped, now with meaning "the decomposition is the (left|right) inverse of the canonical map" rather than the other way around

To keep this from growing even larger, I've left `graded_algebra.proj` alone for a future refactor.



Co-authored-by: Jujian Zhang <jujian.zhang1998@outlook.com>
@bors
Copy link

bors bot commented Jun 16, 2022

This PR was included in a batch that was canceled, it will be automatically retried

bors bot pushed a commit that referenced this pull request Jun 16, 2022
…ect sum (#14626)

This is a constructive version of `direct_sum.is_internal`, and generalizes the existing `graded_algebra`.

The main user-facing changes are:
* `graded_algebra.decompose` is now spelt `direct_sum.decompose_alg_hom`
* The simp normal form of decomposition is now `direct_sum.decompose`.
* `graded_algebra.support 𝒜 x` is now spelt `(decompose 𝒜 x).support`
* `left_inv` and `right_inv` has swapped, now with meaning "the decomposition is the (left|right) inverse of the canonical map" rather than the other way around

To keep this from growing even larger, I've left `graded_algebra.proj` alone for a future refactor.



Co-authored-by: Jujian Zhang <jujian.zhang1998@outlook.com>
@bors
Copy link

bors bot commented Jun 16, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(algebra/direct_sum/decomposition): add decompositions into a direct sum [Merged by Bors] - feat(algebra/direct_sum/decomposition): add decompositions into a direct sum Jun 16, 2022
@bors bors bot closed this Jun 16, 2022
Graded modules, rings, and algebras automation moved this from In progress to Done Jun 16, 2022
@bors bors bot deleted the eric-wieser/direct_sum.decomposition branch June 16, 2022 21:15
bors bot pushed a commit that referenced this pull request Jan 27, 2023
By imitating the current `graded_algebra`, this pr builds `graded_module` over some `graded algebra`

Co-authored-by: Eric Wieser @eric-wieser 

- [x] depends on: #14626
- [x] depends on: #15654



Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
delegated The PR author may merge after reviewing final suggestions. ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Development

Successfully merging this pull request may close these issues.

None yet

4 participants