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: add Prime.not_dvd_finset_prod and Prime.not_dvd_finsupp_prod #10047

Closed
wants to merge 1 commit into from

Conversation

dwrensha
Copy link
Member

We already have Prime.not_dvd_prod, which is about list products:

theorem Prime.not_dvd_prod {p : M} {L : List M} (pp : Prime p) (hL : ∀ a ∈ L, ¬p ∣ a) :
¬p ∣ L.prod :=
mt (Prime.dvd_prod_iff pp).1 <| not_exists.2 fun a => not_and.2 (hL a)

This PR adds analogous theorems for Finset and Finsupp.


Open in Gitpod

@dwrensha
Copy link
Member Author

@dwrensha dwrensha added the awaiting-review The author would like community review of the PR label Jan 27, 2024
@urkud
Copy link
Member

urkud commented Feb 11, 2024

I'm not sure that we should have not version of every lemma of this type, but if we already have it for Lists, let's have it for Finsets and Finsupps too.
bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review The author would like community review of the PR labels Feb 11, 2024
mathlib-bors bot pushed a commit that referenced this pull request Feb 11, 2024
@mathlib-bors
Copy link

mathlib-bors bot commented Feb 11, 2024

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title feat: add Prime.not_dvd_finset_prod and Prime.not_dvd_finsupp_prod [Merged by Bors] - feat: add Prime.not_dvd_finset_prod and Prime.not_dvd_finsupp_prod Feb 11, 2024
@mathlib-bors mathlib-bors bot closed this Feb 11, 2024
@mathlib-bors mathlib-bors bot deleted the not_dvd_finset_prod branch February 11, 2024 06:29
dagurtomas pushed a commit that referenced this pull request Mar 22, 2024
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants