[Merged by Bors] - chore(Algebra/Group/Even): Clean up file#20558
[Merged by Bors] - chore(Algebra/Group/Even): Clean up file#20558
Conversation
PR summary b5a3e9dde1Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
YaelDillies
left a comment
There was a problem hiding this comment.
Sorry to be this person once again, but tweaking aesop priorities is so experimental that I would rather it be a standalone PR. Can you make it a separate PR depending on this one?
|
To clarify, no |
|
I'm not sure it's right to call this chore |
|
If none of |
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
Co-authored-by: Yaël Dillies <yael.dillies@gmail.com>
YaelDillies
left a comment
There was a problem hiding this comment.
Thanks! 🚀
maintainer merge
|
🚀 Pull request has been placed on the maintainer queue by YaelDillies. |
|
This PR is marked "awaiting author". Should the label be removed? |
adomani
left a comment
There was a problem hiding this comment.
Thanks, this looks good!
Please, update the comment, if you want, add a sentence to the doc-string and then merge!
bors d+
| def IsSquare (a : α) : Prop := ∃ r, a = r * r | ||
|
|
||
| @[to_additive (attr := simp)] lemma IsSquare.mul_self (m : α) : IsSquare (m * m) := ⟨m, rfl⟩ | ||
| @[to_additive (attr := simp)] lemma IsSquare.mul_self (r : α) : IsSquare (r * r) := ⟨r, rfl⟩ |
There was a problem hiding this comment.
It looks like the undocumented convention is that r is a "square root" of a, where possible.
I don't think that it is too important to enforce this, but you can, if you want, add a sentence to the doc-string.
|
✌️ artie2000 can now approve this pull request. To approve and merge a pull request, simply reply with |
Ah, I had missed that! bors d- |
Co-authored-by: damiano <adomani@gmail.com>
…er-community/mathlib4 into artie2000-automate-even
|
@adomani I'm confused about the status of this PR. Should I go ahead with the merge? |
|
I think the confusion is simply that you forgot to remove |
|
Oh sorry! I'll merge once it passes CI |
|
bors r+ |
* Rename some theorems to remove primed variants * Move `simp` attribute from `IsSquare.sq` to `Even.isSquare_pow` for consistency * Remove unhelpful alias * Golf some proofs * Make notation consistent throughout proofs Moves: `Even.nsmul` -> `Even.nsmul_right` `Even.nsmul'` -> `Even.nsmul_left` `Even.zsmul` -> `Even.zsmul_right` `Even.zsmul'` -> `Even.zsmul_left` `isSquare_zero` -> `IsSquare.zero` Deletions: `isSquare_of_exists_sq` (prefer `IsSquare.sq`)
|
Pull request successfully merged into master. Build succeeded: |
|
Yes, I had overlooked the |
simpattribute fromIsSquare.sqtoEven.isSquare_powfor consistencyMoves:
Even.nsmul->Even.nsmul_rightEven.nsmul'->Even.nsmul_leftEven.zsmul->Even.zsmul_rightEven.zsmul'->Even.zsmul_leftisSquare_zero->IsSquare.zeroDeletions:
isSquare_of_exists_sq(preferIsSquare.sq)