MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  pythagtriplem13 Unicode version

Theorem pythagtriplem13 12896
Description: Lemma for pythagtrip 12903. Show that  N (which will eventually be closely related to the  n in the final statement) is a natural. (Contributed by Scott Fenton, 17-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
Hypothesis
Ref Expression
pythagtriplem13.1  |-  N  =  ( ( ( sqr `  ( C  +  B
) )  -  ( sqr `  ( C  -  B ) ) )  /  2 )
Assertion
Ref Expression
pythagtriplem13  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  N  e.  NN )

Proof of Theorem pythagtriplem13
StepHypRef Expression
1 pythagtriplem13.1 . 2  |-  N  =  ( ( ( sqr `  ( C  +  B
) )  -  ( sqr `  ( C  -  B ) ) )  /  2 )
2 pythagtriplem9 12893 . . . . . 6  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  ( sqr `  ( C  +  B ) )  e.  NN )
32nnzd 10132 . . . . 5  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  ( sqr `  ( C  +  B ) )  e.  ZZ )
4 simp3r 984 . . . . . . 7  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  -.  2  ||  A )
5 simp3 957 . . . . . . . . . . . . 13  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  ->  C  e.  NN )
6 simp2 956 . . . . . . . . . . . . 13  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  ->  B  e.  NN )
75, 6nnaddcld 9808 . . . . . . . . . . . 12  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  ->  ( C  +  B )  e.  NN )
87nnzd 10132 . . . . . . . . . . 11  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  ->  ( C  +  B )  e.  ZZ )
983ad2ant1 976 . . . . . . . . . 10  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  ( C  +  B )  e.  ZZ )
10 nnz 10061 . . . . . . . . . . . 12  |-  ( A  e.  NN  ->  A  e.  ZZ )
11103ad2ant1 976 . . . . . . . . . . 11  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  ->  A  e.  ZZ )
12113ad2ant1 976 . . . . . . . . . 10  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  A  e.  ZZ )
13 2z 10070 . . . . . . . . . . 11  |-  2  e.  ZZ
14 dvdsgcdb 12739 . . . . . . . . . . 11  |-  ( ( 2  e.  ZZ  /\  ( C  +  B
)  e.  ZZ  /\  A  e.  ZZ )  ->  ( ( 2  ||  ( C  +  B
)  /\  2  ||  A )  <->  2  ||  ( ( C  +  B )  gcd  A
) ) )
1513, 14mp3an1 1264 . . . . . . . . . 10  |-  ( ( ( C  +  B
)  e.  ZZ  /\  A  e.  ZZ )  ->  ( ( 2  ||  ( C  +  B
)  /\  2  ||  A )  <->  2  ||  ( ( C  +  B )  gcd  A
) ) )
169, 12, 15syl2anc 642 . . . . . . . . 9  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  (
( 2  ||  ( C  +  B )  /\  2  ||  A )  <->  2  ||  ( ( C  +  B )  gcd  A ) ) )
1716biimpar 471 . . . . . . . 8  |-  ( ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  (
( A ^ 2 )  +  ( B ^ 2 ) )  =  ( C ^
2 )  /\  (
( A  gcd  B
)  =  1  /\ 
-.  2  ||  A
) )  /\  2  ||  ( ( C  +  B )  gcd  A
) )  ->  (
2  ||  ( C  +  B )  /\  2  ||  A ) )
1817simprd 449 . . . . . . 7  |-  ( ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  (
( A ^ 2 )  +  ( B ^ 2 ) )  =  ( C ^
2 )  /\  (
( A  gcd  B
)  =  1  /\ 
-.  2  ||  A
) )  /\  2  ||  ( ( C  +  B )  gcd  A
) )  ->  2  ||  A )
194, 18mtand 640 . . . . . 6  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  -.  2  ||  ( ( C  +  B )  gcd 
A ) )
20 pythagtriplem7 12891 . . . . . . 7  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  ( sqr `  ( C  +  B ) )  =  ( ( C  +  B )  gcd  A
) )
2120breq2d 4051 . . . . . 6  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  (
2  ||  ( sqr `  ( C  +  B
) )  <->  2  ||  ( ( C  +  B )  gcd  A
) ) )
2219, 21mtbird 292 . . . . 5  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  -.  2  ||  ( sqr `  ( C  +  B )
) )
23 pythagtriplem8 12892 . . . . . 6  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  ( sqr `  ( C  -  B ) )  e.  NN )
2423nnzd 10132 . . . . 5  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  ( sqr `  ( C  -  B ) )  e.  ZZ )
25 nnz 10061 . . . . . . . . . . . . 13  |-  ( C  e.  NN  ->  C  e.  ZZ )
26253ad2ant3 978 . . . . . . . . . . . 12  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  ->  C  e.  ZZ )
27 nnz 10061 . . . . . . . . . . . . 13  |-  ( B  e.  NN  ->  B  e.  ZZ )
28273ad2ant2 977 . . . . . . . . . . . 12  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  ->  B  e.  ZZ )
2926, 28zsubcld 10138 . . . . . . . . . . 11  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  ->  ( C  -  B )  e.  ZZ )
30293ad2ant1 976 . . . . . . . . . 10  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  ( C  -  B )  e.  ZZ )
31 dvdsgcdb 12739 . . . . . . . . . . 11  |-  ( ( 2  e.  ZZ  /\  ( C  -  B
)  e.  ZZ  /\  A  e.  ZZ )  ->  ( ( 2  ||  ( C  -  B
)  /\  2  ||  A )  <->  2  ||  ( ( C  -  B )  gcd  A
) ) )
3213, 31mp3an1 1264 . . . . . . . . . 10  |-  ( ( ( C  -  B
)  e.  ZZ  /\  A  e.  ZZ )  ->  ( ( 2  ||  ( C  -  B
)  /\  2  ||  A )  <->  2  ||  ( ( C  -  B )  gcd  A
) ) )
3330, 12, 32syl2anc 642 . . . . . . . . 9  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  (
( 2  ||  ( C  -  B )  /\  2  ||  A )  <->  2  ||  ( ( C  -  B )  gcd  A ) ) )
3433biimpar 471 . . . . . . . 8  |-  ( ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  (
( A ^ 2 )  +  ( B ^ 2 ) )  =  ( C ^
2 )  /\  (
( A  gcd  B
)  =  1  /\ 
-.  2  ||  A
) )  /\  2  ||  ( ( C  -  B )  gcd  A
) )  ->  (
2  ||  ( C  -  B )  /\  2  ||  A ) )
3534simprd 449 . . . . . . 7  |-  ( ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  (
( A ^ 2 )  +  ( B ^ 2 ) )  =  ( C ^
2 )  /\  (
( A  gcd  B
)  =  1  /\ 
-.  2  ||  A
) )  /\  2  ||  ( ( C  -  B )  gcd  A
) )  ->  2  ||  A )
364, 35mtand 640 . . . . . 6  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  -.  2  ||  ( ( C  -  B )  gcd 
A ) )
37 pythagtriplem6 12890 . . . . . . 7  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  ( sqr `  ( C  -  B ) )  =  ( ( C  -  B )  gcd  A
) )
3837breq2d 4051 . . . . . 6  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  (
2  ||  ( sqr `  ( C  -  B
) )  <->  2  ||  ( ( C  -  B )  gcd  A
) ) )
3936, 38mtbird 292 . . . . 5  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  -.  2  ||  ( sqr `  ( C  -  B )
) )
40 omoe 12881 . . . . 5  |-  ( ( ( ( sqr `  ( C  +  B )
)  e.  ZZ  /\  -.  2  ||  ( sqr `  ( C  +  B
) ) )  /\  ( ( sqr `  ( C  -  B )
)  e.  ZZ  /\  -.  2  ||  ( sqr `  ( C  -  B
) ) ) )  ->  2  ||  (
( sqr `  ( C  +  B )
)  -  ( sqr `  ( C  -  B
) ) ) )
413, 22, 24, 39, 40syl22anc 1183 . . . 4  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  2  ||  ( ( sqr `  ( C  +  B )
)  -  ( sqr `  ( C  -  B
) ) ) )
4229zred 10133 . . . . . . . . . 10  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  ->  ( C  -  B )  e.  RR )
43423ad2ant1 976 . . . . . . . . 9  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  ( C  -  B )  e.  RR )
44 simp13 987 . . . . . . . . . 10  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  C  e.  NN )
4544nnred 9777 . . . . . . . . 9  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  C  e.  RR )
467nnred 9777 . . . . . . . . . 10  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  ->  ( C  +  B )  e.  RR )
47463ad2ant1 976 . . . . . . . . 9  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  ( C  +  B )  e.  RR )
48 nnrp 10379 . . . . . . . . . . . 12  |-  ( B  e.  NN  ->  B  e.  RR+ )
49483ad2ant2 977 . . . . . . . . . . 11  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  ->  B  e.  RR+ )
50493ad2ant1 976 . . . . . . . . . 10  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  B  e.  RR+ )
5145, 50ltsubrpd 10434 . . . . . . . . 9  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  ( C  -  B )  <  C )
52 nngt0 9791 . . . . . . . . . . . 12  |-  ( B  e.  NN  ->  0  <  B )
53523ad2ant2 977 . . . . . . . . . . 11  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  ->  0  <  B )
54533ad2ant1 976 . . . . . . . . . 10  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  0  <  B )
55 simp12 986 . . . . . . . . . . . 12  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  B  e.  NN )
5655nnred 9777 . . . . . . . . . . 11  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  B  e.  RR )
5756, 45ltaddposd 9372 . . . . . . . . . 10  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  (
0  <  B  <->  C  <  ( C  +  B ) ) )
5854, 57mpbid 201 . . . . . . . . 9  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  C  <  ( C  +  B
) )
5943, 45, 47, 51, 58lttrd 8993 . . . . . . . 8  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  ( C  -  B )  <  ( C  +  B
) )
60 pythagtriplem10 12889 . . . . . . . . . . 11  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 ) )  ->  0  <  ( C  -  B )
)
61603adant3 975 . . . . . . . . . 10  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  0  <  ( C  -  B
) )
62 0re 8854 . . . . . . . . . . 11  |-  0  e.  RR
63 ltle 8926 . . . . . . . . . . 11  |-  ( ( 0  e.  RR  /\  ( C  -  B
)  e.  RR )  ->  ( 0  < 
( C  -  B
)  ->  0  <_  ( C  -  B ) ) )
6462, 63mpan 651 . . . . . . . . . 10  |-  ( ( C  -  B )  e.  RR  ->  (
0  <  ( C  -  B )  ->  0  <_  ( C  -  B
) ) )
6543, 61, 64sylc 56 . . . . . . . . 9  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  0  <_  ( C  -  B
) )
66 nngt0 9791 . . . . . . . . . . . . 13  |-  ( C  e.  NN  ->  0  <  C )
67663ad2ant3 978 . . . . . . . . . . . 12  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  ->  0  <  C )
68673ad2ant1 976 . . . . . . . . . . 11  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  0  <  C )
6945, 56, 68, 54addgt0d 9363 . . . . . . . . . 10  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  0  <  ( C  +  B
) )
70 ltle 8926 . . . . . . . . . . 11  |-  ( ( 0  e.  RR  /\  ( C  +  B
)  e.  RR )  ->  ( 0  < 
( C  +  B
)  ->  0  <_  ( C  +  B ) ) )
7162, 70mpan 651 . . . . . . . . . 10  |-  ( ( C  +  B )  e.  RR  ->  (
0  <  ( C  +  B )  ->  0  <_  ( C  +  B
) ) )
7247, 69, 71sylc 56 . . . . . . . . 9  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  0  <_  ( C  +  B
) )
7343, 65, 47, 72sqrltd 11926 . . . . . . . 8  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  (
( C  -  B
)  <  ( C  +  B )  <->  ( sqr `  ( C  -  B
) )  <  ( sqr `  ( C  +  B ) ) ) )
7459, 73mpbid 201 . . . . . . 7  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  ( sqr `  ( C  -  B ) )  < 
( sqr `  ( C  +  B )
) )
75 nnsub 9800 . . . . . . . 8  |-  ( ( ( sqr `  ( C  -  B )
)  e.  NN  /\  ( sqr `  ( C  +  B ) )  e.  NN )  -> 
( ( sqr `  ( C  -  B )
)  <  ( sqr `  ( C  +  B
) )  <->  ( ( sqr `  ( C  +  B ) )  -  ( sqr `  ( C  -  B ) ) )  e.  NN ) )
7623, 2, 75syl2anc 642 . . . . . . 7  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  (
( sqr `  ( C  -  B )
)  <  ( sqr `  ( C  +  B
) )  <->  ( ( sqr `  ( C  +  B ) )  -  ( sqr `  ( C  -  B ) ) )  e.  NN ) )
7774, 76mpbid 201 . . . . . 6  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  (
( sqr `  ( C  +  B )
)  -  ( sqr `  ( C  -  B
) ) )  e.  NN )
7877nnzd 10132 . . . . 5  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  (
( sqr `  ( C  +  B )
)  -  ( sqr `  ( C  -  B
) ) )  e.  ZZ )
79 2ne0 9845 . . . . . 6  |-  2  =/=  0
80 dvdsval2 12550 . . . . . 6  |-  ( ( 2  e.  ZZ  /\  2  =/=  0  /\  (
( sqr `  ( C  +  B )
)  -  ( sqr `  ( C  -  B
) ) )  e.  ZZ )  ->  (
2  ||  ( ( sqr `  ( C  +  B ) )  -  ( sqr `  ( C  -  B ) ) )  <->  ( ( ( sqr `  ( C  +  B ) )  -  ( sqr `  ( C  -  B )
) )  /  2
)  e.  ZZ ) )
8113, 79, 80mp3an12 1267 . . . . 5  |-  ( ( ( sqr `  ( C  +  B )
)  -  ( sqr `  ( C  -  B
) ) )  e.  ZZ  ->  ( 2 
||  ( ( sqr `  ( C  +  B
) )  -  ( sqr `  ( C  -  B ) ) )  <-> 
( ( ( sqr `  ( C  +  B
) )  -  ( sqr `  ( C  -  B ) ) )  /  2 )  e.  ZZ ) )
8278, 81syl 15 . . . 4  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  (
2  ||  ( ( sqr `  ( C  +  B ) )  -  ( sqr `  ( C  -  B ) ) )  <->  ( ( ( sqr `  ( C  +  B ) )  -  ( sqr `  ( C  -  B )
) )  /  2
)  e.  ZZ ) )
8341, 82mpbid 201 . . 3  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  (
( ( sqr `  ( C  +  B )
)  -  ( sqr `  ( C  -  B
) ) )  / 
2 )  e.  ZZ )
8477nngt0d 9805 . . . 4  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  0  <  ( ( sqr `  ( C  +  B )
)  -  ( sqr `  ( C  -  B
) ) ) )
8577nnred 9777 . . . . 5  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  (
( sqr `  ( C  +  B )
)  -  ( sqr `  ( C  -  B
) ) )  e.  RR )
86 halfpos2 9957 . . . . 5  |-  ( ( ( sqr `  ( C  +  B )
)  -  ( sqr `  ( C  -  B
) ) )  e.  RR  ->  ( 0  <  ( ( sqr `  ( C  +  B
) )  -  ( sqr `  ( C  -  B ) ) )  <->  0  <  ( ( ( sqr `  ( C  +  B )
)  -  ( sqr `  ( C  -  B
) ) )  / 
2 ) ) )
8785, 86syl 15 . . . 4  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  (
0  <  ( ( sqr `  ( C  +  B ) )  -  ( sqr `  ( C  -  B ) ) )  <->  0  <  (
( ( sqr `  ( C  +  B )
)  -  ( sqr `  ( C  -  B
) ) )  / 
2 ) ) )
8884, 87mpbid 201 . . 3  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  0  <  ( ( ( sqr `  ( C  +  B
) )  -  ( sqr `  ( C  -  B ) ) )  /  2 ) )
89 elnnz 10050 . . 3  |-  ( ( ( ( sqr `  ( C  +  B )
)  -  ( sqr `  ( C  -  B
) ) )  / 
2 )  e.  NN  <->  ( ( ( ( sqr `  ( C  +  B
) )  -  ( sqr `  ( C  -  B ) ) )  /  2 )  e.  ZZ  /\  0  < 
( ( ( sqr `  ( C  +  B
) )  -  ( sqr `  ( C  -  B ) ) )  /  2 ) ) )
9083, 88, 89sylanbrc 645 . 2  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  (
( ( sqr `  ( C  +  B )
)  -  ( sqr `  ( C  -  B
) ) )  / 
2 )  e.  NN )
911, 90syl5eqel 2380 1  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  N  e.  NN )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 176    /\ wa 358    /\ w3a 934    = wceq 1632    e. wcel 1696    =/= wne 2459   class class class wbr 4039   ` cfv 5271  (class class class)co 5874   RRcr 8752   0cc0 8753   1c1 8754    + caddc 8756    < clt 8883    <_ cle 8884    - cmin 9053    / cdiv 9439   NNcn 9762   2c2 9811   ZZcz 10040   RR+crp 10370   ^cexp 11120   sqrcsqr 11734    || cdivides 12547    gcd cgcd 12701
This theorem is referenced by:  pythagtriplem18  12901
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1536  ax-5 1547  ax-17 1606  ax-9 1644  ax-8 1661  ax-13 1698  ax-14 1700  ax-6 1715  ax-7 1720  ax-11 1727  ax-12 1878  ax-ext 2277  ax-sep 4157  ax-nul 4165  ax-pow 4204  ax-pr 4230  ax-un 4528  ax-cnex 8809  ax-resscn 8810  ax-1cn 8811  ax-icn 8812  ax-addcl 8813  ax-addrcl 8814  ax-mulcl 8815  ax-mulrcl 8816  ax-mulcom 8817  ax-addass 8818  ax-mulass 8819  ax-distr 8820  ax-i2m1 8821  ax-1ne0 8822  ax-1rid 8823  ax-rnegex 8824  ax-rrecex 8825  ax-cnre 8826  ax-pre-lttri 8827  ax-pre-lttrn 8828  ax-pre-ltadd 8829  ax-pre-mulgt0 8830  ax-pre-sup 8831
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3or 935  df-3an 936  df-tru 1310  df-ex 1532  df-nf 1535  df-sb 1639  df-eu 2160  df-mo 2161  df-clab 2283  df-cleq 2289  df-clel 2292  df-nfc 2421  df-ne 2461  df-nel 2462  df-ral 2561  df-rex 2562  df-reu 2563  df-rmo 2564  df-rab 2565  df-v 2803  df-sbc 3005  df-csb 3095  df-dif 3168  df-un 3170  df-in 3172  df-ss 3179  df-pss 3181  df-nul 3469  df-if 3579  df-pw 3640  df-sn 3659  df-pr 3660  df-tp 3661  df-op 3662  df-uni 3844  df-int 3879  df-iun 3923  df-br 4040  df-opab 4094  df-mpt 4095  df-tr 4130  df-eprel 4321  df-id 4325  df-po 4330  df-so 4331  df-fr 4368  df-we 4370  df-ord 4411  df-on 4412  df-lim 4413  df-suc 4414  df-om 4673  df-xp 4711  df-rel 4712  df-cnv 4713  df-co 4714  df-dm 4715  df-rn 4716  df-res 4717  df-ima 4718  df-iota 5235  df-fun 5273  df-fn 5274  df-f 5275  df-f1 5276  df-fo 5277  df-f1o 5278  df-fv 5279  df-ov 5877  df-oprab 5878  df-mpt2 5879  df-1st 6138  df-2nd 6139  df-riota 6320  df-recs 6404  df-rdg 6439  df-1o 6495  df-2o 6496  df-oadd 6499  df-er 6676  df-en 6880  df-dom 6881  df-sdom 6882  df-fin 6883  df-sup 7210  df-pnf 8885  df-mnf 8886  df-xr 8887  df-ltxr 8888  df-le 8889  df-sub 9055  df-neg 9056  df-div 9440  df-nn 9763  df-2 9820  df-3 9821  df-n0 9982  df-z 10041  df-uz 10247  df-rp 10371  df-fz 10799  df-fl 10941  df-mod 10990  df-seq 11063  df-exp 11121  df-cj 11600  df-re 11601  df-im 11602  df-sqr 11736  df-abs 11737  df-dvds 12548  df-gcd 12702  df-prm 12775
  Copyright terms: Public domain W3C validator