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(ring_theory/ideal): simp lemmas for ideal.quotient.mk + algebra_map #9829

Closed
wants to merge 1 commit into from

Conversation

Vierkantor
Copy link
Collaborator

Some simp lemmas I needed for combining algebra_map with ideal.quotient.mk. This also allowed me to golf two existing proofs.


Open in Gitpod

@Vierkantor Vierkantor 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 Oct 20, 2021
Comment on lines +1476 to +1482
@[simp] lemma quotient.mk_comp_algebra_map (I : ideal A) :
(quotient.mk I).comp (algebra_map R A) = algebra_map R I.quotient :=
rfl

@[simp] lemma quotient.mk_algebra_map (I : ideal A) (x : R) :
quotient.mk I (algebra_map R A x) = algebra_map R I.quotient x :=
rfl
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I chose for simp to go in this direction for these two lemmas since it makes working with alg_homs a bit easier, and the RHS is shorter. Flipping the direction is also fine with me, since there are quite a few ideal.quotient.mk-specific lemmas in this file.

Copy link
Member

Choose a reason for hiding this comment

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

Are we missing an alg_hom.commute_of_tower lemma or something to make it less annoying to have these in the other direction?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

If I understand your question correctly, they do exist, as alg_hom.map_algebra_map and alg_hom.comp_algebra_map_of_tower. The issue is that quotient.mk is only a ring_hom, not an alg_hom, so we need to reprove all the algebra_map-related things anyway.

@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 Oct 20, 2021
Copy link
Member

@jcommelin jcommelin left a comment

Choose a reason for hiding this comment

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

Thanks 🎉

bors merge

@github-actions github-actions bot added ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.) and removed awaiting-review The author would like community review of the PR labels Oct 23, 2021
bors bot pushed a commit that referenced this pull request Oct 23, 2021
…ebra_map` (#9829)

Some `simp` lemmas I needed for combining `algebra_map` with `ideal.quotient.mk`. This also allowed me to golf two existing proofs.
@sgouezel
Copy link
Collaborator

bors r+

bors bot pushed a commit that referenced this pull request Oct 23, 2021
…ebra_map` (#9829)

Some `simp` lemmas I needed for combining `algebra_map` with `ideal.quotient.mk`. This also allowed me to golf two existing proofs.
@bors
Copy link

bors bot commented Oct 23, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(ring_theory/ideal): simp lemmas for ideal.quotient.mk + algebra_map [Merged by Bors] - feat(ring_theory/ideal): simp lemmas for ideal.quotient.mk + algebra_map Oct 23, 2021
@bors bors bot closed this Oct 23, 2021
@bors bors bot deleted the ideal-quotient-algebra_map_eq branch October 23, 2021 19:26
@eric-wieser eric-wieser added the hacktoberfest-accepted Without this label hacktoberfest is scared off by bors label Oct 26, 2021
ericrbg pushed a commit that referenced this pull request Nov 9, 2021
…ebra_map` (#9829)

Some `simp` lemmas I needed for combining `algebra_map` with `ideal.quotient.mk`. This also allowed me to golf two existing proofs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Without this label hacktoberfest is scared off by bors 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

4 participants