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 (RingTheory/Valuation/Integers) : add lemma one_of_isUnit' #12247
Conversation
@@ -76,6 +76,14 @@ theorem one_of_isUnit {x : O} (hx : IsUnit x) : v (algebraMap O R x) = 1 := | |||
exact mul_le_mul_left' (hv.2 (u⁻¹ : Units O)) _ | |||
#align valuation.integers.one_of_is_unit Valuation.Integers.one_of_isUnit | |||
|
|||
theorem one_of_isUnit' {x : O} (hx : IsUnit x) (H : ∀ x, v (algebraMap O R x) ≤ 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.
Am I correct that this does not use (hv : Integers v O)
? Since it is not immediate to see what hypotheses are included or not, maybe use this to golf one_of_isUnit
or add a docstring or move it out of the Integers
namespace instead to make It clearer?
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.
You are certainly right, but since this is never needed when you #check it the variable hv
does not show up. I have at any rate followed your suggestion and simplified the proof of one_of_isUnit
.
@erdOne Did you find the time to have another look at my modifications following your suggestions? |
Oops didn't notice that this is ready for review again. Thanks for the ping. |
🚀 Pull request has been placed on the maintainer queue by erdOne. |
bors merge |
Add lemma `one_of_isUnit'` , that is a generalization of `one_of_isUnit` with a slightly weaker assumption. Co-authored-by: María Inés de Frutos Fernández @mariainesdff
Thanks ;-) |
Pull request successfully merged into master. Build succeeded: |
Add lemma `one_of_isUnit'` , that is a generalization of `one_of_isUnit` with a slightly weaker assumption. Co-authored-by: María Inés de Frutos Fernández @mariainesdff
Add lemma `one_of_isUnit'` , that is a generalization of `one_of_isUnit` with a slightly weaker assumption. Co-authored-by: María Inés de Frutos Fernández @mariainesdff
Add lemma
one_of_isUnit'
, that is a generalization ofone_of_isUnit
with a slightly weaker assumption.Co-authored-by: María Inés de Frutos Fernández @mariainesdff