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/{lie/subalgebra,module/submodule/pointwise}): submodules and lie subalgebras form canonically ordered additive monoids under addition #14529

Closed
wants to merge 9 commits into from

Conversation

eric-wieser
Copy link
Member

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

We can't actually make these instances because they result in loops for simp.

The le_iff_exists_sup lemma is probably not very useful for much beyond these new instances, but it matches le_iff_exists_add.


Open in Gitpod

… and lie subalgebras form canonically ordered additivve monoids under addition
@eric-wieser eric-wieser added easy < 20s of review time. See the lifecycle page for guidelines. 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 3, 2022
@eric-wieser eric-wieser changed the title feat(algebra/{lie/subalgebra,module/submodule/pointwise}): submodules and lie subalgebras form canonically ordered additivve monoids under addition feat(algebra/{lie/subalgebra,module/submodule/pointwise}): submodules and lie subalgebras form canonically ordered additive monoids under addition Jun 3, 2022
@eric-wieser eric-wieser removed the easy < 20s of review time. See the lifecycle page for guidelines. label Jun 4, 2022
@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 4, 2022
Copy link
Member

@fpvandoorn fpvandoorn left a comment

Choose a reason for hiding this comment

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

bors d+

I think we should make this an instance - and remove the simp lemma - globally.
You can do that in a subsequent PR, if you want.

local attribute [instance] canonically_ordered_add_monoid
```
-/
def canonically_ordered_add_monoid : canonically_ordered_add_monoid (submodule R M) :=
Copy link
Member

Choose a reason for hiding this comment

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

make reducible (see reducible non-instance library note)

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure I agree; I thought @[reduclble] foo was for when we have instance : X := foo, not for when we have local attribute [instance] foo.

Copy link
Member Author

Choose a reason for hiding this comment

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

At any rate, the follow-up PR will make this moot.

@bors
Copy link

bors bot commented Jun 4, 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.

@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 4, 2022
@eric-wieser
Copy link
Member Author

You can do that in a subsequent PR, if you want.

Done in #14553

@eric-wieser
Copy link
Member Author

bors merge

@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 4, 2022
bors bot pushed a commit that referenced this pull request Jun 4, 2022
… and lie subalgebras form canonically ordered additive monoids under addition (#14529)

We can't actually make these instances because they result in loops for `simp`.

The `le_iff_exists_sup` lemma is probably not very useful for much beyond these new instances, but it matches `le_iff_exists_add`.
@bors
Copy link

bors bot commented Jun 4, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(algebra/{lie/subalgebra,module/submodule/pointwise}): submodules and lie subalgebras form canonically ordered additive monoids under addition [Merged by Bors] - feat(algebra/{lie/subalgebra,module/submodule/pointwise}): submodules and lie subalgebras form canonically ordered additive monoids under addition Jun 4, 2022
@bors bors bot closed this Jun 4, 2022
@bors bors bot deleted the eric-wieser/canonically-ordered-subobject branch June 4, 2022 17:34
tomaz1502 pushed a commit that referenced this pull request Jun 5, 2022
… and lie subalgebras form canonically ordered additive monoids under addition (#14529)

We can't actually make these instances because they result in loops for `simp`.

The `le_iff_exists_sup` lemma is probably not very useful for much beyond these new instances, but it matches `le_iff_exists_add`.
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+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants