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

Theorem pythagtriplem15 14365
Description: Lemma for pythagtrip 14370. Show the relationship between  M,  N, and  A. (Contributed by Scott Fenton, 17-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
Hypotheses
Ref Expression
pythagtriplem15.1  |-  M  =  ( ( ( sqr `  ( C  +  B
) )  +  ( sqr `  ( C  -  B ) ) )  /  2 )
pythagtriplem15.2  |-  N  =  ( ( ( sqr `  ( C  +  B
) )  -  ( sqr `  ( C  -  B ) ) )  /  2 )
Assertion
Ref Expression
pythagtriplem15  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  A  =  ( ( M ^ 2 )  -  ( N ^ 2 ) ) )

Proof of Theorem pythagtriplem15
StepHypRef Expression
1 pythagtriplem15.1 . . . . 5  |-  M  =  ( ( ( sqr `  ( C  +  B
) )  +  ( sqr `  ( C  -  B ) ) )  /  2 )
21pythagtriplem12 14362 . . . 4  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  ( M ^ 2 )  =  ( ( C  +  A )  /  2
) )
3 pythagtriplem15.2 . . . . 5  |-  N  =  ( ( ( sqr `  ( C  +  B
) )  -  ( sqr `  ( C  -  B ) ) )  /  2 )
43pythagtriplem14 14364 . . . 4  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  ( N ^ 2 )  =  ( ( C  -  A )  /  2
) )
52, 4oveq12d 6314 . . 3  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  (
( M ^ 2 )  -  ( N ^ 2 ) )  =  ( ( ( C  +  A )  /  2 )  -  ( ( C  -  A )  /  2
) ) )
6 simp3 998 . . . . . . 7  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  ->  C  e.  NN )
7 simp1 996 . . . . . . 7  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  ->  A  e.  NN )
86, 7nnaddcld 10603 . . . . . 6  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  ->  ( C  +  A )  e.  NN )
98nncnd 10572 . . . . 5  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  ->  ( C  +  A )  e.  CC )
1093ad2ant1 1017 . . . 4  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  ( C  +  A )  e.  CC )
11 nnz 10907 . . . . . . . 8  |-  ( C  e.  NN  ->  C  e.  ZZ )
12113ad2ant3 1019 . . . . . . 7  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  ->  C  e.  ZZ )
13 nnz 10907 . . . . . . . 8  |-  ( A  e.  NN  ->  A  e.  ZZ )
14133ad2ant1 1017 . . . . . . 7  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  ->  A  e.  ZZ )
1512, 14zsubcld 10995 . . . . . 6  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  ->  ( C  -  A )  e.  ZZ )
1615zcnd 10991 . . . . 5  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  ->  ( C  -  A )  e.  CC )
17163ad2ant1 1017 . . . 4  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  ( C  -  A )  e.  CC )
18 2cnne0 10771 . . . . 5  |-  ( 2  e.  CC  /\  2  =/=  0 )
19 divsubdir 10261 . . . . 5  |-  ( ( ( C  +  A
)  e.  CC  /\  ( C  -  A
)  e.  CC  /\  ( 2  e.  CC  /\  2  =/=  0 ) )  ->  ( (
( C  +  A
)  -  ( C  -  A ) )  /  2 )  =  ( ( ( C  +  A )  / 
2 )  -  (
( C  -  A
)  /  2 ) ) )
2018, 19mp3an3 1313 . . . 4  |-  ( ( ( C  +  A
)  e.  CC  /\  ( C  -  A
)  e.  CC )  ->  ( ( ( C  +  A )  -  ( C  -  A ) )  / 
2 )  =  ( ( ( C  +  A )  /  2
)  -  ( ( C  -  A )  /  2 ) ) )
2110, 17, 20syl2anc 661 . . 3  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  (
( ( C  +  A )  -  ( C  -  A )
)  /  2 )  =  ( ( ( C  +  A )  /  2 )  -  ( ( C  -  A )  /  2
) ) )
225, 21eqtr4d 2501 . 2  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  (
( M ^ 2 )  -  ( N ^ 2 ) )  =  ( ( ( C  +  A )  -  ( C  -  A ) )  / 
2 ) )
23 nncn 10564 . . . . . . 7  |-  ( C  e.  NN  ->  C  e.  CC )
24233ad2ant3 1019 . . . . . 6  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  ->  C  e.  CC )
25243ad2ant1 1017 . . . . 5  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  C  e.  CC )
26 nncn 10564 . . . . . . 7  |-  ( A  e.  NN  ->  A  e.  CC )
27263ad2ant1 1017 . . . . . 6  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  ->  A  e.  CC )
28273ad2ant1 1017 . . . . 5  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  A  e.  CC )
2925, 28, 28pnncand 9989 . . . 4  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  (
( C  +  A
)  -  ( C  -  A ) )  =  ( A  +  A ) )
30282timesd 10802 . . . 4  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  (
2  x.  A )  =  ( A  +  A ) )
3129, 30eqtr4d 2501 . . 3  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  (
( C  +  A
)  -  ( C  -  A ) )  =  ( 2  x.  A ) )
3231oveq1d 6311 . 2  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  (
( ( C  +  A )  -  ( C  -  A )
)  /  2 )  =  ( ( 2  x.  A )  / 
2 ) )
33 2cn 10627 . . . 4  |-  2  e.  CC
34 2ne0 10649 . . . 4  |-  2  =/=  0
35 divcan3 10252 . . . 4  |-  ( ( A  e.  CC  /\  2  e.  CC  /\  2  =/=  0 )  ->  (
( 2  x.  A
)  /  2 )  =  A )
3633, 34, 35mp3an23 1316 . . 3  |-  ( A  e.  CC  ->  (
( 2  x.  A
)  /  2 )  =  A )
3728, 36syl 16 . 2  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  (
( 2  x.  A
)  /  2 )  =  A )
3822, 32, 373eqtrrd 2503 1  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  C  e.  NN )  /\  ( ( A ^
2 )  +  ( B ^ 2 ) )  =  ( C ^ 2 )  /\  ( ( A  gcd  B )  =  1  /\ 
-.  2  ||  A
) )  ->  A  =  ( ( M ^ 2 )  -  ( N ^ 2 ) ) )
Colors of variables: wff setvar class
Syntax hints:   -. wn 3    -> wi 4    /\ wa 369    /\ w3a 973    = wceq 1395    e. wcel 1819    =/= wne 2652   class class class wbr 4456   ` cfv 5594  (class class class)co 6296   CCcc 9507   0cc0 9509   1c1 9510    + caddc 9512    x. cmul 9514    - cmin 9824    / cdiv 10227   NNcn 10556   2c2 10606   ZZcz 10885   ^cexp 12169   sqrcsqrt 13078    || cdvds 13998    gcd cgcd 14156
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1619  ax-4 1632  ax-5 1705  ax-6 1748  ax-7 1791  ax-8 1821  ax-9 1823  ax-10 1838  ax-11 1843  ax-12 1855  ax-13 2000  ax-ext 2435  ax-sep 4578  ax-nul 4586  ax-pow 4634  ax-pr 4695  ax-un 6591  ax-cnex 9565  ax-resscn 9566  ax-1cn 9567  ax-icn 9568  ax-addcl 9569  ax-addrcl 9570  ax-mulcl 9571  ax-mulrcl 9572  ax-mulcom 9573  ax-addass 9574  ax-mulass 9575  ax-distr 9576  ax-i2m1 9577  ax-1ne0 9578  ax-1rid 9579  ax-rnegex 9580  ax-rrecex 9581  ax-cnre 9582  ax-pre-lttri 9583  ax-pre-lttrn 9584  ax-pre-ltadd 9585  ax-pre-mulgt0 9586  ax-pre-sup 9587
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 974  df-3an 975  df-tru 1398  df-ex 1614  df-nf 1618  df-sb 1741  df-eu 2287  df-mo 2288  df-clab 2443  df-cleq 2449  df-clel 2452  df-nfc 2607  df-ne 2654  df-nel 2655  df-ral 2812  df-rex 2813  df-reu 2814  df-rmo 2815  df-rab 2816  df-v 3111  df-sbc 3328  df-csb 3431  df-dif 3474  df-un 3476  df-in 3478  df-ss 3485  df-pss 3487  df-nul 3794  df-if 3945  df-pw 4017  df-sn 4033  df-pr 4035  df-tp 4037  df-op 4039  df-uni 4252  df-iun 4334  df-br 4457  df-opab 4516  df-mpt 4517  df-tr 4551  df-eprel 4800  df-id 4804  df-po 4809  df-so 4810  df-fr 4847  df-we 4849  df-ord 4890  df-on 4891  df-lim 4892  df-suc 4893  df-xp 5014  df-rel 5015  df-cnv 5016  df-co 5017  df-dm 5018  df-rn 5019  df-res 5020  df-ima 5021  df-iota 5557  df-fun 5596  df-fn 5597  df-f 5598  df-f1 5599  df-fo 5600  df-f1o 5601  df-fv 5602  df-riota 6258  df-ov 6299  df-oprab 6300  df-mpt2 6301  df-om 6700  df-2nd 6800  df-recs 7060  df-rdg 7094  df-er 7329  df-en 7536  df-dom 7537  df-sdom 7538  df-sup 7919  df-pnf 9647  df-mnf 9648  df-xr 9649  df-ltxr 9650  df-le 9651  df-sub 9826  df-neg 9827  df-div 10228  df-nn 10557  df-2 10615  df-3 10616  df-n0 10817  df-z 10886  df-uz 11107  df-rp 11246  df-seq 12111  df-exp 12170  df-cj 12944  df-re 12945  df-im 12946  df-sqrt 13080  df-abs 13081
This theorem is referenced by:  pythagtriplem18  14368
  Copyright terms: Public domain W3C validator