Skip to content

[Merged by Bors] - feat: add definition of opposite of subsemirings, subrings, and subalgebras#12846

Closed
acmepjz wants to merge 6 commits intomasterfrom
acmepjz_subalg_op
Closed

[Merged by Bors] - feat: add definition of opposite of subsemirings, subrings, and subalgebras#12846
acmepjz wants to merge 6 commits intomasterfrom
acmepjz_subalg_op

Conversation

@acmepjz
Copy link
Copy Markdown
Collaborator

@acmepjz acmepjz commented May 12, 2024

similar to that in Mathlib.Algebra.Group.Subgroup.MulOpposite


Open in Gitpod

discussion: https://leanprover.zulipchat.com/#narrow/stream/217875-Is-there-code-for-X.3F/topic/Subalgebra.2EequivOpposite

@acmepjz acmepjz added awaiting-review awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. t-algebra Algebra (groups, rings, fields, etc) labels May 12, 2024
@github-actions github-actions bot removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label May 12, 2024
@eric-wieser
Copy link
Copy Markdown
Member

Can you copy the Submonoid.MulOpposite file here instead, and build up separate op and unop definitions?

acmepjz added a commit that referenced this pull request May 12, 2024
@acmepjz
Copy link
Copy Markdown
Collaborator Author

acmepjz commented May 12, 2024

Can you copy the Submonoid.MulOpposite file here instead, and build up separate op and unop definitions?

Let me check later.

@acmepjz acmepjz added awaiting-author A reviewer has asked the author a question or requested changes. and removed awaiting-review labels May 12, 2024
@acmepjz
Copy link
Copy Markdown
Collaborator Author

acmepjz commented May 19, 2024

Can you copy the Submonoid.MulOpposite file here instead, and build up separate op and unop definitions?

Done.

@acmepjz acmepjz added awaiting-review and removed awaiting-author A reviewer has asked the author a question or requested changes. labels May 19, 2024
@acmepjz acmepjz changed the title feat(Algebra/Algebra/Subalgebra/MulOpposite): add definition of opposite of subalgebras feat: add definition of opposite of subsemirings, subrings, and subalgebras May 19, 2024

/-- A subalgebra `S` of `A / R` determines a subring `S.op` of the opposite ring `Aᵐᵒᵖ / R`. -/
@[simps]
def opEquiv : Subalgebra R A ≃o Subalgebra R Aᵐᵒᵖ where
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
def opEquiv : Subalgebra R A ≃o Subalgebra R Aᵐᵒᵖ where
def opOrderIso : Subalgebra R A ≃o Subalgebra R Aᵐᵒᵖ where

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

But it's called Submonoid.opEquiv for Submonoid, etc.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Uh, okay 😦

@YaelDillies YaelDillies added awaiting-author A reviewer has asked the author a question or requested changes. and removed awaiting-review labels Jun 17, 2024
@acmepjz acmepjz added awaiting-review and removed awaiting-author A reviewer has asked the author a question or requested changes. labels Jun 17, 2024
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jun 17, 2024

PR summary 0f07e4166a

Import changes

No significant changes to the import graph


Declarations diff

+ algEquivOpMop
+ linearEquivOp
+ mopAlgEquivOp
+ op_adjoin
+ op_toSubring
+ unop_adjoin
+ unop_toSubring
++ addEquivOp
++ mopRingEquivOp
++ op_closure
++ ringEquivOpMop
++ unop_closure
+++ le_op_iff
+++ mem_op
+++ mem_unop
+++ op
+++ opEquiv
+++ op_bot
+++ op_coe
+++ op_iInf
+++ op_iSup
+++ op_inf
+++ op_le_iff
+++ op_le_op_iff
+++ op_sInf
+++ op_sSup
+++ op_sup
+++ op_top
+++ op_unop
+++ unop
+++ unop_bot
+++ unop_coe
+++ unop_iInf
+++ unop_iSup
+++ unop_inf
+++ unop_le_unop_iff
+++ unop_op
+++ unop_sInf
+++ unop_sSup
+++ unop_sup
+++ unop_top

You can run this locally as follows
## summary with just the declaration names:
./scripts/no_lost_declarations.sh short <optional_commit>

## more verbose report:
./scripts/no_lost_declarations.sh <optional_commit>

@YaelDillies
Copy link
Copy Markdown
Contributor

Thanks!

maintainer merge

@github-actions
Copy link
Copy Markdown

🚀 Pull request has been placed on the maintainer queue by YaelDillies.

@github-actions github-actions bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Jun 17, 2024

namespace Subsemiring

variable {ι R : Type*} [NonAssocSemiring R]
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ι should be a Sort*

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done.

Copy link
Copy Markdown
Member

@eric-wieser eric-wieser left a comment

Choose a reason for hiding this comment

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

Just the ι issue to solve (in all three files)

Copy link
Copy Markdown
Member

@eric-wieser eric-wieser 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+

thanks!

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jun 18, 2024

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

@ghost ghost added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed awaiting-review labels Jun 18, 2024
@eric-wieser eric-wieser added the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Jun 18, 2024
@acmepjz acmepjz removed the awaiting-CI This PR does not pass CI yet. This label is automatically removed once it does. label Jun 18, 2024
@acmepjz
Copy link
Copy Markdown
Collaborator Author

acmepjz commented Jun 18, 2024

bors r+

mathlib-bors bot pushed a commit that referenced this pull request Jun 18, 2024
…gebras (#12846)

similar to that in `Mathlib.Algebra.Group.Subgroup.MulOpposite`
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Jun 18, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: add definition of opposite of subsemirings, subrings, and subalgebras [Merged by Bors] - feat: add definition of opposite of subsemirings, subrings, and subalgebras Jun 18, 2024
@mathlib-bors mathlib-bors bot closed this Jun 18, 2024
@mathlib-bors mathlib-bors bot deleted the acmepjz_subalg_op branch June 18, 2024 00:50
AntoineChambert-Loir pushed a commit that referenced this pull request Jun 20, 2024
…gebras (#12846)

similar to that in `Mathlib.Algebra.Group.Subgroup.MulOpposite`
grunweg pushed a commit that referenced this pull request Jun 20, 2024
…gebras (#12846)

similar to that in `Mathlib.Algebra.Group.Subgroup.MulOpposite`
kbuzzard pushed a commit that referenced this pull request Jun 26, 2024
…gebras (#12846)

similar to that in `Mathlib.Algebra.Group.Subgroup.MulOpposite`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. t-algebra Algebra (groups, rings, fields, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants