-
Notifications
You must be signed in to change notification settings - Fork 298
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(cyclotomic/eval): (q - 1) ^ totient n < |ϕₙ(q)| #12595
Conversation
Co-authored-by: Johan Commelin <johan@commelin.net>
I don't remember the details, but I have the impression that with this result you can golf a little bit the proof of nat.exists_prime_ge_modeq_one (at the beginning we need that Also, no problem the the requested review, but can you erase your comment from the PR description? I think that description ends up in the "official" Zulip stream. |
ah, I'll have a look. and no, the "top" bit I think is what ends up on the PR description, as far as I understand the bit below the line is just for discussion whilst writing the PR |
That's very possible. |
@@ -160,4 +160,52 @@ begin | |||
exact nat.pow_right_injective hp.two_le hxy } | |||
end | |||
|
|||
lemma sub_one_lt_nat_abs_cyclotomic_eval (n : ℕ) (q : ℕ) (hn' : 1 < n) (hq' : q ≠ 1) : |
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.
Can you add some comments explaining the proof? It doesn't look trivial
ring_hom.eq_int_cast, eval_sub], | ||
rw [←finset.prod_sdiff (finset.singleton_subset_iff.mpr $ (mem_primitive_roots hn).mpr hζ), | ||
finset.prod_singleton, ←one_mul (↑(q - 1) : nnreal)], | ||
have aux : 1 ≤ ∏ (x : ℂ) in primitive_roots n ℂ \ {ζ}, ∥↑q - x∥₊, |
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 can be extracted as a separate lemma I think.
I think there is a potentially more useful stronger version of this result, where we instead get I know that this stronger version is used in a proof of Zsigmondy's theorem for instance. Would you mind waiting a day or two until thats done, and then I'll push it here? |
Sure, feel free to push and I'll fix it up then. I was busy this weekend anyways so it all works out ^^ |
Ok I've pushed where I'm up to, its sorry free, but a bit of a monster proof. I really had to fight super hard to apply Anyone should feel free to fix up my bad work, I'll keep chipping away at it too. I just didn't want to hold the branch hostage any longer ;). Note that I added the statement for the upper bound too, I can't see a sneaky way to reuse the same proof, or use one to prove the other (note the upper bound has a stronger condition on n). So maybe we can just copy paste when the proof is minimized a bit. |
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.
Can you have a quick look at the proof of nat.exists_prime_ge_modeq_one? It can maybe be golfed using this (and one variable should be made implicit)
Co-authored-by: Riccardo Brasca <riccardo.brasca@gmail.com>
If it can, it won't be too huge of a golf - because these theorems require |
That's not so important, don't worry. |
Let's just get this merged, thanks! bors d+ |
✌️ ericrbg can now approve this pull request. To approve and merge a pull request, simply reply with |
bors r+ |
Originally from the Wedderburn PR, but generalized to include an exponent. Co-authored-by: Alex J. Best <alex.j.best@gmail.com> Co-authored-by: Alex J. Best <alex.j.best@gmail.com> Co-authored-by: Johan Commelin <johan@commelin.net> Co-authored-by: Alex J Best <alex.j.best@gmail.com>
Pull request successfully merged into master. Build succeeded: |
As suggested in the reviews of #12595 we try to golf the proof using the bound proved there. This doesn't end up being as much of a golf as hoped due to annoying edge cases, but seems conceptually simpler.
Originally from the Wedderburn PR, but generalized to include an exponent.
Co-authored-by: Alex J. Best alex.j.best@gmail.com
∥x - y∥
#13293eval_apply
#13586this is a real large yak...