Skip to content

[Merged by Bors] - feat(PerfectRing): roots of Polynomial.expand - #9311

Closed
alreadydone wants to merge 33 commits into
masterfrom
roots_expand
Closed

alreadydone wants to merge 33 commits into
masterfrom
roots_expand

Conversation

@alreadydone

@alreadydone alreadydone commented Dec 28, 2023 •

Copy link
Copy Markdown
Contributor

Inspired by #9271

Prove the main theorem rootMultiplicity_expand and derive corollaries about Polynomial.roots. Refactor rootsExpand(Pow)EquivRoots using the new lemmas.


Open in Gitpod

@alreadydone alreadydone 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 Dec 28, 2023
@alreadydone
alreadydone requested a review from acmepjz December 28, 2023 08:01
@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 Dec 28, 2023

@acmepjz acmepjz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me.

Comment thread Mathlib/FieldTheory/Perfect.lean Resolved
@alreadydone alreadydone added awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. and removed awaiting-review labels Dec 28, 2023
@ghost ghost added the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 8, 2024
@acmepjz

acmepjz commented Jan 26, 2024

Copy link
Copy Markdown
Collaborator

Looks like that this PR also depends on #10016.

@ghost ghost removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Jan 26, 2024
Comment thread Mathlib/FieldTheory/Perfect.lean Resolved
Comment thread Mathlib/FieldTheory/Perfect.lean Resolved
@ghost ghost removed the merge-conflict The PR has a merge conflict with master, and needs manual merging. (this label is managed by a bot) label Feb 2, 2024
@alreadydone

Copy link
Copy Markdown
Contributor Author

I have merged #10016 into this branch and it includes some additional material (WIP).

@acmepjz

acmepjz commented Feb 2, 2024

Copy link
Copy Markdown
Collaborator

I have merged #10016 into this branch and it includes some additional material (WIP).

Oh OK. I have nothing to add into this PR; feel free to push your changes.

@alreadydone alreadydone added awaiting-review awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. and removed awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. labels Feb 3, 2024

variable {R}

theorem expand_eq_comp_X_pow {f : R[X]} : expand R p f = f.comp (X ^ p) := rfl

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.

If you tag this lemma with @[simp], then some of the following simp-lemmas can then be untagged: do you think that it is a good idea to make this simp and unsimp the later ones?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

epand R p is defined as an AlgHom and that must be for a purpose; if you simp it to a plain function Polynomial.comp I'm sure there will be downstream troubles ...

@jcommelin jcommelin added awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. and removed awaiting-review labels Feb 8, 2024

variable {R}

theorem expand_eq_comp_X_pow {f : R[X]} : expand R p f = f.comp (X ^ p) := rfl

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.

Suggested change
theorem expand_eq_comp_X_pow {f : R[X]} : expand R p f = f.comp (X ^ p) := rfl
theorem expand_eq_comp_X_pow (f : R[X]) : expand R p f = f.comp (X ^ p) := rfl

Comment thread Mathlib/Data/Polynomial/Expand.lean Resolved
convert ← roots_expand_pow_image_iterateFrobenius_subset p 1 f
apply pow_one

variable {p n f}

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.

I think at least f should be explicit here, not sure for the other variables.

@alreadydone alreadydone left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the reviews.


variable {R}

theorem expand_eq_comp_X_pow {f : R[X]} : expand R p f = f.comp (X ^ p) := rfl

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

epand R p is defined as an AlgHom and that must be for a purpose; if you simp it to a plain function Polynomial.comp I'm sure there will be downstream troubles ...

Comment thread Mathlib/Data/Polynomial/Expand.lean Resolved
@riccardobrasca

Copy link
Copy Markdown
Member

Thanks!

bors merge

@github-actions github-actions Bot added ready-to-merge This PR has been sent to bors. and removed awaiting-author Reply -awaiting-author to remove the label on your PR once you have addressed all comments. labels Feb 10, 2024
mathlib-bors Bot pushed a commit that referenced this pull request Feb 10, 2024
Inspired by #9271

Prove the main theorem `rootMultiplicity_expand` and derive corollaries about `Polynomial.roots`. Refactor `rootsExpand(Pow)EquivRoots` using the new lemmas.



Co-authored-by: Junyan Xu <[email protected]>
Co-authored-by: acmepjz <[email protected]>
@mathlib-bors

mathlib-bors Bot commented Feb 10, 2024

Copy link
Copy Markdown
Contributor

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors Bot changed the title feat(PerfectRing): roots of Polynomial.expand [Merged by Bors] - feat(PerfectRing): roots of Polynomial.expand Feb 10, 2024
@mathlib-bors mathlib-bors Bot closed this Feb 10, 2024
@mathlib-bors
mathlib-bors Bot deleted the roots_expand branch February 10, 2024 09:56
atarnoam pushed a commit that referenced this pull request Feb 10, 2024
Inspired by #9271

Prove the main theorem `rootMultiplicity_expand` and derive corollaries about `Polynomial.roots`. Refactor `rootsExpand(Pow)EquivRoots` using the new lemmas.



Co-authored-by: Junyan Xu <[email protected]>
Co-authored-by: acmepjz <[email protected]>
dagurtomas pushed a commit that referenced this pull request Mar 22, 2024
Inspired by #9271

Prove the main theorem `rootMultiplicity_expand` and derive corollaries about `Polynomial.roots`. Refactor `rootsExpand(Pow)EquivRoots` using the new lemmas.



Co-authored-by: Junyan Xu <[email protected]>
Co-authored-by: acmepjz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors. t-algebra Algebra (groups, rings, fields, etc)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants