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(number_theory): pythagorean triples #3200
Conversation
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 for the PR! I left some comments.
I think that his PR should include some simp
-lemmas about the circle parameterisation. If you apply the equiv to a term of k
, what does the result look like? (I know the answer, but simp
doesn't.) Similarly, if you have a point on the circle, and you apply the equiv.symm
, which element of k
do you get?
Are these the simp lemmas you had in mind:
? |
Almost, yes. But replace |
I suggest adding a bit more material to the pythagorean triples file. How much extra work (lines of code) do you think the classification is? |
The whole file is currently 500 lines. I can add about 200 more lines of silly lemmas that are needed. Or should I just add the whole thing? |
Maybe just add the whole thing, if you don't need any changes to other files. Otherwise, I suggest a "preparations for" PR, that does all the changes you need to existing files, and then a "new file" PR. |
OK, I'll add the rest now. I don't need more changes to other files. |
Co-authored-by: Johan Commelin <johan@commelin.net>
@paulvanwamelen, I can see you've marked this as |
There are also some linting errors that need to be fixed. |
I haven't had time to properly look at this, but the linter complains that the definition of |
I closed most comments. There are one or 2 still open above, some for me and one for Scott. |
@paulvanwamelen Just add |
I believe everything has been addressed now. Ready for another review. |
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 is looking good now! Almost ready for merging.
…umentation of the method used and the structure of the proof.
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
The classification of pythagorean triples (one of the "100 theorems") Co-authored-by: paulvanwamelen <30371019+paulvanwamelen@users.noreply.github.com>
Pull request successfully merged into master. Build succeeded: |
The classification of pythagorean triples (one of the "100 theorems") Co-authored-by: paulvanwamelen <30371019+paulvanwamelen@users.noreply.github.com>
The classification of pythagorean triples (one of the "100 theorems")