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] - golf(data/polynomial): factorization into linear factors when #roots=degree #14862

Closed
wants to merge 9 commits into from

Conversation

alreadydone
Copy link
Collaborator

  • Golf the proofs of prod_multiset_X_sub_C_of_monic_of_roots_card_eq and C_leading_coeff_mul_prod_multiset_X_sub_C and move them from splitting_field.lean to ring_division.lean; instead of using the former to deduce the latter as is currently done in mathlib, we prove the latter first and deduce the former easily. Remove the less general auxiliary, private _of_field versions.

  • Move pairwise_coprime_X_sub from field_division.lean to ring_division.lean. Rename it to pairwise_coprime_X_sub_C to conform with existing convention. Golf its proof using the more general new lemma is_coprime_X_sub_C_of_is_unit_sub.

  • Golf monic.irreducible_of_irreducible_map, but it's essentially the same proof.


Open in Gitpod

@alreadydone alreadydone 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 Jun 21, 2022
@jcommelin
Copy link
Member

Thanks 🎉

If CI passes, please remove the label awaiting-CI and merge this yourself, by adding a comment bors r+.

bors d+

@bors
Copy link

bors bot commented Jun 21, 2022

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

@github-actions github-actions bot 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 21, 2022
@alreadydone alreadydone changed the title golf(data/polynomial): decomposition into linear factors when #roots=degree golf(data/polynomial): factorization into linear factors when #roots=degree Jun 21, 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 21, 2022
@alreadydone
Copy link
Collaborator Author

bors r+

bors bot pushed a commit that referenced this pull request Jun 21, 2022
…degree (#14862)

+ Golf the proofs of `prod_multiset_X_sub_C_of_monic_of_roots_card_eq` and `C_leading_coeff_mul_prod_multiset_X_sub_C` and move them from *splitting_field.lean* to *ring_division.lean*; instead of using the former to deduce the latter as is currently done in mathlib, we prove the latter first and deduce the former easily. Remove the less general auxiliary, `private` `_of_field` versions.

+ Move `pairwise_coprime_X_sub` from *field_division.lean* to *ring_division.lean*. Rename it to `pairwise_coprime_X_sub_C` to conform with existing convention. Golf its proof using the more general new lemma `is_coprime_X_sub_C_of_is_unit_sub`.

+ Golf `monic.irreducible_of_irreducible_map`, but it's essentially the same proof.
@bors
Copy link

bors bot commented Jun 21, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title golf(data/polynomial): factorization into linear factors when #roots=degree [Merged by Bors] - golf(data/polynomial): factorization into linear factors when #roots=degree Jun 21, 2022
@bors bors bot closed this Jun 21, 2022
@bors bors bot deleted the root_multiplicity' branch June 21, 2022 16:31
@alreadydone alreadydone restored the root_multiplicity' branch June 21, 2022 17:13
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants