-
Notifications
You must be signed in to change notification settings - Fork 245
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
Add a couple lemmas about product in Data.List.Properties #2460
Conversation
And: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems fine as it is, but my nitpicks above might streamline things a bit, aesthetically at least?
NB. It looks as though you have forked the main repo and then done this PR directly on your |
- Renamed nonEmpty-product to product≢0 - Swapped argument order of ∈⇒≤product - Factored the ordering proofs out into Data.Nat.Properties - Removed the custom product≢0 proof in Primality
Thanks for a very nice first PR! (NB better to fix up your |
These are a couple of lemmas I found useful when trying to formalize Euclid's proof of the infinitude of primes.
Hopefully I didn't just miss these somewhere else, but the divisibility result above this was about the only theorem I could find about
product
.