-
Notifications
You must be signed in to change notification settings - Fork 355
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] - refactor: make PadicInt.valuation
ℕ
-valued
#19858
Conversation
PR summary 466f54eb4cImport changes for modified filesNo significant changes to the import graph Import changes for all files
|
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 looks good – thanks for the general cleanup work on the Padics
files. Should we also have a version of the valuation taking values in WithTop N
, analogous to Padic.addValuation
? Anyway, that can be for a later PR.
One question: is there a general reason why it's better not to refer to the Fact
section variable by name? I agree we don't usually give explicit names to instance variables, but Fact
is obviously a special case, and it loses a few golf points to keep writing (Fact.out : p.Prime)
in place of hp.out
.
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.
These aren't specific to p-adics, so maybe should be split off into a separate mini-PR. What is the rationale for tagging the 1 < a
lemmas as simp
, but not the 0 < a < 1
lemmas?
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.
I've opened #20032. For the simp tagging, I just followed what was already done in the file
18ac305
to
786e002
Compare
This PR/issue depends on:
|
It is currently `ℤ`-valued, but always nonnegative. From FLT
7076235
to
466f54e
Compare
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.
Thanks!
maintainer merge
🚀 Pull request has been placed on the maintainer queue by Ruben-VandeVelde. |
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.
Thanks 🎉
bors merge
It is currently `ℤ`-valued, but always nonnegative. Also rename the misnamed `norm_eq_pow_val` to `norm_eq_zpow_neg_valuation` From FLT Closes ImperialCollegeLondon/FLT#277
Pull request successfully merged into master. Build succeeded: |
PadicInt.valuation
ℕ
-valuedPadicInt.valuation
ℕ
-valued
It is currently
ℤ
-valued, but always nonnegative.Also rename the misnamed
norm_eq_pow_val
tonorm_eq_zpow_neg_valuation
From FLT
Closes ImperialCollegeLondon/FLT#277
1 ≤ a ^ n ↔ 0 ≤ n
when1 < a
#20032