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): factorize a non-unit into irreducible factors without multiplying a unit #13682

Closed
wants to merge 5 commits into from

Conversation

alreadydone
Copy link
Collaborator

@alreadydone alreadydone commented Apr 25, 2022

Used in https://proofassistants.stackexchange.com/a/1312/93. Also adds simp lemma multiset.prod_erase used in the main proof and the auto-generated additive version, which is immediately analogous to list.prod_erase. Also removes some extraneous namespace prefix.


Open in Gitpod

@alreadydone alreadydone added easy < 20s of review time. See the lifecycle page for guidelines. 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 Apr 25, 2022
@alreadydone alreadydone changed the title feat(algebra/big_operators): add multiset.prod_erase feat(ring_theory): factorize a non-unit into irreducible factors Apr 25, 2022
@alreadydone alreadydone changed the title feat(ring_theory): factorize a non-unit into irreducible factors feat(ring_theory): factorize a non-unit into irreducible factors without multiplying a unit Apr 25, 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 Apr 25, 2022
Copy link
Collaborator

@semorrison semorrison left a comment

Choose a reason for hiding this comment

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

LGTM

@alreadydone
Copy link
Collaborator Author

If @eric-wieser has no further comments can I get a bors d+?

@ocfnash ocfnash added awaiting-author A reviewer has asked the author a question or requested changes and removed easy < 20s of review time. See the lifecycle page for guidelines. awaiting-review The author would like community review of the PR labels Apr 29, 2022
@alreadydone alreadydone removed the awaiting-author A reviewer has asked the author a question or requested changes label Apr 29, 2022
@ocfnash
Copy link
Collaborator

ocfnash commented Apr 29, 2022

Thanks!

bors d+

@bors
Copy link

bors bot commented Apr 29, 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 the delegated The PR author may merge after reviewing final suggestions. label Apr 29, 2022
@alreadydone
Copy link
Collaborator Author

bors r+

bors bot pushed a commit that referenced this pull request Apr 29, 2022
…out multiplying a unit (#13682)

Used in https://proofassistants.stackexchange.com/a/1312/93. Also adds simp lemma `multiset.prod_erase` used in the main proof and the auto-generated additive version, which is immediately analogous to [list.prod_erase](https://leanprover-community.github.io/mathlib_docs/data/list/big_operators.html#list.prod_erase). Also removes some extraneous namespace prefix.
@bors
Copy link

bors bot commented Apr 30, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(ring_theory): factorize a non-unit into irreducible factors without multiplying a unit [Merged by Bors] - feat(ring_theory): factorize a non-unit into irreducible factors without multiplying a unit Apr 30, 2022
@bors bors bot closed this Apr 30, 2022
@bors bors bot deleted the multiset_prod_erase branch April 30, 2022 00:14
bors bot pushed a commit that referenced this pull request May 12, 2022
+ Shorten the proof of `exists_irreducible_factor` using `well_founded.has_min` instead of `well_founded.fix`.

+ Remove use of `simp` in `induction_on_irreducible`; now a pure term-mode proof except for the classical instance.

+ Change the proof of `not_unit_iff_exists_factors_eq` (just added in [#13682](#13682)) to use induction. The new proof doesn't require the `multiset.prod_erase` introduced in [#13682](#13682), but is about as complex as the old one, so I might change it back if reviewers prefer.
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

5 participants