For integers
We shall consider only the non-negative integers here, so we must show that
Thm* a:. prime(a) (p:, q:. pp = aqq)
It is impossible to build an infinite decreasing sequence of natural numbers, as is expressed by our principle
Thm* P:(Prop). (x:. P(x) (x':. x'<x & P(x'))) (x:. P(x))
So, to show that a prime number
p:, q:. pp = aqq (p':. p'<p & (q':. p'p' = aq'q')) (see hypothesis
Hyp:6 of the proof)
We rewrite
(pp = aqq) to(qq = ap'p')
and then
(qq = ap'p') to(p'p' = aq'q')
giving us a rational square root with numerator
These rewrites are justified by a special-purpose lemma
Thm* a:.
Thm* prime(a) (p:, q:. pp = aqq (p':. p'<p & qq = ap'p'))
See the
QED
There is also a specialized proof fora = 2 . It is simpler but similar.Thm* (p:, q:. pp = 2qq) with agloss .
About: