algorithm-archive icon indicating copy to clipboard operation
algorithm-archive copied to clipboard

Euclidean proof

Open Trashtalk217 opened this issue 6 years ago • 9 comments

I thought it may be helpfull to provide a proof with the euclidean algorithm, since it is not directly obvious why the algorithm computes the greatest common divisor.

I don't know how the attribution, but I'll probably just give full credit to James Schloss, to avoid any confusion.

Trashtalk217 avatar May 31 '19 14:05 Trashtalk217

Regarding the attribution: If you add this as a comment to this PR (replacing AUTHOR with your name), you can add something like the following to the license section of contents/euclidean_algorithm/euclidean_algorithm.md:

##### Text
The text of this chapter was written by [James Schloss](https://github.com/leios) and is licensed under the [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/legalcode).
+ The proof was written by [YOUR NAME](LINK TO YOUR GITHUB/WEBSITE/WHATEVER) and is licensed under the [Creative Commons Attribution-ShareAlike 4.0 International License](https://creativecommons.org/licenses/by-sa/4.0/legalcode).

june128 avatar Jun 08 '19 21:06 june128

I'd rather just give the rights to James since I don't want my real name in the book (yet) and I feel like writing "written by Trashtalk217" is a bit unprofessional.

Trashtalk217 avatar Jun 08 '19 22:06 Trashtalk217

I'd rather just give the rights to James since I don't want my real name in the book (yet) and I feel like writing "written by Trashtalk217" is a bit unprofessional.

Fair enough. We can always change it in the future after all :)

june128 avatar Jun 09 '19 22:06 june128

Thanks for the submission, we should certainly be adding proofs!

Should we provide a common format for proofs in the case that future proofs are added? (For example, should all proofs look like this: http://cheng.staff.shef.ac.uk/proofguide/proofguide.pdf).

I need to look at this proof a bit more rigorously and decide what we need for this section, in particular.

leios avatar Jun 12 '19 21:06 leios

Yup, there should be a proof format. like this?

$$
\begin{align}
& \forall a,b \in \mathbb{N}, &  \quad \exists n \implies n & = (a,b) \\
& \therefore                  &                           n & \mid a, \; n \mid b\\
& \therefore                  &                           n & \mid a-b\\
& \therefore                  &                     (a-b,a) & = n
\end{align}
$$

Render

dovisutu avatar Jun 13 '19 15:06 dovisutu

Honestly I don't feel comfortable writing easy to read proofs yet. I still think proofs in the algorithm archive are a neat idea, but I don't think I'm qualified to write them. Maybe later.

Maybe just use @dovisutu 's proof, that could work.

Trashtalk217 avatar Jul 12 '19 20:07 Trashtalk217

@leios, @Trashtalk217 How do we still want to have the proof in the AAA?

Amaras avatar Oct 23 '21 11:10 Amaras

My issue here is that I suck at proofs. If someone else can look at this and say it is valid and easy to read, I am happy to merge!

leios avatar Oct 26 '21 15:10 leios

Yeah, it feels strange even when I am reading it, and that's written long ago... I don't think I'd rewrite this though, for I really can't get the time to do so. So maybe someone can write a more viable version than mine. :D

dovisutu avatar Nov 06 '21 08:11 dovisutu