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/basic, adjoin_root): some lemmas from #15000 #16450

Closed
wants to merge 12 commits into from

Conversation

Paul-Lez
Copy link
Collaborator

@Paul-Lez Paul-Lez commented Sep 9, 2022

This PR contains some lemmas that were originally in #15000.

The main result that is proven here is quotient_equiv_quotient_minpoly_map, which says that if α has minimal polynomial f over R and I is an ideal of R, then rings R[α] / I[α] and (R/I)[X] / (f mod I) are isomorphic as R-algebras.

Co-authored-by: Anne Baanen vierkantor@vierkantor.com


Open in Gitpod

@Paul-Lez Paul-Lez added the WIP Work in progress label Sep 9, 2022
@Paul-Lez Paul-Lez added the awaiting-CI The author would like to see what CI has to say before doing more work. label Sep 9, 2022
@Paul-Lez Paul-Lez added awaiting-review The author would like community review of the PR and removed WIP Work in progress labels Sep 11, 2022
@Paul-Lez Paul-Lez added the t-algebra Algebra (groups, rings, fields etc) label Sep 11, 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 Sep 11, 2022
@riccardobrasca riccardobrasca self-assigned this Sep 12, 2022
Copy link
Member

@riccardobrasca riccardobrasca left a comment

Choose a reason for hiding this comment

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

Just a few minor comments.

src/algebra/algebra/basic.lean Outdated Show resolved Hide resolved
src/algebra/algebra/basic.lean Outdated Show resolved Hide resolved
src/algebra/algebra/basic.lean Outdated Show resolved Hide resolved
src/ring_theory/adjoin_root.lean Outdated Show resolved Hide resolved
src/ring_theory/adjoin_root.lean Outdated Show resolved Hide resolved
src/ring_theory/adjoin_root.lean Outdated Show resolved Hide resolved
src/ring_theory/adjoin_root.lean Outdated Show resolved Hide resolved
src/ring_theory/adjoin_root.lean Outdated Show resolved Hide resolved
src/ring_theory/ideal/operations.lean Show resolved Hide resolved
src/ring_theory/ideal/operations.lean Outdated Show resolved Hide resolved
@Paul-Lez Paul-Lez added WIP Work in progress and removed awaiting-review The author would like community review of the PR labels Sep 12, 2022
@Paul-Lez Paul-Lez 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. and removed WIP Work in progress labels Sep 13, 2022
Copy link
Member

@riccardobrasca riccardobrasca 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 d+

src/ring_theory/adjoin_root.lean Show resolved Hide resolved
@bors
Copy link

bors bot commented Sep 13, 2022

✌️ Paul-Lez 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 Sep 13, 2022
@@ -999,7 +999,8 @@ symm_bijective.injective $ ext $ λ x, rfl

@[simp] theorem refl_symm : (alg_equiv.refl : A₁ ≃ₐ[R] A₁).symm = alg_equiv.refl := rfl

@[simp] lemma to_ring_equiv_symm (f : A₁ ≃ₐ[R] A₁) : (f : A₁ ≃+* A₁).symm = f.symm := rfl
--this should be a simp lemma but causes a lint timeout
Copy link
Member

Choose a reason for hiding this comment

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

Have you considered using the new alg_equiv_class?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good point, I'll have a look at that!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@riccardobrasca I had a go at it, would this be the correct statement?
lemma to_ring_equiv_symm {F : Type*} [alg_equiv_class F R A₁ A₂] (f : F) : ((f : A₁ ≃ₐ[R] A₂) : A₁ ≃+* A₁).symm = (f : A₁ ≃ₐ[R] A₂).symm := 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.

The statement doesn't compile so I'm not sure it's correct, although I think some coercions might be missing since Lean threw me an error when I wrote (f : A₁ ≃ₐ[R] A₂).

Copy link
Member

Choose a reason for hiding this comment

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

I think the idea of alg_equiv_class is to make this kind of lemmas useless, but I am indeed not sure it can be used here. @Vierkantor what do you think (maybe you also know why simp is causing a timeout)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Would it be reasonable to merge this PR so we can then merge #15000 and then fix the lemma in a subsequent PR, or would it be better to do the fix now?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, I don't see any problem in this.

bors merge

@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 Sep 14, 2022
bors bot pushed a commit that referenced this pull request Sep 15, 2022
…16450)

This PR contains some lemmas that were originally in #15000.

The main result that is proven here is `quotient_equiv_quotient_minpoly_map`, which says that if `α` has minimal polynomial `f` over `R` and `I` is an ideal of `R`, then rings  `R[α] / I[α]` and  `(R/I)[X] / (f mod I)` are isomorphic as R-algebras.

Co-authored-by: Anne Baanen <vierkantor@vierkantor.com>
@bors
Copy link

bors bot commented Sep 15, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(ring_theory/{ideal/basic, adjoin_root): some lemmas from #15000 [Merged by Bors] - feat(ring_theory/{ideal/basic, adjoin_root): some lemmas from #15000 Sep 15, 2022
@bors bors bot closed this Sep 15, 2022
@bors bors bot deleted the adjoin_root_commit branch September 15, 2022 14:24
b-mehta pushed a commit that referenced this pull request Sep 21, 2022
…16450)

This PR contains some lemmas that were originally in #15000.

The main result that is proven here is `quotient_equiv_quotient_minpoly_map`, which says that if `α` has minimal polynomial `f` over `R` and `I` is an ideal of `R`, then rings  `R[α] / I[α]` and  `(R/I)[X] / (f mod I)` are isomorphic as R-algebras.

Co-authored-by: Anne Baanen <vierkantor@vierkantor.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. t-algebra Algebra (groups, rings, fields etc)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants