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(data/int/basic algebra/associated): is_unit (a : ℤ) iff a = ±1 #7058
Conversation
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
…/mathlib into adomani_int_nat_abs
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
You asked on the zulip thread about where a good place for lemma is_unit.neg {α : Type*} [ring α] {a : α} : is_unit a → is_unit (-a)
| ⟨x, hx⟩ := hx ▸ (-x).is_unit |
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
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 d+
✌️ adomani can now approve this pull request. To approve and merge a pull request, simply reply with |
Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
Thank you for all your help! I will wait for CI to finish and will push the PR onto the queue! |
Thanks 🎉 bors merge |
…7058) Besides the title lemma, this PR also moves lemma `is_unit_int` from `algebra/associated` to `data/int/basic`. Co-authored-by: Eric Wieser <wieser.eric@gmail.com> Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com> Co-authored-by: Ruben-VandeVelde <65514131+Ruben-VandeVelde@users.noreply.github.com>
Build failed (retrying...): |
…7058) Besides the title lemma, this PR also moves lemma `is_unit_int` from `algebra/associated` to `data/int/basic`. Co-authored-by: Eric Wieser <wieser.eric@gmail.com> Co-authored-by: Ruben Van de Velde <65514131+Ruben-VandeVelde@users.noreply.github.com> Co-authored-by: Ruben-VandeVelde <65514131+Ruben-VandeVelde@users.noreply.github.com>
Pull request successfully merged into master. Build succeeded: |
Besides the title lemma, this PR also moves lemma
is_unit_int
fromalgebra/associated
todata/int/basic
.Co-authored-by: Eric Wieser wieser.eric@gmail.com
Co-authored-by: Ruben Van de Velde 65514131+Ruben-VandeVelde@users.noreply.github.com